Last week I wrote some test software that allowed me to test electronics that used serial ports. In particular I was testing our BM002, BM009, and BM010. They are RS232 to 485, IR to serial, and USB to serial converters respectively. I thought I would make it available in case it was of value to anyone else. You can download the software here.
The test software is pretty simple. It sends a string of ASCII data from one serial port to another. The available COM ports show up under port 1 and port 2 when the program is launched. If you attach serial ports (via USB to serial converters) after launch, just hit the update port button and it will display them. You will need at least two ports to use this software. Select the ports you want to use as 1 and 2, select the baud rate, and press the Update Port button.
To send data from port 1 to port 2 press the button connected to the arrows below. The text from the Port 1 Transmit text box is sent and if it is received at port 2 it is displayed and the port2 received text box is colored green.
To send data from port 2 to port 1 press the button connected to the arrows below. The text from the Port 2 Transmit text box is sent and if it is received at port 1 it is displayed and the port 1 received text box is colored green.
If you want to send data continuously from either port just select the Repeat Send check box. To send data port port 1 to port 2 and then back again you can press the Fast Ping Pong button. The value in the # attempts text box next to the ping pong button determines how many times the loop-back test is attempted.
The software keeps track of good packets and bad packets. A good packet is a message sent from one port to another that shows up intact within 100mS. A bad packet is anything else. Below is an image of the screen when data packets are bad.
The code was written pretty quickly, so their may be some quirks to it. I used it on Windows XP and Windows 7 systems, and installed/ran it with no problems. To install the software just download the zip file linked above and launch setup.exe.