Merge pull request #31 from tneele/master
Add serial settings for DSMR v5.0
This commit is contained in:
commit
9b09969763
@ -1,5 +1,5 @@
|
|||||||
from dsmr_parser.clients.settings import SERIAL_SETTINGS_V2_2, \
|
from dsmr_parser.clients.settings import SERIAL_SETTINGS_V2_2, \
|
||||||
SERIAL_SETTINGS_V4
|
SERIAL_SETTINGS_V4, SERIAL_SETTINGS_V5
|
||||||
from dsmr_parser.clients.serial_ import SerialReader, AsyncSerialReader
|
from dsmr_parser.clients.serial_ import SerialReader, AsyncSerialReader
|
||||||
from dsmr_parser.clients.protocol import create_dsmr_protocol, \
|
from dsmr_parser.clients.protocol import create_dsmr_protocol, \
|
||||||
create_dsmr_reader, create_tcp_dsmr_reader
|
create_dsmr_reader, create_tcp_dsmr_reader
|
||||||
|
@ -20,3 +20,13 @@ SERIAL_SETTINGS_V4 = {
|
|||||||
'rtscts': 0,
|
'rtscts': 0,
|
||||||
'timeout': 20
|
'timeout': 20
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SERIAL_SETTINGS_V5 = {
|
||||||
|
'baudrate': 115200,
|
||||||
|
'bytesize': serial.EIGHTBITS,
|
||||||
|
'parity': serial.PARITY_NONE,
|
||||||
|
'stopbits': serial.STOPBITS_ONE,
|
||||||
|
'xonxoff': 0,
|
||||||
|
'rtscts': 0,
|
||||||
|
'timeout': 20
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user