Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: duplex serial read write

by kschwab (Priest)
on Nov 14, 2013 at 20:00 UTC ( #1062651=note: print w/replies, xml ) Need Help??


in reply to duplex serial read write

There is a neat program called ser2net that would allow you to maintain these things as two separate programs. Basically, it would expose the serial port via a tcp socket that program #1 can connect to, and is able to talk bidirectionally just like any socket client.

The second program...the one that just needs read access to what's coming out of the port could do one of two things:

  • Continuously watch the output of a "tracefile" that ser2net can provide
  • Or, it can also connect (via tcp) to a separate control port, provided by ser2net, send the string "monitor term <port>", and then it will get a streamed copy of everything coming from the serial port.
It does support binding it's listen ports to only localhost, so it doesn't need to expose all of this to outside hosts. The man page is here. Prebuilt packages are out there for debian, redhat, etc.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1062651]
help
Chatterbox?
[1nickt]: True gamers don;t buy Dells, HPs, or Lenovos, I think ;-)
[ambrus]: The keyboard I bought doesn't have backlighting. I specifically had to select for that, because so many keyboards these days have lights. Why would I want lights in the keyboard? I want lights in the room, such as on the ceiling, not in the keyboard.
choroba has a small USB lamp
[ww]: ++ all (phony labels re "gaming"
[1nickt]: ambrus perhaps you know where the keys are?
[ww]: OTOH, -- for ads suggesting that being good at games is somehow eq "greatness"

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (14)
As of 2017-03-27 13:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (320 votes). Check out past polls.