?
Solved

Writing and reading AT cmds using Hp Vee

Posted on 2003-02-19
3
Medium Priority
?
748 Views
Last Modified: 2013-12-09
I have written a program that the user can enter an AT command for a GSM PC Card. Then it displays the results. The program is in a continuous loop until the user type in Exit. However sometimes the serial port times out or just does not give a result, I put an error terminal on the output of the device, which gives the error number 811. I clear the buffer at the start of the program and 20 sec after each command is entered. It works about 80% of the time, which is not good enough, and 20 sec for each command is extremely painful! Does anyone have an example that will help allow me to see more consistent results, using Hp Vee?
0
Comment
Question by:Madmax31
[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
  • 2
3 Comments
 
LVL 27

Accepted Solution

by:
BigRat earned 150 total points
ID: 7986623
I have had similar problems on Win2K with a Nokia phone. Any commands effecting the interface need time to take effect so I wait two seconds (SetCommState) on these.

The phone also seems a bit sensitive, so I wait one second after writing anything before reading the response. This makes it a bit slow, but it works almost 100% of the time.

I think my problem, like yours, is connected with serial line handshaking. How have you set that up? Xon/Xoff or Hardware and if hardware how do you control the lines?

On Linux I also use Xon/Xoff. I take the CRTSCTS flag out of c_cflag and insert IXON IXOFF IXANY in c_iflag.

HTH
0
 

Author Comment

by:Madmax31
ID: 7989261
Thanks for the help. Looks like I need to play more with the timing. I have handshaking set to none.
0
 
LVL 27

Expert Comment

by:BigRat
ID: 8008267
"I have handshaking set to none."

Oooops!
0

Featured Post

Turn your laptop into a mobile console!

The CV211 Laptop USB Console Adapter provides a direct Laptop-to-Computer connection for fast and easy remote desktop access with no software to install.

Question has a verified solution.

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

In this article I will describe how to setup a Cisco WLC 5508 to work with Apple's Bonjour protocol across VLANs.  I will also discuss using screen mirroring and Airplay on an AppleTV v3.  This article covers the wireless network only and requires m…
This paper addresses the security of Sennheiser DECT Contact Center and Office (CC&O) headsets. It describes the DECT security chain comprised of “Pairing”, “Per Call Authentication” and “Encryption”, which are all part of the standard DECT protocol.
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…

719 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