Hi I'm MSC student in Sri Lanka. I need a help for my final project. I want to send & receive SMS from PC to Mobile Using GSM Modem. I used HSDPA USB Modem. (Huawei - Model No E220). I try it with sample code given in SMSLib site. But it's not worked.I used netbeans for that. It gives following error.
run: Example: Read messages 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.1 java.lang.NullPointerException at ReadMessages.doIt(ReadMessages.java:151) at ReadMessages.main(ReadMessages.java:196) BUILD SUCCESSFUL (total time: 3 seconds) I think the problem in the following line. SerialModemGateway gateway = new SerialModemGateway("modem.com1", "COM1", 57600, "Nokia", "6310i"); Can you pl help me. I am new to this mobile programming. Thank you very much. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "SMSLib for Java 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 -~----------~----~----~----~------~----~------~--~---
