Table of Contents

How to add a serial port

WARNING: attaching a serial port will certainly void your warranty and could destroy your unit.

Serial connector

level shifter, a popular (and simple) chip for this is the MAX323.

Pinout on the NAS

^Pin 1^Pin 2^Pin 3^Pin 4^ |3.3V|TX|RX|GND|

Correction 30 nov 2008

Pin 1Pin 2Pin 3Pin 4
3.3VRXTXGND

Correction here is wrong. You should always use direction depending on device which You describe. First post was correct. Agree. Just to emphasize correct pinout: Pin 2 is serial data out from DNS-323, Pin 3 is Serial data in to DNS-323

Several pictures of serial port installation on the back of the unit can be found here: http://picasaweb.google.com/rastislav.david/DNS323SerialLink#

Hardware Revision C1

If you own a dlink323 hardware revision C1, than the board layout looks a bit different. Take a look on this picture

Layout

A - J is the JTAG and 1- 4 is the serial panel.

Hardware Layout C1

Pin 1Pin 2Pin 3Pin 4
3.3VRXTXGND

3.3V has to be connected to VCC, if you have a level converter. You see, it's the same :-)

Pin2→ PC RX - DNS TX, Pin3→ PC TX - DNS RX

Parts Used

Terminology

Data Rate

If properly connected, you will see several messages during boot time. You need to break into the shell to type commands, as you could do in a normal ssh or telnet session.

Breaking into a shell

U-BOOT

Serial to TRS (mini stereo)

A very simple way of extending the serial port to an accessible position is to make a connector from the on-board header to a mini stereo (TRS) socket, then mount the socket behind the face plate of the DNS-323. This helps to preserve the original appearance of the unit, as the socket is only visible when the front face plate is removed as if to add a new drive.

You can then use an FTDI USB->Serial adapter to connect it to the PC. Of course, something like the Nokia CA-42 cable (or a cheap clone) can easily be retrofitted with a suitable mini-stereo plug as well, which is what I ended up doing.

This diagram shows how FTDI wire up their connectors. It probably makes sense to do the same if you repurpose a CA-42 cable.

www.ftdichip.com_images_ttl-232r-aj_20pinout.jpg

Here are some shots of how I mounted mine:

serial_trs.jpg

trs_mounted.jpg

Using bkamen's RS232->Logic adapter

Forum User 'bkamen' is an electronics designer and made some RS232 to logic board for his lab and some clients as well as anyone else who needs them. They come already assembled with a 3V-5.5V MAX3221, DE-9 connector and indication LED's – ready to solder to the board with some wire. In the image below, you can see the signals coming off the end of the board. Just solder to them. (_INV_ isn't used in this appplication)

 RS232->Logic PCB w/Test connection and DE-9 to PC

Using the Futurlec board

Futurlec makes a board at http://www.futurlec.com/Mini_RS232_TTL_3V.shtml that can be used to perform the level conversion. This is one way to go. It can even be mounted in the center brace. Here is one way to go, if you really want a serial port. Note that the Futurlec board was shipped from Thailand for me and took about 4 weeks to get to me via post, so you may want to pick a more expedient shipping method.

Some of them have large minimum orders, like 100, but the whole thing cost me $16.42 with shipping. You will also need:

The procedure:

some and strip the wires.

Here's two pictures of the panel

Here's a picture of the inside. Note that I have way too much wire, so don't do that :)

Here's the final product

Using a USB cable

If you do not have a serial port on your computer, FTDI sell a convenient USB cable that contains a serial chip and level converter in one, and has bare wires at the other end. The cable has drivers for all major operating systems, I am running it under linux with no problems. The datasheet is here. This is what i used:

Just solder the wires to the connector in this order:

Pin 1Pin 2Pin 3Pin 4
RedYellowOrangeBlack

When using the USB to Serial adapter with the DNS-323, you may have to disconnect the red (power) lead from the connector. On the Rev. A1 of the board, once the USB connector is plugged into a computer, it may power up the DNS-323 mainboard and start the boot process without the powerbutton being pushed. Once the red lead was disconected, the DNS-323 wouldn't start until the powerbutton was pushed, thereby allowing the complete boot sequence to be viewed.