Hello all,

hoping you are fine.

I need some help on how to use the smslib api to send and receive sms via a
modem/compartible mobile phone.

I am connecting my phones to the computer via a virtual BlueTooth
connection, I am using a Sony Ericson S700i and a Nokia 6085.
After successfully connecting these phones to my computer via Bluetooth,
they were assigned com ports
com41 - S700i
com40 - Nokia 6085

I made the relevant changes in my SendMessage.java file, for the Nokia I did
the following (Please correct me if I am missing out some steps);
SerialModemGateway gateway = new SerialModemGateway("modem.com40", "COM40",
33600, "Nokia", "6085");
But on trying to run the SendMessage I get the following errors,

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.
Web Site: http://smslib.org
This software is distributed under the terms of the Apache v2.0 License.
Version: 3.3.0-B3
org.smslib.GatewayException: Comm library exception:
java.lang.reflect.Invocat
nTargetException
        at
org.smslib.modem.SerialModemDriver.connectPort(SerialModemDriver.ja
:93)
        at org.smslib.modem.AModemDriver.connect(AModemDriver.java:106)
        at org.smslib.modem.ModemGateway.startGateway(ModemGateway.java:110)
        at org.smslib.Service$1Starter.run(Service.java:189)

What could be the problem? Please help me out on this.

Below is how I reference SerialModemGateway in my SendMessage.jav

SerialModemGateway gateway = new SerialModemGateway("modem.com40", "COM40",
33600, "Nokia", "6085");


thanks&regards,
-- 
MUTUMBA WYCLIFFE
CONSULTANT

Neptune Software plc
Murtala Courts
Plot 33 Lumumba Avenue
Kampala, Uganda
Tel +256  (414) 237781
Fax+256 (414) 237782
Email: [EMAIL PROTECTED]
Website: http://www.neptunesoftwareplc.com

--~--~---------~--~----~------------~-------~--~----~
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