in reply to Serial Port win32 module
This code looks similar to what you posted here, what is it supposed to do differently other than write something to the serial port?
In particular, I don't see anywhere in this code where you actually read from the port. Instead, you immediately close it after writing. Try keeping the port open and reading from it.
What does your hardware setup look like? Specifically, do you have any of the RTS, CTS, DTR, etc. lines connected between the two terminals? If so, incorrect settings of those lines could be stopping the other side from transmitting. There seem to be several methods in Win32::SerialPort for controlling those lines if you need to.
If this happens to be related to the driver issues you mentioned previously, it'll probably be hard to debug without knowing more details of your hardware, system and drivers.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Serial Port win32 module
by jismake (Initiate) on Apr 22, 2014 at 09:48 UTC | |
by Anonymous Monk on Apr 22, 2014 at 10:24 UTC |