473,405 Members | 2,344 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Modem application

James Bond
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
3 1361
rengaraj
168 100+
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
rengaraj
168 100+
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
rsr
25
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

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

Similar topics

1
by: Ashish | last post by:
I wanted to make a Java application which would dial a telephone number using the modem. When the person on the other end lifts up the telephone (answers the phone), the application should start...
1
by: mf_sina | last post by:
Hi! how can i check if modem is connected to the computert in a vb.net application and if it doesn't exist, my application prompts user: plz check or reconnect your modem and also if modem exists...
1
by: mf_sina | last post by:
Hi! how can i check if modem is connected to the computert in a vb.net application and if it doesn't exist, my application prompts user: plz check or reconnect your modem and also if modem exists...
1
by: vgonepudi | last post by:
Hi, Requirement: I want to send numeric message to pager. For that I have developed an application in VC++. My application takes pager number as input and dials that number through my local...
3
by: Nutshell | last post by:
Hello everybody, in my application I'd need to know if a com port is a modem or not (and eventually its description and if it is a null modem). I get the list of com ports available with: string...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.