This is probably an easy one, but I need to use perl to both talk to a serial port, and accept responses back from it – ideally something which would flag up to the rest of my programme that a new message has come back from the port so that I can process it?
The unit I’m using is called a RockBLOCK, it’s a two-way satellite communicator module, plugs into the USB port, but presents itself as a normal serial device. Details here in case anyone is interested: http://rockblock.rock7mobile.com
Does anyone have any sample code for sending data plus also flagging if a message has come back? The first bit seems fairly straighforward, but the second less so…
Searching CPAN for the obvious terms gives me Device::SerialPort and Win32::SerialPort which both seem to do exactly what you need.