Without using Device::SerialPort (because it would be difficult to install) I have managed to talk to my serial device (/dev/ttyS1) and communicate back via a socket. The device will send a reply to a request, so if I send '@' I will get a reply, if it's connected.
Now then, does anyone know how I can detect if the device is connected? Can I use a timeout? If so, can I get an example?