Contents

Scope  PAGEREF _Toc495652107 \h 1

Audience  1

Applicability table  1

Contact Information, Support 1

Text Conventions  1

Document Organization  1

Related Documents  1

Overview  1

Python 2.7.2 Copyright Notice  1

Python  1

Python implementation description  1

Python supported features  1

Executing the Python script 1

Write the Python script 1

Compile the Python script 1

Download the Python script 1

Enable the Python script 1

Run the Python script 1

Read the Python script 1

List saved Python scripts 1

Delete the Python script 1

Debug Python script 1

MDM built-in module  1

MDM.send(string, timeout) 1

MDM.read() 1

MDM.sendbyte(byte, timeout) 1

MDM.readbyte() 1

MDM.sendavail() 1

MDM.getDCD() 1

MDM.getCTS() 1

MDM.getDSR() 1

MDM.getRI() 1

MDM.setRTS(RTS_value) 1

MDM.setDTR(DTR_value) 1

MDM2 built-in module  1

MDM2.send(string, timeout) 1

MDM2.read() 1

MDM2.sendbyte(byte, timeout) 1

MDM2.readbyte() 1

MDM2.sendavail() 1

MDM2.getDCD() 1

MDM2.getCTS() 1

MDM2.getDSR() 1

MDM2.getRI() 1

MDM2.setRTS(RTS_value) 1

MDM2.setDTR(DTR_value) 1

SER built-in module  1

SER.send(string, <timeout>) 1

SER.read() 1

SER.sendbyte(byte, <timeout>) 1

SER.readbyte() 1

SER.sendavail() 1

SER.set_speed(speed, <char format>, <flow control>) 1

SER.setDCD(DCD_value) 1

SER.setCTS(CTS_value) 1

SER.setDSR(DSR_value) 1

SER.setRI(RI_value) 1

SER.getRTS() 1

SER.getDTR() 1

SER2 built-in module  1

SER2.send(string) 1

SER2.read() 1

SER2.sendbyte(byte) 1

SER2.readbyte() 1

SER2.sendavail() 1

SER2.set_speed(speed, <char format>) 1

GPIO built-in module  1

GPIO.setIOvalue(GPIOnumber, value) 1

GPIO.getIOvalue(GPIOnumber) 1

GPIO.setIOdir(GPIOnumber, value, direction) 1

GPIO.getIOdir(GPIOnumber) 1

GPIO.getADC(adcNumber) 1

GPIO.setDAC(enable, value) 1

GPIO.setVAUX(vauxNumber, enable) 1

GPIO.getAXE() 1

GPIO.setSLED(status, onDuration, offDuration) 1

GPIO.getCBC() 1

GPS built-in module  1

GPS.powerOnOff(newStatus) 1

GPS.getPowerOnOff() 1

GPS.resetMode(mode) 1

GPS.getActualPosition() 1

GPS.powerSavingMode(mode, pushToFixPeriod) 1

GPS.powerSavingWakeUp() 1

GPS.getLastGGA() 1

GPS.getLastGLL() 1

GPS.getLastGSA() 1

GPS.getLastGSV() 1

GPS.getLastRMC() 1

GPS.getLastVTG() 1

GPS.getPosition() 1

IIC built-in module  1

IIC.new(SDA_pin, SCL_pin, ADDR) 1

init() 1

readwrite(string, <read_len>) 1

SPI built-in module  1

SPI.new(SCLK_pin, MOSI_pin, MISO_pin, <SS0>,<SS1>,…,<SS7>) 1

init(CPOL, CPHA, <SSPOL>, <SS>) 1

readwrite(string, <read_len>, <SS>) 1

MOD built-in module  1

MOD.watchdogEnable(timeout) 1

MOD.watchdogReset() 1

MOD.watchdogDisable() 1

MOD.powerSaving(timeout) 1

USB0 built-in module  1

USB0.send(string, <timeout>) 1

USB0.read() 1

USB0.sendbyte(byte, <timeout>) 1

USB0.readbyte() 1

USB0.sendavail() 1

Technical characteristics  1

General 1

Python supported features  1

Operators, statements, functions 1

Built-in Functions 1

Built-in Constants 1

Truth Value Testing  1

Boolean Operations 1

Comparisons 1

Numeric Types: Integer, Long Integer and Floating Point 1

Numeric Types: Integer and Long Integer 1

Numeric Types: Floating Point 1

Numeric Types: Complex  1

Iterator Types 1

Generator Types 1

Sequence Types: String, List, Tuple, Bytearray, Buffer and Xrange  1

Sequence Types: Unicode  1

Sequence Types: String  1

Mutable Sequence Types: List and Bytearray  1

Set Types: Set and Frozenset 1

Mapping Types: Dictionary  1

File Objects 1

Memoryview Objects 1

Module Objects 1

Classes and Class Instances 1

Function Objects 1

Method Objects 1

Code objects 1

Type Objects 1

Null Object 1

Ellipsis Object 1

NotImplemented Object 1

Internal Types: Frame Objects 1

Internal Types: Traceback Objects 1

Slice Objects 1

Built-in Exceptions 1

Built-in Modules: marshal 1

Built-in Modules: imp  1

Built-in Modules: _ast 1

Built-in Modules: __main__  1

Built-in Modules: __builtin__  1

Built-in Modules: sys 1

Built-in Modules: exceptions 1

Built-in Modules: gc 1

Built-in Modules: _warnings 1

Built-in Modules: _md5  1

Built-in Modules: binascii 1

Built-in Modules: _sre  1

Built-in Modules: _weakref 1

Built-in Modules: _symtable  1

Built-in Modules: _functools 1

Built-in Modules: _socket 1

Built-in Modules: time  1

Built-in Modules: posix  1

Built-in Modules: thread  1

Built-in Modules: signal 1

Built-in Modules: errno  1

Built-in Modules: cStringIO  1

Built-in Modules: math  1

Library Modules 1

Socket non-standard functions  1

Non-standard socket option flag: SO_CONTEXTID  1

Signal non-standard functions  1

Non-standard signal: SIGMDM  1

Non-standard signal: SIGMDM2  1

Memory Limits  1

Other Limits  1

Executing the Python script on PC  1

Install Python  1

Install optional serial package  1

Copy Python modules 1

Run the Python script 1