DLMS-SPODES-client 0.19.24__py3-none-any.whl → 0.19.27__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. DLMS_SPODES_client/FCS16.py +39 -39
  2. DLMS_SPODES_client/__init__.py +12 -12
  3. DLMS_SPODES_client/client.py +2093 -2091
  4. DLMS_SPODES_client/gurux_common/enums/TraceLevel.py +21 -21
  5. DLMS_SPODES_client/gurux_dlms/AesGcmParameter.py +37 -37
  6. DLMS_SPODES_client/gurux_dlms/CountType.py +16 -16
  7. DLMS_SPODES_client/gurux_dlms/GXByteBuffer.py +545 -545
  8. DLMS_SPODES_client/gurux_dlms/GXCiphering.py +196 -196
  9. DLMS_SPODES_client/gurux_dlms/GXDLMS.py +426 -426
  10. DLMS_SPODES_client/gurux_dlms/GXDLMSChippering.py +237 -237
  11. DLMS_SPODES_client/gurux_dlms/GXDLMSChipperingStream.py +977 -977
  12. DLMS_SPODES_client/gurux_dlms/GXDLMSConfirmedServiceError.py +90 -90
  13. DLMS_SPODES_client/gurux_dlms/GXDLMSException.py +139 -139
  14. DLMS_SPODES_client/gurux_dlms/GXDLMSLNParameters.py +33 -33
  15. DLMS_SPODES_client/gurux_dlms/GXDLMSSNParameters.py +21 -21
  16. DLMS_SPODES_client/gurux_dlms/GXDLMSSettings.py +254 -254
  17. DLMS_SPODES_client/gurux_dlms/GXReplyData.py +87 -87
  18. DLMS_SPODES_client/gurux_dlms/HdlcControlFrame.py +9 -9
  19. DLMS_SPODES_client/gurux_dlms/MBusCommand.py +8 -8
  20. DLMS_SPODES_client/gurux_dlms/MBusEncryptionMode.py +27 -27
  21. DLMS_SPODES_client/gurux_dlms/ResponseType.py +8 -8
  22. DLMS_SPODES_client/gurux_dlms/SetResponseType.py +29 -29
  23. DLMS_SPODES_client/gurux_dlms/_HDLCInfo.py +9 -9
  24. DLMS_SPODES_client/gurux_dlms/__init__.py +75 -75
  25. DLMS_SPODES_client/gurux_dlms/enums/Access.py +12 -12
  26. DLMS_SPODES_client/gurux_dlms/enums/ApplicationReference.py +14 -14
  27. DLMS_SPODES_client/gurux_dlms/enums/Authentication.py +41 -41
  28. DLMS_SPODES_client/gurux_dlms/enums/BerType.py +35 -35
  29. DLMS_SPODES_client/gurux_dlms/enums/Command.py +285 -285
  30. DLMS_SPODES_client/gurux_dlms/enums/Definition.py +9 -9
  31. DLMS_SPODES_client/gurux_dlms/enums/ErrorCode.py +46 -46
  32. DLMS_SPODES_client/gurux_dlms/enums/ExceptionServiceError.py +12 -12
  33. DLMS_SPODES_client/gurux_dlms/enums/HardwareResource.py +10 -10
  34. DLMS_SPODES_client/gurux_dlms/enums/HdlcFrameType.py +9 -9
  35. DLMS_SPODES_client/gurux_dlms/enums/Initiate.py +10 -10
  36. DLMS_SPODES_client/gurux_dlms/enums/LoadDataSet.py +13 -13
  37. DLMS_SPODES_client/gurux_dlms/enums/ObjectType.py +306 -306
  38. DLMS_SPODES_client/gurux_dlms/enums/Priority.py +7 -7
  39. DLMS_SPODES_client/gurux_dlms/enums/RequestTypes.py +9 -9
  40. DLMS_SPODES_client/gurux_dlms/enums/Security.py +14 -14
  41. DLMS_SPODES_client/gurux_dlms/enums/Service.py +16 -16
  42. DLMS_SPODES_client/gurux_dlms/enums/ServiceClass.py +9 -9
  43. DLMS_SPODES_client/gurux_dlms/enums/ServiceError.py +8 -8
  44. DLMS_SPODES_client/gurux_dlms/enums/Standard.py +18 -18
  45. DLMS_SPODES_client/gurux_dlms/enums/StateError.py +7 -7
  46. DLMS_SPODES_client/gurux_dlms/enums/Task.py +10 -10
  47. DLMS_SPODES_client/gurux_dlms/enums/VdeStateError.py +10 -10
  48. DLMS_SPODES_client/gurux_dlms/enums/__init__.py +33 -33
  49. DLMS_SPODES_client/gurux_dlms/internal/_GXCommon.py +1673 -1673
  50. DLMS_SPODES_client/logger.py +56 -56
  51. DLMS_SPODES_client/services.py +97 -97
  52. DLMS_SPODES_client/session.py +365 -365
  53. DLMS_SPODES_client/settings.py +48 -48
  54. DLMS_SPODES_client/task.py +1847 -1841
  55. {dlms_spodes_client-0.19.24.dist-info → dlms_spodes_client-0.19.27.dist-info}/METADATA +29 -29
  56. dlms_spodes_client-0.19.27.dist-info/RECORD +61 -0
  57. dlms_spodes_client-0.19.24.dist-info/RECORD +0 -61
  58. {dlms_spodes_client-0.19.24.dist-info → dlms_spodes_client-0.19.27.dist-info}/WHEEL +0 -0
  59. {dlms_spodes_client-0.19.24.dist-info → dlms_spodes_client-0.19.27.dist-info}/entry_points.txt +0 -0
  60. {dlms_spodes_client-0.19.24.dist-info → dlms_spodes_client-0.19.27.dist-info}/top_level.txt +0 -0
