Link to home
Start Free TrialLog in
Avatar of nnemo33
nnemo33

asked on

How to parse AT command

I'm starting a project that create a virtual modem. The modem receive an AT command and response it follow the command. But I don't know (don't have the idea) to parse the AT command to cover all of the cases.Anyone have the source code or document relate how to parse AT command using C language please suggest me. Thanks so much.
ASKER CERTIFIED SOLUTION
Avatar of Hugh McCurdy
Hugh McCurdy
Flag of United States of America 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
Avatar of Narendra Kumar S S
Have you looked at mgetty and vgetty - that is an opensource software related to modem, fax, etc.
You can look at it at: http://mgetty.greenie.net/
Here is a page regarding "Controlling your Modem with AT Commands": http://www.zoltrix.com/support_html/modem/usemodem.htm

You can see the implementation of "Linux Generic Soft Modem" at: http://bellard.org/linmodem.html
The above software has a AT command parser.

And also, you can refer the following link to look at "Simple Hayes AT Command Parser": http://embeddedfreak.wordpress.com/2008/11/03/simple-hayes-at-command-parser/