Thanks for your tip!, things are getting much better here, now at least the port is working, but unfortunately I'm still unable to send an SMS with my device, this is the output:
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 INFO smslib - Version: 3.5.1 INFO smslib - JRE Version: 1.6.0_27 INFO smslib - JRE Impl Version: 20.2-b06 INFO smslib - O/S: Linux / i386 / 2.6.37.6-0.7-desktop DEBUG smslib - Initialized. DEBUG smslib - Running... DEBUG smslib - NotifyQueueManager running... INFO smslib - Queue directory not defined. Queued messages will not be saved to filesystem. DEBUG smslib - Initialized. DEBUG smslib - Running... DEBUG smslib - DelayQueueManager running... DEBUG smslib - Initialized. DEBUG smslib - Running... INFO smslib - GTW: contrato: Starting gateway, using Wavecom (Generic) AT Handler. INFO smslib - GTW: contrato: Opening: /dev/ttyACM0 @57600 Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 DEBUG smslib - Initialized. DEBUG smslib - Initialized. DEBUG smslib - Running... DEBUG smslib - ** disabled ** DEBUG smslib - GTW: contrato: ModemReader thread started. DEBUG smslib - GTW: contrato: AsyncNotifier thread started. DEBUG smslib - GTW: contrato: AsyncMessageProcessor thread started. DEBUG smslib - GTW: contrato: clearBuffer() called. DEBUG smslib - GTW: contrato: SEND :(27) DEBUG smslib - GTW: contrato: SEND :+++ DEBUG smslib - GTW: contrato: SEND :ATZ(cr) DEBUG smslib - GTW: contrato: clearBuffer() called. DEBUG smslib - GTW: contrato: SEND :AT+CFUN=1(cr) DEBUG smslib - GTW: contrato: clearBuffer() called. DEBUG smslib - Stopped. DEBUG smslib - Stopped. DEBUG smslib - GTW: contrato: AsyncNotifier thread ended. DEBUG smslib - GTW: contrato: AsyncMessageProcessor thread ended. DEBUG smslib - GTW: contrato: ModemReader thread ended. INFO smslib - GTW: contrato: Closing: /dev/ttyACM0 @57600 DEBUG smslib - DelayQueueManager end... DEBUG smslib - NotifyQueueManager end... DEBUG smslib - Running... DEBUG smslib - NotifyQueueManager running... DEBUG smslib - Stopped. INFO smslib - GTW: contrato: Stopping gateway... DEBUG smslib - GTW: contrato: SEND :AT+WATH=31(cr) Experimental: JNI_OnLoad called. The system crash with the following exception: java.io.IOException at gnu.io.RXTXPort$SerialOutputStream.flush(RXTXPort.java:1186) at org.smslib.modem.SerialModemDriver.write(SerialModemDriver.java:186) 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:238) at org.smslib.Service.startService(Service.java:196) [...] Somehow the modem get stuck at this point, and I lost totally the control over it, so I have to unplug/plug it to make it working again. In my previous mail I put the information about the modem, but if you need any additional information, just ask, I would be more than happy to provide all the information you need. Note the Gateway that I'm using: SerialModemGateway serialModemGateway = new SerialModemGateway("mygateway", "/dev/ttyACM0", 57600, "Wavecom", ""); Default Wavecom with no model specified. I tried to specify different models and got the same results. I also try to lower the speed (even to 2400) and I got the same result. Thanks in advance. On Sun, Sep 25, 2011 at 6:03 PM, T.Delenikas <[email protected]> wrote: > About the ACM0 port: > > RxTx may have trouble identifying the port. Either link the ACM0 port to > something like ttyXX, or use the RxTx directive (see > http://smslib.org/doc/smslib/troubleshooting/). > > -- > 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/msg/smslib/-/xxsHj4A4wZEJ. > 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. > -- 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 this group at http://groups.google.com/group/smslib?hl=en.
