Possible scenario: socat pty,link=/dev/virtualcom0,raw tcp:192.168.254.254:8080&. Socat creates TCP connection to 192.168.254.254:8080, so that everything, that will be written to /dev/virtualcom0 will be forwarded to 192.168.254.254:8080 and vice versa. Another approach would be to use. Serial Port Access and Firmware Recovery for. Start up the Serial Terminal program and.
I have a nice wireless router from TP-LINK, MR 3420. It is a typical WiFi router, the reasons I bought it were: 1. It has an USB port and 2. You can load OpenWRT on it. So I got the device, I installed OpenWRT and somehow I managed to setup the wrong IPs. I was locked outside - it was impossible to get in, typical 192.168.1.1 was not working neither buttons combinations as described in OpenWRT pages (failsafe mechanism is not working or not available for this router). I asked also someone to try to 'unlock' it, but no success.
The last solution was to use the serial console recovery. A few words about serial console recovery for OpenWRT: technically speaking each router has a serial port. This can be either located on a connector on the PCBA (printed circuit board assembly - the electronic board with components), either are some separate pads on the PCBA and there some wires must be soldered in order to access the serial port.
Also it worth mentioning that the serial port on such devices is not RS232 serial port: serial port on routers is using electrical signals in the range 0V.+3V3 or 0V.+5V, RS232 is using signals -12V.+12V. So using RS232 to USB converters is not useful, we need a 3V3 or 5V logical level to USB converter. Abs diagnostic software for pc. My friend Google told me that there is a cheap way to build such a converter: use a data cable for mobile phones (some old models). Basically you can pay 5$ and get a nice data cable: at one end you have the phone connector, at the other a USB connector with a small PCBA which converts data to USB. The purpose of this instructable is to describe how to build such cable for a serial console recovery for OpenWRT on TP-LINK MR4320 and MOST IMPORTANT how to use it because I made the cable, I connected myself, it was working, but I had no clue how to perform the recovery, I am not familiar with Unix / Linux. Tools needed: -soldering tools -screw drivers -wire cutter -cutter -hot glue gun -helping hands or a small vice Materials needed -hot glue -data cable for mobile phones (type DKU-5 or CA-42) -2,54mm header 4 pins (both male and female) -PC with PuTTY Let's start! Step 1: Cutting the Cable.
Buy one USB to serial data cable (logical levels 3,3V or 5V) type DKU-5 or CA42. Cut the connector which goes to the mobile phone. Open the USB plastic case in order to identify the wires: Tx (data transmit FROM computer TO device), Rx (data received FROM device TO computer) and GND.
Therefore Rx from the PCBA must go to serial Tx on the router, Tx from the PCBA must go to serial Rx on the router. Also identify in advance the pins on the TP-LINK MR3420 router, you need to match the cable, you have to fit them.
Step 2: Soldering Connector on the Cable. As stated in the previous step, it must be identified the serial port location on the PCBA of the TP-LINK MR3420 in order to match the cable connector. Check the image with the serial port location. You can see location of SJ1 connector, a footprint for 2,54mm headers, 4 pins.