By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,468 Members | 1,859 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,468 IT Pros & Developers. It's quick & easy.

Modem application

James Bond
P: 12
Hi everyone

I want to ask u a very important question. I dont have an idea regarding how i can detect a hardware attached to my system through a java programe.

Acctually i want to detect a GSM modem through my programme so that my system becomes a server and the mobile cell phones can access its database
by sending a message to my server.

Please reply
Rgds.
Jan 30 '07 #1
Share this Question
Share on Google+
3 Replies


100+
P: 168
I'm not sure that "detection" is the word I would use to describe it, but you can communicate with GSM devices via your COM Ports.
Feb 2 '07 #2

100+
P: 168
Serial Port APIs
You'll need either javacomm20-win32.zip from http://www.idicalif.com/fsun.htm or RTXT from http://www.rxtx.org/
I used javacomm, but only because I was working away from home without an internet connection an that's all I had downloaded. I also wrapped the SerialPort class in my own one to enable unit testing without having a connection to the phone. This also has the advantage I can easily switch to rxtx at a later date if required.

You'll have the choice of polling the device, or using an event driven model. Disabling the serial events and polling is easier because you don't have to worry about events occuring while you're in the middle of reading a response.

Hint: Once installed our phone will be connected to a COM port. Check which one in Control Panel->Phone and Modem Options and viewing the "Modems" tab, then use HyperTerminal to test your connection (START->Accessories->Communications->HyperTerminal). When you connect with HyperTerminal you'll just get a blank (white) viewing area. Type ATE1 [return] to enable local echo, then AT&V [return] to test the connection futher.
Feb 2 '07 #3

P: 25
rsr
Hi Rengaraj,

I have written an application that connects with a serial device via a COM port and I specify the port number in an INI file or in an edit box. Now I want my application to recognise itself (rather than me giving the number), as to which port my serial device is connected. Is it possible to do this?

waiting for your reply
RAMESH
Jun 6 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.