git-subtree-dir: lib/dsmr_parser_lib git-subtree-mainline:4c0b801f96git-subtree-split:f9e188812f
33 lines
639 B
Python
33 lines
639 B
Python
import serial
|
|
|
|
|
|
SERIAL_SETTINGS_V2_2 = {
|
|
'baudrate': 9600,
|
|
'bytesize': serial.SEVENBITS,
|
|
'parity': serial.PARITY_EVEN,
|
|
'stopbits': serial.STOPBITS_ONE,
|
|
'xonxoff': 0,
|
|
'rtscts': 0,
|
|
'timeout': 20
|
|
}
|
|
|
|
SERIAL_SETTINGS_V4 = {
|
|
'baudrate': 115200,
|
|
'bytesize': serial.SEVENBITS,
|
|
'parity': serial.PARITY_EVEN,
|
|
'stopbits': serial.STOPBITS_ONE,
|
|
'xonxoff': 0,
|
|
'rtscts': 0,
|
|
'timeout': 20
|
|
}
|
|
|
|
SERIAL_SETTINGS_V5 = {
|
|
'baudrate': 115200,
|
|
'bytesize': serial.EIGHTBITS,
|
|
'parity': serial.PARITY_NONE,
|
|
'stopbits': serial.STOPBITS_ONE,
|
|
'xonxoff': 0,
|
|
'rtscts': 0,
|
|
'timeout': 20
|
|
}
|