Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: conserver: users

serial device forwarding with conserver ?

 

 

conserver users RSS feed   Index | Next | Previous | View Threaded


baaden at smplinux

Nov 23, 2005, 5:16 AM

Post #1 of 4 (1815 views)
Permalink
serial device forwarding with conserver ?

Hi,

I am currently trying to make a (serial) device on one machine available to a
second machine and have started to play with conserver for this. I can connect
to the serial port in question via console.
Now what I'd like to do is create a local device from this, some kind of
/dev/ttyS0_over_conserver

Is this possible ?
And how would one go about ?

(The point is that I want to use a software program that accesses the device
and I need to tell it via an environment variable where to find it, usually
something a la /dev/ttyS0)

Thanks in advance,

Marc Baaden

--
Dr. Marc Baaden - Institut de Biologie Physico-Chimique, Paris
mailto:baaden [at] smplinux - http://www.baaden.ibpc.fr
FAX: +33 15841 5026 - Tel: +33 15841 5176 ou +33 609 843217


_______________________________________________
users mailing list
users [at] conserver
https://www.conserver.com/mailman/listinfo/users


cpz at tuunq

Nov 23, 2005, 11:48 AM

Post #2 of 4 (1705 views)
Permalink
Re: serial device forwarding with conserver ? [In reply to]

In a flurry of recycled electrons, Marc Baaden wrote:

> I am currently trying to make a (serial) device on one machine available to a
> second machine and have started to play with conserver for this. I can connect
> to the serial port in question via console.
> Now what I'd like to do is create a local device from this, some kind of
> /dev/ttyS0_over_conserver
>
> Is this possible ?
> And how would one go about ?

It depends....

If the software really wants a serial port, then nothing else will do
(for instance, if it tries to set speed/parity/etc). If all you need
is a device to open, you might try creating a named pipe and a program
to read from the pipe and write to a process running console. A short
tcl script should do that handily. Note in this that you don't
have any control over opening/closing the console connection because you
can't see whether the other side of the pipe is open. (I'm sure someone
will correct me on this.)

z!
_______________________________________________
users mailing list
users [at] conserver
https://www.conserver.com/mailman/listinfo/users


bryan at conserver

Nov 23, 2005, 12:25 PM

Post #3 of 4 (1708 views)
Permalink
Re: serial device forwarding with conserver ? [In reply to]

conserver probably won't help you. there are programs like ser2net and
sredird that will take a serial port and allow you to access it over a
tcp connection, which sounds opposite of what you'd like. somewhere in
the back of my mind i remember seeing a package that takes a tcp
connection (to a terminal server or whatever) and presents it as a local
serial port. that's what you want. i can't, for the life of me, find
any reference to it, though. i do remember terminal server vendors
providing such behavior (local serial ports that access their term
servers) - maybe that's what's confusing me.

and, then again, it would probably have to be a kernel module...which
isn't triggering any memories either. if you don't need it to act like
a real serial port, you might be able to hack something together like
carl suggests.

Bryan
_______________________________________________
users mailing list
users [at] conserver
https://www.conserver.com/mailman/listinfo/users


baaden at smplinux

Nov 23, 2005, 2:51 PM

Post #4 of 4 (1713 views)
Permalink
Re: serial device forwarding with conserver ? [In reply to]

Hi,

thanks for all your suggestions.

corrigan [at] KiNETWORKS said:
>> If a /dev/pts type interface work for you, let me know and I can provide
>> further details

I think this would work. I would be interested in trying.


bryan [at] conserver said:
>> [..] i remember seeing a package that takes a tcp connection (to a terminal
>> server or whatever) and presents it as a local serial port. that's what you
>> want. [..]

Yes, I think that's right. I found something that does work (not as nicely
and swiftly as conserver, but for my occasional use it might be sufficient).
The package is called bidilink [1]. For my case this leads to a command:

bidilink "exec:ssh server bidilink tty:/dev/ttyS0" pty:TempDevice

It works, but is a little slower than on the local machine (I had thought
that FastEthernet should be sufficient for a smooth connection of a 9600 baud
device .. ?)
An additional point is that I want to serve /dev/ttyS0 from a linux box to
a Macintosh and there seem to be slight differences (eg no /dev/ptmx on the
mac).


cpz [at] tuunq said:
>> If all you need is a device to open, you might try creating a named pipe and
>> a program to read from the pipe and write to a process running console.

I did wonder whether a named pipe would work. Couldn't one connect the
console process directly to the pipe via some shell magic ?

Many thanks,
Marc

[1] http://0pointer.de/lennart/projects/bidilink/

--
Dr. Marc Baaden - Institut de Biologie Physico-Chimique, Paris
mailto:baaden [at] smplinux - http://www.baaden.ibpc.fr
FAX: +33 15841 5026 - Tel: +33 15841 5176 ou +33 609 843217


_______________________________________________
users mailing list
users [at] conserver
https://www.conserver.com/mailman/listinfo/users

conserver users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.