helloo, im using teltonika E12 Usb modem amd facing error while
starting the service, im using this doIt method code:
public void doIt() throws Exception
{
Service srv;
OutboundMessage msg;
OutboundNotification outboundNotification = new
OutboundNotification();
System.out.println("Example: Send message from a serial gsm
modem.");
System.out.println(Library.getLibraryDescription());
System.out.println("Version: " + Library.getLibraryVersion());
srv = new Service();
System.out.println("Example: Service object created");
//SerialModemGateway gateway = new
SerialModemGateway("modem.com1",
"COM1", 57600, "Nokia", "6310i");
//SerialModemGateway gateway = new
SerialModemGateway("modem.com1",
"COM1", 57600, "Teltonika", "ModemUSB");
SerialModemGateway gateway = new
SerialModemGateway("modem.com1",
"COM1", 57600, "Teltonika", "E12");
gateway.setInbound(true);
gateway.setOutbound(true);
gateway.setSimPin("0000");
srv.setOutboundMessageNotification(outboundNotification);
srv.addGateway(gateway);
srv.startService();
and facing this error:
Example: Send message from a serial gsm modem.
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
Version: 3.4.5
log4j:WARN No appenders could be found for logger (smslib).
log4j:WARN Please initialize the log4j system properly.
Example: Service object created
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)
can anybdy plz plz plz help me out, my project is stuck there , hoping
4 the +ve reply 4m Experts.
Thanks in advance.
--
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.