[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1008
  • Last Modified:

Modem answers ERROR after an ATZ request

I am creating an application in C language and I faced with a problem of modem. When I need to init the modem (with "ATZ\r" string) while the application is running, I get an ERROR answer from the modem if it answered BUSY the last time. But, when I launch the application and send the "ATZ\r" the first time, all is well.
I'm a beginner with communications with modem, so the error may be quite simple.

Thank you.
0
tdehais
Asked:
tdehais
  • 2
1 Solution
 
Faruk Onder YerliOwnerCommented:
Check your application component speed,Databits (9600 N81)
Probably you are not sending only 'ATZ' & CR..
You check your code & port setting..
0
 
tdehaisAuthor Commented:
I'm not only sending "ATZ\r" but "+++" before in order to obtain the command mode.
Maybe is the fact that when I'm already in command mode and sending "+++" that causes ERROR
How can I test that I'm in command mode ? Sending AT ?
I will check these points...


Thanks.
0
 
Faruk Onder YerliOwnerCommented:
if the modem is not connected , You were in command mode.
Send port 'ATZ' + CR code(#13 - Enter char).Certainly you must get ok.

if you dont get ok, try this...
You can loop from com1 to com2 for check ports. send a char com1, listen a char com2.
if you get right chars, ports are ok.
(Please check hex char)
0

Featured Post

SMB Security Just Got a Layer Stronger

WatchGuard acquires Percipient Networks to extend protection to the DNS layer, further increasing the value of Total Security Suite.  Learn more about what this means for you and how you can improve your security with WatchGuard today!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now