"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
> > > (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)
>
> > > I'll see if I can close some applications...
>
> > > On Feb 4, 9:29 pm, Thanasis <[email protected]> wrote:
>
> > > > Hey, we are getting somewhere!
>
> > > > Set the gateway definition to COM4 and 115200. Leave the Nokia as is.
> > > > Any luck?
>
> > > > On Feb 4, 10:23 pm, Jan Hulst <[email protected]> wrote:
>
> > > > > I killed all possible applications and then CommTest gave:
>
> > > > > 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
>
> > > > > Found port: COM4
> > > > >        Trying at   9600...  Getting Info... Found: Merlin U630 (HW REV
> > > > > Rev 2)
> > > > >        Trying at  14400...  no device found
> > > > > (javax.comm.UnsupportedCommOperationException: Unsupported baud rate)
> > > > >        Trying at  19200...  Getting Info... Found: Merlin U630 (HW REV
> > > > > Rev 2)
> > > > >        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: Merlin U630 (HW REV
> > > > > Rev 2)
> > > > >        Trying at  56000...  no device found
> > > > > (javax.comm.UnsupportedCommOperationException: Unsupported baud rate)
> > > > >        Trying at  57600...  Getting Info... Found: Merlin U630 (HW REV
> > > > > Rev 2)
> > > > >        Trying at 115200...  Getting Info... Found: Merlin U630 (HW REV
> > > > > Rev 2)
>
> > > > > Found port: COM5
> > > > >        Trying at   9600...  no device found
> > > > >        Trying at  14400...  no device found
> > > > > (javax.comm.UnsupportedCommOperationException: Unsupported baud rate)
> > > > >        Trying at  19200...  no device found
> > > > >        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...  no device found
> > > > >        Trying at  56000...  no device found
> > > > > (javax.comm.UnsupportedCommOperationException: Unsupported baud rate)
> > > > >        Trying at  57600...  no device found
> > > > >        Trying at 115200...  no device found
>
> > > > > Test complete.
>
> > > > > At least I learned that COM4 is the PCM-CIA slot for my UMTS data card
> > > > > and that I should use COM5, 9600 baud rate.
>
> > > > > Question: does it matter in
>
> > > > > new SerialModemGateway("modem.com5", "COM5", 9600, "Nokia", "6310i");
>
> > > > > which value one takes for the 4th and 5th parameters (Nokia & 6310i)?
>
> > > > > Tried again to use SendMessage for COM5 on all 4 USB ports. Result in
> > > > > all 4 cases:
>
> > > > > 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.TimeoutException: No response from device.
> > > > >         at 
> > > > > org.smslib.modem.AModemDriver$CharQueue.get(AModemDriver.java:519)
> > > > >         at 
> > > > > org.smslib.modem.AModemDriver.getResponse(AModemDriver.java:317)
> > > > >         at 
> > > > > org.smslib.modem.athandler.ATHandler.getSimStatus(ATHandler.java:
> > > > > 130)
> > > > >         at 
> > > > > org.smslib.modem.AModemDriver.connect(AModemDriver.java:127)
> > > > >         at 
> > > > > org.smslib.modem.ModemGateway.startGateway(ModemGateway.java:126)
> > > > >         at org.smslib.Service$1Starter.run(Service.java:222)
>
> > > > > On Feb 4, 9:03 pm, Jan Hulst <[email protected]> wrote:
>
> > > > > > "Try to copy the JavaComm .dll in the windows/system32 (is there any
> > > > > > such dir in Vista?) to see if it makes any difference."
>
> > > > > > Do you mean the win32com.dll?
>
> > > > > > Yes, there is a windows/system32 dir in Vista...
>
> > > > > > In the mean time all 3 COM ports from the registry are now visible 
> > > > > > in
> > > > > > CommTest:
>
> > > > > > 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...
>
> ...
>
> 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