beautypg.com

11 ser.setri(ri_value), 12 ser.getrts(), 13 ser.getdtr() – Rainbow Electronics GM862-GPS User Manual

Page 34

background image





Easy Script

in Python

80000ST10020a Rev.8 - 01/10/08

Reproduction forbidden without Telit Communications S.p.A. written authorization - All Rights Reserved

page 34 of 100

2.4.11 SER.setRI(RI_value)


This command sets Ring Indicator (RI) in serial port ASC0. Input parameter RI_value is a Python
integer which is 0 if RI is set to OFF or 1 if RI is set to ON. It has no return value.

Example:

SER.setRI(1)

sets RI to ON in ASC0.

2.4.12 SER.getRTS()


This command gets Request to Send (RTS) from serial port ASC0. It has no input parameter.
Return value is a Python integer which is 0 if RTS is set to OFF or 1 if RTS is set to ON.

Example:

rts = SER.getRTS()

gets RTS from ASC0, assigning return value to rts.

2.4.13 SER.getDTR()


This command gets Data Terminal Ready (DTR) from serial port ASC0. It has no input parameter.
Return value is a Python integer which is 0 if DTR is set to OFF or 1 if DTR is set to ON.

Example:

dtr = SER.getDTR()

gets DTR from ASC0, assigning return value to dtr.