Add V2.2 telegram implementation and console read.

This commit is contained in:
Johan Bloemberg
2016-11-06 20:40:01 +01:00
parent 6343bce2ee
commit 90eb6fb3fe
5 changed files with 71 additions and 1 deletions

View File

@@ -2,6 +2,16 @@ import serial
from dsmr_parser.parsers import TelegramParser
SERIAL_SETTINGS_V2_2 = {
'baudrate': 9600,
'bytesize': serial.SEVENBITS,
'parity': serial.PARITY_NONE,
'stopbits': serial.STOPBITS_ONE,
'xonxoff': 0,
'rtscts': 0,
'timeout': 20
}
SERIAL_SETTINGS_V4 = {
'baudrate': 115200,
'bytesize': serial.SEVENBITS,