I have a small application written in b4j that connects to a device over a serial COM Port (USB Serial based on CP21x02). Everything was perfect until last week, when the communication stopped working over USB/Serial. I've suspected an issue with the device or the USB/Serial Interface...
I use jSerial library to connect to some device on serial/usb port.
I've a class that manage the connection with the devices and I'd like to catch the "Port not found" exception if the specified port doesn't exist.
I've used this code in the class that manage the connections: