Perl serial communication ACK response
Posted on 2009-04-16
I am trying to use Perl to provide serial communication between two applications on PCs. I have never attempted serial comms programming before in perl, my experience is mostly TCP stream reading and database access.
What has me beat at the moment is how to handle the ACK/NAK signalling responses. Basically what I need to do is to have the perl script send an ASCII ACK to the other PC via serial, wait for a response which should alos be ASCII ACK for ok or NAK for no.
If the response is ACK then it will send another stream of data and await another ACK/NAK response.
Any help hopefully with an example code as to what Ineed to do to handle these responses is greatly appreciated.