Rainbow Electronics GM862-QUAD-PY User Manual

Page 410

Advertising
background image




AT Commands Reference Guide

80000ST10025a Rev. 5 - 09/07/08

Reproduction forbidden without Telit Communications S.p.A. written authorization - All Rights Reserved

page 410 of 434

#WSCRIPT - Write Script

SELINT 0 / 1

above line; then type or send the script, sized 54 bytes
OK


Script has been stored.

Note

It’s recommended to use the extension .py only for textual script files and
the extension .pyo only for pre-compiled executable script files.


#WSCRIPT - Write Script

SELINT 2

AT#WSCRIPT=
[<script_name>,
<size>,
[,<hidden>]]

Execution command causes the MODULE to store a file in the Easy Script®
related NVM, naming it <script_name>

The file should be sent using RAW ASCII file transfer.
It is important to set properly the port settings. In particular:
Flow control: hardware.
Baud rate: 115200 bps


Parameters:
<script_name> - name of the file in NVM, string type (max 16 chars, case

sensitive).

<size> - file size in bytes
<hidden> - file hidden attribute
0 - file content is readable with #RSCRIPT (default).
1 - file content is hidden, #RSCRIPT command will report empty file.

The device shall prompt a five character sequence
<CR><LF><greater_than><greater_than><greater_than>
(IRA 13, 10, 62, 62, 62)

after command line is terminated with <CR>; after that a file can be
entered from TE, sized <size> bytes.

The operations completes when all the bytes are received.

If writing ends successfully, the response is OK; otherwise an error code is
reported.

Note: the file name should be passed between quotes; every textual script
file must have .py extension, whilst every pre-compiled executable script file
must have .pyo extension; file names are case sensitive.

Note: when sending the script be sure that the line terminator is <CR><LF>
and that your terminal program does not change it.

Note: with the hidden attribute it is possible to protect your files from being
viewed and copied, only the file name can be viewed, its content is hidden
even if the file is still being run correctly. It's your care to maintain
knowledge on what the file contains.

Example

AT#WSCRIPT="First.py ",54,0

Advertising