Hello, can you test your COM port? If you could connect to COM4 via Hyperterminal ..this exception won't rise.
Or, where do you install those Comm files? -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of wai keong Sent: Tuesday, March 31, 2009 3:37 PM To: SMSLib User Group Subject: [smslib] Re: javax.comm.NoSuchPortException Here are the configuration I set for the connection. Can you guys help me check is there anything is wrong?? ... private String modemId = "modem.com5"; private String modemComPort = "COM5"; private int modemBaudRate = 57600; private String modemManufacturer = "Sony Ericsson"; private String modemModel = "Sony Ericsson W300"; ... SerialModemGateway gateway = new SerialModemGateway( modemId, modemComPort, modemBaudRate, modemManufacturer, modemModel); .... I'm worry the Modem-Id (modem.com5) I put is wrong. can any1 pls verify for me? Thank you! On Mar 31, 3:52 pm, wai keong <[email protected]> wrote: > Thank you for your replies. > > @Thanasis > 1. I'm sure I'm connecting to the correct COM port. I get the COM port > (COM5) from the Control Panel --> Phone and Modem Options .... > 2. Yes, I have installed the 3 Java Comm files as per described in the > documents. > > @aathisankar > 1. I'm using cellphone to send sms. My test phone is Sony Ericsson > W300. > 2. I have installed the phone PC suite. > > Now, I am able to connect my phone with my laptop with dial-up. > I have updated my SMSLib to version 3.4.0. But, I still facing the > same exceptions. > Do you guys have any idea? > > Thanks > > On Mar 28, 12:32 pm, aathisankar c <[email protected]> wrote: > > > Hi wai... > > > Are you using Gsm modem or using cellphone to send the message... > > if you are using any kind of cellphone to send messge did you install the > > drivers for that.. > > then how did yo find the port number where your modem is attached .. > > when i am wirking on windows i used nokia n72 and installed pc suite.. then > > found the port number of the nokia modem attached in contril panel... --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
