ThomasBrouwer has asked for the wisdom of the Perl Monks concerning the following question:
Hey everyone!
I am currently working on a summer project. What I need to do is control two relay boards, and they are linked to a device which will hold and execute the program, which sends a 4 byte packed signal to the boards. I know that the program works, because I made it first linking the boards to a computer. I used a module called Win32::SerialPort, which made it quite easy to connect to the boards. For the device I would use Device::SerialPort, but for some complicated reason it is nearly impossible to add this module to the device. Thus, I need to open a port without using a module like Device::SerialPort.
I need the following settings for the port:
Baud: 19200
Data: 8 bits
Stop: 1 bit
Parity: no
Handshake signal: no
Then after opening the port, I need to send two 4 byte signals. The boards will then send two 4 byte signals back, which I need to read and evauate.
Any help will be greatly appreciated!
Thomas Brouwer
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Open serial port without Device::SerialPort
by BrowserUk (Patriarch) on Aug 04, 2011 at 13:22 UTC | |
by ThomasBrouwer (Initiate) on Aug 04, 2011 at 13:26 UTC | |
|
Re: Open serial port without Device::SerialPort
by AnomalousMonk (Archbishop) on Aug 04, 2011 at 14:23 UTC | |
|
Re: Open serial port without Device::SerialPort
by tmaly (Monk) on Aug 04, 2011 at 14:36 UTC | |
|
Re: Open serial port without Device::SerialPort
by Anonymous Monk on Aug 05, 2011 at 05:56 UTC | |
by ThomasBrouwer (Initiate) on Aug 05, 2011 at 14:01 UTC | |
by Anonymous Monk on Aug 06, 2011 at 00:24 UTC | |
by ThomasBrouwer (Initiate) on Aug 08, 2011 at 08:43 UTC | |
by Anonymous Monk on Aug 09, 2011 at 06:27 UTC |