Hey everyone,

I'm using a Razr V3, and I have the following code in
SendMessage.java:

SerialModemGateway smg = new SerialModemGateway("ttyS0","/dev/ttyS0",
19200, "Motorola CE, Copyright 2004", "V3re");

So, the port I'm using is /dev/ttyS0 and the baud is 19200. /dev/ttyS0
is sym-linked to /dev/ttyACM0 where the phone actually is. When the
following code runs:

try {
        s.startService();
} catch (Exception e) {
        System.out.println("Unable to start service");
        e.printStackTrace();
}

It fails with the following message:
org.smslib.TimeoutException: No response from device.
        at org.smslib.modem.AModemDriver$CharQueue.get(AModemDriver.java:531)
        at org.smslib.modem.AModemDriver.getResponse(AModemDriver.java:329)
        at org.smslib.modem.athandler.ATHandler.getSimStatus(ATHandler.java:
132)
        at org.smslib.modem.AModemDriver.connect(AModemDriver.java:129)
        at org.smslib.modem.ModemGateway.startGateway(ModemGateway.java:186)
        at org.smslib.Service$1Starter.run(Service.java:257)

Any ideas?

-- 
You received this message because you are subscribed to the Google Groups 
"SMSLib User 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.

Reply via email to