Hi, This behaviour reminds me of the HUAWEI models. There must be some command that switches on the modem (or something similar). Do you have any technical docs about that modem?
On Feb 8, 7:13 pm, KJ <[email protected]> wrote: > I'm constantly getting this exception when running the ReadMessages > example file. I'm using a Billionton PCMCIA PCGPRSQ-B as my modem. It > appears on port COM4, with AT+CGMI and CGMM returning "BenQ" and "M32" > respectively. > I've tried using "Billionton" as manufacturer and "PCMCIA PCGPRSQ-B" > as model, as well as "BenQ" and "M32", but both give me the same error > (GSM: Network registration denied!). > > I'm using SMSLib 3.4.5 with JavaComm V2 (have also tried RxTx 2.1.7 > with same results) on a WinXP system. Fairly sure that its not a modem > or network problem, since I've tested the modem and SIM card using > HyperTerminal as well as mobilePhoneTools (bundled software), both > show that network is up (AT+CREG? and COPS?) > > Below is the dump of the whole program run, somebody please help. I've > managed to get this SIM to work on my PC with a ITengo 3000, but my > laptop doesn't have a serial port, and I need this to run on my > laptop. > > Thanks! > > Example: Read messages from a serial gsm modem. > SMSLib: A Java API library for sending and receiving SMS via a GSM > modem or othe > r supported gateways. > This software is distributed under the terms of the Apache v2.0 > License. > Web Site:http://smslib.org > Version: 3.4.5 > 09-Feb-2010 01:01:07 org.smslib.helper.Logger logInfo > INFO: SMSLib: A Java API library for sending and receiving SMS via a > GSM modem o > r other supported gateways. > This software is distributed under the terms of the Apache v2.0 > License. > Web Site:http://smslib.org > 09-Feb-2010 01:01:07 org.smslib.helper.Logger logInfo > INFO: Version: 3.4.5 > 09-Feb-2010 01:01:07 org.smslib.helper.Logger logInfo > INFO: JRE Version: 1.6.0_18 > 09-Feb-2010 01:01:07 org.smslib.helper.Logger logInfo > INFO: JRE Impl Version: 16.0-b13 > 09-Feb-2010 01:01:07 org.smslib.helper.Logger logInfo > INFO: O/S: Windows XP / x86 / 5.1 > 09-Feb-2010 01:01:07 org.smslib.helper.Logger logInfo > INFO: GTW: modem: Starting gateway, using Generic AT Handler. > 09-Feb-2010 01:01:07 org.smslib.helper.Logger logInfo > INFO: GTW: modem: Opening: COM4 @115200 > 09-Feb-2010 01:01:22 org.smslib.helper.Logger logError > SEVERE: GTW: modem: GSM: Network registration denied! > 09-Feb-2010 01:01:22 org.smslib.helper.Logger logInfo > INFO: GTW: modem: Closing: COM4 @115200>>> Gateway Status change for modem, > OLD: STOPPED -> NEW: RESTART > > 09-Feb-2010 01:01:23 org.smslib.helper.Logger logInfo > INFO: GTW: modem: Stopping gateway... > 09-Feb-2010 01:01:23 org.smslib.helper.Logger logInfo > INFO: GTW: modem: Closing: COM4 @115200 > 09-Feb-2010 01:01:23 org.smslib.helper.Logger logInfo > INFO: GTW: modem: Gateway stopped.>>> Gateway Status change for modem, OLD: > RESTART -> NEW: STOPPING > >>> Gateway Status change for modem, OLD: STOPPING -> NEW: STOPPED > > org.smslib.GatewayException: GSM Network Registration denied! > at > org.smslib.modem.AModemDriver.waitForNetworkRegistration(AModemDriver > .java:450) > 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) > 09-Feb-2010 01:01:23 org.smslib.helper.Logger logInfo > INFO: GTW: modem: Stopping gateway... > 09-Feb-2010 01:01:23 org.smslib.helper.Logger logInfo > INFO: GTW: modem: Closing: COM4 @115200 > 09-Feb-2010 01:01:23 org.smslib.helper.Logger logInfo > INFO: GTW: modem: Gateway stopped. -- You received this message because you are subscribed to the Google Groups "SMSLib User Support Group" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/smslib?hl=en.
