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 Basics

Pinout on the NAS

Pin 1Pin 2Pin 3Pin 4
3.3VRXTXGND
Tx of the SocRx of the Soc

It doesn't matter what adapter you choose below so long as you match up the PINs / Wires to the table above.

In general you only need to connect Pins: 2, 3, and 4

Serial Connectors

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:

Instead of buying the Molex Housing and Pins separate, you can purchase a pre-assembled Molex Housing/Pins and save yourself the trouble of soldering/fitting the pins. Example - Buy From eBay

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 disconnected, the DNS-323 wouldn't start until the power button was pushed, thereby allowing the complete boot sequence to be viewed.

datasheet link is modifed to here.

Nokia Data Cable Adapter

Perhaps the cheapest/simplest way to connect to the DNS-323 via its serial port is to get your hands on a Nokia CA-42 or DKU-5 data cable. These cables already contain electronics necessary to interface between RS-232 and USB, and cheap knock-offs are readily available for a few dollars on eBay, buy.com, dealextreme, etc. For complete details on adapting one of these cables for this purpose, please see http://buffalo.nas-central.org/wiki/Use_a_Nokia_Serial_Cable_on_an_ARM9_Linkstation and http://www.uchobby.com/index.php/2009/10/04/diy-usb-to-serial-cable-for-3/.

Your finished cable will have a USB A connector on one end and either three or four wires on the other (RX, TX, GND, and possibly power). Whether or not the power line is needed depends on the specific design of the circuitry within the cable (note that the housing around the USB connector is longer than normal to accommodate this circuitry). In cables where the phone powers the circuitry (in this case, think of our DNS-323 as the phone), the power line will be present. On the other hand, the circuitry within the cable may be powered directly from the USB port; in these cables, the power line will be absent. Regardless of which design you have, you'll need to install a USB serial port driver on your computer before attaching your cable to the DNS-323. Separate the wires (we don't want any shorts!) and plug the USB connector into your computer. Windows will detect new hardware and ask for a driver. Instructions for downloading and installing Prolific's USB serial driver are at http://www.plugapps.com/index.php5/Hardware:_Pogoplug_Pro_Serial. After the driver is installed, use Device Manager to verify/adjust the settings of your new serial port (port number, baud rate, etc).

Now all that remains is to connect the wires to the serial interface connector on your DNS-323 as described elsewhere on this page, fire up PuTTY or a similar terminal program and – if everything is wired correctly – voila! You now have console access to your DNS-323! If you have any doubts about whether your cable is correctly wired, you might want to first run a simple loopback test before connecting it to your DNS-323 (see links above for the details).

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

Building your own RS232 level adapter

If you are used to electronics and prefer doing things by yourself, you can build you own level converter. Go to Serial_level_adapter

Optional: Easy Access Mini-Stereo Port

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