beautypg.com

5 reading python script, 6 list saved python scripts, 7 deleting python script – Rainbow Electronics GM862-GPS User Manual

Page 67

background image





Easy Script

in Python

80000ST10020a Rev.8 - 01/10/08

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

page 67 of 100

3.1.5 Reading Python script


Command: AT#RSCRIPT=“< script_name >“

• < script_name >: file name


With the following command AT#RSCRIPT you can read a saved script text. The script text read can
be saved using “Capture Text” in HyperTerminal or “Capture File” in Procomm Plus application. Port
settings should be baud rate 115200bps and hardware flow control.
If know-how protection is activated than AT#RSCRIPT will return only OK: no Python script source
code will be returned. In this way nobody will be able to read your Python script from the module.
The Python script will be still in the Python script list and it will be still possible to delete it and to
overwrite it.

Example:

AT#RSCRIPT=”a.py”

returns Python script source code a.py

3.1.6 List saved Python scripts


Command: AT#LSCRIPT?

This is a read command that shows the list of the script names currently saved and number of free
bytes in memory. No input parameter.

3.1.7 Deleting Python script


Command: AT#DSCRIPT=“< script_name >“

• < script_name >: file name



The Python script can be deleted from the module memory using the #DSCRIPT command.
For example:

AT#DSCRIPT=”a.py”

Wait for result: OK.