Link to home
Start Free TrialLog in
Avatar of tdehais
tdehais

asked on

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.
Avatar of Faruk Onder Yerli
Faruk Onder Yerli
Flag of Ukraine image

Check your application component speed,Databits (9600 N81)
Probably you are not sending only 'ATZ' & CR..
You check your code & port setting..
Avatar of tdehais
tdehais

ASKER

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.
ASKER CERTIFIED SOLUTION
Avatar of Faruk Onder Yerli
Faruk Onder Yerli
Flag of Ukraine image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial