Configuring serial port via WiFi

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???

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:///UE/rci or use RCI from the serial port using rciserial feature; something like:
9600hardware

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 , http://www.dd-wrt.com/wiki/index.php/All_Asus_WL-500xx_series_routers ,www.maxon.com.au/