Internet PLC Forum

General => Technical support => Topic started by: lyndon on April 14, 2003, 05:27:52 PM

Title: ACS II Command of Wireless Modem
Post by: lyndon on April 14, 2003, 05:27:52 PM
One of the commands to be send out by the TD100M+ PLC to the wireless modem via comm #1 is:

AT+CMGS=<index>,<tel.no.><CR><LF>data<Crtl+Z>

Where <Ctrl+Z> means end of data message

Is this the right interpretation at the PLC Print Command?

Print #1 "AT+CMGS=1, 1234567"
Print #1 "Hello World ^Z"

As the print command adds CR code, what about the LF (line feed) how do we handle this +CHR$(&H0B)

Also I found that Crtl+Z in Dos Mode is shown as ^Z. Does the ACS II Code intrepret Crtl a ^?

Please let me know.

Title: Re: ACS II Command of Wireless Modem
Post by: support on April 14, 2003, 06:36:51 PM
Use CHR$(n) to send non printable character. For what you want to do, execute the followings:

E.g. Print #1 "AT+CMGS=1, 1234567"+CHR$(13)+CHR$(10)+ CHR$(26)
Title: Re: ACS II Command of Wireless Modem
Post by: lyndon on April 14, 2003, 07:29:09 PM
Thanks. Checking further into the ASC II Table.
Char ^Z means SUB for Substitute.
ETX means end of text showns as char ^C.


We can conclude that Ctrl+Z in ACSII name is SUB. So some manufacturers uses some non-standard interpretation of the ACSII table.

Thanks again.
Title: Re: ACS II Command of Wireless Modem
Post by: support on April 14, 2003, 08:28:50 PM
For control character ASCII table, check the followings:

http://www.cs.tut.fi/~jkorpela/chars/c0.html