Ok I solved seeing the DEBUG logs of org.smslib.

The problem was that this modem return an error if the sim is not inside.

I hope this is useful to someone with the same problem.

By

Il giorno lunedì 16 febbraio 2015 18:54:02 UTC+1, Daniele Renda ha scritto:
>
> Hi, following the compatibility list 
> <http://smslib.org/doc/compatibility/> I purchased 2 Wavecom M1306B. One 
> with Q2403 chip and another with Q2406 chip.
>
> THis is the result of autodetection :
>
> SMSLib - A universal API for sms messaging
> Copyright (c) 2002-2014, smslib.org
> This software is distributed under the terms of the
> Apache v2.0 License (http://www.apache.org/licenses/LICENSE-2.0.html).
> SMSLib Version: dev-SNAPSHOT
> OS Version: Linux / arm / 3.18.5+
> JAVA Version: 1.8.0_33
> JAVA Runtime Version: 1.8.0_33-b05
> JAVA Vendor: Oracle Corporation
> JAVA Class Path: smslib-dep-dev-20140810.184201-3-all.jar
>
> Running port autodetection / diagnostics...
>
> WARNING:  RXTX Version mismatch
>         Jar version = RXTX-2.2pre1
>         native lib Version = RXTX-2.2pre2
> RXTX Warning:  Removing stale lock file. /var/lock/LCK..ttyUSB0
> ====== Found port: /dev/ttyUSB0
> >> Trying at   9600...No device...
> >> Trying at  14400...No device... (Invalid Parameter)
> >> Trying at  19200...No device...
> >> Trying at  28800...No device... (Invalid Parameter)
> >> Trying at  33600...No device... (Invalid Parameter)
> >> Trying at  38400...No device... (Invalid Parameter)
> >> Trying at  56000...No device... (Invalid Parameter)
> >> Trying at  57600...No device...
> >> Trying at 115200...  Getting Info... Found:  MULTIBAND  900E  1800
>
> Test complete.
>
>
> So I'm creating the modem in this way:
>
> Modem modem = new Modem("modem1", "/dev/ttyUSB0", "115200", "", "","", 
> "SM");
>
> But unfortunally when I start the application I've this error:
>
> WARNING:  RXTX Version mismatch
>         Jar version = RXTX-2.2pre1
>         native lib Version = RXTX-2.2pre2
> 16/02/2015 18:36:08 ERROR AbstractModemDriver:174 - /dev/ttyUSB0:115200 
> ERR==> ERROR
> 16/02/2015 18:36:10 ERROR AbstractModemDriver:174 - /dev/ttyUSB0:115200 
> ERR==> ERROR
> 16/02/2015 18:36:12 ERROR AbstractModemDriver:174 - /dev/ttyUSB0:115200 
> ERR==> ERROR
> 16/02/2015 18:36:13 ERROR AbstractModemDriver:174 - /dev/ttyUSB0:115200 
> ERR==> ERROR
> 16/02/2015 18:36:14 ERROR AbstractGateway:186 - Unhandled Exception!
> java.io.IOException: Modem does not correspond correctly, giving up...
>         at org.smslib.gateway.modem.driver.AbstractModemDriver.
> initializeModem(AbstractModemDriver.java:319)
>         at org.smslib.gateway.modem.Modem._start(Modem.java:86)
>         at org.smslib.gateway.AbstractGateway.start(AbstractGateway.java:
> 176)
>         at org.smslib.Service.registerGateway(Service.java:533)
>         at it.pianetatecno.gsmgateway.GsmGatewayServerApplication.modem(
> GsmGatewayServerApplication.java:48)
>         at it.pianetatecno.gsmgateway.
> GsmGatewayServerApplication$$EnhancerBySpringCGLIB$$e0247305.CGLIB$modem$1
> (<generated>)
>         at it.pianetatecno.gsmgateway.
> GsmGatewayServerApplication$$EnhancerBySpringCGLIB$$e0247305$$FastClassBySpringCGLIB$$e5e5f564
> .invoke(<generated>)
>         at org.springframework.cglib.proxy.MethodProxy.invokeSuper(
> MethodProxy.java:228
> ...

-- 
You received this message because you are subscribed to the Google Groups 
"SMSLib Discussion Group" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/smslib/78f4c0c5-88b2-4a84-955d-16e88bb3c143%40googlegroups.com.

Reply via email to