ts-7000
[Top] [All Lists]

Re: [ts-7000] ser2net in ts7300

To:
Subject: Re: [ts-7000] ser2net in ts7300
From: Joe Bouchard <>
Date: Thu, 25 Jan 2007 22:00:49 -0500
On Fri, Jan 26, 2007 at 02:11:22AM -0000, Elizabeth wrote:
> Hi,
> Does anyone has worked with ser2net? If you have configuration info
> about this command please let me know. Or there is any other tool to
> transfer data from a serial port to a ethernet port? If you have any
> configuration of this command this will be very useful.
> 
> Elizabeth Vaca 

I've used ser2net quite a bit on my TS-7200.  Basically you install ser2net and
tweak /etc/ser2net.conf similar to the example.  Personally I like using ser2net
and then I write my apps to do serial communication by opening a socket to 2001
or whatever port you want, and then I just chat back and forth with no problem.
Easier than doing ioctl() manually IMHO.

The traditional standard tool for ethernet to serial are hardware called
"Terminal Servers", and using ser2net on an SBC emulates a terminal server
pretty well.

The only downside I've seen to ser2net is that if the network drops out and
comes back you may not be able to reconnect automatically.  Example... you
telnet from your PC to SBC port 2001.  Type something and it comes out the com
port on the SBC.  Then unplug ethernet connection to the SBC.  If you type
something on your PC it will realize the connection is lost. Plug the ethernet
back in and try to reconnect, and you can't because the ser2net daemon is
maintaining that conversation which I doesn't realize you have abandoned.

However, there are solutions to the above problem.  One I think is that you can
set up a timeout in your ser2net.conf.  The other is to enable a "control port"
(that may not be the right name, think terminal server console), where you can
log in seperately and kill the session.  I have mine running on port 2000.  In
my production environment I have my application try to connect to 2001 for
regular use, if that fails I have a perl script which logs into that control
connection and logs out the port.  Works slick.

Hope that helps.
Joe


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU