Hello Thanasis,

The modems has a led light for notifications, according to the modem
manual, it has the next meanings

   - always on - the modem has power but not registered on the network
   - flashing - the modem has been registered on the network

When the error occurred the led was always on. That command (*"AT+WMBS=5,1"*)
allowed me to register the modem to the network (dual band mode
extended 900MHz/1800MHz, in this case). I don't know whats the modem
default band.

I use 4 GSM modems to send messages, all of them are "Wavecom Fastrack
Supreme 20". I did not check any other modem or phone.

As far as I can infer the exception was thrown due a missing AT command to
finish the configuration of the modems.

I've been using SMSLib with the 4 modems for 2 weeks now, all the tests
I've done hasn't found any new fatal exception, next week we're going to do
a beta test in production.





*
*
Saludos,
*
*
*Eduardo Obando Boschini*
*Director de Tecnologías*
Ciris Informatic Solutions
*www.ciriscr.com*
[email protected]
+(506) 8713-4697



2012/11/11 Thanasis via SMSLib Discussion Group <
smslib+noreply-apn2wqdmqo5zaietcuavu3c6yprlad5irtqcyx6vte66jw...@googlegroups.com
>

> Hello Eduardo,
>
> Is this:
>
> g.setCustomInitString(*"AT+WMBS=5,1"*)
>
> related to this specific model?
> Is this a GSM or CDMA model?
> Did you check with other modems/phones?
>
> The reason that I am asking is because the exception is really (really!)
> strange and I am wondering if this issue is related to your operator and
> not to the modem (?)
>
>
> On Saturday, October 27, 2012 1:14:51 AM UTC+3, Eduardo Obando wrote:
>>
>> [SOLVED]
>>
>> *Short version*: the band frequency of the operator wasn't set so the
>> "This port has not been opened yet" exception was saying that the
>> connection with the operator network hasn't open.
>>
>> *Story version*: I got tired of the exception so I tried Kannel, found
>> that it is complex to configure. Once I get it to run I couldn't send
>> messages, reading the documentation of the modems (Wavecom Fastrack Supreme
>> 20) I found the meanings of the led light (has always on) and discover that
>> the modems wasn't connected to the operator network.
>>
>> *Solution*: (Only tested on Wavecom Fastrack Supreme 20)
>> SerialModemGateway has a property that allows you to send AT commands to
>> the modem when the connection with it is being established, just do:
>>
>> SerialModemGateway g = new SerialModemGateway(...)
>>
>> /* +WMBS is the command
>>  *  5 is the band frecuency (for more details check section 
>> 5.7<http://www.icpdas.com/products/GSM_GPRS/wireless/pdf/Supreme.pdf>
>> )
>>
>>  *  1 means that the changes is immediate
>>
>>  */
>>
>> g.setCustomInitString(*"AT+WMBS=5,1"*)
>>
>>
>>
>> El jueves, 18 de octubre de 2012 17:31:41 UTC-6, Eduardo Obando escribió:
>>>
>>> Hi
>>>
>>> I've been trying to connect 1 modem (Wavecom Fastrack Supreme 20) with
>>> SMSLib. I followed this 
>>> topic<https://groups.google.com/forum/?fromgroups=#!topic/smslib/xBaQhzJeN7o>
>>>  to
>>> install java comm v3 for 64-bit downloaded from IBM.
>>>
>>> When I try to start the service the next exception is thrown:
>>>
>>> java.io.IOException: This port has not been opened yet
>>> at com.sun.comm.LinuxSerial$**SSOutputStream.write(**
>>> LinuxSerial.java:570)
>>>  at java.io.OutputStream.write(**OutputStream.java:75)
>>> at org.smslib.modem.**SerialModemDriver.write(**
>>> SerialModemDriver.java:166)
>>>  at org.smslib.modem.AModemDriver.**write(AModemDriver.java:302)
>>> at org.smslib.modem.athandler.**ATHandler_Wavecom.done(**
>>> ATHandler_Wavecom.java:52)
>>>  at org.smslib.modem.ModemGateway.**stopGateway(ModemGateway.java:**198)
>>> at org.smslib.Service.**stopService(Service.java:354)
>>>  at org.smslib.Service.**startService(Service.java:233)
>>> at org.smslib.Service.**startService(Service.java:196)
>>>  at com.ciriscr.contact506.**smsSender.procesadores.**
>>> Servicio$.startService(**Servicio.scala:67)
>>> at com.ciriscr.contact506.**smsSender.init.Iniciador$.**
>>> iniciar(Iniciador.scala:23)
>>>  at com.ciriscr.contact506.**smsSender.init.Iniciador$**
>>> delayedInit$body.apply(**Iniciador.scala:17)
>>> at scala.Function0$class.apply$**mcV$sp(Function0.scala:34)
>>>  at scala.runtime.**AbstractFunction0.apply$mcV$**
>>> sp(AbstractFunction0.scala:12)
>>> at scala.App$$anonfun$main$1.**apply(App.scala:60)
>>>  at scala.App$$anonfun$main$1.**apply(App.scala:60)
>>> at scala.collection.**LinearSeqOptimized$class.**
>>> foreach(LinearSeqOptimized.**scala:59)
>>>  at scala.collection.immutable.**List.foreach(List.scala:76)
>>> at scala.collection.generic.**TraversableForwarder$class.**
>>> foreach(TraversableForwarder.**scala:30)
>>>  at scala.App$class.main(App.**scala:60)
>>> at com.ciriscr.contact506.**smsSender.init.Iniciador$.**
>>> main(Iniciador.scala:15)
>>>  at com.ciriscr.contact506.**smsSender.init.Iniciador.main(**
>>> Iniciador.scala)
>>> at sun.reflect.**NativeMethodAccessorImpl.**invoke0(Native Method)
>>>  at sun.reflect.**NativeMethodAccessorImpl.**invoke(**
>>> NativeMethodAccessorImpl.java:**57)
>>> at sun.reflect.**DelegatingMethodAccessorImpl.**invoke(**
>>> DelegatingMethodAccessorImpl.**java:43)
>>>  at java.lang.reflect.Method.**invoke(Method.java:601)
>>>
>>> With this log:
>>>
>>> 0      2012-10-18 17:00:00,034 [run-main] INFO  org.smslib.Service  -
>>> 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
>>> 6      2012-10-18 17:00:00,040 [run-main] INFO  org.smslib.Service  -
>>> Version: 3.5.2
>>> 6      2012-10-18 17:00:00,040 [run-main] INFO  org.smslib.Service  -
>>> JRE Version: 1.7.0_07
>>> 6      2012-10-18 17:00:00,040 [run-main] INFO  org.smslib.Service  -
>>> JRE Impl Version: 23.2-b09
>>> 7      2012-10-18 17:00:00,041 [run-main] INFO  org.smslib.Service  -
>>> O/S: Linux / amd64 / 3.2.0-32-generic
>>> 13     2012-10-18 17:00:00,047 [run-main] DEBUG 
>>> org.smslib.threading.**AServiceThread
>>>  - Initialized.
>>> 13     2012-10-18 17:00:00,047 [NotifyQueueManager] DEBUG
>>> org.smslib.threading.**AServiceThread  - Running...
>>> 19     2012-10-18 17:00:00,053 [NotifyQueueManager] DEBUG
>>> org.smslib.notify.**NotifyQueueManager$**NotificationQueueManager  -
>>> NotifyQueueManager running...
>>> 155    2012-10-18 17:00:00,189 [run-main] INFO  
>>> org.smslib.queues.**DefaultQueueManager
>>>  - Queue directory not defined. Queued messages will not be saved to
>>> filesystem.
>>> 156    2012-10-18 17:00:00,190 [run-main] DEBUG 
>>> org.smslib.threading.**AServiceThread
>>>  - Initialized.
>>> 158    2012-10-18 17:00:00,192 [run-main] DEBUG 
>>> org.smslib.threading.**AServiceThread
>>>  - Initialized.
>>> 159    2012-10-18 17:00:00,193 [DelayQueueManager] DEBUG
>>> org.smslib.threading.**AServiceThread  - Running...
>>> 161    2012-10-18 17:00:00,195 [DelayQueueManager] DEBUG
>>> org.smslib.queues.**AbstractQueueManager$**DelayQueueManager  -
>>> DelayQueueManager running...
>>> 161    2012-10-18 17:00:00,195 [Thread-5] INFO
>>>  org.smslib.modem.ModemGateway  - GTW: modem1: Starting gateway, using
>>> Wavecom (Generic) AT Handler.
>>> 162    2012-10-18 17:00:00,196 [Thread-5] INFO  
>>> org.smslib.modem.**SerialModemDriver
>>>  - GTW: modem1: Opening: /dev/ttyUSB0 @115200
>>> 162    2012-10-18 17:00:00,196 [WatchDog] DEBUG 
>>> org.smslib.threading.**AServiceThread
>>>  - Running...
>>> 224    2012-10-18 17:00:00,258 [Thread-5] DEBUG 
>>> org.smslib.threading.**AServiceThread
>>>  - Initialized.
>>> 226    2012-10-18 17:00:00,260 [Thread-5] DEBUG 
>>> org.smslib.threading.**AServiceThread
>>>  - Initialized.
>>> 227    2012-10-18 17:00:00,261 [KeepAlive [modem1]] DEBUG
>>> org.smslib.threading.**AServiceThread  - Running...
>>> 229    2012-10-18 17:00:00,263 [Thread-5] DEBUG
>>> org.smslib.modem.AModemDriver$**ModemReader  - GTW: modem1: ModemReader
>>> thread started.
>>> 227    2012-10-18 17:00:00,261 [CNMIEmulatorProcessor [modem1]] DEBUG
>>> org.smslib.threading.**AServiceThread  - ** disabled **
>>> 238    2012-10-18 17:00:00,272 [Thread-5] DEBUG
>>> org.smslib.modem.AModemDriver$**AsyncNotifier  - GTW: modem1:
>>> AsyncNotifier thread started.
>>> 241    2012-10-18 17:00:00,275 [Thread-5] DEBUG
>>> org.smslib.modem.AModemDriver$**AsyncMessageProcessor  - GTW: modem1:
>>> AsyncMessageProcessor thread started.
>>> 241    2012-10-18 17:00:00,275 [Thread-5] DEBUG
>>> org.smslib.modem.AModemDriver  - GTW: modem1: clearBuffer() called.
>>> 1250   2012-10-18 17:00:01,284 [Thread-5] DEBUG
>>> org.smslib.modem.AModemDriver  - GTW: modem1: SEND :(27)
>>> 1452   2012-10-18 17:00:01,486 [Thread-5] DEBUG
>>> org.smslib.modem.AModemDriver  - GTW: modem1: SEND :+++
>>> 1653   2012-10-18 17:00:01,687 [Thread-5] DEBUG
>>> org.smslib.modem.AModemDriver  - GTW: modem1: SEND :ATZ(cr)
>>> 1854   2012-10-18 17:00:01,888 [Thread-5] DEBUG
>>> org.smslib.modem.AModemDriver  - GTW: modem1: clearBuffer() called.
>>> 2855   2012-10-18 17:00:02,889 [Thread-5] DEBUG
>>> org.smslib.modem.AModemDriver  - GTW: modem1: SEND :AT+CFUN=1(cr)
>>> 12856  2012-10-18 17:00:12,890 [Thread-5] DEBUG
>>> org.smslib.modem.AModemDriver  - GTW: modem1: clearBuffer() called.
>>> 13857  2012-10-18 17:00:13,891 [Thread-5] DEBUG
>>> org.smslib.modem.AModemDriver  - GTW: modem1: SEND :ATZ(cr)
>>> 14059  2012-10-18 17:00:14,093 [Thread-5] DEBUG
>>> org.smslib.modem.AModemDriver  - GTW: modem1: SEND :ATE0(cr)
>>> 14260  2012-10-18 17:00:14,294 [Thread-5] DEBUG
>>> org.smslib.modem.AModemDriver  - GTW: modem1: clearBuffer() called.
>>> 15167  2012-10-18 17:00:15,201 [WatchDog] DEBUG 
>>> org.smslib.threading.**AServiceThread
>>>  - Running...
>>> 15261  2012-10-18 17:00:15,295 [Thread-5] DEBUG
>>> org.smslib.modem.AModemDriver  - GTW: modem1: SEND :AT+CPIN?(cr)
>>> 15315  2012-10-18 17:00:15,349 [Thread-5] DEBUG
>>> org.smslib.modem.AModemDriver  - GTW: modem1: BUFFER: +CPIN: SIM PIN
>>> 15317  2012-10-18 17:00:15,351 [Thread-5] DEBUG
>>> org.smslib.modem.AModemDriver  - GTW: modem1: RECV :+CPIN: SIM PIN(cr)
>>> 15317  2012-10-18 17:00:15,351 [Thread-5] DEBUG
>>> org.smslib.modem.AModemDriver  - GTW: modem1: SIM requesting PIN.
>>> 15317  2012-10-18 17:00:15,351 [Thread-5] DEBUG
>>> org.smslib.modem.AModemDriver  - GTW: modem1: SEND :AT+CPIN="0506"(cr)
>>> 16012  2012-10-18 17:00:16,046 [Thread-5] DEBUG
>>> org.smslib.modem.AModemDriver  - GTW: modem1: BUFFER: OK
>>> 16014  2012-10-18 17:00:16,048 [Thread-5] DEBUG
>>> org.smslib.modem.AModemDriver  - GTW: modem1: RECV :OK(cr)
>>> 21014  2012-10-18 17:00:21,048 [Thread-5] DEBUG
>>> org.smslib.modem.AModemDriver  - GTW: modem1: SEND :AT+CPIN?(cr)
>>> 21064  2012-10-18 17:00:21,098 [Thread-5] DEBUG
>>> org.smslib.modem.AModemDriver  - GTW: modem1: BUFFER: +CPIN: READY
>>> 21067  2012-10-18 17:00:21,101 [Thread-5] DEBUG
>>> org.smslib.modem.AModemDriver  - GTW: modem1: RECV :+CPIN: READY(cr)
>>> 21069  2012-10-18 17:00:21,103 [Thread-5] DEBUG
>>> org.smslib.modem.AModemDriver  - GTW: modem1: SEND :ATE0(cr)
>>> 21270  2012-10-18 17:00:21,304 [Thread-5] DEBUG
>>> org.smslib.modem.AModemDriver  - GTW: modem1: clearBuffer() called.
>>> 22271  2012-10-18 17:00:22,305 [Thread-5] DEBUG
>>> org.smslib.modem.AModemDriver  - GTW: modem1: SEND :AT+CLIP=1(cr)
>>> 22319  2012-10-18 17:00:22,353 [Thread-5] DEBUG
>>> org.smslib.modem.AModemDriver  - GTW: modem1: BUFFER: OK
>>> 22320  2012-10-18 17:00:22,354 [Thread-5] DEBUG
>>> org.smslib.modem.AModemDriver  - GTW: modem1: RECV :OK(cr)
>>> 22321  2012-10-18 17:00:22,355 [Thread-5] DEBUG
>>> org.smslib.modem.AModemDriver  - GTW: modem1: SEND :AT+COPS=0(cr)
>>> 30168  2012-10-18 17:00:30,202 [WatchDog] DEBUG 
>>> org.smslib.threading.**AServiceThread
>>>  - Running...
>>> 30235  2012-10-18 17:00:30,269 [CNMIEmulatorProcessor [modem1]] DEBUG
>>> org.smslib.threading.**AServiceThread  - ** disabled **
>>> 45169  2012-10-18 17:00:45,203 [WatchDog] DEBUG 
>>> org.smslib.threading.**AServiceThread
>>>  - Running...
>>> 60170  2012-10-18 17:01:00,204 [WatchDog] DEBUG 
>>> org.smslib.threading.**AServiceThread
>>>  - Running...
>>> 60234  2012-10-18 17:01:00,268 [KeepAlive [modem1]] DEBUG
>>> org.smslib.threading.**AServiceThread  - Running...
>>> 60235  2012-10-18 17:01:00,269 [CNMIEmulatorProcessor [modem1]] DEBUG
>>> org.smslib.threading.**AServiceThread  - ** disabled **
>>> 67322  2012-10-18 17:01:07,356 [Thread-5] DEBUG
>>> org.smslib.modem.AModemDriver  - GTW: modem1: Buffer contents on timeout:
>>> 67324  2012-10-18 17:01:07,358 [KeepAlive [modem1]] DEBUG
>>> org.smslib.threading.**AServiceThread  - Stopped.
>>> 67325  2012-10-18 17:01:07,359 [CNMIEmulatorProcessor [modem1]] DEBUG
>>> org.smslib.threading.**AServiceThread  - Stopped.
>>> 67326  2012-10-18 17:01:07,360 [SMSLib-AsyncNotifier : modem1] DEBUG
>>> org.smslib.modem.AModemDriver$**AsyncNotifier  - GTW: modem1:
>>> AsyncNotifier thread ended.
>>> 67327  2012-10-18 17:01:07,361 [SMSLib-AsyncMessageProcessor : modem1]
>>> DEBUG org.smslib.modem.AModemDriver$**AsyncMessageProcessor  - GTW:
>>> modem1: AsyncMessageProcessor thread ended.
>>> 67328  2012-10-18 17:01:07,362 [SMSlib-ModemReader-modem1] DEBUG
>>> org.smslib.modem.AModemDriver$**ModemReader  - GTW: modem1: ModemReader
>>> thread ended.
>>> 67331  2012-10-18 17:01:07,365 [Thread-5] INFO  
>>> org.smslib.modem.**SerialModemDriver
>>>  - GTW: modem1: Closing: /dev/ttyUSB0 @115200
>>> 68179  2012-10-18 17:01:08,213 [DelayQueueManager] DEBUG
>>> org.smslib.queues.**AbstractQueueManager$**DelayQueueManager  -
>>> DelayQueueManager end...
>>> 17:01:08.213 [NotifyQueueManager] DEBUG c.c.c.s.procesadores.**EstadoGateway
>>> - org.smslib.modem.**SerialModemGateway@1668a961
>>> 17:01:08.399 [NotifyQueueManager] INFO  c.c.c.s.procesadores.**EstadoGateway
>>> - Cambio estado de Gateway 2012-10-18 17:10:3 -0600
>>> 68381  2012-10-18 17:01:08,415 [WatchDog] DEBUG 
>>> org.smslib.threading.**AServiceThread
>>>  - Stopped.
>>> 68382  2012-10-18 17:01:08,416 [run-main] INFO
>>>  org.smslib.modem.ModemGateway  - GTW: modem1: Stopping gateway...
>>> 68382  2012-10-18 17:01:08,416 [run-main] DEBUG
>>> org.smslib.modem.AModemDriver  - GTW: modem1: SEND :AT+WATH=31(cr)
>>>
>>> <exception goes here>
>>>
>>> 69244  2012-10-18 17:01:09,278 [NotifyQueueManager] DEBUG
>>> org.smslib.notify.**NotifyQueueManager$**NotificationQueueManager  -
>>> NotifyQueueManager end...
>>> 17:01:09.282 [GSMmanager-akka.actor.**default-dispatcher-1] INFO
>>>  c.c.c.smsSender.akka.Receiver - GatewayStatusChange
>>> 69345  2012-10-18 17:01:09,379 [NotifyQueueManager] DEBUG
>>> org.smslib.threading.**AServiceThread  - Running...
>>> 69345  2012-10-18 17:01:09,379 [NotifyQueueManager] DEBUG
>>> org.smslib.notify.**NotifyQueueManager$**NotificationQueueManager  -
>>> NotifyQueueManager running...
>>>
>>>
>>> I'm using:
>>>
>>>    - openjdk7
>>>    - lubuntu 12.04 (upgrading tonight to 12.10)
>>>    - java comm v3 for 64-bit ("no LinuxSerialParallel in
>>>    java.library.path" exception happened and fixed)
>>>    - I'm connecting the modem to a serial hub connected with usb to the
>>>    computer
>>>    - javax.comm.properties
>>>    -
>>>       - serpath0 = /dev/ttyUSB0
>>>       - serpath1 = /dev/ttyUSB1
>>>       - serpath2 = /dev/ttyUSB2
>>>       - serpath3 = /dev/ttyUSB3
>>>
>>> Any suggestions why this Exception is thrown and/or how to fix it?
>>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "SMSLib Discussion Group" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msg/smslib/-/H_Mn0uy3GYMJ.
>
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"SMSLib Discussion 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 https://groups.google.com/groups/opt_out.


Reply via email to