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,21 +1,21 @@
|
|
|
1
|
-
from enum import IntFlag
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
class TraceLevel(IntFlag):
|
|
5
|
-
###Specifies trace levels.###
|
|
6
|
-
#pylint: disable=too-few-public-methods
|
|
7
|
-
|
|
8
|
-
OFF = 0x0
|
|
9
|
-
###Output no tracing and debugging messages.###
|
|
10
|
-
|
|
11
|
-
ERROR = 0x1
|
|
12
|
-
###Output error-handling messages.###
|
|
13
|
-
|
|
14
|
-
WARNING = 0x2
|
|
15
|
-
###Output warnings and error-handling messages.###
|
|
16
|
-
|
|
17
|
-
INFO = 0x4
|
|
18
|
-
###Output informational messages, warnings, and error-handling messages.###
|
|
19
|
-
|
|
20
|
-
VERBOSE = 0x8
|
|
21
|
-
###Output all debugging and tracing messages.###
|
|
1
|
+
from enum import IntFlag
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class TraceLevel(IntFlag):
|
|
5
|
+
###Specifies trace levels.###
|
|
6
|
+
#pylint: disable=too-few-public-methods
|
|
7
|
+
|
|
8
|
+
OFF = 0x0
|
|
9
|
+
###Output no tracing and debugging messages.###
|
|
10
|
+
|
|
11
|
+
ERROR = 0x1
|
|
12
|
+
###Output error-handling messages.###
|
|
13
|
+
|
|
14
|
+
WARNING = 0x2
|
|
15
|
+
###Output warnings and error-handling messages.###
|
|
16
|
+
|
|
17
|
+
INFO = 0x4
|
|
18
|
+
###Output informational messages, warnings, and error-handling messages.###
|
|
19
|
+
|
|
20
|
+
VERBOSE = 0x8
|
|
21
|
+
###Output all debugging and tracing messages.###
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
from .enums.Security import Security
|
|
2
|
-
from .CountType import CountType
|
|
3
|
-
from DLMS_SPODES.cosem_interface_classes.security_setup.ver1 import SecuritySuite
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
class AesGcmParameter:
|
|
7
|
-
def __init__(self, tag=0, systemTitle=None, blockCipherKey=None, authenticationKey=None):
|
|
8
|
-
"""
|
|
9
|
-
Constructor.
|
|
10
|
-
tag : Tag.
|
|
11
|
-
systemTitle : System title.
|
|
12
|
-
blockCipherKey : Block cipher key.
|
|
13
|
-
authenticationKey : Authentication key.
|
|
14
|
-
"""
|
|
15
|
-
self.tag = tag
|
|
16
|
-
self.security = Security.NONE
|
|
17
|
-
self.invocationCounter = 0
|
|
18
|
-
# Used security suite.
|
|
19
|
-
self.securitySuite = SecuritySuite.AES_GCM_128_AUT_ENCR_AND_AES_128_KEY_WRAP
|
|
20
|
-
self.blockCipherKey = blockCipherKey
|
|
21
|
-
self.authenticationKey = authenticationKey
|
|
22
|
-
self.systemTitle = systemTitle
|
|
23
|
-
self.recipientSystemTitle = None
|
|
24
|
-
# Count type.
|
|
25
|
-
self.type_ = CountType.PACKET
|
|
26
|
-
self.dateTime = None
|
|
27
|
-
self.otherInformation = None
|
|
28
|
-
self.countTag = None
|
|
29
|
-
self.keyParameters = None
|
|
30
|
-
self.keyCipheredData = None
|
|
31
|
-
self.cipheredContent = None
|
|
32
|
-
# Shared secret is generated when connection is made.
|
|
33
|
-
self.sharedSecret = None
|
|
34
|
-
# xml settings. This is used only on xml parser.
|
|
35
|
-
self.xml = None
|
|
36
|
-
# System title is not send on pre-established connecions.
|
|
37
|
-
self.ignoreSystemTitle = False
|
|
1
|
+
from .enums.Security import Security
|
|
2
|
+
from .CountType import CountType
|
|
3
|
+
from DLMS_SPODES.cosem_interface_classes.security_setup.ver1 import SecuritySuite
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class AesGcmParameter:
|
|
7
|
+
def __init__(self, tag=0, systemTitle=None, blockCipherKey=None, authenticationKey=None):
|
|
8
|
+
"""
|
|
9
|
+
Constructor.
|
|
10
|
+
tag : Tag.
|
|
11
|
+
systemTitle : System title.
|
|
12
|
+
blockCipherKey : Block cipher key.
|
|
13
|
+
authenticationKey : Authentication key.
|
|
14
|
+
"""
|
|
15
|
+
self.tag = tag
|
|
16
|
+
self.security = Security.NONE
|
|
17
|
+
self.invocationCounter = 0
|
|
18
|
+
# Used security suite.
|
|
19
|
+
self.securitySuite = SecuritySuite.AES_GCM_128_AUT_ENCR_AND_AES_128_KEY_WRAP
|
|
20
|
+
self.blockCipherKey = blockCipherKey
|
|
21
|
+
self.authenticationKey = authenticationKey
|
|
22
|
+
self.systemTitle = systemTitle
|
|
23
|
+
self.recipientSystemTitle = None
|
|
24
|
+
# Count type.
|
|
25
|
+
self.type_ = CountType.PACKET
|
|
26
|
+
self.dateTime = None
|
|
27
|
+
self.otherInformation = None
|
|
28
|
+
self.countTag = None
|
|
29
|
+
self.keyParameters = None
|
|
30
|
+
self.keyCipheredData = None
|
|
31
|
+
self.cipheredContent = None
|
|
32
|
+
# Shared secret is generated when connection is made.
|
|
33
|
+
self.sharedSecret = None
|
|
34
|
+
# xml settings. This is used only on xml parser.
|
|
35
|
+
self.xml = None
|
|
36
|
+
# System title is not send on pre-established connecions.
|
|
37
|
+
self.ignoreSystemTitle = False
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
from enum import IntEnum
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
class CountType(IntEnum):
|
|
5
|
-
"""
|
|
6
|
-
Enumerate values that are add to counted GMAC.
|
|
7
|
-
"""
|
|
8
|
-
|
|
9
|
-
# Total packet is created.
|
|
10
|
-
PACKET = -1
|
|
11
|
-
|
|
12
|
-
# Counted Tag is added.
|
|
13
|
-
TAG = 0x1
|
|
14
|
-
|
|
15
|
-
# Data is added.
|
|
16
|
-
DATA = 0x2
|
|
1
|
+
from enum import IntEnum
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class CountType(IntEnum):
|
|
5
|
+
"""
|
|
6
|
+
Enumerate values that are add to counted GMAC.
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
# Total packet is created.
|
|
10
|
+
PACKET = -1
|
|
11
|
+
|
|
12
|
+
# Counted Tag is added.
|
|
13
|
+
TAG = 0x1
|
|
14
|
+
|
|
15
|
+
# Data is added.
|
|
16
|
+
DATA = 0x2
|