This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

"\r\n" will crash the modem

Hi 

We found the modem will crash when host issuing below commands to it:

"\r\n", "\r\r\n", "\n\r\n"

how to avoid this?

Parents Reply
  • After some testing, it seems like the problem is on the application side.

    The logic that forwards the AT commands to the modem seems to be confused when \r and \n are mixed. It should handle a long string of \r followed by a long string of \n.

    But, when it receives its "termination mode character" it will send what it has to the modem. The rest of the command will be interpreted as a separate command and sent to the modem by itself.

    The application then gets stuck waiting for a response from the modem.

    I have reported this internally.

    For now, I would recommend that you don't mix \n and \r and don't send more than one "termination character" per command.

Children
Related