Home/Support/Support Forum/Configuring serial port via WiFi
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

Configuring serial port via WiFi

0 votes
We are since many years building a data collection instrument which communicates via RS232 to our proprietary PC software. Recently customers have asked for an Android app to complement the PC program in order to easily access the instrument via a cellphone. So we are developing such and we are using the DIGI Connect Wi-SP converter to get from RS232 to TCP/IP networking, which is what is easiest to handle in Android.

In the lab this works fine; we are using the raw data port on the device and connect a TCP socket to it to talk to the instrument. Then we can send commands and receive data from the instrument. Our protocol is purely binary so we need the port to just transfer the exact data into and out from the instrument, thus the use of the raw data port.

But our problem is in how to automate the serial line configuration from our app (and from our PC program on Windows). We need to set the baud rate, handshake, data and stop bits and parity somehow.

During development we are using both the serial command interface directly to the device and the built-in web server to configure this on the prototype devices, but this is no good for the live applications. They must be able to set the comm data via TCP/IP commands directly to the device.
But I have not found any such commands described in any of the docs I could get my hands on...
What I have seen is the command interface via the serial line (after booting the device with the dip switch set for command). But this is no good because the physical serial port is hooked to the instrument and not to the application...

So is there any way to use one of the other TCP ports in order to set the comm parameters? If so, which port and what are the commands to use???
asked Jun 27, 2012 in Plug N' Play by BoB_AGI New to the Community (0 points)
recategorized Dec 4, 2013 by tuxembb

Please log in or register to answer this question.

2 Answers

0 votes
There are several ways to do this via TCP:
You can telnet or ssh into the device, and set the serial parameters with the "set serial" command.
You can also POST RCI commands to http://<ipaddr>/UE/rci or use RCI from the serial port using rciserial feature; something like:
<rci_request version="1.1"><set_setting><serial><baud>9600</baud><flowcontrol>hardware</flowcontrol></serial></set_setting></rci_request>
answered Jul 4, 2012 by kurte New to the Community (29 points)
0 votes
We have to connect the WiFi to our board through serial port, The wireless in the v2 is a low power wireless PHY, which currently isn't really supported by b43, therefore 2.4 is still recommended for the v2.
For more details about it i have found some link in google search:
url=http://]http://wiki.openwrt.org/toh/asus/wl500gp[/url] , [url=http://]http://www.dd-wrt.com/wiki/index.php/All_Asus_WL-500xx_series_routers[/url] ,[url=http://]www.maxon.com.au/[/url]
answered Oct 17, 2012 by maxon New to the Community (2 points)