Elproma Elektronika Sp. z o.o.
ul. Szymanowskiego 13
05-092 Łomianki k/Warszawy
E-mail:
Tel. +48 (22) 751 76 80
www.teleorigin.com
33
12.1.4. Enable Python script
Command:
AT#ESCRIPT=”<script_name>”
AT#ESCRIPT?
<script_name>: file name
Select the Python script which will be executed (the enabled script .py or .pyo) from
the next start-up and in every future start-up using the AT#ESCRIPT command. In case the
Python script consists of more than one file only the main file should be executed. First
choose the script you want to enable between the ones you’ve downloaded:
AT#LSCRIPT
can help you checking the names of the scripts;
AT#ESCRIPT?
can help you check the name of the script that is enabled at the moment
12.1.5. Execute Python script
The Python script you have downloaded to module and enabled is executed at every
module power on if the DTR line is sensed LOW (2.8V at the module DTR pin RS232
signals are inverted -) at start-up, (in this case no AT command interface is connected to the
modem port) and if the script name you enabled matches with one of the script names of
the scripts you downloaded.
In order to gain again the AT command interface on the modem physical port (for example
to update locally a new script) the module shall be powered on with the DTR line HIGH (0V
at the module DTR pin) so that the script is not executed and the Python engine is stopped.
The real execution of the Python script is delayed from the power on due to the time
needed by Python to parse the not compiled script. The longer is the script, the longer is
this delay. The real execution of compiled Python scripts (.pyo) is faster just opening and
reading the file from NVM.
See
AT#STARTMODESCR
and
AT#EXECSCR
commands for further Python script
execution modes.
For further information please refer to
[6] Telit_Easy_Script_Python.pdf