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 [2013/04/24 19:04] (current) brnt |
||
|---|---|---|---|
| Line 65: | Line 65: | ||
| 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. | ||
| + | |||
| + | 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. | ||
| + | |||
| ===== Considerations ===== | ===== Considerations ===== | ||
| Some things to consider: | Some things to consider: | ||
| Line 110: | Line 123: | ||
| {{: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 132: | ||
| 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 165: | ||
| 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 210: | Line 227: | ||
| 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 ===== | ||
doc/hardware/port.serial.1360559152.txt.bz2 · Last modified: 2013/02/11 06:05 by karlpinc
