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 Site:http://smslib.org
> > > > > > Version: 3.3.3
> > > > > > org.smslib.GatewayException: Comm library exception:
> > > > > > java.lang.RuntimeException: javax.comm.NoSuchPortException
> > > > > >         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)
>
> > > > > > CommTest only sees:
>
> > > > > > Searching for devices...
>
> > > > > > Found port: COM3
> > > > > >        Trying at   9600...  Getting Info... Found: AT+CGMMERROR
> > > > > >        Trying at  14400...  no device found
> > > > > > (javax.comm.UnsupportedCommOperationException: Unsupported baud 
> > > > > > rate)
> > > > > >        Trying at  19200...  Getting Info... Found: AT+CGMMERROR
> > > > > >        Trying at  28800...  no device found
> > > > > > (javax.comm.UnsupportedCommOperationException: Unsupported baud 
> > > > > > rate)
> > > > > >        Trying at  33600...  no device found
> > > > > > (javax.comm.UnsupportedCommOperationException: Unsupported baud 
> > > > > > rate)
> > > > > >        Trying at  38400...  Getting Info... Found: AT+CGMMERROR
> > > > > >        Trying at  56000...  no device found
> > > > > > (javax.comm.UnsupportedCommOperationException: Unsupported baud 
> > > > > > rate)
> > > > > >        Trying at  57600...  Getting Info... Found: AT+CGMMERROR
> > > > > >        Trying at 115200...  Getting Info... Found: AT+CGMMERROR
>
> > > > > > Test complete.
> > > > > >  COM4/COM5 no longer visible.
>
> > > > > > Here btw are my registry entries for SERIALCOMM:
> > > > > > \Device\AgereModem5     COM3
> > > > > > \Device\Serial0                   COM4
> > > > > > \Device\Serial1                   COM5
>
> > > > > > When I check all the entries in device  control I get:
> > > > > > Modems/Agere System HDA Modems  COM3
> > > > > > Novatel Wireless UMTS Modem Primary Port        COM4
> > > > > > Novatel Wireless UMTS Modem Secondary Port      COM5
>
> > > > > > Should not my 4 USB ports have COMx-numbers of their own?
>
> > > > > > On Feb 4, 9:56 pm, Jan Hulst <[email protected]> wrote:
>
> > > > > > > "Set the gateway definition to COM4 and 115200. Leave the Nokia as
> > > > > > > is."
>
> > > > > > > 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 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
>
> ...
>
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to