LaFonera Hardware Serial-Cable-Port
From DD-WRT Wiki
Revision as of 02:52, 12 February 2007 (edit) Wildblue (Talk | contribs) ← Previous diff |
Current revision (21:47, 28 October 2010) (edit) (undo) Flosky (Talk | contribs) (→Accessing serial console on the Fon) |
||
(28 intermediate revisions not shown.) | |||
Line 1: | Line 1: | ||
- | You are here: '''[[Main_Page|DD-WRT wiki mainpage]] / [[ | + | [[Category:LaFonera_Hardware_(en)]] |
+ | You are here: '''[[Main_Page|DD-WRT wiki mainpage]] / [[LaFonera_(en)|LaFonera]] / [[:Category:LaFonera_Hardware_(en)|Hardware]] / Serial-Cable-Port''' | ||
==Accessing serial console on the Fon== | ==Accessing serial console on the Fon== | ||
Line 14: | Line 15: | ||
- | See [[LaFonera_Hardware_Disassembling|LaFonera Hardware Disassembling]] for how to dissassemble your router. You will need to find the serial console. See the image below: | + | See [[LaFonera_Hardware_Disassembling|LaFonera Hardware Disassembling]] for how to dissassemble your router. You will need to find the serial console. See the image below (FONERA 2100): |
[[Image:LaFonera_Hardware_Serial-Cable-Port_02.jpg]] | [[Image:LaFonera_Hardware_Serial-Cable-Port_02.jpg]] | ||
Line 23: | Line 24: | ||
|[[Image:LaFonera_Hardware_Serial-Cable-Port_03.jpg]] | |[[Image:LaFonera_Hardware_Serial-Cable-Port_03.jpg]] | ||
| | | | ||
- | |In order to connect it to your PC we need to convert the ''' | + | |In order to connect it to your PC we need to convert the ''' 3.3 volts''' from the Vcc of the router to the levels of your PC serial port wich operates at '''-12 to 12 volts'''. |
|} | |} | ||
- | For this you can use any kind of '''TTL to RS232 level shifter'''. These can be bought as kits or made from for example a phone data cable. Using a '''MAX 232''' you can wire it up like this: | + | For this you can use any kind of '''TTL to RS232 level shifter'''. These can be bought as kits or made from for example a phone data cable. Using a '''MAX 232''' you can wire it up like this (however notice that the polarity of C5 is drawn incorrectly in this schematic): |
[[Image:LaFonera_Hardware_Serial-Cable-Port_04.jpg]] | [[Image:LaFonera_Hardware_Serial-Cable-Port_04.jpg]] | ||
Line 57: | Line 58: | ||
All done! Ain’t it beatuiful? | All done! Ain’t it beatuiful? | ||
- | [[Image: | + | [[Image:Fonera_-_serielles_kabel_-_klein.jpg]] |
+ | |||
+ | [[Image:LaFonera_Hardware_Serial-Cable-Port_08.jpg]] | ||
Line 77: | Line 80: | ||
[[Image:LaFonera_Hardware_Serial-Cable-Port_10.jpg]] | [[Image:LaFonera_Hardware_Serial-Cable-Port_10.jpg]] | ||
+ | ---- | ||
+ | |||
+ | == Alternate Serial Circuit == | ||
+ | There is also another solution to using a Max232 chip that is less work, and less parts. That means its easier to build, and it is a smaller circuit. All you need is a serial connector and a Dallas DS275. | ||
+ | [http://www.maxim-ic.com/quick_view2.cfm/qv_pk/2929 Here is a link to the DS275] | ||
+ | If your really slick, you can have them shipped at no cost as a "free sample." | ||
+ | |||
+ | Here is the diagram to wire up this chip to attach to the fon. The chip will operate on 5v, so you can use the pin on the Fon's board to power it. | ||
+ | |||
+ | [[Image:Dsbs8.gif]] | ||
+ | |||
+ | You will enjoy the results immensely. I love you all. | ||
+ | |||
+ | == Direct USB connection == | ||
+ | |||
+ | I think the simpler way to connect with the TTL level serial on the Fonera is to use a direct USB converter that avoid the RS232 level translation. A chip that can be used for this work is the FTDI FT232R. I use this part in my work and I can assure that it works well with Windows. A complete cable/converter can be bought directly from the FTDI at [http://apple.clickandbuild.com/cnb/shop/ftdichip this link]. | ||
+ | |||
+ | I suggest to use the [http://apple.clickandbuild.com/cnb/shop/ftdichip?productID=67&op=catalogue-product_info-null&prodCategoryID=47 wired end] converter, or the [http://apple.clickandbuild.com/cnb/shop/ftdichip?productID=70&op=catalogue-product_info-null&prodCategoryID=47 jack version] for a cleaner job. [''Update 2010-06-13'': It was also tested with Adafruit's FTDI 3.3v cable [http://www.adafruit.com/index.php?main_page=product_info&products_id=70 available here] and worked flawlessly] | ||
+ | |||
+ | Another chip I know to do this work is the SiliconLaboratories CP210x. The only connection needed are the TX, RX and GND signals. No need to connect any other wires. | ||
+ | |||
+ | TX <-> RXD | ||
+ | |||
+ | RX <-> TXD | ||
+ | |||
+ | GND <-> GND | ||
+ | |||
+ | |||
+ | '''IMPORTANT''': as stated previously, YOU HAVE TO WAIT 5 seconds after powering on the Fonera before connecting the TX from the cable to RX on the router. FONERA WON'T BOOT IF THE RX PIN IS CONNECTED WHEN POWERING ON! I lost a couple of hours trying to understand why RedBoot wasn't working anymore until I discovered that other users had documented this before. | ||
+ | |||
+ | = Very simple console adapter = | ||
+ | without the use of max232 or max3232, just NPN transistors: | ||
+ | |||
+ | [[image:LaFonera_Hardware_Serial-Cable-Port_11_simple_schematic.jpg]] | ||
+ | |||
+ | |||
+ | == Pinout of console connector inside La Fonera is: == | ||
+ | <pre> | ||
+ | (too bigs capacitors here) | ||
+ | . . . . r | ||
+ | . w o . b | ||
+ | (SDRAM chip here) | ||
+ | </pre> | ||
+ | |||
+ | |||
+ | * r : red : Vcc 3.3 Volts | ||
+ | * b : bleu : Ground | ||
+ | * w : white : RX | ||
+ | * o : orange : TX | ||
+ | |||
+ | |||
+ | == First (ugly) circuit: == | ||
+ | [[image:LaFonera_Hardware_Serial-Cable-Port_12_simple_ugly_adapter.jpg ]] | ||
+ | |||
+ | |||
+ | == New circuit: == | ||
+ | <table> | ||
+ | <tr> | ||
+ | <td> | ||
+ | [[Image:LaFonera_Hardware_Serial-Cable-Port_13_simple_PCB_1.jpg|thumb|none|PCB (picture 1)]] | ||
+ | </td> | ||
+ | |||
+ | <td> | ||
+ | [[Image:LaFonera_Hardware_Serial-Cable-Port_14_simple_PCB_2.jpg|thumb|none|PCB (picture 2)]] | ||
+ | </td> | ||
+ | |||
+ | <td> | ||
+ | [[Image:LaFonera_Hardware_Serial-Cable-Port_15_simple_PCB_3.jpg|thumb|none|PCB (picture 3)]] | ||
+ | </td> | ||
+ | </tr> | ||
+ | |||
+ | <tr> | ||
+ | <td> | ||
+ | [[Image:LaFonera_Hardware_Serial-Cable-Port_16_simple_PCB_4.jpg|thumb|none|PCB (picture 4)]] | ||
+ | </td> | ||
+ | |||
+ | <td> | ||
+ | [[Image:LaFonera_Hardware_Serial-Cable-Port_17_simple_PCB_5.jpg|thumb|none|PCB (picture 5)]] | ||
+ | </td> | ||
+ | |||
+ | <td> | ||
+ | [[Image:LaFonera_Hardware_Serial-Cable-Port_18_simple_PCB_6.jpg|thumb|none|PCB (picture 6)]] | ||
+ | </td> | ||
+ | </tr> | ||
+ | </table> | ||
+ | |||
+ | |||
+ | [[Image:LaFonera_Hardware_Serial-Cable-Port_19_simple_final_PCB.jpg]] | ||
+ | |||
+ | |||
+ | == With connectors: == | ||
+ | [[Image:LaFonera_Hardware_Serial-Cable-Port_20_simple_final_PCB_with_cable_close.jpg]] | ||
+ | |||
+ | [[Image:LaFonera_Hardware_Serial-Cable-Port_21_simple_final_PCB_with_cable.jpg]] | ||
+ | |||
+ | |||
+ | For USB connexion just use a USB/serial adapter. | ||
+ | |||
+ | |||
+ | |||
+ | = Other Tutorials = | ||
+ | There are other possibilities to build a serial-port to your LaFonera. Some of them could be found here: | ||
+ | |||
+ | * [http://microblog.routed.net/2007/02/14/how-to-make-a-dual-supply-rs-232-to-ttl-level-converter/ max232 (TTL) adapter] | ||
+ | |||
+ | * [http://www.panic1.be/tag/level-converter/ Level convertor (TTL to RS232) with a MAX3232CPE+] | ||
+ | |||
+ | * [http://www.dd-wrt.com/phpBB2/viewtopic.php?p=63256#63256 Ugly cellphone adapter hack] | ||
+ | |||
+ | * Build a serial connection-cable from a mobile-phone-pc-adapter [http://cablefonera.blogspot.com/2006/11/empezando.html original spanish website] [http://babelfish.altavista.com/babelfish/trurl_pagecontent?lp=es_en | ||
+ | =Refrences= | ||
- | + | * http://www.lefinnois.net/wpen/index.php/2007/04/07/first-post/ | |
- | There are other possibilities to build a serial-port to your LaFonera. | ||
- | Some of them could be found here: | ||
- | # Build a serial connection-cable from a mobile-phone-pc-adapter [http://cablefonera.blogspot.com/2006/11/empezando.html original spanish website] [http://babelfish.altavista.com/babelfish/trurl_pagecontent?lp=es_en&url=http%3A%2F%2Fcablefonera.blogspot.com%2F2006%2F11%2Fempezando.html babelfish translation] | ||
- | # Add a serial RS-232 port to your LaFonera (some pictures) [http://pobletewireless.blogspot.com/2006/12/aade-un-puerto-serie-la-fonera.html original spanish website] [http://babelfish.altavista.com/babelfish/trurl_pagecontent?lp=es_en&url=http%3A%2F%2Fpobletewireless.blogspot.com%2F2006%2F12%2Faade-un-puerto-serie-la-fonera.html babelfish translation] | ||
+ | ---- | ||
- | + | this page was made by [[User:wildblue|wildblue!]] |
Current revision
You are here: DD-WRT wiki mainpage / LaFonera / Hardware / Serial-Cable-Port
Contents |
[edit] Accessing serial console on the Fon
See LaFonera Hardware Disassembling for how to dissassemble your router. You will need to find the serial console. See the image below (FONERA 2100):
In order to connect it to your PC we need to convert the 3.3 volts from the Vcc of the router to the levels of your PC serial port wich operates at -12 to 12 volts. |
For this you can use any kind of TTL to RS232 level shifter. These can be bought as kits or made from for example a phone data cable. Using a MAX 232 you can wire it up like this (however notice that the polarity of C5 is drawn incorrectly in this schematic):
Using a dremel or a knife we need to cut out a hole for the Serial connector:
Draw along the connector to mark out where to cut:
If you use a dremel, use a low rpm so that the plastic don’t melt.
The finished cutout for the DB9 connector:
All done! Ain’t it beatuiful?
To access it you can use any terminal application. HyperTerminal ships with windows and it will do fine.Connect your fon to Com1 and Start hyperterminal from:
Start->Programs->Accessories->Communications->HyperTerminal .
You will need to set up communication settings to
9600-8-N-1 and no flow control:
And here you have it:
[edit] Alternate Serial Circuit
There is also another solution to using a Max232 chip that is less work, and less parts. That means its easier to build, and it is a smaller circuit. All you need is a serial connector and a Dallas DS275. Here is a link to the DS275 If your really slick, you can have them shipped at no cost as a "free sample."
Here is the diagram to wire up this chip to attach to the fon. The chip will operate on 5v, so you can use the pin on the Fon's board to power it.
You will enjoy the results immensely. I love you all.
[edit] Direct USB connection
I think the simpler way to connect with the TTL level serial on the Fonera is to use a direct USB converter that avoid the RS232 level translation. A chip that can be used for this work is the FTDI FT232R. I use this part in my work and I can assure that it works well with Windows. A complete cable/converter can be bought directly from the FTDI at this link.
I suggest to use the wired end converter, or the jack version for a cleaner job. [Update 2010-06-13: It was also tested with Adafruit's FTDI 3.3v cable available here and worked flawlessly]
Another chip I know to do this work is the SiliconLaboratories CP210x. The only connection needed are the TX, RX and GND signals. No need to connect any other wires.
TX <-> RXD
RX <-> TXD
GND <-> GND
IMPORTANT: as stated previously, YOU HAVE TO WAIT 5 seconds after powering on the Fonera before connecting the TX from the cable to RX on the router. FONERA WON'T BOOT IF THE RX PIN IS CONNECTED WHEN POWERING ON! I lost a couple of hours trying to understand why RedBoot wasn't working anymore until I discovered that other users had documented this before.
[edit] Very simple console adapter
without the use of max232 or max3232, just NPN transistors:
[edit] Pinout of console connector inside La Fonera is:
(too bigs capacitors here) . . . . r . w o . b (SDRAM chip here)
- r : red : Vcc 3.3 Volts
- b : bleu : Ground
- w : white : RX
- o : orange : TX
[edit] First (ugly) circuit:
[edit] New circuit:
[edit] With connectors:
For USB connexion just use a USB/serial adapter.
[edit] Other Tutorials
There are other possibilities to build a serial-port to your LaFonera. Some of them could be found here:
- Build a serial connection-cable from a mobile-phone-pc-adapter original spanish website [http://babelfish.altavista.com/babelfish/trurl_pagecontent?lp=es_en
[edit] Refrences
this page was made by wildblue!