Solved

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

Posted on 2004-04-23
8
3,606 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
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!

 

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

Save on storage to protect fatherhood memories

You're the dad who has everything. This Father's Day, make sure your family memories are protected. My Passport Ultra has automatic backup and password protection to keep your cherished photos and videos safe. With up to 3TB, you have plenty of room to hold the adventures ahead.

Question has a verified solution.

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

Hopefully this article will help someone who's had the same issues I had. I have a Dell Wireless 1390 WLAN Mini-Card and Windows 7, and for the past couple of days I was beyond frustrated because my wireless laptop was not able to access the Inte…
With the purchase of CloudCommand by Comcast customers are left in a bind as subscriptions expire and render the AP's disabled. The following will explain how to flash your Ubiquiti AP's with CloudCommand firmware back to Ubiquiti firmware. HOWTO…
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…

895 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now