DLMS-SPODES-client 0.19.21__py3-none-any.whl → 0.19.23__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.
- DLMS_SPODES_client/FCS16.py +39 -39
- DLMS_SPODES_client/__init__.py +12 -12
- DLMS_SPODES_client/client.py +2091 -2091
- DLMS_SPODES_client/gurux_common/enums/TraceLevel.py +21 -21
- DLMS_SPODES_client/gurux_dlms/AesGcmParameter.py +37 -37
- DLMS_SPODES_client/gurux_dlms/CountType.py +16 -16
- DLMS_SPODES_client/gurux_dlms/GXByteBuffer.py +545 -545
- DLMS_SPODES_client/gurux_dlms/GXCiphering.py +196 -196
- DLMS_SPODES_client/gurux_dlms/GXDLMS.py +426 -426
- DLMS_SPODES_client/gurux_dlms/GXDLMSChippering.py +237 -237
- DLMS_SPODES_client/gurux_dlms/GXDLMSChipperingStream.py +977 -977
- DLMS_SPODES_client/gurux_dlms/GXDLMSConfirmedServiceError.py +90 -90
- DLMS_SPODES_client/gurux_dlms/GXDLMSException.py +139 -139
- DLMS_SPODES_client/gurux_dlms/GXDLMSLNParameters.py +33 -33
- DLMS_SPODES_client/gurux_dlms/GXDLMSSNParameters.py +21 -21
- DLMS_SPODES_client/gurux_dlms/GXDLMSSettings.py +254 -254
- DLMS_SPODES_client/gurux_dlms/GXReplyData.py +87 -87
- DLMS_SPODES_client/gurux_dlms/HdlcControlFrame.py +9 -9
- DLMS_SPODES_client/gurux_dlms/MBusCommand.py +8 -8
- DLMS_SPODES_client/gurux_dlms/MBusEncryptionMode.py +27 -27
- DLMS_SPODES_client/gurux_dlms/ResponseType.py +8 -8
- DLMS_SPODES_client/gurux_dlms/SetResponseType.py +29 -29
- DLMS_SPODES_client/gurux_dlms/_HDLCInfo.py +9 -9
- DLMS_SPODES_client/gurux_dlms/__init__.py +75 -75
- DLMS_SPODES_client/gurux_dlms/enums/Access.py +12 -12
- DLMS_SPODES_client/gurux_dlms/enums/ApplicationReference.py +14 -14
- DLMS_SPODES_client/gurux_dlms/enums/Authentication.py +41 -41
- DLMS_SPODES_client/gurux_dlms/enums/BerType.py +35 -35
- DLMS_SPODES_client/gurux_dlms/enums/Command.py +285 -285
- DLMS_SPODES_client/gurux_dlms/enums/Definition.py +9 -9
- DLMS_SPODES_client/gurux_dlms/enums/ErrorCode.py +46 -46
- DLMS_SPODES_client/gurux_dlms/enums/ExceptionServiceError.py +12 -12
- DLMS_SPODES_client/gurux_dlms/enums/HardwareResource.py +10 -10
- DLMS_SPODES_client/gurux_dlms/enums/HdlcFrameType.py +9 -9
- DLMS_SPODES_client/gurux_dlms/enums/Initiate.py +10 -10
- DLMS_SPODES_client/gurux_dlms/enums/LoadDataSet.py +13 -13
- DLMS_SPODES_client/gurux_dlms/enums/ObjectType.py +306 -306
- DLMS_SPODES_client/gurux_dlms/enums/Priority.py +7 -7
- DLMS_SPODES_client/gurux_dlms/enums/RequestTypes.py +9 -9
- DLMS_SPODES_client/gurux_dlms/enums/Security.py +14 -14
- DLMS_SPODES_client/gurux_dlms/enums/Service.py +16 -16
- DLMS_SPODES_client/gurux_dlms/enums/ServiceClass.py +9 -9
- DLMS_SPODES_client/gurux_dlms/enums/ServiceError.py +8 -8
- DLMS_SPODES_client/gurux_dlms/enums/Standard.py +18 -18
- DLMS_SPODES_client/gurux_dlms/enums/StateError.py +7 -7
- DLMS_SPODES_client/gurux_dlms/enums/Task.py +10 -10
- DLMS_SPODES_client/gurux_dlms/enums/VdeStateError.py +10 -10
- DLMS_SPODES_client/gurux_dlms/enums/__init__.py +33 -33
- DLMS_SPODES_client/gurux_dlms/internal/_GXCommon.py +1673 -1673
- DLMS_SPODES_client/logger.py +56 -56
- DLMS_SPODES_client/services.py +97 -97
- DLMS_SPODES_client/session.py +365 -365
- DLMS_SPODES_client/settings.py +48 -48
- DLMS_SPODES_client/task.py +1842 -1840
- {dlms_spodes_client-0.19.21.dist-info → dlms_spodes_client-0.19.23.dist-info}/METADATA +29 -27
- dlms_spodes_client-0.19.23.dist-info/RECORD +61 -0
- dlms_spodes_client-0.19.21.dist-info/RECORD +0 -61
- {dlms_spodes_client-0.19.21.dist-info → dlms_spodes_client-0.19.23.dist-info}/WHEEL +0 -0
- {dlms_spodes_client-0.19.21.dist-info → dlms_spodes_client-0.19.23.dist-info}/entry_points.txt +0 -0
- {dlms_spodes_client-0.19.21.dist-info → dlms_spodes_client-0.19.23.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
|