Hi, I've got this error on Linux. seeing lsub and /proc/bus/usb/devices I can figure out that my modem is using /dev/tty0
what it could be? On Jul 24, 2:44 pm, Thanasis <[email protected]> wrote: > Ok, have fun :) > > On Jul 24, 5:34 pm, yul goon <[email protected]> wrote: > > > Hi Mr Thanasis! > > you were right it's smsc number after all. > > it needs country code in the sent to number as well as the smsc number. > > needs to be +447xxxx instead of +4407xxx > > > wooot!! > > > thanx for your help so far! i'll bother you in a new thread if i get anymore > > error message after this. > > hv a good dayy! > > > On Fri, Jul 24, 2009 at 3:10 PM, yul goon <[email protected]> wrote: > > > Hi.. > > > i added the setsmsc number as advised, trying both of Orange's smsc > > > number.. > > > > " gateway.setSmscNumber("+447973100973"); " > > > gateway.setInbound(true); > > > gateway.setOutbound(true); > > > gateway.setSimPin("0000"); " > > > > or " gateway.setSmscNumber("+4407973100974"); " > > > > I still receive the same error messages though. what else should i try? > > > here's them terrors.. > > > > Jul 24, 2009 2:59:51 PM org.smslib.helper.Logger logInfo > > > INFO: SMSLib: A Java API library for sending and receiving SMS via a GSM > > > modem or other supported gateways. > > > This software is distributed under the terms of the Apache v2.0 License. > > > Web Site:http://smslib.org > > > Jul 24, 2009 2:59:51 PM org.smslib.helper.Logger logInfo > > > INFO: Version: 3.4.2 > > > Jul 24, 2009 2:59:51 PM org.smslib.helper.Logger logInfo > > > INFO: JRE Version: 1.6.0_14 > > > Jul 24, 2009 2:59:51 PM org.smslib.helper.Logger logInfo > > > INFO: JRE Impl Version: 14.0-b16 > > > Jul 24, 2009 2:59:51 PM org.smslib.helper.Logger logInfo > > > INFO: O/S: Windows XP / x86 / 5.1 > > > Jul 24, 2009 2:59:51 PM org.smslib.helper.Logger logInfo > > > INFO: GTW: modem.com15: Starting gateway, using Generic AT Handler. > > > Jul 24, 2009 2:59:51 PM org.smslib.helper.Logger logInfo > > > INFO: GTW: modem.com15: Opening: COM15 @57600 > > > Jul 24, 2009 2:59:58 PM org.smslib.helper.Logger logInfo > > > INFO: GTW: modem.com15: GSM: Registered to home network. > > > Jul 24, 2009 2:59:58 PM org.smslib.helper.Logger logWarn > > > WARNING: GTW: modem.com15: CPMS detection failed, proceeding with default > > > storage 'MT'. > > > Jul 24, 2009 2:59:58 PM org.smslib.helper.Logger logInfo > > > INFO: GTW: modem.com15: MEM: Storage Locations Found: > > > OK > > > MT > > > Jul 24, 2009 2:59:58 PM org.smslib.helper.Logger logWarn > > > WARNING: GTW: modem.com15: Retrying the detection of CNMI, modem busy? > > > Jul 24, 2009 3:00:01 PM org.smslib.helper.Logger logWarn > > > WARNING: GTW: modem.com15: Retrying the detection of CNMI, modem busy? > > > Jul 24, 2009 3:00:04 PM org.smslib.helper.Logger logWarn > > > WARNING: GTW: modem.com15: Retrying the detection of CNMI, modem busy? > > > Jul 24, 2009 3:00:07 PM org.smslib.helper.Logger logWarn > > > WARNING: GTW: modem.com15: CNMI detection failed, proceeding with > > > defaults. > > > Jul 24, 2009 3:00:07 PM org.smslib.helper.Logger logWarn > > > WARNING: GTW: modem.com15: Callback indications were *not* set > > > succesfully! > > > Jul 24, 2009 3:00:07 PM org.smslib.helper.Logger logInfo > > > INFO: GTW: modem.com15: Gateway started. > > > > Modem Information: > > > Manufacturer: Nokia > > > Model: Nokia 6680 > > > Serial No: 355664000670459 > > > SIM IMSI: ** MASKED ** > > > Signal Level: 54% > > > Battery Level: 29% > > > > Jul 24, 2009 3:00:17 PM org.smslib.helper.Logger logWarn > > > WARNING: GTW: modem.com15: CMS Error 500: Retrying... > > > Jul 24, 2009 3:00:28 PM org.smslib.helper.Logger logWarn > > > WARNING: GTW: modem.com15: CMS Error 500: Retrying... > > > Jul 24, 2009 3:00:41 PM org.smslib.helper.Logger logError > > > SEVERE: GTW: modem.com15: CMS Error 500: Quit retrying, message lost... > > > > =========================================================================== > > > ==== > > > << OutboundMessage >> > > > > --------------------------------------------------------------------------- > > > ---- > > > Gateway Id: * > > > Encoding: 7-bit > > > Date: Fri Jul 24 15:00:07 BST 2009 > > > SMSC Ref No: null > > > Recipient: +4407531644432 > > > Dispatch Date: null > > > Message Status: FAILED > > > Validity Period (Hours): -1 > > > Status Report: false > > > Source / Destination Ports: -1 / -1 > > > Flash SMS: false > > > Text: Hello from SMSLib! > > > PDU data: C8329BFD0699E5EF3668DA9C32D3E210 > > > > =========================================================================== > > > ==== > > > > On Fri, Jul 24, 2009 at 7:04 AM, Thanasis <[email protected]> wrote: > > > >> Hi, > > > >> Glad you sorted most things out. > > >> Error 500 is "generic error", however it's usually thrown when the > > >> SMSC number cannot be found - some phones do this. > > >> Use the setSmscNumber() method of the Gateway object to define your > > >> own network's SMSC number and try once more. > > > >> On Jul 24, 12:28 am, vash1282 <[email protected]> wrote: > > >> > at the risk of spamming the forum.. > > >> > here's some more error message I am getting with regards to the last > > >> > post > > > >> > Jul 23, 2009 10:26:00 PM org.smslib.helper.Logger logWarn > > >> > WARNING: GTW: modem.com15: CMS Error 500: Retrying... > > >> > Jul 23, 2009 10:26:07 PM org.smslib.helper.Logger logWarn > > >> > WARNING: GTW: modem.com15: CMS Error 500: Retrying... > > >> > Jul 23, 2009 10:26:14 PM org.smslib.helper.Logger logError > > >> > SEVERE: GTW: modem.com15: CMS Error 500: Quit retrying, message > > >> > lost... > > > >> > cheers. > > >> > On Jul 23, 10:21 pm, vash1282 <[email protected]> wrote: > > > >> > > Hi yaa!! > > >> > > IT IS port problem.. i fumbled the comm test application too i guess. > > >> > > didn't really knew how to test it. > > >> > > I finally just went to control panel, and see the modem list under > > >> > > Phones and Modems, and there it is.. the port it's using. > > >> > > I hope this useless bit of info can help the other extreme newbies > > >> > > who's googling for solution just like me =P > > > >> > > Anyway, I now have this in the logger.. but the it says msg failed > > >> > > and > > >> > > the sms never arrived.. what could be the cause? > > > >> > > Again, am grateful for your help so far Mr thanasis. > > >> > > Cheers. > > > >> > > Modem Information: > > >> > > Manufacturer: Nokia > > >> > > Model: Nokia 6680 > > >> > > Serial No: 355664000670459 > > >> > > SIM IMSI: ** MASKED ** > > >> > > Signal Level: 25% > > >> > > Battery Level: 0% > > > >> > > Jul 23, 2009 10:14:09 PM org.smslib.helper.Logger logWarn > > >> > > WARNING: sendMessage(): Gateway modem.com15 does not respond, marking > > >> > > for restart. > > > >> =========================================================================== > > >> ==== > > >> > > << OutboundMessage >> > > > >> --------------------------------------------------------------------------- > > >> ---- > > >> > > Gateway Id: * > > >> > > Encoding: 7-bit > > >> > > Date: Thu Jul 23 22:13:22 BST 2009 > > >> > > SMSC Ref No: > > >> > > Recipient: +075958406364 > > >> > > Dispatch Date: null > > >> > > Message Status: FAILED > > >> > > Validity Period (Hours): -1 > > >> > > Status Report: false > > >> > > Source / Destination Ports: -1 / -1 > > >> > > Flash SMS: false > > >> > > Text: Hello from SMSLib! > > >> > > PDU data: C8329BFD0699E5EF3668DA9C32D3E210 > > > >> =========================================================================== > > >> ==== > > > >> > > Now Sleeping - Hit <enter> to terminate. > > > >> > > On Jul 23, 9:41 pm, yul goon <[email protected]> wrote: > > > >> > > > H!!!! > > >> > > > The exception is no longer there.. but there's a new one T_T > > >> > > > anyway you were right, it's supposed to be port3.. i overlooked the > > >> > > > modem.com3 part. > > > >> > > > I have checked that the javacomm is installed properly..and using > > >> comm app > > >> > > > confirmed that it's on port 3, as per your advise. > > >> > > > Currently there is this error when compiling, it says error in > > >> restarting > > >> > > > and stopping gateway.. > > >> > > > when it says "javax.comm.PortInUseException: Port currently owned > > >> > > > by > > >> > > > org.smslib " > > >> > > > what other adjustment should I do to make this work? > > > >> > > > Thank you so much for yr time n attention so far. > > > >> > > > Cheers. > > > >> > > > Jul 23, 2009 8:43:51 PM org.smslib.helper.Logger logWarn > > >> > > > WARNING: Gateway: modem.com3 restarting. > > >> > > > Jul 23, 2009 8:43:51 PM org.smslib.helper.Logger logInfo > > >> > > > INFO: GTW: modem.com3: Stopping gateway... > > >> > > > Jul 23, 2009 8:43:51 PM org.smslib.helper.Logger logWarn > > >> > > > WARNING: Error while shutting down Gateway: modem.com3 > > >> > > > java.lang.NullPointerException > > >> > > > at org.smslib.AGateway.stopGateway(AGateway.java:312) > > >> > > > at > > >> org.smslib.modem.ModemGateway.stopGateway(ModemGateway.java:168) > > >> > > > at org.smslib.Service$WatchDog.process(Service.java:1387) > > >> > > > at > > >> org.smslib.threading.AServiceThread.run(AServiceThread.java:117) > > >> > > > Jul 23, 2009 8:43:51 PM org.smslib.helper.Logger logInfo > > >> > > > INFO: GTW: modem.com3: Starting gateway, using Generic AT Handler. > > >> > > > Jul 23, 2009 8:43:51 PM org.smslib.helper.Logger logInfo > > >> > > > INFO: GTW: modem.com3: Opening: COM3 @57600 > > >> > > > Jul 23, 2009 8:43:51 PM org.smslib.helper.Logger logError > > >> > > > SEVERE: Error while starting Gateway: modem.com3 > > >> > > > org.smslib.GatewayException: Comm library exception: > > >> > > > java.lang.RuntimeException: javax.comm.PortInUseException: Port > > >> currently > > >> > > > owned by org.smslib > > >> > > > at > > > >> org.smslib.modem.SerialModemDriver.connectPort(SerialModemDriver.java:97) > > >> > > > at > > >> org.smslib.modem.AModemDriver.connect(AModemDriver.java:110) > > >> > > > at > > >> org.smslib.modem.ModemGateway.startGateway(ModemGateway.java:158) > > >> > > > at org.smslib.Service$WatchDog.process(Service.java:1397) > > >> > > > at > > ... > > read more » --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "SMSLib User 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 -~----------~----~----~----~------~----~------~--~---
