Difference between revisions of "Add Serial Port"

From NAS-Central Buffalo - The Linkstation Wiki
Jump to: navigation, search
(How to attach a serial port to the Kurbox/KuroboxHG)
m (Enable Write Mode (optional))
 
(13 intermediate revisions by 5 users not shown)
Line 3: Line 3:
  
 
==Getting Started==
 
==Getting Started==
 
+
[[Image:Mainboard_J1.jpg|thumb|Locate J1 on the Mainboard]]
Locate J1 on the Mainboard after removing it from the case. This should be a 4 pin unpopulated header. To allow one-way serial port traffic (read only) you can just add the 4 pin header and be done. To enable bi-directional serial port activity, you must also add a 10K resistor as described below.
+
Locate J1 on the Mainboard after removing it from the case. This should be a 4 pin unpopulated header. The easiest way to find this is to first find the [[CPU]] first, and then look near the corners for J1.
 
+
==Enable Write support (optional)==
+
 
+
To enable write support across the serial port, remove the 10K ohm pullup resistor from R75 and install it , or another 10K ohm pullup resistor, to R76.
+
 
+
===Desoldering Tip===
+
 
+
To desolder an SMD resistor you can apply the following trick:
+
* Take a short piece of blank wire and bend one end into a small U-shape using some small pliers. The U-shape should be as such that you can touch the sides of both ends of the resistor at the same time. The width of the U should basically be the length of the resistor.
+
* Wrap the other end of the wire around the tip of your soldering iron - while it is still cold. You now have a small U-shaped tool to remove the resistor.
+
* Heat up the iron. When the wire is hot enough, heat up the solder at both ends of the resistor and gently pull the resistor away from the pads with the U-shaped tip. '''Be careful, the resistor likes to end up on the floor.'''
+
  
 
== Attach the serial port ==
 
== Attach the serial port ==
Line 21: Line 10:
 
|+ ''' J1 Pinout '''
 
|+ ''' J1 Pinout '''
 
|-
 
|-
| style="border:solid 1px white" |'''Pin '''  
+
| style="border:solid 1px white" |'''Pin'''  
 
| style="border:solid 1px white" |'''Signal'''
 
| style="border:solid 1px white" |'''Signal'''
 
|-
 
|-
Line 36: Line 25:
 
| style="border:solid 1px white"|Ground (GND)  
 
| style="border:solid 1px white"|Ground (GND)  
 
|}
 
|}
 +
The manufacturer of the Kuro filled the jumper holes for the Serial port with solder. Removing the solder from the jumper holes on the Kuro board is simple.
 +
* Press the tip of a 15 watt soldering iron with a good sharp tip (if the tip isn’t sharp use a file to sharpen it and tin the tip) into the hole from the back of the circuit board.
  
==Install the level shifter (Part I)==
+
{{Warning|THIS IS VERY IMPORTANT. IN THE NEXT STEP THE BOARD SHOULD BE BETWEEN THE SOLDERING IRON AND YOUR MOUTH. FAILURE TO PLACE THESE THREE OBJECTS IN THE CORRECT ORDER WILL RESULT IN EXCESSIVE PAIN.}}
  
