Solved

What is CTS/RTS - DTR/DSR and how do I use it in java <--> gsm modem

Posted on 2004-04-23
8
3,613 Views
Last Modified: 2013-12-09
I think the title is quite obvious :)
What is CTS/RTS - DTR/DSR and how do I use it in java <--> gsm modem
0
Comment
Question by:renwick
8 Comments
 
LVL 2

Expert Comment

by:anupvijay
ID: 10898400
0
 
LVL 2

Expert Comment

by:anupvijay
ID: 10898425
Once you understand the above links remains your job of getting it work with Java.
Which means you have to Open a COM port using Java libraries (javax.comm) as below.

http://java.sun.com/products/javacomm/javadocs/javax/comm/package-summary.html

Now write the required AT command into this COM port and there you go.

Cheers.
0
 
LVL 4

Accepted Solution

by:
SimonTay earned 500 total points
ID: 10900697
They are handshake lines.

CTS is Clear To Send, and indicates that a modem is ready to receive data.
RTS is Request to Send, normally set by a controller (PC) and request to send data.
DTR is Data Terminal Ready, asserted by the controller to indicate (normally) that a port is open and ready.
DSR is Data Set Ready, sometimes used by a modem (or sometimes CD - Carrier Detect) to indicate that the modem is on-line.

Simon

www.tdc.co.uk
0
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 

Author Comment

by:renwick
ID: 10912072
Thx for the comment guys, so, can I (programatically from java) control the RTS signal? Or it's just a simple interface which not every device (an itegno gsm modem for example) will support this RTS flag?
I've been dealing with java <--> gsm modem and so far I can't figure them out.
0
 
LVL 8

Expert Comment

by:Meff
ID: 10913260
RTS, CTS yes or no? If you would like to send SMS only, then you can switch of the hardware flow control. Much more important is to change to the enhanced Error messages and not to send an AT command, before you have got the "OK" or other feeback on the serial link.
What kind of communication you do with your GSM modem?
SMS, CSD, voice calls or GPRS?
Regards
Meff
www.gsm-modem.de 
0
 

Author Comment

by:renwick
ID: 10915441
Well, I'm using a gsm modem to send & receive sms over GSM network. I'm using a (NMI) New Message Indication method of 3,2,0,1 (AT+CNMI=3,2,0,1) which requires me to synchronize  the reading and sending thread. Here is what I've done: turn on the hardware flow control for input/output, I don't use RTS/CTS mechanism (I don't call setRTS method when I try to send data to gsm modem), and synchronizing my own thread. The problem is sometimes, strange behaviour occurs. (actually I did post another more technical question here: http://www.experts-exchange.com/Programming/Wireless_Programming/GSM/Q_20958465.html)

and I was wondering whether I can come up with another approach for that NMI method (like CTS/RTS).
0
 

Author Comment

by:renwick
ID: 11376035
Can I split points? I would like to give points also to meff
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Tired of waiting for your show or movie to load?  Are buffering issues a constant problem with your internet connection?  Check this article out to see if these simple adjustments are the solution for you.
This subject  of securing wireless devices conjures up visions of your PC or mobile phone connecting to the Internet through some hotspot at Starbucks. But it is so much more than that. Let’s look at the facts: devices#sthash.eoFY7dic.
This Micro Tutorial will show you how to maximize your wireless card to its maximum capability. This will be demonstrated using Intel(R) Centrino(R) Wireless-N 2230 wireless card on Windows 8 operating system.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question