Solved

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

Posted on 2004-04-23
8
3,662 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Retailers - Is your network secure?

With the prevalence of social media & networking tools, for retailers, reputation is critical. Have you considered the impact your network security could have in your customer's experience? Learn more in our Retail Security Resource Kit Today!

 

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

Enroll in June's Course of the Month

June’s Course of the Month is now available! Experts Exchange’s Premium Members, Team Accounts, and Qualified Experts have access to a complimentary course each month as part of their membership—an extra way to sharpen your skills and increase training.

Question has a verified solution.

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

Today sees the launch of a new case study, focusing on BYOD technologies we have been working with for some time now.  But with the advent of 802.11ac wireless technologies and the story behind our landmark developments, we would like to share this …
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…

707 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