Interface in use exception message
If you experience the "com.digi.xbee.api.exceptions.InterfaceInUseException" exception, it indicates that the port you are trying to open is already in use. Ensure that you don't have any applications running and that the XCTU console of that port is not connected.
com.digi.xbee.api.exceptions.InterfaceInUseException: Port COM5 is already in use by other application(s) at com.digi.xbee.api.connection.serial.SerialPortRxTx.open(SerialPortRxTx.java:189) at com.digi.xbee.api.XBeeDevice.open(XBeeDevice.java:189) at com.digi.xbee.sendreceivedatasample.MainApp.main(MainApp.java:43) Caused by: gnu.io.PortInUseException: Unknown Application at at gnu.io.CommPortIdentifier.open(CommPortIdentifier.java:467) at at com.digi.xbee.api.connection.serial.SerialPortRxTx.open(SerialPortRxTx.java:167) ... 2 more Error 0x5 at ..\src\termios.c(892): Access is denied.