2014-08-18 21.31.56 

1. Download RASPBIAN (Debian Wheezy) from http://www.raspberrypi.org/downloads/

2. Follow the instruction to install the os http://www.raspberrypi.org/documentation/installation/installing-images/README.md

2014-08-17 03.10.21 2014-08-18 21.23.11

3. Connect your RS323 cable. Find the Serial interface

# dmesg |grep tty

4. In order to connect to the routers via Terminal, we will require Kermit on the Pi

# sudo apt-get install ckermit

After installation of Kermit, you can connect to individual routers via the following command

# kermit -l /dev/ttyUSB0
(/home/pi/) C-Kermit>SET CARRIER-WATCH OFF
(/home/pi/) C-Kermit>set line /dev/ttyUSB0
(/home/pi/) C-Kermit>set speed 9600
(/home/pi/) C-Kermit>set flow-control none
(/home/pi/) C-Kermit>set stop-bits 1
(/home/pi/) C-Kermit>connect

5. Use Ser2net which allows you access the serial ports via telnetting into the Pi.

# wget http://downloads.sourceforge.net/project/ser2net/ser2net/ser2net-2.9.1.tar.gz
# tar -zxvf ser2net-2.9.1.tar.gz
# cd ser2net-2.9.1
# ./configure
# make
# make install

6. Create the configuration file

# cp ser2net.conf /etc/
vi /etc/ser2net.conf
TRACEFILE:tr1:/var/log/ser2net/tr-\p-\Y-\M-\D-\H:\i:\s.\U
 9001:telnet:0:/dev/ttyUSB0:9600 8DATABITS NONE 1STOPBIT banner1 tr=tr1 timestamp
 TRACEFILE:tr2:/var/log/ser2net/tr-\p-\Y-\M-\D-\H:\i:\s.\U
 9002:telnet:0:/dev/ttyUSB1:9600 8DATABITS NONE 1STOPBIT banner1 tr=tr2 timestamp
 TRACEFILE:tr3:/var/log/ser2net/tr-\p-\Y-\M-\D-\H:\i:\s.\U
 9003:telnet:0:/dev/ttyUSB2:9600 8DATABITS NONE 1STOPBIT banner1 tr=tr3 timestamp
 TRACEFILE:tr4:/var/log/ser2net/tr-\p-\Y-\M-\D-\H:\i:\s.\U
 9004:telnet:0:/dev/ttyUSB3:9600 8DATABITS NONE 1STOPBIT banner1 tr=tr4 timestamp

7. Run ser2net

# /usr/local/sbin/ser2net -c /etc/ser2net.conf -n

8. Try telnet localhost 9001 for ttyUSB0

9. Make the setup persistent

# vi /etc/rc.local
/usr/local/sbin/ser2net -c /etc/ser2net.conf -n
exit 0