标题: wavecom不支持文本协议 [打印本页] 作者: helloworld 时间: 2016-8-23 11:47 标题: wavecom不支持文本协议 启动服务的时候报错如附件
org.smslib.GatewayException: The GSM modem does not support the TEXT protocol.
at org.smslib.modem.AModemDriver.connect(AModemDriver.java:195)
at org.smslib.modem.ModemGateway.startGateway(ModemGateway.java:185)
at org.smslib.Service$1Starter.run(Service.java:257)
作者: admin 时间: 2016-8-23 15:22
你好,是支持的,出错是你选择错了设备类型,你的是什么猫?作者: admin 时间: 2016-8-23 15:54
SerialModemGateway gateway = new SerialModemGateway("modem.com4", "COM4", 115200, "Wavecom", "WISMOQCDMA");
// Set the modem protocol to PDU (alternative is TEXT). PDU is the default, anyway...
gateway.setProtocol(Protocols.TEXT);