Detect Serial Baud Rate5/11/2021
You want you are expecting when you request certain information.The logical solution is to connected to the device using one baund rate, check if the requested data is correct, and if its not disconnect and try the other baud rate.There is no way to request the band rate from a serial device.You know But how could I do that As I know, Ill be able to test the data when a RFID Card is read.
You could also just do it by device type, or get the user KNOW what the band rate for the device is, and let choose that configuration. Detect Serial Baud Rate How To Get TheYou asked how to get the band rate of a serial device, you cant, you need to already ve that information before the connection is made. Ill create it like a class.cs Call it as an object on my winform config then assign the values. Can u check below question: stackoverflow.comquestions59575956. ![]() If you connect at the wrong rate, your echo will be returned as garbage instead of the string you sent. If you can programmatically send commands to a terminal and get back the results, then executing something like echo my-test-string should return my-test-string. If it is not, the value will come back screwed up i.e. Provide details and share your research But avoid Asking for help, clarification, or responding to other answers. Making statements based on opinion; back them up with references or personal experience. ![]()
0 Comments
Leave a Reply. |