Unfortunately I ran into a new problem. The modem becomes unresponsive
after running for about an hour or so.
On Wednesday, March 6, 2013 10:56:56 PM UTC-5, Arya Farzan wrote:
>
> I was able to get it to work this is how it needs to be initialized
>
> SerialModemGateway gateway = new SerialModemGateway("modem.com4", "COM12",
> 115200, "ZTE", "MF622");
>
> On Sunday, March 3, 2013 1:12:59 AM UTC-5, Arya Farzan wrote:
>>
>>
>>
>> I have D-Link DWM-156 and a Huawei e220. The Huawei is working fine but
>> I'm having trouble getting the D-Link DWM-156 working. When I initiate the
>> modem with the following line
>>
>> SerialModemGateway gateway = new SerialModemGateway("modem.com4",
>> "COM12", 115200, "Dlink", "");
>>
>> I get
>>
>> org.smslib.GatewayException: GSM Network Auto-Registration disabled!
>>> at
>>> org.smslib.modem.AModemDriver.waitForNetworkRegistration(AModemDriver.java:444)
>>> at org.smslib.modem.AModemDriver.connect(AModemDriver.java:168)
>>> at org.smslib.modem.ModemGateway.startGateway(ModemGateway.java:189)
>>> at org.smslib.Service$1Starter.run(Service.java:276)
>>
>>
>>
>> and if I initialize it like this
>>
>> SerialModemGateway gateway = new SerialModemGateway("modem.com4",
>> "COM12", 115200, "Huawei", "");
>>
>>
>> java.lang.StringIndexOutOfBoundsException: String index out of range: -12
>>> at java.lang.String.substring(Unknown Source)
>>> at org.smslib.modem.ModemGateway.readMessagesPDU(ModemGateway.java:545)
>>> at org.smslib.modem.ModemGateway.readMessages(ModemGateway.java:210)
>>> at org.smslib.Service.readMessages(Service.java:500)
>>> at org.smslib.Service.readMessages(Service.java:388)
>>> at smsmaster.SMSAutoresponder.run(SMSAutoresponder.java:74)
>>> at smsmaster.Main.main(Main.java:12)
>>
>>
>> Do I need to initiate it differently or is this a bug in SMSLib?
>>
>
--
You received this message because you are subscribed to the Google Groups
"SMSLib Discussion Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msg/smslib/-/NRGd4ML531QJ.
For more options, visit https://groups.google.com/groups/opt_out.