Hi
I have written an application which supports multiple modems attached.At
present I am attaching only two modems.This application sends sms from both
the modems. This application throws me the below mentioned exception:
RXTX fhs_lock() Error: creating lock file: /var/lock/LCK..ttyUSB1: File
exists
RXTX fhs_lock() Error: creating lock file: /var/lock/LCK..ttyUSB0: File
exists
org.smslib.GatewayException: Comm library exception:
java.lang.RuntimeException: gnu.io.PortInUseException: Unknown Linux
Application
at
org.smslib.modem.SerialModemDriver.connectPort(SerialModemDriver.java:102)
at org.smslib.modem.AModemDriver.connect(AModemDriver.java:114)
at org.smslib.modem.ModemGateway.startGateway(ModemGateway.java:189)
at org.smslib.Service$1Starter.run(Service.java:276)
I am not able to get to the crux of the issue. Sometimes it works and I am
able to send sms from both the modems. My OS is Linux and inspite of
debugging the code, I am not able to understand which Linux application is
keeping hold of the ports as given in the exception. Any help would be
appreciated
--
You received this message because you are subscribed to the Google Groups
"SMSLib Discussion Group" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
To view this discussion on the web visit
https://groups.google.com/d/msg/smslib/-/TPZVTu93BuIJ.
For more options, visit https://groups.google.com/groups/opt_out.