I recently try an old sketch made by Victor Martins adapted form Bryan Chung
But after two weeks i cannot manage to make it work properly.
The error is :
--- CREATE SERVICE
0 2011-02-24 18:32:04,042 [Animation Thread] INFO org.smslib.helper.Logger - 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 7 2011-02-24 18:32:04,049 [Animation Thread] INFO org.smslib.helper.Logger - Version: 3.4.1
7 2011-02-24 18:32:04,049 [Animation Thread] INFO org.smslib.helper.Logger - JRE Version: 1.6.0_20
8 2011-02-24 18:32:04,050 [Animation Thread] INFO org.smslib.helper.Logger - JRE Impl Version: 16.3-b01
8 2011-02-24 18:32:04,050 [Animation Thread] INFO org.smslib.helper.Logger - O/S: Windows 7 / x86 / 6.1
--- CREATE SERIAL MODEM GATEWAY
--- CREATE INBOUND NOTIFICATION
85 2011-02-24 18:32:04,127 [Thread-3] INFO org.smslib.helper.Logger - GTW: modem.com7: Starting gateway, using Generic AT Handler.
86 2011-02-24 18:32:04,128 [Thread-3] INFO org.smslib.helper.Logger - GTW: modem.com7: Opening: COM8 @128000
org.smslib.GatewayException: Comm library exception: java.lang.RuntimeException: javax.comm.NoSuchPortException
--- READ MODEL INFORMATION
1087 2011-02-24 18:32:05,129 [Animation Thread] DEBUG org.smslib.helper.Logger - GTW: modem.com7: SEND :AT+CGMI(cr)
PROBLEM! java.lang.NullPointerException
1088 2011-02-24 18:32:05,130 [Animation Thread] INFO org.smslib.helper.Logger - GTW: modem.com7: Stopping gateway...
java.lang.NullPointerException
I have properly install java comm as described in the installation guide.
My phone is a sony erricson K770i, it should works.
I pass a long time on all the forum to search some response and finally decide to write direct to you.
Thks if you have a few minutes to give me some advices. !!