OpenWrt Forum Archive

Topic: TCP server with a low cost Wifi router

The content of this topic has been archived on 20 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hello guys,

I would like to know how to do (or adapt) firmware for wifi router work only as a TCP server and Serial Port.

There is a module called HLK-RM04, this module is a RT5350 chip base module is a low cost, but my import policy does not help, and the final value increases up to 4x.

My expectation is to be able to use a wifi router sold locally, maybe a Dlink DIR-300 (RT5350 based) or other, to act as TCP server with serial port (9600 baud to communicate with MCU).

I want to control the light bulbs in my house with relays, and I need a serial port of TCP server.

I know now program the MCU to receive data in serial format, and also make the app Android phone.

I was already using a mobile phone to do the same function of the HLK-RM04 module, but it also has a high cost in my area.

Any options suggested are welcome!

Thank you.

I'm not certain I understand, but I think any openWrt router with usb can use the ser2net program with usb-serial to do what you want. 

For example, see post 6 in this thread: http://www.picaxeforum.co.uk/showthread … ity-System

You might get more specific suggestions if you post your locale.

(Last edited by lizby on 1 Aug 2014, 19:39)

well, I bought a rm04 HLK-module for testing.

and discovered that I can disable wifi (via hardware and software).

but (ser2net) service can not connect more than one client at a time.

You could try to buy 9-10$ routers from aliexpress, they are flashable to openwrt using my hack method. These routers have serial console, you can use it as serial port.
http://mysku.ru/blog/aliexpress/26886.html (use google translate)

(Last edited by hackru on 13 Sep 2014, 10:41)

hackru wrote:

You could try to buy 9-10$ routers from aliexpress, they are flashable to openwrt using my hack method. These routers have serial console, you can use it as serial port.
http://mysku.ru/blog/aliexpress/26886.html (use google translate)

Great advice. Can you post links from Aliexpress to check those routers ?

Sorry, didn't understand your question.

The discussion might have continued from here.