No. I haven't worked with MDA. I was on sony ericsson and a USB cable. But I had the same port error, so I pointed out the way I fixed it.
On Feb 9, 11:58 am, Jan Hulst <[email protected]> wrote: > "If you do terminate, the port will get released by the smslib." > > I noticed that too. > > "You can do something like plug-out the serial connection and plug-in > again. If this wont work, just restart the PC you working on." > > I have done that. I have come to the comclusions that the MDA Compact > III is not compatible with smslib. > Or are you saying in post 'feb 4, 3:51 pm' that you worked with an MDA > yourself? > > On Feb 6, 3:45 pm, Pradeepm <[email protected]> wrote: > > > This should be because you wouldn't have terminated the program > > (CommTest.java or SendMessage.java) before try the next run. > > > If you do terminate, the port will get released by the smslib. > > > You can do something like plug-out the serial connection and plug-in > > again. If this wont work, just restart the PC you working on. > > > --Pradeep > > > On Feb 5, 6:46 am, Jan Hulst <[email protected]> wrote: > > > > No, that;s not what you mean, you mean > > > this:http://www.weethet.nl/dutch/gsm_smscnumbers.php > > > Holland, Libertel/Vodafone +31-6540881000 > > > > I changed the SMSC number accordingly (316540881000), now I get this: > > > > Example: Send message from a serial gsm modem. > > > 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 > > > Version: 3.3.3 > > > 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:92) > > > at org.smslib.modem.AModemDriver.connect(AModemDriver.java:110) > > > at > > > org.smslib.modem.ModemGateway.startGateway(ModemGateway.java:126) > > > at org.smslib.Service$1Starter.run(Service.java:222) > > > > No longer is the port owned by some unknown windows application but by > > > smslib itself, but it is not able to send a message!! > > > > On Feb 5, 12:29 pm, Jan Hulst <[email protected]> wrote: > > > > > Adding: gateway.setSimPin2("0000"); > > > > does not make a difference. > > > > > Not sure what you mean with SMSC number... > > > > I added the phone number of the umts datacard. Is that what you mean? > > > > > I get a slightly different result: > > > > > 0 [main] WARN org.smslib - GTW: modem.com4: CMS Error 500: > > > > Retrying... > > > > 5992 [main] WARN org.smslib - GTW: modem.com4: CMS Error 500: > > > > Retrying... > > > > 11890 [main] ERROR org.smslib - GTW: modem.com4: CMS Error 500: Quit > > > > retrying, message lost... > > > > > =============================================================================== > > > > << OutboundMessage >> > > > > ------------------------------------------------------------------------------- > > > > Gateway Id: > > > > Encoding: 7-bit > > > > Date: Thu Feb 05 12:22:26 CET 2009 > > > > SMSC Ref No: null > > > > Recipient: +316xxxxxxxx > > > > 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 Feb 5, 11:07 am, Thanasis <[email protected]> wrote: > > > > > > Yes, this makes sense. > > > > > > Ok, error 330 is SMSC unknown. There are two reasons for this: > > > > > > 1) It might be that your modem requires the PIN2 as well - Hawei's > > > > > behave in a similar way. There is a setSimPin2() method that you may > > > > > want to set as well before connection. > > > > > 2) If you still get error 330, try to set the SMSC number by hand. Use > > > > > the gateway's setSmscNumber() method. > > > > > > On Feb 5, 11:58 am, Jan Hulst <[email protected]> wrote: > > > > > > > Wait a minute, interesting new development!!! > > > > > > > I went into the task manager and killed all processes which had > > > > > > something to do with vodafone and windows mobile device center (the > > > > > > windows vista followup of ActiveSync). > > > > > > > The I ran SendMessage again for COM4; look what I got: > > > > > > > Example: Send message from a serial gsm modem. > > > > > > 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 > > > > > > Version: 3.3.3 > > > > > > > Modem Information: > > > > > > Manufacturer: Novatel Wireless Incorporated > > > > > > Model: Merlin U630 (HW REV Rev 2) > > > > > > Serial No: 354626005353564 > > > > > > SIM IMSI: ** MASKED ** > > > > > > Signal Level: 67% > > > > > > Battery Level: 100% > > > > > > > 0 [main] WARN org.smslib - GTW: modem.com4: CMS Error 330: > > > > > > Retrying... > > > > > > 4210 [main] WARN org.smslib - GTW: modem.com4: CMS Error 330: > > > > > > Retrying... > > > > > > 8413 [main] ERROR org.smslib - GTW: modem.com4: CMS Error 330: Quit > > > > > > retrying, message lost... > > > > > > =============================================================================== > > > > > > << OutboundMessage >> > > > > > > ------------------------------------------------------------------------------- > > > > > > Gateway Id: > > > > > > Encoding: 7-bit > > > > > > Date: Thu Feb 05 10:33:34 CET 2009 > > > > > > SMSC Ref No: null > > > > > > Recipient: +316xxxxxxxx <-- made nr invisible > > > > > > 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 > > > > > > =============================================================================== > > > > > > > I had completely failed to realise that my Vodafone UMTS datacard > > > > > > (PCM- > > > > > > CIA slot) has GSM/SMS functionality as well, which is used by the > > > > > > vodafone helpdesk for support like sending a new password (this > > > > > > functionality was used once while I was on the phone with said > > > > > > helpdesk). It would be fine with me as well if I could use this > > > > > > facility instead of a mobile phone. > > > > > > > When I run SendMessage with the full functioning vodafone software I > > > > > > get the dreaded: > > > > > > > Example: Send message from a serial gsm modem. > > > > > > 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 > > > > > > Version: 3.3.3 > > > > > > org.smslib.GatewayException: Comm library exception: > > > > > > java.lang.RuntimeException: javax.comm.PortInUseException: Port > > > > > > currently owned by Unknown Windows Application > > > > > > at org.smslib.modem.SerialModemDriver.connectPort > > > > > > (SerialModemDriver.java:92) > > > > > > at > > > > > > org.smslib.modem.AModemDriver.connect(AModemDriver.java:110) > > > > > > at > > > > > > org.smslib.modem.ModemGateway.startGateway(ModemGateway.java:126) > > > > > > at org.smslib.Service$1Starter.run(Service.java:222) > > > > > > > In other words, I must kill the vodafone software in order to have > > > > > > smslib work, which makes sense. > > > > > > > Then why did I get: > > > > > > > 8413 [main] ERROR org.smslib - GTW: modem.com4: CMS Error 330: Quit > > > > > > retrying, message lost... > > > > > > > On Feb 5, 10:01 am, Jan Hulst <[email protected]> wrote: > > > > > > > > "From your tests, I really believe that the COM4 port is the port > > > > > > > that > > > > > > > should be used, but it seems that somebody (Vista? - a bundled > > > > > > > application?) is holding its port - that's why you get ownership > > > > > > > errors." > > > > > > > > But in post feb 4, 9:23 pm I showed that if you close the UMTS > > > > > > > program/ > > > > > > > driver (with which I write these posts) that this > > > > > > > PortInUseException > > > > > > > disappears for COM5 and that I get a > > > > > > > "org.smslib.TimeoutException: No > > > > > > > response from device." error when I use SendMessage on COM5. > > > > > > > > Question: can you provide me with a few names of cheap telephones > > > > > > > that > > > > > > > have proved to work with smslib (both send and receive)? I'll see > > > > > > > if I > > > > > > > can buy one in a second hand shop. Maybe my phones are not > > > > > > > suitable > > > > > > > for this exercise. > > > > > > > > On Feb 5, 8:00 am, Thanasis <[email protected]> wrote: > > > > > > > > > Hmm... and I thought we were at the end... :( > > > > > > > > > Its natural for virtual com ports (i.e. usb or other mapped > > > > > > > > ports) to > > > > > > > > appear and disappear, following the "existence" of the device > > > > > > > > they > > > > > > > > refer to. > > > > > > > > > From your tests, I really believe that the COM4 port is the > > > > > > > > port that > > > > > > > > should be used, but it seems that somebody (Vista? - a bundled > > > > > > > > application?) is holding its port - that's why you get ownership > > > > > > > > errors. > > > > > > > > > I am running out of ideas... Anybody else out there??? > > > > > > > > > On Feb 4, 11:07 pm, Jan Hulst <[email protected]> wrote: > > > > > > > > > > Nope... if I close the UMTS driver and pull the UMTS datacard > > > > > > > > > out of > > > > > > > > > the PCM-CIA slot then I get this: > > > > > > > > > > Example: Send message from a serial gsm modem. > > > > > > > > > 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 > > ... > > 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 -~----------~----~----~----~------~----~------~--~---
