Commit Graph

45 Commits

Author SHA1 Message Date
Rene Hogendoorn
b901b3f74e Add unit test for keep-alive 2021-02-11 11:08:19 +01:00
Hans Erik van Elburg
3ddf0366e6 small fix 2020-12-24 12:44:49 +01:00
Hans Erik van Elburg
629767590b finished tox tests for issue 57 fix 2020-12-24 12:37:45 +01:00
Hans Erik van Elburg
81cccbd228 fix tox tests 2020-12-24 01:52:17 +01:00
dunajski
ec1d37ea08 Corrects example telegrams.
In example telegrams there a few mistakes in header strings. Using '\'
in strings have special feature to add to string some non-printable
characters, for example to add new line we can add \n for tab \t etc. So
whenever we want to just print backslash as normal character we have to
add another '\' before. In short string "On\\Off" prints "On\Off" ascii
string.

In enquired telegrams there are few strings with \2 sign in header,
'/ISk5\2MT382-1000\r\n' and when we calculate CRC for whole given
telegram part of "..\2.." is interpreted as one character (value 0x02)
instead of two characters ('\', '2').

I think in a header in the example enlosed in P1 DSMR Companion Standard
/ISk5\2.. stand for printable '\' and '2' character instead of
"converted" to special '\2' character.
2020-09-28 10:22:16 +02:00
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
c4331f6cd6 add tests for the missing elements and correct some test bugs 2020-05-02 15:50:00 +02: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
f7ba363b93 small fixes 2019-11-25 01:37:48 +01:00
Hans Erik van Elburg
f9e9e70771 experimentation file 2019-10-03 21:33:11 +02:00
Hans Erik van Elburg
c36f68a884 working version of the Telegram object 2019-06-06 05:41:55 +02:00
jk-5
3327c78c0e Updated unittests 2018-09-06 15:49:11 +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
Nigel Dokter
d2f57a8926 fixed pep8 2017-02-27 20:35:19 +01:00
Nigel Dokter
9d20bb8ad5 experimenting with version detection 2017-01-28 17:01:33 +01:00
Nigel Dokter
24ab9aa712 experimenting with version detection 2017-01-28 17:01:02 +01:00
Nigel Dokter
a88dfe1a41 added DSMR v3 specification; updated changelog; 2017-01-26 18:50:30 +01:00
Nigel Dokter
c4dcc73191 added DSMR v3 specification 2017-01-26 18:02:21 +01:00
Nigel Dokter
c4caf54576 pep8 2017-01-25 19:34:38 +01:00
Nigel Dokter
8a868ce826 pep8 2017-01-25 19:33:42 +01:00
Nigel Dokter
9623f3b092 added unit test for DSMR v5 parsing 2017-01-25 19:32:30 +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
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
fadf206715 moved serial clients to own package 2017-01-10 20:09:33 +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
87a5a2d2fa dev progress 2017-01-08 11:28:15 +01:00
Nigel Dokter
663024239f dev progress 2017-01-08 11:24:04 +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
3b43cbf841 all tests are written using unittest.TestCase now 2017-01-04 19:55:54 +01:00
Nigel Dokter
920c9aedc2 Revert "Fixed CRC calculation" 2017-01-04 11:58:03 +01:00
Alex Mekkering
ce4d5b0e62 Corrected unit test for failing CRC 2017-01-04 10:51:29 +01:00
Nigel Dokter
1c69b4e9ee added telegram CRC verification 2016-12-28 20:29:34 +01:00
Nigel Dokter
81fd581e57 pep8 2016-11-26 15:58:24 +01:00
Nigel Dokter
4df6ba75a2 used python unittest for the tests 2016-11-26 15:33:58 +01:00
Johan Bloemberg
e3569e0719
Add asyncio protocol implementation. 2016-11-21 15:48:29 +01:00
Johan Bloemberg
f8a3c76c68
wip async test 2016-11-21 14:35:35 +01:00
Johan Bloemberg
a1d077d6f2
Fix style. 2016-11-21 14:19:12 +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
fe5caa9126
Test and fix parsing of gas unit. 2016-11-07 20:08:28 +01:00
Johan Bloemberg
447f2a24fb
Add test and exceptions for V2_2 implementation. 2016-11-07 20:00:10 +01:00