GSM 3G Modem installation issues

Any communication concerning the SMS module

Moderators: hugo, alexandre, rmvanarkel

Post Reply
agutthon777
Posts: 13
Joined: Mon Oct 21, 2013 8:20 am

GSM 3G Modem installation issues

Post by agutthon777 » Mon Oct 21, 2013 11:40 am

Hello..

I am new to cyclos and to this forum. I need some advice or direction in getting the GSM modem operating. I have successfully got both Cyclos and the SMS simulator up and running. I have verified that all operations are working correctly. I can retrieve account info and do member to member money transfer. My problem is getting the GSM modem to work with it. I have a Huawei E160 3G modem and i have verified that is hayes compatible.

I have included the RXTX comm jar file in the java/jre/lib/ext and i have placed the rxtxserial.dll in the java/jre/bin folder. I have copied the sms simulator files base.driverconfig.properties file along with the config.xml file into the modem folder.

I have moved the sms simulator folder out the webapps directory of tom cat and moved the modem folder in its place. I renamed the modem folder to sms. I have configured the modem driver config by setting the com port at which the modem is using and also selecting the make and model of the gsm modem. I have searched the net looking for a solution and I have not found one. It appears that Java can not find the com port that the modem is using. I have verified that the port is correct by using puddy.exe ( telnet software ) on the correct com port of the modem and sending a ATZ command to the modem. The modem responded with "ok". Can some one tell me what i am doing incorrectly or point me in the right direction.

Below is my SmsContollerDriver log.

