8 ser.setdcd(dcd_value), 9 ser.setcts(cts_value), 10 ser.setdsr(dsr_value) – Rainbow Electronics GM862-GPS User Manual

Page 33

Advertising
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 33 of 100


sets serial port ASC0 speed to 115200, assigning return value to b.

NOTE: in the PythonWin version pervious to TelitPy1.5.2+_V2.1.exe and Python on module version
previous to Ver6.03.000 a different syntax is implemented depending of the development environment.

For PythonWin application: SER.SetSpeed(speed) without char format parameter.
For Python installed on module: SER.set_speed(speed, char format) with char format not an optional
parameter.

2.4.8 SER.setDCD(DCD_value)


This command sets Carrier Detect (DCD) in serial port ASC0. Input parameter DCD_value is a Python
integer which is 0 if DCD is set to OFF or 1 if DCD is set to ON. It has no return value.

Example:

SER.setDCD(1)

sets DCD to ON in ASC0.

2.4.9 SER.setCTS(CTS_value)


This command sets Clear to Send (CTS) in serial port ASC0. Input parameter CTS_value is a Python
integer which is 0 if CTS is set to OFF or 1 if CTS is set to ON.
It has no return value.

Example:

SER.setCTS(1)

sets CTS to ON in ASC0.

2.4.10 SER.setDSR(DSR_value)


This command sets Data Set Ready (DSR) in serial port ASC0. Input parameter DSR_value is a
Python integer which is 0 if DSR is set to OFF or 1 if DSR is set to ON. It has no return value.

Example:

SER.setDSR(1)

sets DSR to ON in ASC0.

Advertising