PDA

View Full Version : CRLF / Multiple commands in Modem Initialization string



IBM Portable PC
September 5th, 2017, 03:44 PM
I need to dial out with my Multimodem modem in data mode i.e. class=0, and then switch to fax mode i.e. class=1.

If you're wondering why, I have a VOIP ATA which returns a busy like tone if I dial in class 1 mode. God only knows why.

So I have been trying dial strings similar to: AT+FCLASS=0^M;ATDTW%s;+FCLASS=1

It's a Hylafax system, which inserts the number to dial into %s.

However, this returns an ERROR from the modem, as do:

AT+FCLASS=0;ATDTW%s;+FCLASS=1
AT+FCLASS=0DTW%s;+FCLASS=1
AT+FCLASS=0^M,ATDTW%s;+FCLASS=1
AT+FCLASS=0,DTW%s;+FCLASS=1
AT+FCLASS=0\nATDTW%s;+FCLASS=1
AT+FCLASS=0\rATDTW%s;+FCLASS=1

and many more...:confused:

Fax classes aside, what is the preferred way to insert multiple AT commands into the one string, possibly including a CR/LF?