2 run at interface and python at the same time – Rainbow Electronics GM862-GPS User Manual
Page 69

Easy Script
in Python
80000ST10020a Rev.8 - 01/10/08
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Rights Reserved
page 69 of 100
3.2 Run AT Interface and Python at the same time
With new start mode for Python it is possible to use standard AT command interface on ASC0 and run
a Python script at the same time. This behavior can be obtained with the following AT command:
AT#STARTMODESCR=2
When this command is set, note that the following differences with the standard use of AT interface
will appear:
• AT command interface is available on ASC0 and is connected to third AT instance parser.
Note that parameters saved in profiles can be different between different AT instance parsers,
so in this case only setting from the third AT instance parser will be applied.
22
• AT command interface is available on ASC0 and is connected to third AT instance parser even
while the script is not enabled (AT#ESCRIPT) and is not running.
• AT command interface is available on ASC0 and continues to be connected to third AT
instance parser also in case Python script exits, for an error or ends normally.
• AT command interface will not be available on ASC0 if the Python script imports module SER.
• For backward compatibility MDM interface must stay connected to first AT instance parser and
MDM2 interface must stay connected to second AT instance parser.
• If there is an enabled Python script and the module is powered-on the Python script will start
running, the only way to interrupt its execution is to disable it by sending AT#ESCRIPT and
reboot the Telit module. Another possibility is to change script startmode with
AT#STARTMODESCR
23
command by setting parameter values to 0 or 1 while the Python
script is running and rebooting the Telit module afterwards.
• This mode is not compatible with setting AT#CMUXSCR=1.
22
Normally, AT command interface on ASC0 is connected to first AT instance parser (in case we’re use the
serial port with or without CMUX and there is no Python script running) while in case of
AT#STARTMODESCR=2 CMUX is activated and third CMUX port will be used for AT command interface (which
means that settings from the third AT instance parser will be applied).
23
For further information on this AT command and parameter settings please consult AT Commands Reference
Guide