2013-10-21 17:21:24 INFO DriverEngine - Marking not delivered as failed messages...
2013-10-21 17:21:25 INFO smslib - 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
2013-10-21 17:21:25 INFO smslib - Version: 3.5.1
2013-10-21 17:21:25 INFO smslib - JRE Version: 1.6.0_34
2013-10-21 17:21:25 INFO smslib - JRE Impl Version: 20.9-b04
2013-10-21 17:21:25 INFO smslib - O/S: Windows 7 / x86 / 6.1
2013-10-21 17:21:25 DEBUG smslib - Initialized.
2013-10-21 17:21:25 DEBUG smslib - Running...
2013-10-21 17:21:25 DEBUG smslib - NotifyQueueManager running...
2013-10-21 17:21:25 INFO smslib - Queue directory not defined. Queued messages will not be saved to filesystem.
2013-10-21 17:21:25 DEBUG smslib - Initialized.
2013-10-21 17:21:25 DEBUG smslib - Initialized.
2013-10-21 17:21:25 DEBUG smslib - Running...
2013-10-21 17:21:25 DEBUG smslib - Running...
2013-10-21 17:21:25 DEBUG smslib - DelayQueueManager running...
2013-10-21 17:21:25 INFO smslib - GTW: aioDriver: Starting gateway, using Huawei (Generic) AT Handler.
2013-10-21 17:21:25 INFO smslib - GTW: aioDriver: Using polled serial port mode.
2013-10-21 17:21:25 INFO smslib - GTW: aioDriver: Opening: /dev/COM1 @9600
2013-10-21 17:21:25 INFO smslib - GTW: aioDriver: Closing: /dev/COM1 @9600
2013-10-21 17:21:26 DEBUG smslib - NotifyQueueManager end...
2013-10-21 17:21:26 DEBUG smslib - DelayQueueManager end...
2013-10-21 17:21:26 DEBUG smslib - Running...
2013-10-21 17:21:26 DEBUG smslib - NotifyQueueManager running...
2013-10-21 17:21:26 DEBUG smslib - Stopped.
2013-10-21 17:21:26 INFO smslib - GTW: aioDriver: Stopping gateway...
2013-10-21 17:21:26 DEBUG smslib - NotifyQueueManager end...
2013-10-21 17:21:26 INFO smslib - GTW: aioDriver: Closing: /dev/COM1 @9600
2013-10-21 17:21:26 INFO smslib - GTW: aioDriver: Gateway stopped.
2013-10-21 17:21:26 DEBUG smslib - Running...
2013-10-21 17:21:26 DEBUG smslib - NotifyQueueManager running...
2013-10-21 17:21:26 DEBUG smslib - NotifyQueueManager end...
2013-10-21 17:21:26 DEBUG smslib - Stopped.
2013-10-21 17:21:26 ERROR ModemDriverEngine - Error starting up the sms service
org.smslib.GatewayException: Comm library exception: java.lang.RuntimeException: gnu.io.NoSuchPortException
at org.smslib.modem.SerialModemDriver.connectPort(SerialModemDriver.java:102)
at org.smslib.modem.AModemDriver.connect(AModemDriver.java:114)
at org.smslib.modem.ModemGateway.startGateway(ModemGateway.java:189)
at org.smslib.Service$1Starter.run(Service.java:276)
2013-10-21 17:21:26 INFO DefaultListableBeanFactory - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@d058d1: defining beans [cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,cxf.config0,securityProperties,org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0,cipherHelper,logUtils,unmarshaller,configResource,controllerConfig,facade,controllerServiceLocalLocator,driverServiceLocator,cyclosWsManager,driversWsManager,langManager,sessionHandler,removeExiredSessionsScheduler,messageSource,errorCodeVerifier,help,helpErrorHandler,infoText,infoTextErrorHandler,registration,registrationErrorHandler,performPayment,performPaymentErrorHandler,requestPayment,requestPaymentErrorHandler,accountDetails,accountDetailsErrorHandler,confirm,confirmErrorHandler,messageErrorHandler,org.springframework.aop.config.internalAutoProxyCreator,controllerDaoOperation,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0,controllerQuerydslConfiguration,messageLogDao,sessionDao,controlSessionDao,cyclosInstanceValidationInterceptor,driverInstanceValidationInterceptor,smsSenderWebServiceImpl,smsSenderWebService,controllerServiceImpl,controller,paymentRequestRxImpl,paymentRequestRx,baseProperties,driverServiceImpl,authInterceptor,driver,driverServiceLocalLocator,controllerServiceLocator,engine,smsDigestCleanerTask,messageFilter,toControllerMessageDispatcher,phoneNumberHelper,smsReceiverExecutor,taskScheduler,driverDaoOperation,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#1,driverQuerydslConfiguration,messageDao,smsDigestDao,txManager,querydslTemplates,txAdvice,dataSource,__dwrConfiguration,__monitorDwrService,monitorDwrService,smsProperties,org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#1,monitorProperties,org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#2,accessControlManager]; root of factory hierarchy
2013-10-21 17:21:26 INFO ThreadPoolTaskExecutor - Shutting down ExecutorService 'smsReceiverExecutor'
2013-10-21 17:21:26 INFO ThreadPoolTaskScheduler - Shutting down ExecutorService 'taskScheduler'
2013-10-21 17:21:26 ERROR ContextLoader - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'facade' defined in class path resource [nl/strohalm/cyclos/controller/spring/core.xml]: Cannot resolve reference to bean 'driversWsManager' while setting bean property 'driversWsManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'driversWsManager' defined in class path resource [nl/strohalm/cyclos/controller/spring/core.xml]: Cannot resolve reference to bean 'driverServiceLocator' while setting bean property 'driverServiceLocator'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'driverServiceLocator' defined in class path resource [nl/strohalm/cyclos/controller/spring/core.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'driverServiceLocalLocator' defined in class path resource [nl/strohalm/cyclos/driver/spring/driverCore.xml]: Cannot resolve reference to bean 'driverServiceImpl' while setting bean property 'driverWebService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'driverServiceImpl' defined in class path resource [nl/strohalm/cyclos/driver/spring/driverCore.xml]: Cannot resolve reference to bean 'engine' while setting bean property 'driverEngine'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'engine' defined in class path resource [nl/strohalm/cyclos/driver/spring/driverCore.xml]: Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanInitializationException: Error starting up the sms service; nested exception is org.smslib.GatewayException: Comm library exception: java.lang.RuntimeException: gnu.io.NoSuchPortException
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1360)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1118)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:609)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:469)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1079)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'driversWsManager' defined in class path resource [nl/strohalm/cyclos/controller/spring/core.xml]: Cannot resolve reference to bean 'driverServiceLocator' while setting bean property 'driverServiceLocator'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'driverServiceLocator' defined in class path resource [nl/strohalm/cyclos/controller/spring/core.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'driverServiceLocalLocator' defined in class path resource [nl/strohalm/cyclos/driver/spring/driverCore.xml]: Cannot resolve reference to bean 'driverServiceImpl' while setting bean property 'driverWebService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'driverServiceImpl' defined in class path resource [nl/strohalm/cyclos/driver/spring/driverCore.xml]: Cannot resolve reference to bean 'engine' while setting bean property 'driverEngine'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'engine' defined in class path resource [nl/strohalm/cyclos/driver/spring/driverCore.xml]: Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanInitializationException: Error starting up the sms service; nested exception is org.smslib.GatewayException: Comm library exception: java.lang.RuntimeException: gnu.io.NoSuchPortException
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1360)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1118)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
... 39 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'driverServiceLocator' defined in class path resource [nl/strohalm/cyclos/controller/spring/core.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'driverServiceLocalLocator' defined in class path resource [nl/strohalm/cyclos/driver/spring/driverCore.xml]: Cannot resolve reference to bean 'driverServiceImpl' while setting bean property 'driverWebService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'driverServiceImpl' defined in class path resource [nl/strohalm/cyclos/driver/spring/driverCore.xml]: Cannot resolve reference to bean 'engine' while setting bean property 'driverEngine'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'engine' defined in class path resource [nl/strohalm/cyclos/driver/spring/driverCore.xml]: Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanInitializationException: Error starting up the sms service; nested exception is org.smslib.GatewayException: Comm library exception: java.lang.RuntimeException: gnu.io.NoSuchPortException
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
... 49 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'driverServiceLocalLocator' defined in class path resource [nl/strohalm/cyclos/driver/spring/driverCore.xml]: Cannot resolve reference to bean 'driverServiceImpl' while setting bean property 'driverWebService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'driverServiceImpl' defined in class path resource [nl/strohalm/cyclos/driver/spring/driverCore.xml]: Cannot resolve reference to bean 'engine' while setting bean property 'driverEngine'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'engine' defined in class path resource [nl/strohalm/cyclos/driver/spring/driverCore.xml]: Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanInitializationException: Error starting up the sms service; nested exception is org.smslib.GatewayException: Comm library exception: java.lang.RuntimeException: gnu.io.NoSuchPortException
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1360)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1118)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1102)
at nl.strohalm.cyclos.driver.DriverServiceLocatorImpl.setApplicationContext(DriverServiceLocatorImpl.java:79)
at org.springframework.context.support.ApplicationContextAwareProcessor.invokeAwareInterfaces(ApplicationContextAwareProcessor.java:117)
at org.springframework.context.support.ApplicationContextAwareProcessor.postProcessBeforeInitialization(ApplicationContextAwareProcessor.java:92)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:394)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1448)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
... 55 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'driverServiceImpl' defined in class path resource [nl/strohalm/cyclos/driver/spring/driverCore.xml]: Cannot resolve reference to bean 'engine' while setting bean property 'driverEngine'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'engine' defined in class path resource [nl/strohalm/cyclos/driver/spring/driverCore.xml]: Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanInitializationException: Error starting up the sms service; nested exception is org.smslib.GatewayException: Comm library exception: java.lang.RuntimeException: gnu.io.NoSuchPortException
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1360)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1118)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
... 71 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'engine' defined in class path resource [nl/strohalm/cyclos/driver/spring/driverCore.xml]: Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanInitializationException: Error starting up the sms service; nested exception is org.smslib.GatewayException: Comm library exception: java.lang.RuntimeException: gnu.io.NoSuchPortException
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1455)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
... 81 more
Caused by: org.springframework.beans.factory.BeanInitializationException: Error starting up the sms service; nested exception is org.smslib.GatewayException: Comm library exception: java.lang.RuntimeException: gnu.io.NoSuchPortException
at nl.strohalm.cyclos.driver.modem.engine.ModemDriverEngine.doStartUp(ModemDriverEngine.java:114)
at nl.strohalm.cyclos.driver.engine.DriverEngine.startUp(DriverEngine.java:183)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1581)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1522)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452)
... 88 more
Caused by: org.smslib.GatewayException: Comm library exception: java.lang.RuntimeException: gnu.io.NoSuchPortException
at org.smslib.modem.SerialModemDriver.connectPort(SerialModemDriver.java:102)
at org.smslib.modem.AModemDriver.connect(AModemDriver.java:114)
at org.smslib.modem.ModemGateway.startGateway(ModemGateway.java:189)
at org.smslib.Service$1Starter.run(Service.java:276)

