TECHNICAL MANUAL
Telit GM862-GPS
Quad Band GPS Data Terminal Module
Pag.36 of 79
Rev. 0
3.13.2.3 MDM.receive(timeout)
Receives a string from AT command interface waiting for it until timeout is expired.
Request to Send (RTS) is set to ON.
Input parameter timeout is a Python integer which is the value in 1/10 s to wait for a string
from AT command interface before timeout expires.
Return value is a Python string which is an empty string if timeout expired without any data
received otherwise is the string containing data received.
Example:
a = MDM.receive(15)
receives a string from AT command handling, possibly waiting for it for 1.5 s, assigning
return value to a.
3.13.2.4 MDM.read()
Receives a string from AT command interface without waiting for it. Request to Send
(RTS) is set to ON.
No input parameter.
Return value is a Python string which is an empty string if no data received otherwise is
the string containing data received.
Example:
a = MDM.read()
receives a string from AT command handling, assigning return value to a.
3.13.2.5 MDM.sendbyte(byte,
timeout)
Sends a byte to AT command interface.
First input parameter byte is a Python byte which is any byte value to send to AT
command interface. It can be zero.
Second input parameter timeout is a Python integer which is the value in 1/10 s to wait for
the byte to be sent to AT command interface before timeout expires. Waiting time is
caused by flow control.
Return value is a Python integer which is -1 if timeout expired otherwise is 1.
Example:
b = MDM.sendbyte(0x0d, 0)
sends byte 0x0d, that is CR, to AT command handling, without waiting, assigning return
value to b.
3.13.2.6 MDM.receivebyte(timeout)
Receives a byte from AT command interface waiting for it until timeout is expired. Request
to Send (RTS) is set to ON.
Input parameter timeout is a Python integer which is the value in 1/10 s to wait for a byte
from AT command interface before timeout expires.
Return value is a Python integer which is -1 if timeout expired without any data received
otherwise is the byte value received. It can be zero.
Example:
b = MDM.receivebyte(20)
receives a byte from AT command handling, possibly waiting for it for 2.0 s, assigning
return value to b.