what modules best for communicationg with a UART with cygwin

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View


Ideally I'd like to writa an application, that can work under
* linux
* windows (active perl)
* cygwin

I'd like to connect to a UART device with 115k 8n1 and operate in a
similiar way than Net::Telnet (though I'm also open to other send/expect

Is there one module, that would run under all three environments and
where I 'just' had to change the device names or are there only
different modules, that I had to wrap around to create similar behaviour
and keep the rest of the code identical.

Thanks a lot for any suggestions and bye


Re: what modules best for communicationg with a UART with cygwin


I answered this question (partially) myself.

For cygwin:  Device::SerialPort
For linux:   Device::SerialPort

(though it does not autoinstall with perl -E CPAN -e shell
It fails during testing. I had to do "make install" manually)

So far I didn't succeed to get
Win32::SerialPort installed. (PPM problems)

The API however is not exactly like Net::Telnet, so I'll have to wrap in
order to have scripts, that can easily switch between a UART console and
a telnet session.



Klaus wrote:
Quoted text here. Click to load it

Site Timeline