agutthon777
Posts: 13
Joined: Mon Oct 21, 2013 8:20 am

Re: GSM 3G Modem installation issues

Post by agutthon777 » Tue Oct 22, 2013 10:45 am

HAS ANY ONE HAD ANY SUCCESS WITH CONNECTING A GSM MODEM TO CYCLOS?!?!?!.... I AM AT MY WITTS END... PLEASE RESPOND.

agutthon777
Posts: 13
Joined: Mon Oct 21, 2013 8:20 am

Re: GSM 3G Modem installation issues

Post by agutthon777 » Thu Oct 24, 2013 6:06 am

Hello Everyone,

I wanted to share with you my solution. After banging my head against the wall. I contacted a java programmer friend of mine. He pointed me in the right direction and now my gsm modem is operational.

My confusion began when I was specifying the com port in the modem driver config file. I was specifying
incorrect --- smsDriver.gateway.port=/dev/com4
correct ----- smsDriver.gateway.port=com4 ( replace com4 with the com port of your modem )

Also another very big issues was specifying the driver of the modem.

I am using a Huawei E160 modem that is branded Safaricom.

My config was like this:

Incorrect:
smsDriver.gateway.ModemManufacturer=Huawei
smsDriver.gateway.ModemModel=E176

what i found out is that you have to change the model to match the model of your modem. In this case i am using an E160.

