tags:

views:

18

answers:

1

Hi, I'm using the combination of pppd and chat to communicate with a GSM-Modem and establish n GPRS-Connection. The Modem that I'm using implements the AT^SCFG Command to manage its internal configuration. Using this command on a serial console works just fine, but when I'm sending it via a chatscript, the modem responds with an error. I guess, that the caret character "^" causes this problem, as it is also used to send control characters to the modem. I've already tried to replace the character with "\^" and \136 (the octal value of the ASCII-Character) but this didn't help. What else can I do?

A: 

Ok, I just found out that using a single backslash as escape character works just fine. I didn't notice that on my first tests because another unescaped charater in the same command still caused an error.

Simon