8 mdm2.getcts(), 9 mdm2.getdsr(), 10 mdm2.getri() – Rainbow Electronics GM862-GPS User Manual
Page 28: 11 mdm2.setrts(rts_value)

Easy Script
in Python
80000ST10020a Rev.8 - 01/10/08
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Rights Reserved
page 28 of 100
gets DCD from AT command handling, assigning return value to cd.
2.3.8 MDM2.getCTS()
This command gets Clear to Send (CTS) from AT command interface. It has no input parameter.
Return value is a Python integer which is 0 if CTS is set to OFF or 1 if CTS is set to ON.
Example:
cts = MDM2.getCTS()
gets CTS from AT command handling, assigning return value to cts.
2.3.9 MDM2.getDSR()
This command gets Data Set Ready (DSR) from AT command interface. It has no input parameter.
Return value is a Python integer which is 0 if DSR is set to OFF or 1 if DSR is set to ON.
Example:
dsr = MDM2.getDSR()
gets DSR from AT command handling, assigning return value to dsr.
2.3.10 MDM2.getRI()
This command gets Ring Indicator (RI) from AT command interface. It has no input parameter.
Return value is a Python integer which is 0 if RI is set to OFF or 1 if RI is set to ON.
Example:
ri = MDM2.getRI()
gets RI from AT command handling, assigning return value to ri.
2.3.11 MDM2.setRTS(RTS_value)
This command sets Request to Send (RTS) in AT command interface. Input parameter RTS_value is
a Python integer which is 0 if setting RTS to set to OFF or 1 if setting RTS to set to ON.
It has no return value.
Example: