java smslib 发送短信错误信息

org.smslib.GatewayException: GSM Network Auto-Registration disabled!
    at org.smslib.modem.AModemDriver.waitForNetworkRegistration(AModemDriver.java:440)
    at org.smslib.modem.AModemDriver.connect(AModemDriver.java:165)
    at org.smslib.modem.ModemGateway.startGateway(ModemGateway.java:186)
    at org.smslib.Service$1Starter.run(Service.java:257)

1,无法正常链接gsm网络,估计是sim卡配置有问题,需要重置?


信息: GTW: SMSLINK: Gateway stopped.
org.smslib.GatewayException: GSM: Invalid CREG response.
    at org.smslib.modem.AModemDriver.waitForNetworkRegistration(AModemDriver.java:459)
    at org.smslib.modem.AModemDriver.connect(AModemDriver.java:165)
    at org.smslib.modem.ModemGateway.startGateway(ModemGateway.java:186)
    at org.smslib.Service$1Starter.run(Service.java:257)

1,是 sim 卡出问题了。GSM: Invalid CREG response.  卡得不到响应。

 

 

 

org.smslib.TimeoutException: No response from device.
    at org.smslib.modem.AModemDriver$CharQueue.get(AModemDriver.java:531)
    at org.smslib.modem.AModemDriver.getResponse(AModemDriver.java:329)
    at org.smslib.modem.athandler.ATHandler.getSimStatus(ATHandler.java:132)
    at org.smslib.modem.AModemDriver.connect(AModemDriver.java:129)
    at org.smslib.modem.ModemGateway.startGateway(ModemGateway.java:186)
    at org.smslib.Service$1Starter.run(Service.java:257)

1,不可以长时间的占用端口,在一定时间之后应该及时的释放端口和资源

 

你可能感兴趣的:(java)