File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "modem communication usin comm package" Watch "modem communication usin comm package" New topic
Author

modem communication usin comm package

manish panjwani
Greenhorn

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 ]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: modem communication usin comm package
 
Similar Threads
Dialing to a phone from java
LINUX SERIAL PORT
what is JTAPI ?
Difference between JVM and JRE
Printing