@@ -1,46 +1,46 @@
1
- from enum import IntEnum
2
-
3
-
4
- class ErrorCode(IntEnum):
5
- """Enumerates all DLMS error codes.
6
- https://www.gurux.fi/Gurux.DLMS.ErrorCodes
7
- """
8
- DISCONNECT_MODE = -4
9
-
10
- RECEIVE_NOT_READY = -3
11
-
12
- REJECTED = -2
13
-
14
- UNACCEPTABLE_FRAME = -1
15
-
16
- OK = 0
17
-
18
- HARDWARE_FAULT = 1
19
-
20
- TEMPORARY_FAILURE = 2
21
-
22
- READ_WRITE_DENIED = 3
23
-
24
- UNDEFINED_OBJECT = 4
25
-
26
- INCONSISTENT_CLASS = 9
27
-
28
- UNAVAILABLE_OBJECT = 11
29
-
30
- UNMATCHED_TYPE = 12
31
-
32
- ACCESS_VIOLATED = 13
33
-
34
- DATA_BLOCK_UNAVAILABLE = 14
35
-
36
- LONG_GET_OR_READ_ABORTED = 15
37
-
38
- NO_LONG_GET_OR_READ_IN_PROGRESS = 16
39
-
40
- LONG_SET_OR_WRITE_ABORTED = 17
41
-
42
- NO_LONG_SET_OR_WRITE_IN_PROGRESS = 18
43
-
44
- DATA_BLOCK_NUMBER_INVALID = 19
45
-
46
- OTHER_REASON = 250
1
+ from enum import IntEnum
2
+
3
+
4
+ class ErrorCode(IntEnum):
5
+ """Enumerates all DLMS error codes.
6
+ https://www.gurux.fi/Gurux.DLMS.ErrorCodes
7
+ """
8
+ DISCONNECT_MODE = -4
9
+
10
+ RECEIVE_NOT_READY = -3
11
+
12
+ REJECTED = -2
13
+
14
+ UNACCEPTABLE_FRAME = -1
15
+
16
+ OK = 0
17
+
18
+ HARDWARE_FAULT = 1
19
+
20
+ TEMPORARY_FAILURE = 2
21
+
22
+ READ_WRITE_DENIED = 3
23
+
24
+ UNDEFINED_OBJECT = 4
25
+
26
+ INCONSISTENT_CLASS = 9
27
+
28
+ UNAVAILABLE_OBJECT = 11
29
+
30
+ UNMATCHED_TYPE = 12
31
+
32
+ ACCESS_VIOLATED = 13
33
+
34
+ DATA_BLOCK_UNAVAILABLE = 14
35
+
36
+ LONG_GET_OR_READ_ABORTED = 15
37
+
38
+ NO_LONG_GET_OR_READ_IN_PROGRESS = 16
39
+
40
+ LONG_SET_OR_WRITE_ABORTED = 17
41
+
42
+ NO_LONG_SET_OR_WRITE_IN_PROGRESS = 18
43
+
44
+ DATA_BLOCK_NUMBER_INVALID = 19
45
+
46
+ OTHER_REASON = 250
@@ -1,12 +1,12 @@
1
- from enum import IntEnum
2
-
3
-
4
- class ExceptionServiceError(IntEnum):
5
- """DLMS service errors."""
6
- #pylint: disable=too-few-public-methods
7
-
8
- OPERATION_NOT_POSSIBLE = 1
9
-
10
- SERVICE_NOT_SUPPORTED = 2
11
-
12
- OTHER_REASON = 3
1
+ from enum import IntEnum
2
+
3
+
4
+ class ExceptionServiceError(IntEnum):
5
+ """DLMS service errors."""
6
+ #pylint: disable=too-few-public-methods
7
+
8
+ OPERATION_NOT_POSSIBLE = 1
9
+
10
+ SERVICE_NOT_SUPPORTED = 2
11
+
12
+ OTHER_REASON = 3
@@ -1,10 +1,10 @@
1
- from enum import IntEnum
2
-
3
-
4
- class HardwareResource(IntEnum):
5
- """Hardware resource describes hardware errors."""
6
- OTHER = 0
7
- MEMORY_UNAVAILABLE = 1
8
- PROCESSOR_RESOURCE_UNAVAILABLE = 2
9
- MASS_STORAGE_UNAVAILABLE = 3
10
- OTHER_RESOURCE_UNAVAILABLE = 4
1
+ from enum import IntEnum
2
+
3
+
4
+ class HardwareResource(IntEnum):
5
+ """Hardware resource describes hardware errors."""
6
+ OTHER = 0
7
+ MEMORY_UNAVAILABLE = 1
8
+ PROCESSOR_RESOURCE_UNAVAILABLE = 2
9
+ MASS_STORAGE_UNAVAILABLE = 3
10
+ OTHER_RESOURCE_UNAVAILABLE = 4
@@ -1,9 +1,9 @@
1
- from enum import IntEnum
2
-
3
-
4
- class HdlcFrameType(IntEnum):
5
- """HDLC frame types."""
6
-
7
- I_FRAME = 0
8
- S_FRAME = 1
9
- U_FRAME = 3
1
+ from enum import IntEnum
2
+
3
+
4
+ class HdlcFrameType(IntEnum):
5
+ """HDLC frame types."""
6
+
7
+ I_FRAME = 0
8
+ S_FRAME = 1
9
+ U_FRAME = 3
@@ -1,10 +1,10 @@
1
- from enum import IntEnum
2
-
3
-
4
- class Initiate(IntEnum):
5
- """Initiate describes onitiate errors."""
6
- OTHER = 0
7
- DLMS_VERSION_TOO_LOW = 1
8
- INCOMPATIBLE_CONFORMANCE = 2
9
- PDU_SIZE_TOO_SHORT = 3
10
- REFUSED_BY_THE_VDE_HANDLER = 4
1
+ from enum import IntEnum
2
+
3
+
4
+ class Initiate(IntEnum):
5
+ """Initiate describes onitiate errors."""
6
+ OTHER = 0
7
+ DLMS_VERSION_TOO_LOW = 1
8
+ INCOMPATIBLE_CONFORMANCE = 2
9
+ PDU_SIZE_TOO_SHORT = 3
10
+ REFUSED_BY_THE_VDE_HANDLER = 4
@@ -1,13 +1,13 @@
1
- from enum import IntEnum
2
-
3
-
4
- class LoadDataSet(IntEnum):
5
- """LoadDataSet describes load dataset errors."""
6
- OTHER = 0
7
- PRIMITIVE_OUT_OF_SEQUENCE = 1
8
- NOT_LOADABLE = 2
9
- DATASET_SIZE_TOO_LARGE = 3
10
- NOT_AWAITED_SEGMENT = 4
11
- INTERPRETATION_FAILURE = 5
12
- STORAGE_FAILURE = 6
13
- DATASET_NOT_READY = 7
1
+ from enum import IntEnum
2
+
3
+
4
+ class LoadDataSet(IntEnum):
5
+ """LoadDataSet describes load dataset errors."""
6
+ OTHER = 0
7
+ PRIMITIVE_OUT_OF_SEQUENCE = 1
8
+ NOT_LOADABLE = 2
9
+ DATASET_SIZE_TOO_LARGE = 3
10
+ NOT_AWAITED_SEGMENT = 4
11
+ INTERPRETATION_FAILURE = 5
12
+ STORAGE_FAILURE = 6
13
+ DATASET_NOT_READY = 7