CW1173 Simple Serial parameter settings

Hello all,

Is there an easy way to alter the serial communication parameters of the SimpleSerial python scripts to something like:
1 START, 8 DATA, 1 EVEN, 2 STOP bits at a baud rate of 3XX,YYY bps?

Thanks for your help. :wink:

Jean-Yves

Hi jeanyves,

The lower level python serial implementation can be found in the serial.py file. You may be able to make the changes here. To make your changes take effect call the init method of the USART object like this target.ser.cwlite_usart.init() If you want an easier way just to change the baud rate you can use target.baud = 3XX, YYY these objects will be available in the python console after running the connect_cwlite_simpleserial.py script.
Hope this helps!

Cheers,
Franz