Differences

This shows you the differences between two versions of the page.

doc:hardware:port.serial [2013/02/11 06:05]
karlpinc Add kermit, since it's now open source --
doc:hardware:port.serial [2014/03/21 23:02] (current)
bigbrick added hint to use SubD9 pins instead of soldering
Line 38: Line 38:
For help with the latter two, see [[soldering]]. But even if there is 9-pin D connector, beware the Voltage levels! For help with the latter two, see [[soldering]]. But even if there is 9-pin D connector, beware the Voltage levels!
 +
 +Hint: in case of unpopulated holes try fitting the pins from a disassembled SubD9 male plug into the holes instead of soldering the cable directly to the board. Fit perfectly on unbricked Asus and TP-Link routers and leaves no trace.
If the serial port is not readily accessible from the exterior of the device enclosure, you have some choices: If the serial port is not readily accessible from the exterior of the device enclosure, you have some choices:
Line 65: Line 67:
You will also need a terminal emulation program on your computer, such as minicom, hyperterminal, etc.  The terminal emulation program needs to be configured to be compatible with your device, in particular, with regard to baud rate and flow control.  If you are using only three wires (GND, TX, and RX) then hardware flow control should be turned off; you aren't using the pins (RTS and CTS) necessary for it to work.  Rarely, the baud rate that the device expects //might// be different in the bootloader and the running firmware; if so, you'll need to modify the baud rate settings in your terminal emulator after the firmware boots up. You will also need a terminal emulation program on your computer, such as minicom, hyperterminal, etc.  The terminal emulation program needs to be configured to be compatible with your device, in particular, with regard to baud rate and flow control.  If you are using only three wires (GND, TX, and RX) then hardware flow control should be turned off; you aren't using the pins (RTS and CTS) necessary for it to work.  Rarely, the baud rate that the device expects //might// be different in the bootloader and the running firmware; if so, you'll need to modify the baud rate settings in your terminal emulator after the firmware boots up.
 +
 +Troubleshooting parts:
 +If you get something like this during the bootcycle (output is garbled)
 +
 +  ����������������������������������|� 2000-2008 Broadcom Corporation.
 +  Init Arena
 +  Init Devs.
 +  This is ���������������������?����������?����BCM4wXX����������������LJ����������0735750 - 0x80)
 +  BSS:        0x80739790 -  0x80���4���������~�~������߇~����������������������������������5.10
 +  The boot is CFE
 +
 +then probably the GND is not connected (soldered?) well. The router wont listen to any keyboard actions.
 +After solving the problem output should look fine.
 +
 +If you successfully receive router bootup logs but seem unable to send data (e.g. some keyboard input which might be required to intercept bootup, and where you're unable to stop continued kernel bootup), then this may be due to having configured the connection as hardware flow control rather than software (happened on TL-WDR3600 in my case).
 +
===== Considerations ===== ===== Considerations =====
Some things to consider: Some things to consider:
Line 110: Line 128:
{{:doc:hardware:usbtors232.ttl.jpeg|}} {{:doc:hardware:usbtors232.ttl.jpeg|}}
-They are usuaually shipped with four jumper cables. Try [[http://www.dealextreme.com/p/usb-to-uart-5-pin-cp2102-module-serial-converter-81872?item=20|Dealextreme SKU 81872]].+They are usually shipped with four jumper cables. Try [[http://www.dealextreme.com/p/usb-to-uart-5-pin-cp2102-module-serial-converter-81872?item=20|Dealextreme SKU 81872]].\\ Or on [[http://www.amazon.com/CP2102-Module-Download-Serial-Converter/dp/B009T2ZR6W/|Amazon B009T2ZR6W]].
Simply connect the jumper cables to the pins like this: Simply connect the jumper cables to the pins like this:
Line 119: Line 137:
Unless you need to power the device, you don't have to connect the voltage pins. Unless you need to power the device, you don't have to connect the voltage pins.
 +
 +**Please note** that some USB serial adapters (The CP2102-based one in the Amazon link above, for example) have the RX and TX connectors labelled according to what you should connect them to, not what they actually do. If connecting TX -> RX and RX -> TX doesn't work for you, try switching to TX -> TX and RX -> RX.
=== USB-serial parts === === USB-serial parts ===
Line 150: Line 170:
http://3.bp.blogspot.com/_JE4GMReEeGU/SpATfyGBmLI/AAAAAAAAAF0/VHTl3Vcs6hU/s1600-h/ttltors2320kf.jpg http://3.bp.blogspot.com/_JE4GMReEeGU/SpATfyGBmLI/AAAAAAAAAF0/VHTl3Vcs6hU/s1600-h/ttltors2320kf.jpg
-This cost minus than 2 Dolars in Chile, i hope it be the same for you!+This cost less than 2 Dolars in Chile, i hope it be the same for you!
I tested it on a Zyxel 600 Series, it works! I tested it on a Zyxel 600 Series, it works!
 +
 +Ensure that the DTR signal at the PC end is asserted, otherwise nothing is received from the router. For example, in the Bray terminal program click on the DTR icon to turn it green.
Source: http://maximi89.blogspot.com/2009/08/hola-intente-modificar-el-bootbase-pero.html Source: http://maximi89.blogspot.com/2009/08/hola-intente-modificar-el-bootbase-pero.html
Line 169: Line 191:
If you've found a good cell phone cable to use, you merely need to determine which wires are the VCC, GND, TX, and RX connections. Usually the VCC is red and the GND is black, but the other colors may vary (though blue and orange are common). There should be no need to modify the PCB embedded in the cable. If you've found a good cell phone cable to use, you merely need to determine which wires are the VCC, GND, TX, and RX connections. Usually the VCC is red and the GND is black, but the other colors may vary (though blue and orange are common). There should be no need to modify the PCB embedded in the cable.
-One type of the "Made in China" ones, not mentioned at http://www.nslu2-linux.org/wiki/HowTo/AddASerialPort ist the "S30880-S5601-A802-1"; its WHITE wire is data out (TX) and the ORANGE one is data in (RX), VCC and GND are red and black. Its a 3.3V converter built with the MAX3386E chip.+One type of the "Made in China" ones, not mentioned at http://www.nslu2-linux.org/wiki/HowTo/AddASerialPort ist the "S30880-S5601-A802-1"; its WHITE wire is data out (TX) of the DTE (PC) and conntcts to the RX of the DCE (Router); the ORANGE one is data in (RX) of the DTE (PC) and conntcts to the TX of the DCE (Router), VCC and GND are red and black. Its a 3.3V converter built with the MAX3386E chip.
=== MAX232 Kits === === MAX232 Kits ===
Line 210: Line 232:
Other: Other:
  * Pocketterm  (for Palm PDAs)   * Pocketterm  (for Palm PDAs)
 +  * [[http://www.gnu.org/software/screen/|GNU Screen]] (available on most OSes, including Windows (cygwin)) can connect to a serial device. The format is:
 +
 +    screen {path to device} {baud rate},{options}
 +
 +A common set of options (for setting 8N1) is ''cs8,-parenb,-cstopb''. For example, to connect to an Asus WL-520GU (115200 baud, 8N1) with a USB-serial adapter on OSX:
 +
 +    screen /dev/tty.SLAB_USBtoUART 115200,-parenb,-cstopb,cs8
 +
 +The command on Linux is the same with a different device path. For other routers, you may need to adjust the speed and options.
===== Serial port pinouts ===== ===== Serial port pinouts =====
Line 215: Line 246:
===== Finding Serial Console ===== ===== Finding Serial Console =====
-First, check the OpenWrt wiki page describing your hardware and do a Google search. Most of the time, the serial port(s), if they exist, have already been documented by others.+First, check the OpenWrt wiki page describing your hardware and do a Google search. Most of the time, the serial port(s), if they exist, have already been documented by others. If methods listed here are not enough for you, consider to go deeper reading http://www.devttys0.com/2012/11/reverse-engineering-serial-ports/
==== Piezoelectric buzzer method ==== ==== Piezoelectric buzzer method ====

Back to top

doc/hardware/port.serial.1360559152.txt.bz2 · Last modified: 2013/02/11 06:05 by karlpinc