1 write script - #wscript, 10 easy script® extension - python, Interpreter, at commands – Rainbow Electronics GM862-QUAD-PY User Manual

Page 409

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 409 of 434

3.5.7.10 Easy Script® Extension - Python

17

Interpreter, AT Commands

3.5.7.10.1 Write Script - #WSCRIPT

#WSCRIPT - Write Script

SELINT 0 / 1

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 three character sequence
<greater_than><greater_than><greater_than>
(IRA 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

>>> here receive the prompt: depending on your editor
settings it’s possible that the prompt overrides the

17

PYTHON is a registered trademark of the Python Software Foundation.

Advertising