File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes modem communication usin comm package Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "modem communication usin comm package" Watch "modem communication usin comm package" New topic

modem communication usin comm package

manish panjwani

Joined: Oct 27, 2002
Posts: 1
hey there
i am new to the comm package provided by java
i know how to establist connection with a serial port for the purpose of reading parameters nd modifying them.
i wan't to connect to my modem and use AT commands
can any one help me as to how should i start
even some sort of an example will help
thanx a lot
Ta Ri Ki Sun
Ranch Hand

Joined: Mar 26, 2002
Posts: 442
k, seeing as you've already established a connection, i'll continue from there onwards.
add a listener for your serial port

you may already have done that bit but anyway, next implement the serialEvent(SerialPortEvent) method

to write your AT commands simply get an OutputStream from your serialPort instance and write to it

PS Have a look at the demo code that came with the jar, this is where i got this source from, with minor changes to help solve your problem
[ October 30, 2002: Message edited by: Taariq Levack ]
I agree. Here's the link:
subject: modem communication usin comm package
It's not a secret anymore!