DLMS-SPODES-client 0.19.35__py3-none-any.whl → 0.19.37__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 +2093 -2093
- 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 +90 -90
- DLMS_SPODES_client/session.py +363 -363
- DLMS_SPODES_client/settings.py +48 -48
- DLMS_SPODES_client/task.py +1884 -1884
- {dlms_spodes_client-0.19.35.dist-info → dlms_spodes_client-0.19.37.dist-info}/METADATA +29 -29
- dlms_spodes_client-0.19.37.dist-info/RECORD +61 -0
- {dlms_spodes_client-0.19.35.dist-info → dlms_spodes_client-0.19.37.dist-info}/WHEEL +1 -1
- dlms_spodes_client-0.19.35.dist-info/RECORD +0 -61
- {dlms_spodes_client-0.19.35.dist-info → dlms_spodes_client-0.19.37.dist-info}/entry_points.txt +0 -0
- {dlms_spodes_client-0.19.35.dist-info → dlms_spodes_client-0.19.37.dist-info}/top_level.txt +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
from enum import IntEnum
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
class Security(IntEnum):
|
|
5
|
-
"""Used security model."""
|
|
6
|
-
#pylint: disable=too-few-public-methods
|
|
7
|
-
# Transport security is not used.
|
|
8
|
-
NONE = 0
|
|
9
|
-
# Authentication security is used.
|
|
10
|
-
AUTHENTICATION = 0x10
|
|
11
|
-
# Encryption security is used.
|
|
12
|
-
ENCRYPTION = 0x20
|
|
13
|
-
# Authentication and Encryption security are used.
|
|
14
|
-
AUTHENTICATION_ENCRYPTION = 0x30
|
|
1
|
+
from enum import IntEnum
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class Security(IntEnum):
|
|
5
|
+
"""Used security model."""
|
|
6
|
+
#pylint: disable=too-few-public-methods
|
|
7
|
+
# Transport security is not used.
|
|
8
|
+
NONE = 0
|
|
9
|
+
# Authentication security is used.
|
|
10
|
+
AUTHENTICATION = 0x10
|
|
11
|
+
# Encryption security is used.
|
|
12
|
+
ENCRYPTION = 0x20
|
|
13
|
+
# Authentication and Encryption security are used.
|
|
14
|
+
AUTHENTICATION_ENCRYPTION = 0x30
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
from enum import IntEnum
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
class Service(IntEnum):
|
|
5
|
-
"""Service describes service errors."""
|
|
6
|
-
#pylint: disable=too-few-public-methods
|
|
7
|
-
# Other error.
|
|
8
|
-
OTHER = 0
|
|
9
|
-
# PDU size is wrong.
|
|
10
|
-
PDU_SIZE = 1
|
|
11
|
-
# Service is unsupported.
|
|
12
|
-
UNSUPPORTED = 2
|
|
13
|
-
|
|
14
|
-
@classmethod
|
|
15
|
-
def valueofString(cls, value):
|
|
16
|
-
return Service[value.upper()]
|
|
1
|
+
from enum import IntEnum
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class Service(IntEnum):
|
|
5
|
+
"""Service describes service errors."""
|
|
6
|
+
#pylint: disable=too-few-public-methods
|
|
7
|
+
# Other error.
|
|
8
|
+
OTHER = 0
|
|
9
|
+
# PDU size is wrong.
|
|
10
|
+
PDU_SIZE = 1
|
|
11
|
+
# Service is unsupported.
|
|
12
|
+
UNSUPPORTED = 2
|
|
13
|
+
|
|
14
|
+
@classmethod
|
|
15
|
+
def valueofString(cls, value):
|
|
16
|
+
return Service[value.upper()]
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
from enum import IntEnum
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
class ServiceClass(IntEnum):
|
|
5
|
-
"""Used service."""
|
|
6
|
-
#pylint: disable=too-few-public-methods
|
|
7
|
-
|
|
8
|
-
UN_CONFIRMED = 0
|
|
9
|
-
CONFIRMED = 1
|
|
1
|
+
from enum import IntEnum
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class ServiceClass(IntEnum):
|
|
5
|
+
"""Used service."""
|
|
6
|
+
#pylint: disable=too-few-public-methods
|
|
7
|
+
|
|
8
|
+
UN_CONFIRMED = 0
|
|
9
|
+
CONFIRMED = 1
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
from enum import IntEnum
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
class ServiceError(IntEnum):
|
|
5
|
-
"""DLMS service errors """
|
|
6
|
-
OPERATION_NOT_POSSIBLE = 1
|
|
7
|
-
SERVICE_NOT_SUPPORTED = 2
|
|
8
|
-
OTHER_REASON = 3
|
|
1
|
+
from enum import IntEnum
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class ServiceError(IntEnum):
|
|
5
|
+
"""DLMS service errors """
|
|
6
|
+
OPERATION_NOT_POSSIBLE = 1
|
|
7
|
+
SERVICE_NOT_SUPPORTED = 2
|
|
8
|
+
OTHER_REASON = 3
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
from enum import IntEnum
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
class Standard(IntEnum):
|
|
5
|
-
"""Used DLMS standard."""
|
|
6
|
-
#Meter uses default DLMS IEC 62056 standard. https://dlms.com
|
|
7
|
-
DLMS = 0
|
|
8
|
-
#Meter uses India DLMS standard IS 15959-2. https://www.standardsbis.in
|
|
9
|
-
INDIA = 1
|
|
10
|
-
#Meter uses Italy DLMS standard UNI/TS 11291-11-2. https://uni.com
|
|
11
|
-
ITALY = 2
|
|
12
|
-
#Meter uses Saudi Arabia DLMS standard.
|
|
13
|
-
SAUDI_ARABIA = 3
|
|
14
|
-
#Meter uses IDIS DLMS standard. https://www.idis-association.com/
|
|
15
|
-
IDIS = 4
|
|
16
|
-
# Russia СПОДЭС
|
|
17
|
-
RUSSIA = 99
|
|
18
|
-
|
|
1
|
+
from enum import IntEnum
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class Standard(IntEnum):
|
|
5
|
+
"""Used DLMS standard."""
|
|
6
|
+
#Meter uses default DLMS IEC 62056 standard. https://dlms.com
|
|
7
|
+
DLMS = 0
|
|
8
|
+
#Meter uses India DLMS standard IS 15959-2. https://www.standardsbis.in
|
|
9
|
+
INDIA = 1
|
|
10
|
+
#Meter uses Italy DLMS standard UNI/TS 11291-11-2. https://uni.com
|
|
11
|
+
ITALY = 2
|
|
12
|
+
#Meter uses Saudi Arabia DLMS standard.
|
|
13
|
+
SAUDI_ARABIA = 3
|
|
14
|
+
#Meter uses IDIS DLMS standard. https://www.idis-association.com/
|
|
15
|
+
IDIS = 4
|
|
16
|
+
# Russia СПОДЭС
|
|
17
|
+
RUSSIA = 99
|
|
18
|
+
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
from enum import IntEnum
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
class StateError(IntEnum):
|
|
5
|
-
"""DLMS state errors."""
|
|
6
|
-
SERVICE_NOT_ALLOWED = 1
|
|
7
|
-
SERVICE_UNKNOWN = 2
|
|
1
|
+
from enum import IntEnum
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class StateError(IntEnum):
|
|
5
|
+
"""DLMS state errors."""
|
|
6
|
+
SERVICE_NOT_ALLOWED = 1
|
|
7
|
+
SERVICE_UNKNOWN = 2
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
from enum import IntEnum
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
class Task(IntEnum):
|
|
5
|
-
"""Task describes load task errors."""
|
|
6
|
-
OTHER = 0
|
|
7
|
-
NO_REMOTE_CONTROL = 1
|
|
8
|
-
TI_STOPPED = 2
|
|
9
|
-
TI_RUNNING = 3
|
|
10
|
-
TI_UNUSABLE = 4
|
|
1
|
+
from enum import IntEnum
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class Task(IntEnum):
|
|
5
|
+
"""Task describes load task errors."""
|
|
6
|
+
OTHER = 0
|
|
7
|
+
NO_REMOTE_CONTROL = 1
|
|
8
|
+
TI_STOPPED = 2
|
|
9
|
+
TI_RUNNING = 3
|
|
10
|
+
TI_UNUSABLE = 4
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
from enum import IntEnum
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
class VdeStateError(IntEnum):
|
|
5
|
-
"""VdeState error describes Vde state errors."""
|
|
6
|
-
OTHER = 0
|
|
7
|
-
NO_DLMS_CONTEXT = 1
|
|
8
|
-
LOADING_DATASET = 2
|
|
9
|
-
STATUS_NO_CHANGE = 3
|
|
10
|
-
STATUS_INOPERABLE = 4
|
|
1
|
+
from enum import IntEnum
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class VdeStateError(IntEnum):
|
|
5
|
+
"""VdeState error describes Vde state errors."""
|
|
6
|
+
OTHER = 0
|
|
7
|
+
NO_DLMS_CONTEXT = 1
|
|
8
|
+
LOADING_DATASET = 2
|
|
9
|
+
STATUS_NO_CHANGE = 3
|
|
10
|
+
STATUS_INOPERABLE = 4
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
from .Authentication import Authentication
|
|
2
|
-
from .BerType import BerType
|
|
3
|
-
from .ErrorCode import ErrorCode
|
|
4
|
-
from .Priority import Priority
|
|
5
|
-
from .RequestTypes import RequestTypes
|
|
6
|
-
from .Security import Security
|
|
7
|
-
from .ServiceClass import ServiceClass
|
|
8
|
-
from .ServiceError import ServiceError
|
|
9
|
-
from .Standard import Standard
|
|
10
|
-
from .StateError import StateError
|
|
11
|
-
from .Service import Service
|
|
12
|
-
from .Command import Command
|
|
13
|
-
# from .Access import Access
|
|
14
|
-
# from .AccessMode import AccessMode
|
|
15
|
-
# from .AccessServiceCommandType import AccessServiceCommandType
|
|
16
|
-
# from .ApplicationReference import ApplicationReference
|
|
17
|
-
# from .ClockStatus import ClockStatus
|
|
18
|
-
# from .Conformance import Conformance
|
|
19
|
-
# from .DataType import DataType
|
|
20
|
-
# from .DateTimeSkips import DateTimeSkips
|
|
21
|
-
# from .DateTimeExtraInfo import DateTimeExtraInfo
|
|
22
|
-
# from .Definition import Definition
|
|
23
|
-
# from .ExceptionServiceError import ExceptionServiceError
|
|
24
|
-
# from .HardwareResource import HardwareResource
|
|
25
|
-
# from .Initiate import Initiate
|
|
26
|
-
# from .KeyAgreement import KeyAgreement
|
|
27
|
-
# from .LoadDataSet import LoadDataSet
|
|
28
|
-
# from .MethodAccessMode import MethodAccessMode
|
|
29
|
-
# from .ObjectType import ObjectType
|
|
30
|
-
# from .Task import Task
|
|
31
|
-
# from .Unit import Unit
|
|
32
|
-
# from .VdeStateError import VdeStateError
|
|
33
|
-
# from .HdlcFrameType import HdlcFrameType
|
|
1
|
+
from .Authentication import Authentication
|
|
2
|
+
from .BerType import BerType
|
|
3
|
+
from .ErrorCode import ErrorCode
|
|
4
|
+
from .Priority import Priority
|
|
5
|
+
from .RequestTypes import RequestTypes
|
|
6
|
+
from .Security import Security
|
|
7
|
+
from .ServiceClass import ServiceClass
|
|
8
|
+
from .ServiceError import ServiceError
|
|
9
|
+
from .Standard import Standard
|
|
10
|
+
from .StateError import StateError
|
|
11
|
+
from .Service import Service
|
|
12
|
+
from .Command import Command
|
|
13
|
+
# from .Access import Access
|
|
14
|
+
# from .AccessMode import AccessMode
|
|
15
|
+
# from .AccessServiceCommandType import AccessServiceCommandType
|
|
16
|
+
# from .ApplicationReference import ApplicationReference
|
|
17
|
+
# from .ClockStatus import ClockStatus
|
|
18
|
+
# from .Conformance import Conformance
|
|
19
|
+
# from .DataType import DataType
|
|
20
|
+
# from .DateTimeSkips import DateTimeSkips
|
|
21
|
+
# from .DateTimeExtraInfo import DateTimeExtraInfo
|
|
22
|
+
# from .Definition import Definition
|
|
23
|
+
# from .ExceptionServiceError import ExceptionServiceError
|
|
24
|
+
# from .HardwareResource import HardwareResource
|
|
25
|
+
# from .Initiate import Initiate
|
|
26
|
+
# from .KeyAgreement import KeyAgreement
|
|
27
|
+
# from .LoadDataSet import LoadDataSet
|
|
28
|
+
# from .MethodAccessMode import MethodAccessMode
|
|
29
|
+
# from .ObjectType import ObjectType
|
|
30
|
+
# from .Task import Task
|
|
31
|
+
# from .Unit import Unit
|
|
32
|
+
# from .VdeStateError import VdeStateError
|
|
33
|
+
# from .HdlcFrameType import HdlcFrameType
|