ser2net for mips - serial device server for your router

Post new topic   Reply to topic    DD-WRT Forum Index -> Contributions Upload
Author Message
CaScAdE
DD-WRT Guru


Joined: 18 Jun 2006
Posts: 1110
Location: Kiel (54.4247,10.1721)

PostPosted: Sun Dec 21, 2008 23:43    Post subject: ser2net for mips - serial device server for your router Reply with quote
The ser2net daemon allows telnet and TCP sessions to be established with a unit's serial ports.

Since i was in the need of a serial<->network connection for a Java-Project I am on (Accessing the serial port directly with Java is... aerhm... not how I like it? I got it working... but... you know...) I came accross ser2net (years before I had it running as well but things keep falling out off my mind by time) and thought it would be cool to have it on a router.
Serial device servers are expensive and a cheap WRT54GL has two serial ports and beats the price down...
I know, it is not like industrial device servers but this way it works as well..
Startscript should be not an issue since user-script-stuff in dd-wrt...
./ser2net -c ser2net.conf
works for me...

Tested on:
Linksys WRT600N v1.1
DD-WRT v24-sp2 (12/17/08) mega - build 11218M NEWD Eko
using a Prolific PL2303 USB to serial adaptor
and the usb-drivers posted by rkozola

The last line in config is what i have been testing, works for me.
There had been some "request" in the forum about this, so I thought it is worth posting...

See ser2net project page for Sourcecode and stuff.
Big thanx, again, to steffen.moser for letting me in his buildenv :)

_________________
DD-WRT F.A.Q.

Webcam Kiel
Sponsor
Jumpy07
DD-WRT Novice


Joined: 05 Nov 2009
Posts: 2

PostPosted: Thu Nov 05, 2009 23:30    Post subject: Reply with quote
I am trying to do something similar on my Fon 2.0n

I am a bit of a Linux noob..

I want to forward serial data on a USB to Serial adapter (Prolific) via UDP to an IP

Is this possible using ser2net ?

Many Thanks

Craig
zspzs
DD-WRT Novice


Joined: 09 Feb 2011
Posts: 5

PostPosted: Wed Feb 16, 2011 11:17    Post subject: Reply with quote
Hello All,
I succesfully upgraded the firmware on my WRT54G v5 router to dd-wrt v24 sp2 micro.
Please advise me how can I install ser2net in order to use the built in serial port.
(It seems the v24 micro doesn't support JFFS2. Can I install ser2net anyway?)
Thanks in advance
Peter
CaScAdE
DD-WRT Guru


Joined: 18 Jun 2006
Posts: 1110
Location: Kiel (54.4247,10.1721)

PostPosted: Mon Feb 21, 2011 12:21    Post subject: Reply with quote
You can not install it, but you might be able to use it.

Just download the files to the WRT und run them by hand.

If you do have the possibility to put the file on some webserver in your lan an outline would be:

modify the config and then use

Code:
cd /tmp
wget "http://your.lan.server/path/ser2net-2.5-mips.tar.gz"
tar xzf ser2net-2.5-mips.tar.gz
cd ser2net-2.5
./ser2net -c ser2net.conf &


as dd-wrt startup script...

_________________
DD-WRT F.A.Q.

Webcam Kiel
zspzs
DD-WRT Novice


Joined: 09 Feb 2011
Posts: 5

PostPosted: Mon May 09, 2011 22:29    Post subject: Reply with quote
Hello!

Thanks for the reply.
Is it possible to modify the DD-WRT Micro or Micro Plus package with the firmware mod kit to make enough room to put Ser2net into the package?

If yes what modules can I remove?
(Ser2net is very small, about 30KB.)

Thanks
Peter
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Contributions Upload All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum