|
WiSnap(TM) WiFi Connection to PC using COM-TCP Redirector
This page demonstrates how a COM-to-TCP connection can be made from a PC to the WiSnap RS232 adapter. You can download the com0com installer HERE. You can create as many pairs of virtual COM port as you like, and use any pair to connect one application to another. Null-modem Emulator InstallationRunning the “setup.exe” begins installation as a standard wizard. Click “Next >” through the dialog screens and agree to the license to complete installation. The screen shown below and to the right asks if you would like to install shortcuts in the Start Menu, and if you would like to add a default pair of COM ports during installation.
Afterwards, Windows may bring up the “Found New Hardware Wizard.” This is because the virtual COM ports were detected. Allow Windows to search and install the software drivers automatically.
NOTE: This should happen twice, since two COM ports are being installed. Setting up the WiSnapConfiguring the WiSnap over RS-232 Configuring the WiSnap over ad-hoc Wi-Fi Whether using RS-232 or telnet over Wi-Fi, send three “dollar signs” ($$$) to the WiSnap to enter command mode and you should see the reply “CMD.” You can set up the WiSnap to join your existing wireless network with a few simple commands. set wlan ssid my_network // Network name WiSnap boot-up messages and entering command mode (below-left)
Opening a TCP/IP connection to the WiSnapWe’re now ready to beginning communicating with the WiSnap over Wi-Fi. Open a terminal connection to communicate with our virtual COM port “CNCB0” that was installed in the beginning of this guide, but instead with these settings: 115200 baud, 8 data bits, 1 stop bit, no parity, and no flow control. Use the following command to initiate a TCP connection to the WiSnap: testapp -c \\.\CNCA0 -t n -h 169.254.1.1 -p 2000 ("CNCA0" is the COM port desired, 169.254.1.1 is the IP address of the WiSnap, and 2000 is the port number of WiSnap. Run testapp.exe without parameters to see all options.)
NOTE: After running the command above, if you see the message: “DSR is OFF,” you will need to change the DSR line on the com0com Null-Modem Emulator. Head to your Start Menu’s list of programs, and run the Setup application located in the com0com folder (Also located at "C:\Program Files\com0com\setupg.exe") We will need to inverse the DSR line so that it can be used for communication. Double click the green dots on both sides of the DSR line, to look like the example on the right.
Make sure that you close any open connections to the virtual ports (like the CNCB0 connection from earlier) that we’ve adjusted before clicking “Apply,” and closing the program. Once the DSR line has been set, you may re-open the connection to the CNCB0 port and use testapp again to open a connection. This time, you should see “DSR is ON.”
Once the connection is established, you will see "*HELLO*" in the terminal window that is connected to CNCB0.
Now you should be able to send and receive data between CNCB0 and the WiSnap device! *Some Windows applications do not recognize the CNCB0 port (or other Virtual Ports). WiSnap WiFi RS-232 kit module page. WiSnap WiFi RS-232 kit AAA adapter page. Order online, or call to order. |









