Python implementation description, 3 python implementation description – Rainbow Electronics GT863-PY User Manual
Page 37
GT863-PY Terminal Product Description
80269ST10026a Rev. 0 - 27/09/06
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Right reserved
page 37 of 50
3.3.3 Python implementation description
Python scripts are text files stored in NVM inside the
Telit module
. There's a file system inside the
module that allows to write and read files with different names on one single level (no
subdirectories are supported).
ATTENTION: it is possible to run only one Python script at the time.
The Python script is executed in a task inside the
Telit module
at the lowest priority, making sure
this does not interfere with GSM/GPRS normal operations. This allows serial ports, protocol stack
etc. to run independently from the Python script.
The Python script interacts with the
Telit module
functionality through four build-in interfaces.
• The MDM interface is the most important one. It allows Python script to send AT
commands, receive responses and unsolicited indications, send data to the network and
receive data from the network during connections. It is quite the same as the usual serial
port interface in the
Telit module
. The difference is that this interface is not a real serial
port but just an internal software bridge between Python and mobile internal AT command
handling engine. All AT commands working in the
Telit module
are working in this software
interface as well. Some of them have no meaning on this interface, such as those regarding
H
H
a
a
r
r
d
d
w
w
a
a
r
r
e
e
R
R
e
e
s
s
o
o
u
u
r
r
c
c
e
e
s
s
G
G
P
P
R
R
S
S
M
M
o
o
d
d
e
e
m
m
E
E
n
n
g
g
i
i
n
n
e
e
V
V
i
i
r
r
t
t
u
u
a
a
l
l
i
i
n
n
t
t
e
e
r
r
n
n
a
a
l
l
A
A
T
T
s
s
e
e
r
r
i
i
a
a
l
l
p
p
o
o
r
r
t
t
M
M
D
D
M
M
l
l
i
i
b
b
r
r
a
a
r
r
y
y
G
G
P
P
I
I
O
O
l
l
i
i
b
b
r
r
a
a
r
r
y
y
S
S
E
E
R
R
l
l
i
i
b
b
r
r
a
a
r
r
y
y
M
M
O
O
D
D
l
l
i
i
b
b
r
r
a
a
r
r
y
y
P
P
y
y
t
t
h
h
o
o
n
n
E
E
n
n
g
g
i
i
n
n
e
e
w
w
i
i
t
t
h
h
U
U
P
P
G
G
R
R
A
A
D
D
A
A
B
B
L
L
E
E
s
s
o
o
f
f
t
t
w
w
a
a
r
r
e
e
s
s
c
c
r
r
i
i
p
p
t
t
P
P
r
r
i
i
n
n
t
t
c
c
o
o
m
m
m
m
a
a
n
n
d
d
G
G
P
P
I
I
O
O
S
S
e
e
r
r
i
i
a
a
l
l
p
p
o
o
r
r
t
t
0
0
(
(
A
A
S
S
C
C
0
0
*
*
)
)
e
e
x
x
P
P
R
R
O
O
G
G
S
S
e
e
r
r
i
i
a
a
l
l
p
p
o
o
r
r
t
t
1
1
(
(
A
A
S
S
C
C
1
1
*
*
)
)
e
e
x
x
T
T
R
R
A
A
C
C
E
E
a
a
n
n
t
t
e
e
n
n
n
n
a
a
S
S
P
P
I
I
l
l
i
i
b
b
r
r
a
a
r
r
y
y
I
I
I
I
C
C
l
l
i
i
b
b
r
r
a
a
r
r
y
y