Hello all,
Could you help me....
i get error:
java.io.IOException: write error
at com.sun.comm.Win32SerialPort.write(Win32SerialPort.java:677)
at
com.sun.comm.Win32SerialOutputStream.write(Win32SerialOutputStream.java:
38)
at orgsms.smslib.modem.SerialModemDriver.write(SerialModemDriver.java:
163)
at orgsms.smslib.modem.AModemDriver.write(AModemDriver.java:304)
at
orgsms.smslib.modem.athandler.ATHandler_Wavecom.done(ATHandler_Wavecom.java:
55)
at orgsms.smslib.modem.ModemGateway.stopGateway(ModemGateway.java:
199)
at orgsms.smslib.Service.stopService(Service.java:400)
at orgsms.smslib.Service.startService(Service.java:279)
at orgsms.smslib.Service.startService(Service.java:244)
at examples.modem.SendMessage.doIt(SendMessage.java:45)
when i run example code :
Service srv;
OutboundMessage msg;
OutboundNotification outboundNotification = new
OutboundNotification();
srv = new Service();
SerialModemGateway gateway = new
SerialModemGateway("modem.com1", "COM1", 115200, "Wavecom", "");
gateway.setInbound(true);
gateway.setOutbound(true);
gateway.setSimPin("0000");
gateway.setSimPin2("0000");
srv.setOutboundMessageNotification(outboundNotification);
srv.addGateway(gateway);
srv.startService();
msg = new OutboundMessage("+6287884307610", "Hello from
SMSLib!");
srv.sendMessage(msg);
OutboundWapSIMessage("+306948494037", new URL("https://
mail.google.com/"), "Visit GMail now!");
srv.stopService();
error have happen when execute srv.startService().
what should can i do ?
--
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.