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)
        at org.springframework.context.annotation.
ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(
ConfigurationClassEnhancer.java:309)
        at it.pianetatecno.gsmgateway.
GsmGatewayServerApplication$$EnhancerBySpringCGLIB$$e0247305.modem(<
generated>)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:483)
        at org.springframework.beans.factory.support.
SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162
)
        at org.springframework.beans.factory.support.ConstructorResolver.
instantiateUsingFactoryMethod(ConstructorResolver.java:588)
        at org.springframework.beans.factory.support.
AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(
AbstractAutowireCapableBeanFactory.java:1111)
        at org.springframework.beans.factory.support.
AbstractAutowireCapableBeanFactory.createBeanInstance(
AbstractAutowireCapableBeanFactory.java:1006)
        at org.springframework.beans.factory.support.
AbstractAutowireCapableBeanFactory.doCreateBean(
AbstractAutowireCapableBeanFactory.java:504)
        at org.springframework.beans.factory.support.
AbstractAutowireCapableBeanFactory.createBean(
AbstractAutowireCapableBeanFactory.java:476)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.
getObject(AbstractBeanFactory.java:303)
        at org.springframework.beans.factory.support.
DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:
230)
        at org.springframework.beans.factory.support.AbstractBeanFactory.
doGetBean(AbstractBeanFactory.java:299)
        at org.springframework.beans.factory.support.AbstractBeanFactory.
getBean(AbstractBeanFactory.java:194)
        at org.springframework.beans.factory.support.
DefaultListableBeanFactory.preInstantiateSingletons(
DefaultListableBeanFactory.java:762)
        at org.springframework.context.support.AbstractApplicationContext.
finishBeanFactoryInitialization(AbstractApplicationContext.java:757)
        at org.springframework.context.support.AbstractApplicationContext.
refresh(AbstractApplicationContext.java:480)
        at org.springframework.boot.context.embedded.
EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118
)
        at org.springframework.boot.SpringApplication.refresh(
SpringApplication.java:691)
        at org.springframework.boot.SpringApplication.run(SpringApplication.
java:321)
        at it.pianetatecno.gsmgateway.GsmGatewayServerApplication.main(
GsmGatewayServerApplication.java:22)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:483)
        at org.springframework.boot.loader.MainMethodRunner.run(
MainMethodRunner.java:53)
        at java.lang.Thread.run(Thread.java:745)


I've the same problem with both modems. Please note that with Huawei E220 
all works.

Thanks

-- 
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/6880c31b-b368-489d-8fe2-a53a4da95aca%40googlegroups.com.
  • [smslib] Error using Wavecom M13... Daniele Renda via SMSLib Discussion Group

Reply via email to