Telit GSM-GPS modem

How to compile

My serial cable is plugged but Telit ignore it and start prog execution
The serial cable even if connected is simply ignored on startup when no connection from your pc.
If the device has started your program you cannot open serial channel.
How to open a serial connection?
Plug in serial cable
Open serial connection from your pc, and press reset.
You may not be able to communicate even with this connection opened if done after immediately after reset.
Press reset again
Now that the device has been started with an open channel you can operate with your serial.
Your program will not start, you may now upload your program or issue AT commands
Your program has been uploaded, how to run?
You have just finished your upload, serial cable is still plugged
Close serial channel, serial cable may stay plugged
Press reset, wait one minute and your program will start
Your program has lowest priority, device system init first
What if your uploaded program not compile?
You have no indication when your program not compile.
In such event you can always plug in your serial cable and work
This system sucks! There is no serial debugging in GPS version
Yeah it sucks! But no problem. 
Make all your programming and debugging using Telit supplied software, download it from here
This system sucks! My program takes 5 minutes to start
Yeah it sucks! But no problem. Use Telit software to generate a .pyo file for each .py and upload only .pyo files
Mark active a .pyo file and compilation will be avoided on device. Only upload .pyo files. 
Your program will start in a few seconds
My program works correctly on Telit software, instead on device I get exception
Yes, be carefull. This is possible. It looks like Telit supplied software is different from the one on device.
I personally see differences on critical an basic syntax, like float(), import traceback and probably other.
I recommend to test and save often your software.

AT#STARTMODESCR=?
#STARTMODESCR: 1,10
If no AT commands are detected for the first 10 seconds then Python script will start
The simple AT command will not prevent execution, use something more complex like AT#STARTMODESCR?
You can use a simple AT#SHDN to shutdown and start your program
#STARTMODESCR: 0,10
Python script will start as there is no serial connection opened(default)

 

Test script
import GPIO
import MOD
while(1):
  s=GPIO.setIOvalue(2,0) #LED TEST off
  MOD.sleep(30)
  s=GPIO.setIOvalue(2,1) #LED TEST on
  MOD.sleep(30)