Commit Graph

127 Commits

Author SHA1 Message Date
Hans Erik van Elburg
789871899c ProfileGeneric parser working, ProfileGenericObject implemented and Test for V4 telegram completed. 2020-05-17 01:25:02 +02:00
Hans Erik van Elburg
b6278a8991 ProfileGeneric parser working, TODO complete ProfileGenericObject + Test 2020-05-16 16:31:26 +02:00
Hans Erik van Elburg
a0ce89054a make all objects able to print their own values 2020-05-12 23:45:16 +02:00
Hans Erik van Elburg
88c9ccd83d Add following missing signatures to the V4 telegram specification SHORT_POWER_FAILURE_COUNT, INSTANTANEOUS_CURRENT_L1, INSTANTANEOUS_CURRENT_L2, INSTANTANEOUS_CURRENT_L3. 2020-05-01 20:36:35 +02:00
Jean-Louis Dupond
78419f6cc7 Improve CRC speed 2020-02-16 09:31:06 +01:00
Hans Erik van Elburg
b6537678a7 cleaned up based on pylama complaints / pinpointed to coverage version 4.5.4 as next version is incompatible 2020-02-02 22:12:25 +01:00
Hans Erik van Elburg
fee3f696c4 merged upstream 0.18 version and resolved conflict 2020-02-02 17:26:47 +01:00
Jean-Louis Dupond
d714528c5a Include needed PyCRC code 2020-01-28 17:26:45 +01:00
Hans Erik van Elburg
e6625df4a7 add documentation to FileTailReader 2019-12-27 15:18:35 +01:00
Hans Erik van Elburg
8c2485d70f added file tail reader 2019-12-24 00:57:44 +01:00
74fe1f2d1e
Merge branch 'master' into add_a_true_telegram_object 2019-12-21 17:34:58 +01:00
Jean-Louis Dupond
3bfb555d0e Add support for Belgian and Smarty meters 2019-12-21 14:53:26 +01:00
Hans Erik van Elburg
2d4b0d8e72 fix documentation FileInputReader 2019-12-16 15:41:24 +01:00
Hans Erik van Elburg
43500e6bc2 fix failing import 2019-12-16 15:36:13 +01:00
Hans Erik van Elburg
50cef2646b add fileinputreader 2019-12-16 15:30:55 +01:00
Rick van Hattem
7c9c59308e
create_tcp_dsmr_reader accepts loop=None but always expects a loop. Fixes #36 2019-12-12 22:20:16 +01:00
Hans Erik van Elburg
c1d7ba151d add some documentation for the file reader 2019-12-09 23:48:48 +01:00
Hans Erik van Elburg
a65949823d fix filereader 2019-12-09 23:27:57 +01:00
Hans Erik van Elburg
3c78b0b6c4 add file reader 2019-12-09 22:36:46 +01:00
Hans Erik van Elburg
a137ef0e02 add some documentation for the use of the telegram as an object 2019-12-01 17:47:22 +01:00
Hans Erik van Elburg
d712d468ac remove useless space 2019-11-25 20:44:25 +01:00
Hans Erik van Elburg
95bab6a51a Merge branch 'master' into add_a_true_telegram_object 2019-11-25 20:30:35 +01:00
Hans Erik van Elburg
8ba400800b small fixes 2019-11-25 01:53:54 +01:00
Hans Erik van Elburg
f7ba363b93 small fixes 2019-11-25 01:37:48 +01:00
Thomas Neele
8388624721 Read more data from serial port at once
A telegram can contain dozens of lines. Reading them one by one is somewhat inefficient.
With this change, the client tries to read all data that is available.
This significantly reduced CPU load for me.
2019-07-22 21:33:15 +02:00
Hans Erik van Elburg
c36f68a884 working version of the Telegram object 2019-06-06 05:41:55 +02:00
Mark Leenaerts
85c67464a1
Fix DSMR v5.0 serial settings which were not used
While analysing some CRC check errors I encounter within the home-assistant plugin (which uses this component) I encountered this oversight in the code.
2019-01-19 16:11:12 +01:00
Nigel Dokter
9b09969763
Merge pull request #31 from tneele/master
Add serial settings for DSMR v5.0
2018-09-23 12:50:01 +02:00
bossjl
887dd3a2aa Lux-creos-obis-1.8.0 2018-09-21 18:37:32 +02:00
Thomas Neele
ad6ab304f5 Added serial settings for DSMR v5.0 2018-09-15 21:23:22 +02:00
jk-5
472c54968e Corrected meter types 2018-09-06 15:40:02 +02:00
jk-5
d534b1d8b0 Added missing values for 3-phase sagemcom TD210-D meter 2018-09-06 14:53:30 +02:00
Vincent van den Braken
e3203a5334 Optional NUL after checksum
My smart meter returns 00 0D 0A after the checksum, not just 0D 0A.
2017-09-15 13:48:10 +02:00
Nigel Dokter
c78ebe3e2d fixed import errors 2017-06-05 21:06:48 +02:00
Nigel Dokter
d6e28db116 log checksum errors as warning; dont force full telegram signatures; removed unused code for automatic telegram version detection; 2017-06-05 21:02:59 +02:00
Alex Mekkering
dcb59fddb1 Support optional telegram signatures 2017-06-05 09:07:47 +02:00
Johan Bloemberg
efc09df71f
Add DSMR5 option to protocol. 2017-05-12 20:30:53 +02:00
Nigel Dokter
9d20bb8ad5 experimenting with version detection 2017-01-28 17:01:33 +01:00
Nigel Dokter
a88dfe1a41 added DSMR v3 specification; updated changelog; 2017-01-26 18:50:30 +01:00
Nigel Dokter
adcfdfe2ae fixed v2 specification typo; fixed wrongly edited obis reference; 2017-01-22 16:42:02 +01:00
Nigel Dokter
45ee8dbb32 added basic config for DSMR v5 specification; added DSMR v5 example telegram for testing; 2017-01-22 16:39:16 +01:00
Nigel Dokter
7a4c204850 added code comments 2017-01-21 10:42:17 +01:00
Nigel Dokter
45f5fe2c36 define checksum support in telegram specification; moved telegram v2 exception temporarily from parser to MBUSObject; 2017-01-21 10:33:17 +01:00
Nigel Dokter
07634abed1 Progress on removing TelegramParserV2_2 and TelegramParserV4 in favor of a generic TelegramParser 2017-01-20 23:02:19 +01:00
Nigel Dokter
f3d8311ac2 updated readme and changelog for upcoming breaking API changes; skip pylama check for unused imports in clients module; 2017-01-11 17:40:25 +01:00
Nigel Dokter
9b488e74f8 renamed serial.py to serial_.py 2017-01-10 20:57:50 +01:00
Nigel Dokter
fadf206715 moved serial clients to own package 2017-01-10 20:09:33 +01:00
Nigel Dokter
e97ab7c7ea import issues 2017-01-09 21:47:51 +01:00
Nigel Dokter
759e0a0d92 removed absolute imports back to relative due to serial.py importing from serial 2017-01-09 21:31:08 +01:00
Nigel Dokter
21334e5a0a changed relative imports to absolute; renamed TelegramBuffer.put to TelegramBuffer.append; 2017-01-09 20:15:55 +01:00
Nigel Dokter
11672d0512 pep8 2017-01-08 11:44:20 +01:00
Nigel Dokter
87a5a2d2fa dev progress 2017-01-08 11:28:15 +01:00
Nigel Dokter
0e7819b535 dev progress 2017-01-07 22:29:02 +01:00
Nigel Dokter
60317a0dc5 dev progress 2017-01-07 21:26:21 +01:00
Nigel Dokter
d990a316ad finishing implementation of TelegramBuffer 2017-01-07 11:25:43 +01:00
Nigel Dokter
f10032f701 refactored TelegramParser.parse to accept a str instead of list 2017-01-05 21:24:41 +01:00
Nigel Dokter
9d8cad8b46 Merge pull request #15 from AlexMekkering/telegram_pass
Pass lines to parser including line endings
2017-01-04 19:19:07 +01:00
Alex Mekkering
8b60d48edd pycodestyle fixes 2017-01-04 15:01:20 +01:00
Alex Mekkering
03b761e15b Pass lines to parser including line endings 2017-01-04 14:49:18 +01:00
Johan Bloemberg
3c9db523fa
Fix tpyo. 2017-01-03 22:27:39 +01:00
Johan Bloemberg
763237ef1d
Add TCP arguments to console. Implement reconnect logic in protocol. 2017-01-03 21:27:10 +01:00
Johan Bloemberg
cdc9e395aa
Add support for TCP connections. 2017-01-03 17:56:24 +01:00
Nigel Dokter
b3014823c1 bugfix; updated async client to CRC check 2016-12-29 19:20:50 +01:00
Nigel Dokter
1c69b4e9ee added telegram CRC verification 2016-12-28 20:29:34 +01:00
Nigel Dokter
c058feca5f make serial.EVEN the default parity for DSMR v2.2 2016-11-21 21:30:56 +01:00
Johan Bloemberg
5e88182301
Complete telegram handling logic. 2016-11-21 17:02:32 +01:00
Johan Bloemberg
e3569e0719
Add asyncio protocol implementation. 2016-11-21 15:48:29 +01:00
Johan Bloemberg
616db8b1cc
Add error handling to async serial. 2016-11-21 14:11:30 +01:00
Nigel Dokter
927a4bc8e7 added DSMR v4 parsing unit test; added alternative serial settings for DSMR v2 and v4; 2016-11-20 12:44:45 +01:00
Johan Bloemberg
e3c8c92198
Linting and tpyo 2016-11-12 01:36:36 +01:00
Johan Bloemberg
4afab70dc0
Add asyncio reader. 2016-11-12 01:25:56 +01:00
Johan Bloemberg
fe5caa9126
Test and fix parsing of gas unit. 2016-11-07 20:08:28 +01:00
Johan Bloemberg
cf771776cd
Fix console imports. 2016-11-07 20:04:59 +01:00
Johan Bloemberg
447f2a24fb
Add test and exceptions for V2_2 implementation. 2016-11-07 20:00:10 +01:00
Johan Bloemberg
4a82066144
Add test/style suite. 2016-11-07 19:59:39 +01:00
Johan Bloemberg
90eb6fb3fe
Add V2.2 telegram implementation and console read. 2016-11-06 20:40:39 +01:00
Nigel Dokter
fe278c2d3d Initial commit 2016-08-22 20:16:11 +02:00