Wifi Serial Port

Active3 years, 9 months ago

If you want to connect your serial RS232 device to your computer over WiFi then this Serial to WiFi adapter is what you need. It will let you connect a serial RS232 device to any secure or open wireless network or access point.

I have microcontroller device which reads data from sensors and sends it via Serial to USB converter (ftdi232 cable). This Serial to USB converter is connected to ARMv7 mini-computer - CuBox with Ubuntu 13.04. I have also connected WiFi USB adapter to CuBox.

I would like to read data from serial port and send it via WiFi and receive on Windows PC. It is possible without network socket programming, using available tools? Something like pipe/bridge/redirection between serial port and WiFi.I don't need to communicate with this box, so constant and one-way stream of data over WiFi will be sufficient.

Thanks you for any resources and ideas how to set up this communication.

PeterPanPeterPan

2 Answers

Use Ncat (http://nmap.org/ncat/). It is multiplatform, and it comes installed by default in many GNU/Linux distributions.

On your PC, listen with Ncat ( here we are using port 55555, but you can use any port):

Esp8266 Wifi Virtual Serial Port

Wifi

On your CuBox, connect to the listener:

Then if you type something in your CuBox, it will be sent to your PC (type something and press enter to see how it works).

With bash, you could easily redirect your serial data received in the CuBox through the USB to nc. Example (using screen for reading serial data from the terminal):

Notice you should change your tty device and substitute 192.168.1.20 with your PC's IP.

PequePeque
1,4083 gold badges16 silver badges30 bronze badges

Also helpful might be socat, a multipurpose socket tool. It can do the same things nc does, but also supports bidirectional forwarding between two endpoints.

Wireless Serial Port Adapter

JanKanisJanKanis

Wifi Router With Serial Port

Not the answer you're looking for? Browse other questions tagged wifiserial-portsocketbridge or ask your own question.