Re: W98 serial server -> Linux



<chris-usenet@xxxxxxxxxxxx> ha scritto nel messaggio
news:a1jv83-4oi.ln1@xxxxxxxxxxxxxxxxxxxx

>> The servers sharing their serial interface in my setting are the remote
>> W98
>> machines. The linuxbox must be listening on port 1000 and act on the
>> incoming data.
>
> Ah. You want network traffic to be punted to the serial port?

Nope, i simply need to tunnelize small chunks of serial data coming from an
instrument, through an intranet. The instruments are connected on serial
lines to local PCs, which in turn are tapped into the intranet. The overall
schema is as follows:

Instrument -> Pc RS232 -> Pc TCP/IP ---> ethernet ---- > Linux TCP/IP ->
Linux RS232 -> linux app.

While the data flow unidirectionally, we have two symmetrical and specular
circumstances:

On the instrument side (platform: windows) the flow is from serial to
network. This is no problem, there are plenty of software "serial servers"
for the windows platform.

On the host side (platform: linux) the flow is from network "to the
application". I understand the typical way to do this, is not to read
directly the network flow, but to implement "virtual serial ports" instead.
Thus the linux application reads a serial interface which is actually a
virtual serial port, not a physical one.

> I thought you had said you wanted data from the serial port to be made
> available over the network, so those are the solutions I offered.

Yes, this is what i need on the remote side, the data generated by the
instrument enter the serial port of the remote PC and then walk over the
network. This is an issue i have solutions for. Notice we are speaking of
windows based solutions here.

> Now you've really confused me. You said you had unidirectional data. Do
> you want it *from* the serial port to the network, or from the network
> *to* a serial port?

See the above diagram, hope this explain. On the linux side, where i am
having problems, the flow is from network to app, or preferably from network
to a virtual serial device.

The advantages of having a virtual serial port is that an application would
read the rs232 data from the instrument, irrespective if the instrument is
local or remote. You can develop the app locally, and then remotize the
instrument. Or plainly redirect the serial port to a logfile, and then parse
the logfile and populate a database, etc.

I have a coarse understanding of what i need, on a block basis. I don't have
a fine insight in the innerworkings. I understand that the [serial 2
network] and [network 2 serial] conversions must be symmetrical, and
eventually supplied by the same vendor. Now many vendors have all-Windows
solutions (from serial to network and vice-versa), few have cross-platform
solutions (serial 2 network on windows, network 2 serial on linux).

A possible workaround would be to install a windows based concentrator
side-by-side the linux host, which could accumulate the serial data flowing
in from the net and then pass them to the linux host. I have set up a
prototype this way, but i dont' like it, i'd rather go to the linux host
directly.

thank you for you kind cooperation, ciao!

VA








.



Relevant Pages

  • Re: Wake up screen from DPMS
    ... how do I wake up the screen on a linux box without mouse or keyboard? ... interaction is done by serial port and network. ...
    (comp.os.linux.x)
  • Re: Atari St/Lantronix
    ... I was thinking I could upload files to a ftp server from my st but How do I get it to connect with the Lantronx box. ... MSS1 looks more like a terminal server over the serial port than a UDS-10 ... configure its network parameters as described in the Lantronix manual; ... (It will probably have to be a host on your local network, ...
    (comp.sys.atari.st.tech)
  • Re: Nmea and seatalk to TCP / IP
    ... Already have the Seatalk stuff working. ... All B&G units are "Network", not the latest and greatest and proprietary. ... Serial port output of NMEA multiplexer fed directly to RS-232 to ...
    (rec.boats.electronics)
  • Re: Device wont idle time out when my app is running
    ... Network interrupts are quite common - you don't want the device to go to ... sleep while you're streaming audio or video though the network. ... for a while between uses of the serial port and network, ... One way to get the idle behavior I want would be to monitor the user's ...
    (microsoft.public.dotnet.framework.compactframework)
  • Device wont idle time out when my app is running
    ... I have a small app which reads data from a serial port periodically, ... and sends it over the network. ... This works exactly right when I turn the device off with the power ... However, while my app is running, the device will never idle time out ...
    (microsoft.public.dotnet.framework.compactframework)