correct
smsDriver.gateway.ModemManufacturer=Huawei
smsDriver.gateway.ModemModel=E160

IMPORTANT: If you had successfully got your simulator to run.. copy over the config.xml and baseDriverConfig.properties from the simulator folder to the modem folder. rename the modem folder to sms and put it into the webaspps folder of tomcat. I hope this helps.

admin
Site Admin
Posts: 1413
Joined: Mon Jan 24, 2005 10:31 am

Re: GSM 3G Modem installation issues

Post by admin » Fri Oct 25, 2013 10:54 am

Good to hear you find a solution, and many thanks for sharing it on the forum.

thierno
Posts: 3
Joined: Mon Jul 01, 2013 10:13 am

Re: GSM 3G Modem installation issues

Post by thierno » Sat Nov 30, 2013 10:17 pm

Hello everyone
I'd successfully installed and used for few months my the sms module through my android phone.
now I'm trying to install huawei E3131A modem with no sucess. i've followed all instructions with no result.
Can someone help.
here is my config what's wrong with it:

regards

#####################################################
# Specific MODEM driver configuration #
#####################################################


# Ovewrite default values defined in baseDriverconfig.properties
engine.class=nl.strohalm.cyclos.driver.modem.engine.ModemDriverEngine

# tty port for serial - usb adapter where the modem is connected
#smsDriver.gateway.port=/dev/gsmmodem
smsDriver.gateway.port=COM38

# serial speed, with modem
smsDriver.gateway.serialSpeed=19200

# The serial port input will be polled instead of to wait an event
smsDriver.gateway.serialPolling=true

# Modem manufacturer, work together with ModemModel
#smsDriver.gateway.ModemManufacturer=Motorola
smsDriver.gateway.ModemManufacturer=Huawei
#smsDriver.gateway.ModemManufacturer=TCT Mobile International Limited

# Modem model, work together with ModemManufacturer
#smsDriver.gateway.ModemModel=G24
#smsDriver.gateway.ModemModel=E176
smsDriver.gateway.ModemModel=E3131A
#smsDriver.gateway.ModemModel=X230D

# Source (in MO message) and Target (in MT message) phone number
smsDriver.gateway.simPhoneNumber=6xxxxxxxx

# Administrator phone number (e.g.: used to get the modem available balance)
driver.modem.adminPhoneNumber=

# If an incoming message starts with this value it indicates a message from the
# admin that must be redirected to the TELCO directly.
driver.modem.adminMessageMark=audit

# TELCO support phone number to which redirect the admin message (e.g.: for movistar is 222)
driver.modem.telcoPhoneNumber=222

# SIMM pin
smsDriver.PIN=1234

agutthon777
Posts: 13
Joined: Mon Oct 21, 2013 8:20 am

Re: GSM 3G Modem installation issues

Post by agutthon777 » Fri Jan 24, 2014 4:48 pm

What type of error are you getting..?

Post Reply