![Telit Wireless Solutions GM862GPS Series Technical Manual Download Page 46](http://html1.mh-extra.com/html/telit-wireless-solutions/gm862gps-series/gm862gps-series_technical-manual_1083661046.webp)
TECHNICAL MANUAL
Telit GM862-GPS
Quad Band GPS Data Terminal Module
Pag.46 of 79
Rev. 0
Return value is a Python integer which is -1 if an error occurred otherwise is 1 if all bytes
of the string have been sent.
Example:
a = bus3.send('test')
sends string 'test' to the SPI bus , assigning return result value to a.
3.13.7.5 SPI
object
method: read(len, <SS_number>)
Receives a string of len bytes from SPI bus device at Slave Select number SS_number.
Optional Parameter SS_number is a Python byte representing the Slave number to be
activated, if not present no slave line is activated.
Return value is a Python string which is containing data received.
Example:
a = bus4.read(10,0)
receives a string of 10 bytes from SPI bus device on SS0 line, assigning it to a.
3.13.7.6 SPI
object
method: readwrite(string, len, <SS_number>)
Send the string "string" and contemporaneously receives a string of len bytes from SPI bus
device at Slave Select number SS_number.
Optional Parameter SS_number is a Python byte representing the Slave number to be
activated, if not present no slave line is activated.
Return value is a Python string which is containing data received.
Example:
a = bus4.readwrite("hello",10,0)
send the string "hello" and receives a string of 10 bytes from SPI bus device on SS0 line,
assigning it to a.
3.13.8 GPS built-in module
GPS built-in module is an implementation on the Python core of the GPS data stream
parser.
This module have a set of functions that permit to get the information provided by the GPS
chipset.