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... Found: AT+CGMMERROR
> Trying at 115200... Getting Info... Found: AT+CGMMERROR
>
> Found port: COM4
> Trying at 9600... no device found
> (javax.comm.PortInUseException: Port currently owned by Unknown
> Windows Application)
> Trying at 14400... no device found
> (javax.comm.PortInUseException: Port currently owned by Unknown
> Windows Application)
> Trying at 19200... no device found
> (javax.comm.PortInUseException: Port currently owned by Unknown
> Windows Application)
> Trying at 28800... no device found
> (javax.comm.PortInUseException: Port currently owned by Unknown
> Windows Application)
> Trying at 33600... no device found
> (javax.comm.PortInUseException: Port currently owned by Unknown
> Windows Application)
> Trying at 38400... no device found
> (javax.comm.PortInUseException: Port currently owned by Unknown
> Windows Application)
> Trying at 56000... no device found
> (javax.comm.PortInUseException: Port currently owned by Unknown
> Windows Application)
> Trying at 57600... no device found
> (javax.comm.PortInUseException: Port currently owned by Unknown
> Windows Application)
> Trying at 115200... no device found
> (javax.comm.PortInUseException: Port currently owned by Unknown
> Windows Application)
>
> Found port: COM5
> Trying at 9600... no device found
> (javax.comm.PortInUseException: Port currently owned by Unknown
> Windows Application)
> Trying at 14400... no device found
> (javax.comm.PortInUseException: Port currently owned by Unknown
> Windows Application)
> Trying at 19200... no device found
> (javax.comm.PortInUseException: Port currently owned by Unknown
> Windows Application)
> Trying at 28800... no device found
> (javax.comm.PortInUseException: Port currently owned by Unknown
> Windows Application)
> Trying at 33600... no device found
> (javax.comm.PortInUseException: Port currently owned by Unknown
> Windows Application)
> Trying at 38400... no device found
> (javax.comm.PortInUseException: Port currently owned by Unknown
> Windows Application)
> Trying at 56000... no device found
> (javax.comm.PortInUseException: Port currently owned by Unknown
> Windows Application)
> Trying at 57600... no device found
> (javax.comm.PortInUseException: Port currently owned by Unknown
> Windows Application)
> Trying at 115200... no device found
> (javax.comm.PortInUseException: Port currently owned by Unknown
> Windows Application)
>
> Test complete.
>
> SendMessage gives both for COM4 and COM5 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)
>
> Which makes sense.
>
> Copying BTW win32com.dll to windows/system32 does not make a
> difference for either CommTest or SendMessage.
>
> > back to my older one: T-Mobile - MDA Compact
> > IIIhttp://www.itreviews.co.uk/hardware/h1136.htm since they older one
> > was 'seen' by windows, both on my laptop and desktop; the Compact IV
> > was seen on neither.
>
> > My phone is connected to usb, but on the phone side the connector is
> > smaller than usb (like in these digital camera's from canon).
>
> > I will check your suggestion regarding JavaComm.dl.... first here is
> > post I was preparing:
>
> > I googled on “Error 2 opening registry key HARDWARE\DEVICEMAP
> > \SERIALCOM”
>
> > This link might provide a
> > clue:http://forums.sun.com/thread.jspa?threadID=534678
>
> > Open regedt32 on my desktop (acer aspire desktop x3200) and look for
> > LOCAL_MACHINE -> HARDWARE -> DEVICEMAP -> SERIALCOMM
> > then there is no entry for SERIALCOM !!!
>
> > On my laptop however (both run Vista) there is an entry with values
> > COM3, COM4 and COM5.
>
> > Sigh.
>
> > Installed SMSlib on laptop.
> > First I ran CommTest.java.
>
> > Result:
>
> > 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.
> > (no COM4, COM5)
> > Next, changed parameters in SendMessage to COM3, baudrate 9600. Tried
> > all 4 usb connectors, but always got a time-out:
>
> > 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)
>
> > Again the Windows Mobile Device Center recognises the GSM correctly!
>
> > On Feb 4, 8:00 pm, Thanasis <[email protected]> wrote:
>
> > > Jan,
>
> > > Is this the phone in
> > > question:http://www.mobilegazette.com/t-mobile-mda-compact-iv-08x06x04.htm
>
> > > Your installation seems ok. Try to copy the JavaComm .dll in the
> > > windows/system32 (is there any such dir in Vista?) to see if it makes
> > > any difference.
>
> > > Your phone is a USB phone, right? I don't know if Pradeep's phone is a
> > > serial one and if we have a problem in USB ports in general...
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---