Home > Net > How to monitoring data from via a serial port?
How to monitoring data from via a serial port?
Time:03-23
Using c # and.net programming, serial port communication often need to confirm via a serial port sent right data, in order to find send bugs in your code, I am currently using is corresponding to the computer's USB port with a USB232 drive, and then take short drive send and return the feet, the data in the same USB port to return, and then to monitor the serial port the data returned, because often don't have USB232 drive, so want to find a more simple way, Have no drive, "pure software method, it can monitor to the serial port to send data? I send data by comA, for example, to "map" to comB back by software, and then with a third party like sscom debugging tools, to monitor data is correct, thank you.
CodePudding user response:
1. If you have already connected devices, because of a serial port must be exclusive to open, so the use of virtual serial port tools VSPD pro the split of the entity split into two virtual serial port, serial port connect virtual serial port 1, your software you debuge debugging by virtual serial port 2 2. If there is no equipment, just pure debugging, so use virtual serial ports directly VSPD pro virtual virtual string, a pair of virtual serial port 1 input the output of the corresponding virtual serial port 2, virtual serial port 1 is your software, you debuge debugging by virtual serial port 2
3 accessport, Bus Hound this tool based on pci Bus filter drivers, monitoring data can be directly
CodePudding user response:
Virtual Serial Port Configure Virtual Serial Port Driver download a network of Serial debugging tools cat Serial debugging assistant V4.2 can side with the program to send, tools received