Differences

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

doc:hardware:port.serial.cables [2012/09/30 22:24]
taeuber
doc:hardware:port.serial.cables [2013/11/17 17:40] (current)
reichhart outdated note, link to port.serial
Line 1: Line 1:
FIXME lets get some data and clean up as we go. FIXME lets get some data and clean up as we go.
 +
 +//(It seems that this article is a little bit outdated. Please look also at [[doc/hardware/port.serial#prebuilt.cables|port.serial]].)//
===== Serial Cables ===== ===== Serial Cables =====
Line 14: Line 16:
  - Connect the RX(0) and TX(1) and the development board ground through to the router/device.   - Connect the RX(0) and TX(1) and the development board ground through to the router/device.
  - Use software to talk to the router/device.   - Use software to talk to the router/device.
 +
This method actually uses the Development boards built in USB to RS232 converter and results in 5V signals. This method actually uses the Development boards built in USB to RS232 converter and results in 5V signals.
Note: compatible development boards include: Demulotev Note: compatible development boards include: Demulotev
 +
 +==== Arduino Uno (REV3) as USB to serial cable ====
 +|{{:meta:icons:tango:48px-dialog-warning.svg.png?nolink}}| **Caution:** Do this at your own risk, since the Arduino runs at 5v and the serial sometimes is at a different voltage. Therefore, using the following technique may cause the router, Arduino, or other things, to malfunction or break. That said, this technique worked well for me during for lots of use (hours), with a [[toh:linksys:e1000|Linksys E1000 v1]] at 3.3v, and an Arduino Uno REV3.|
 +Needed:
 +  - An Arduino Uno REV3 (may work on other arduinos, but only tested on the above)
 +  - A router
 +  - A computer
 +  - A USB A-B cable (to use with the Arduino)
 +  - Some wire and soldering tools
 +
 +By the way this method does not require any hardware modifications to the arduino.
 +
 +Upload [[http://arduino.cc/en/Tutorial/BareMinimum|the Arduino Bare Minimum sample sketch]] (consisting of empty setup() and loop() functions) to the Arduino. Then solder one end of the wires to the serial port (some devices may need the Vcc to be connected, and some may not). Then connect the ground to the arduinos ground, and the TX and RX pins (digital 0 and 1 -- theyre labeled as TX and RX) of the arduino to the TX and RX of the device (maybe the other way around, I dont remember; try switching them if its not working, as far as i know it shouldnt break if reversed.). Then connect the Arduino to a computer and connect. (The Arduino utility is not needed; just use a regular serial terminal program).
 +
 +As far as I know, this technique works since the Arduino Uno REV3 has a chip called the atmega16U2, which is a serial to USB converter, to talk to the computer; we use it here to talk to the router. So, other arduinos may work.
Line 38: Line 56:
[[http://web.archive.org/web/20070820095200/http://www.meshcube.org/meshwiki/ModifiedMobileSerCable|Mesh cube wiki page from archive.org]] [[http://web.archive.org/web/20070820095200/http://www.meshcube.org/meshwiki/ModifiedMobileSerCable|Mesh cube wiki page from archive.org]]
 +
 +==== PL2303 cables ====
 +
 +Its a component of many cheap USB-TTL cables available on ebay. Prolific produces the PL-2303HX/PL-2303HX.D chip in different variants at least since 2002 ( [[http://www.stkaiser.de/anleitung/files/PL2303.pdf|PL2303HX datasheet]] , [[http://www.prolific.com.tw/UserFiles/files/ds_pl2303HXD_v1_4_4.pdf|PL2303HXD datasheet]] ).
 +There are different designt with unattached cables, 3 pin (no 3.3V / 5V ), 4 pin (likely 3.3V ) or more pins available.
 +Connecting 3.3V/5V is not needed and can damage the board.
==== name? ==== ==== name? ====

Back to top

doc/hardware/port.serial.cables.1349036680.txt.bz2 · Last modified: 2012/09/30 22:24 by taeuber