3 script execution start mode - #startmodescr – Rainbow Electronics GM862-QUAD-PY User Manual

Page 412

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

#ESCRIPT - Select Active Script

SELINT 2

#STARTMODESCR setting, or

d) the name of the pre-compiled executable file that will be executed at

startup according to last #STARTMODESCR setting.


We call this file (either textual or pre-compiled) the current script.

Parameter:
<script_name> - file name, string type (max 16 chars, case sensitive).

Note: all textual script files must have .py extension; all pre-compiled
executable files must have .pyo extension.

Note: <script_name> must match to the name of a file written by
#WSCRIPT in order to have it run.

Note: the command does not check whether a textual script named
<script_name> does exist or not in the Easy Script® related NVM. If the file
<script_name> is not present at startup then the compiler will not execute.

AT#ESCRIPT?

Read command reports as a quoted string the file name of the current
script
.

3.5.7.10.3 Script Execution Start Mode - #STARTMODESCR

#STARTMODESCR - Script Execution Start Mode

SELINT 0 / 1

AT#STARTMODESCR[=
<script_start_mode>
[,<script_start_to>]]

Set command sets the current script (see #ESCRIPT) execution
start mode.

Parameter:
<script_start_mode> - currente script execution start mode

0 - current script will be executed at startup only if the DTR line is

found Low (that is: COM is not open on a PC), otherwise the Easy
Script® interpreter will not execute and the MODULE will behave
normally answering only to AT commands on the serial port
(factory default).

1 - current script will be executed at startup only if the user does not

send any AT command on the serial port for the time interval
specified in <script_start_to> parameter, otherwise the Easy
Script® interpreter will not execute and the MODULE will behave
normally answering only to AT commands on the serial port. The
DTR line is not tested.

2 - current script will be executed at startup in any case apart from

DTR line and if the user does not send any AT command on the
serial port for the time interval specified in <script_start_to>
parameter. But AT command interface will be available on serial
port ASC0 and connected to third AT parser instance.


<script_start_to> - current script start time-out;

Advertising