wood burning stoves 2.0*
The moose likes Other JSE/JEE APIs and the fly likes Java Comm API and Modem Telephone Communication Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Java Comm API and Modem Telephone Communication" Watch "Java Comm API and Modem Telephone Communication" New topic
Author

Java Comm API and Modem Telephone Communication

thasli
Greenhorn

Joined: Jun 23, 2002
Posts: 4
Hi
I have a problem can u help me?
Using a modem I am dialing to telephone .I am using AT command wirting
through the serial port using java Comm API and RXTX in Linux plat form ,the
phone is ringing ,but I am unable to identify wether the receiver is picked
up or not.
I am looking for a tool or software which can perform the following
functionalities.
1)Detecting when the telephone receiver is picked up
2)Trasfer the line (which modem is connected )to some other line.
3) Indicating if the line is busy or engaged.
I will be much thankfull if u can help me.
Thanks in advance
Thasli
Rob Ross
Bartender

Joined: Jan 07, 2002
Posts: 2205
"thasli",
Please change your name to comply with the naming policy to which you agreed when you registered here..

For your publicly displayed name,
use a first name, a space, and a last name.

You can change your name here:
here

You can also find the naming policy here:
http://www.javaranch.com/name.jsp
Thank You!


Rob
SCJP 1.4
Ta Ri Ki Sun
Ranch Hand

Joined: Mar 26, 2002
Posts: 442
check the event SerialPortEvent.DATA_AVAILABLE:
i'm sure you're already doing that to know its ringing to begin with.
based on the incoming data you can deal with those issues, not sure about trasferring, i haven't done that, but it should the same process

3) "BUSY 7 Busy signal detected"
so you can check if( incomingData.startsWith("BUSY"))
Colin Spear
Greenhorn

Joined: Jul 10, 2002
Posts: 5
This is not a specifically Java problem but how the modem behaves with the AT command set.
Its been a while, so I am rusty on the commands to use. A complete set of Hayes AT commands are freely available all over the net.
To tell if a modem is currently connected, you detect a carrier, see ATOx (where x is a number)
To transfer the line, return the phone to a command state and then send it the appropriate Tone signals. (Phone is returned to command state through ATOx as above)
Also, see ATXx and ATWx commands for result codes and extended result codes for detecting such things as the carrier, busy signals, or related error conditions.
here is a link that can help:
http://vk.pp.ru/docs/hayes/00000110.htm
have fun.
Originally posted by thasli:
Hi
I have a problem can u help me?
Using a modem I am dialing to telephone .I am using AT command wirting
through the serial port using java Comm API and RXTX in Linux plat form ,the
phone is ringing ,but I am unable to identify wether the receiver is picked
up or not.
I am looking for a tool or software which can perform the following
functionalities.
1)Detecting when the telephone receiver is picked up
2)Trasfer the line (which modem is connected )to some other line.
3) Indicating if the line is busy or engaged.
I will be much thankfull if u can help me.
Thanks in advance
Thasli

AT Commands
Raghav Mathur
Ranch Hand

Joined: Jan 12, 2001
Posts: 641
Thasli
I,am new to port programming. I couldn't fine an AT command in comport class . How can you write this event to the modem .
thanks.


Raghav.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
Commands to the modem are written to the serial port which the modem is connected to as lines of text starting with AT, so look at the modem docs, not the serial port docs.
(Deja-vu - I remember typing those AT commands by hand in "terminal" programs.)
Bill
Raghav Mathur
Ranch Hand

Joined: Jan 12, 2001
Posts: 641
but how do you write a command . Are we not suppose to use the ComportEvent interface commands ?
Please explain . It would abe a great help to me

Originally posted by William Brogden:
Commands to the modem are written to the serial port which the modem is connected to as lines of text starting with AT, so look at the modem docs, not the serial port docs.
(Deja-vu - I remember typing those AT commands by hand in "terminal" programs.)
Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java Comm API and Modem Telephone Communication
 
Similar Threads
Help!! How can I send command to Modem
connection through dialup networking
LINUX SERIAL PORT
Difference between JVM and JRE
connection through dialup networking