Rainbow Electronics GM862-GPS User Manual
Page 63

Easy Script
in Python
80000ST10020a Rev.8 - 01/10/08
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Rights Reserved
page 63 of 100
The script can be downloaded on the module using the #WSCRIPT command. In order to guarantee
your company know-how, you have the option to hide the script text so that the #RSCRIPT command
does not return the text of the script and keeps it "confidential", you can see only the name of the
script with the #LSCRIPT command.
Remember that if you chose to hide the script text it is your responsibility to keep the information about
what is executed on the module; for example by naming the script depending from the application and
version of the script.
In order to download the script, first you have to choose a name for your script in the module taking
care that:
• it must have extension .py
20
;
• the maximum allowed length is 16 characters;
• script name is case sensitive (“Script.py” and “script.py” are two different scripts).
Then you have to find out the exact size in bytes of the script (for example right clicking on the file and
selecting “size” in “properties”, attention: not “size on the disc”)
The script download in Hyper Terminal is done regardless the previous serial settings at: 115200 baud
8-N-1 with hardware flow control active.
20
Only the file that will be executed afterwards must have the extension .py. In download phase the files can
also have .pyo extension (altreday compiled files) or any other binary format.