The serial port signals from the processor are only 3.3V. For proper RS-232 5V signaling, an RS-232 level shifter needs to be added. These are very common in PDA seial cables also, but can be purchased from [http://www.compsys1.com/workbench Compsys Bench]
+
* When the solder is flowing nicely, get your mouth about 1" from the front of the board and blow hard into the wet solder while at the same time removing the solder iron. You will blow the solder out of the hole leaving a hole that you can easily put a wire through.
Item Name: A232DBH3v Max232 3.3v ver. adapter assembled w/hood kit
+
Item Number: A232DBH3v
+
  
As an alternative you can make the level shifter cable yourself:
+
==Single or Bi-directional Traffic?==
[http://www.type-g.com/index.php?plugin=attach&refer=LinkStation%2F%A5%B3%A5%F3%A5%BD%A1%BC%A5%EB%B0%FA%BD%D0%A4%B7&openfile=Circuit_ConsoleCable.pdf Circuit Console Cable.pdf] (courtesy Type-G). Components can be found at e.g. [http://www.digikey.com Digikey]
+
To allow one-way serial port traffic (read only) you can just add the 4 pin header and be done. To enable bi-directional serial port activity, you must also add a 10K resistor as described below.
  
You can also etch a circuit board which makes building the interface and installing the interface really easy. Instructions are [[Building_a_Custom_Serial_Interface|Here]].
+
===Enable Write Mode (optional)===
  
The Interface should be attached as close as possible to the board. The signals are very weak and wires as short as 2" (5 cm) have been reported to cause data loss across the serial port.  
+
This step is optional, but you might find that the serial port is more useful with bi-directional traffic. To enable write support across the serial port either bridge R76 with a piece of wire or remove the 10K ohm pullup resistor from R75 and solder this, or another 10K ohm pullup resistor (SMD package size is 0603 if you want to buy one), to R76.  
  
=== Another Desoldering Tip ===
+
====Method 1 (easier)====
The manufacturer of the Kuro filled the jumper holes for the Serial port with solder. Removing the solder from the jumper holes on the Kuro board is simple.
+
*To enable write support across the serial port bridging r76 with a short piece of wire
* Press the tip of a 15 watt soldering iron with a good sharp tip (if the tip isn’t sharp use a file to sharpen it and tin the tip) into the hole from the back of the circuit board.  
+
*IN SHORT, ALL THAT IS NECESSARY TO GET 2 WAY SERIAL COMMUNICATION ON THE KURO HG, HD, AND PPC LINKSTATIONS IS TO BRIDGE THE CONTACTS FOR THE SERIES RESISTOR AT R76.
 +
http://forum.buffalo.nas-central.org/viewtopic.php?f=42&t=9186
  
<p style="border:dashed 1px red;background:Lemonchiffon;text-align:center;margin:0 5px">
+
====Method 2 (original)====
'''THIS IS VERY IMPORTANT. IN THE NEXT STEP THE BOARD SHOULD BE BETWEEN THE SOLDERING IRON AND YOUR MOUTH. FAILURE TO PLACE THESE THREE OBJECTS IN THE CORRECT ORDER WILL RESULT IN EXCESSIVE PAIN.'''
+
[[Image:Kuro-r76.jpg|thumb|Right|200px| To enable write support across the serial port, remove the 10K ohm pullup resistor from R75 and install it , or another 10K ohm pullup resistor, to R76. From http://www.larwe.com ]]
</p>
+
*To enable write support across the serial port, remove the 10K ohm pullup resistor from R75 and install it , or another 10K ohm pullup resistor, to R76.
* When the solder is flowing nicely, get your mouth about 1" from the front of the board and blow hard into the wet solder while at the same time removing the solder iron. You will blow the solder out of the hole leaving a hole that you can easily put a wire through.
+
[[Image:HG_J1_RXTX_enable.jpg|thumb|Right|200px| HG hardware requires different procedure. Instead of adding 10K ohm, a short wire connecting two  pads perpendicular to R69 worked for me (I replaced R69 with 10K ohms, you can keep the original part.)]]
  
==Install the level shifter (Part II)==
 
If you use the Compsys level shifter you should remove the 9 pin D connector from the shifter and solder the transmit and receive pins directly to the new header. This makes the shifter sit directly above the circuit board and makes the wires as short as possible. You will need to use 2 short (about 3/4", 2 cm) pieces of wire to connect the power and ground connections on the level shifter to the header. Next you should connect 6" (15 cm) pieces of wire to the transmit, receive and ground connections on the RS-232 side of the level shifter and route them to the 9 pin D connector which can be mounted on the rear of the Kurobox. [http://www.kurobox.com/downloads/Hardware/IMG_1392.jpg Here's a photo of the level shifter] and [http://www.kurobox.com/downloads/Hardware/IMG_1393.jpg a photo of the connector on the back of the Kuro.] 
 
  
 +
{{Tip|To desolder an SMD resistor you can apply the following trick:
 +
* Take a short piece of blank wire and bend one end into a small U-shape using some small pliers. The U-shape should be as such that you can touch the sides of both ends of the resistor at the same time. The width of the U should basically be the length of the resistor.
 +
* Wrap the other end of the wire around the tip of your soldering iron - while it is still cold. You now have a small U-shaped tool to remove the resistor.
 +
* Heat up the iron. When the wire is hot enough, heat up the solder at both ends of the resistor and gently pull the resistor away from the pads with the U-shaped tip. '''Be careful, the resistor likes to end up on the floor.'''}}
  
'''Note that the Compsys level shifter is designed to be used on a client device as opposed to a host device. As such it has the wrong gender 9 pin D connector. it also has the transmit and receive pins switched on the serial connector. This may not be an issue depending on what you plan to do with the serial port. If you plan to connect it to your computer for monitoring the console messages, you can just use a straight through cable. It will become an issue when you start connecting periferals to it as the connector will not mate with your periferals. You have two options in this case. the first is to buy a null modem connector to sit between the Kurobox and your periferals. The second option is to replace the connector with the correct connector and switch the wires on pins 2 and 3.'''
+
==Level shifter==
 +
[[Image:IMG_1392.jpg|200px|thumb|right| Here's a photo of the level shifter]] [[Image:IMG_1393.jpg|200px|thumb|right|a photo of the connector on the back of the Kuro]] 
 +
An RS232/TTL level shifter needs to be added. You can buy one or as an alternative you can make the level shifter cable yourself:
  
 +
The Interface should be attached as close as possible to the board. The signals are very weak and wires as short as 2" (5 cm) have been reported to cause data loss across the serial port.
 +
 +
If you use the Compsys level shifter you should remove the 9 pin D connector from the shifter and solder the transmit and receive pins directly to the new header. This makes the shifter sit directly above the circuit board and makes the wires as short as possible. You will need to use 2 short (about 3/4", 2 cm) pieces of wire to connect the power and ground connections on the level shifter to the header. Next you should connect 6" (15 cm) pieces of wire to the transmit, receive and ground connections on the RS-232 side of the level shifter and route them to the 9 pin D connector which can be mounted on the rear of the Kurobox.
 +
 +
Note that the Compsys level shifter is designed to be used on a client device as opposed to a host device. As such it has the wrong gender 9 pin D connector. it also has the transmit and receive pins switched on the serial connector. This may not be an issue depending on what you plan to do with the serial port. If you plan to connect it to your computer for monitoring the console messages, you can just use a straight through cable. It will become an issue when you start connecting peripherals to it as the connector will not mate with your peripherals. You have two options in this case. the first is to buy a null modem connector to sit between the Kurobox and your peripherals. The second option is to replace the connector with the correct connector and switch the wires on pins 2 and 3.
  
 
Once you have the level shifter installed you should be able to see console messages via the serial port.
 
Once you have the level shifter installed you should be able to see console messages via the serial port.
 +
 +
{{Level Shifter}}
  
 
==Serial Port Settings==
 
==Serial Port Settings==
Line 95: Line 96:
 
*http://www.kurobox.com  
 
*http://www.kurobox.com  
 
*http://www.tldp.org
 
*http://www.tldp.org
 
+
{{Template:Articles|Kurobox|Hardware}}
[[Category:HowTo]]
+
[[Category:Hardware]]
+

Latest revision as of 18:53, 20 May 2009

Kurobrick.png
WARNING!

There is a possibility that you could brick your NAS with these instructions. Please make sure that you read the entire page carefully. Adding a serial port requires soldering onto the Kurobox main board and can cause catastrophic failure to the hardware.


Contents

Getting Started

Locate J1 on the Mainboard

Locate J1 on the Mainboard after removing it from the case. This should be a 4 pin unpopulated header. The easiest way to find this is to first find the CPU first, and then look near the corners for J1.

Attach the serial port

J1 Pinout
Pin Signal
1 Transmit (TX)
2 Receive (RX)
3 Power (3.3V)*
4 Ground (GND)

The manufacturer of the Kuro filled the jumper holes for the Serial port with solder. Removing the solder from the jumper holes on the Kuro board is simple.

  • Press the tip of a 15 watt soldering iron with a good sharp tip (if the tip isn’t sharp use a file to sharpen it and tin the tip) into the hole from the back of the circuit board.
Nuvola apps important.png 
WARNING!

THIS IS VERY IMPORTANT. IN THE NEXT STEP THE BOARD SHOULD BE BETWEEN THE SOLDERING IRON AND YOUR MOUTH. FAILURE TO PLACE THESE THREE OBJECTS IN THE CORRECT ORDER WILL RESULT IN EXCESSIVE PAIN.


  • When the solder is flowing nicely, get your mouth about 1" from the front of the board and blow hard into the wet solder while at the same time removing the solder iron. You will blow the solder out of the hole leaving a hole that you can easily put a wire through.

Single or Bi-directional Traffic?

To allow one-way serial port traffic (read only) you can just add the 4 pin header and be done. To enable bi-directional serial port activity, you must also add a 10K resistor as described below.

Enable Write Mode (optional)

This step is optional, but you might find that the serial port is more useful with bi-directional traffic. To enable write support across the serial port either bridge R76 with a piece of wire or remove the 10K ohm pullup resistor from R75 and solder this, or another 10K ohm pullup resistor (SMD package size is 0603 if you want to buy one), to R76.

Method 1 (easier)

  • To enable write support across the serial port bridging r76 with a short piece of wire
  • IN SHORT, ALL THAT IS NECESSARY TO GET 2 WAY SERIAL COMMUNICATION ON THE KURO HG, HD, AND PPC LINKSTATIONS IS TO BRIDGE THE CONTACTS FOR THE SERIES RESISTOR AT R76.

http://forum.buffalo.nas-central.org/viewtopic.php?f=42&t=9186

Method 2 (original)

To enable write support across the serial port, remove the 10K ohm pullup resistor from R75 and install it , or another 10K ohm pullup resistor, to R76. From http://www.larwe.com
  • To enable write support across the serial port, remove the 10K ohm pullup resistor from R75 and install it , or another 10K ohm pullup resistor, to R76.
HG hardware requires different procedure. Instead of adding 10K ohm, a short wire connecting two pads perpendicular to R69 worked for me (I replaced R69 with 10K ohms, you can keep the original part.)


Tip.png
TIP

To desolder an SMD resistor you can apply the following trick:

  • Take a short piece of blank wire and bend one end into a small U-shape using some small pliers. The U-shape should be as such that you can touch the sides of both ends of the resistor at the same time. The width of the U should basically be the length of the resistor.
  • Wrap the other end of the wire around the tip of your soldering iron - while it is still cold. You now have a small U-shaped tool to remove the resistor.
  • Heat up the iron. When the wire is hot enough, heat up the solder at both ends of the resistor and gently pull the resistor away from the pads with the U-shaped tip. Be careful, the resistor likes to end up on the floor.

Level shifter

Here's a photo of the level shifter
a photo of the connector on the back of the Kuro

An RS232/TTL level shifter needs to be added. You can buy one or as an alternative you can make the level shifter cable yourself:

The Interface should be attached as close as possible to the board. The signals are very weak and wires as short as 2" (5 cm) have been reported to cause data loss across the serial port.

If you use the Compsys level shifter you should remove the 9 pin D connector from the shifter and solder the transmit and receive pins directly to the new header. This makes the shifter sit directly above the circuit board and makes the wires as short as possible. You will need to use 2 short (about 3/4", 2 cm) pieces of wire to connect the power and ground connections on the level shifter to the header. Next you should connect 6" (15 cm) pieces of wire to the transmit, receive and ground connections on the RS-232 side of the level shifter and route them to the 9 pin D connector which can be mounted on the rear of the Kurobox.

Note that the Compsys level shifter is designed to be used on a client device as opposed to a host device. As such it has the wrong gender 9 pin D connector. it also has the transmit and receive pins switched on the serial connector. This may not be an issue depending on what you plan to do with the serial port. If you plan to connect it to your computer for monitoring the console messages, you can just use a straight through cable. It will become an issue when you start connecting peripherals to it as the connector will not mate with your peripherals. You have two options in this case. the first is to buy a null modem connector to sit between the Kurobox and your peripherals. The second option is to replace the connector with the correct connector and switch the wires on pins 2 and 3.

Once you have the level shifter installed you should be able to see console messages via the serial port.

The serial port signals from the processor are only 3.3V. For proper RS-232 12V signaling, an RS-232 level shifter needs to be added. These are very common in PDA serial cables also, but can be purchased

Models other than KuroPro
Bar.png

If you are attaching a serial header pin onto the main board, you may want to consider:

  • Using the header pin unit with a 90 degree bend, or you might not be able to close the case
  • Soldering it with the pins toward the interior, rather than toward the case. This allows easier access, since if the pins face the case side they would be very close to the metal side. This would make access is so tight that one might end up taking the board out to get plug fitted on the pins.


Build your own LVTTL/RS232 or LVTTL/USB interface

Buy your own TTL Level Shifter

Usage considerations for the TTL-232R-3V3

TTL-232R-3V3 USB to TTL Serial Converter Cable
A very similar TTL/USB converter cable that uses a chip by FTDI (the same chip is used in the SCON-KIT ) can be obtained, but the pinout at the connector end would need to be reassigned: Spec Sheet w/ pinout, wire colors & other info
MM232R.jpg Mouser Part # 895-TTL-232R-3V3 $20.00
4pinheader.gif Mouser Part # 517-929400-01-04 $0.32

A working/tested pinout/wire-color scheme is:

Color Pin Number Signal
yellow 1 TXD
orange 2 RXD
unused 3 VCC
black 4 GND
  • Solder the 4-pin header to the board. Make sure you don't have shorts.
  • You will need to switch wires on the TTL-232R-3V3 cable. Use a sharp object to lift the plastic tabs and carefully pull the wires out. Rearrange them according to the table above (black, empty, orange, yellow, empty, empty) and slide those wires back in. Tape the other wires to make sure they don't short anything.
  • When plugging in the cable, make sure black aligns with GND, yellow with TXD, and orange with RXD.
  • Connect the USB cable to your computer, start a terminal program with the right settings.
  • Turn on the device, you should see output from the bootloader in couple seconds.

Serial Port Settings

Data Settings 
Baudrate  57600
Data bits  8
Stop bits  1
Parity  None
Flow Control  None

External Links