Standard: 0
Security Suite: 0
Security: 48
System title: 7E A0 07 03 D1 53 0B BB
Authentication key: D0 D1 D2 D3 D4 D5 D6 D7 D8 D9 DA DB DC DD DE DF
Block cipher key: 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
TX: 13:43:46 7E A0 07 03 D1 93 07 7D 7E
RX: 13:43:46 7E A0 20 D1 03 73 47 14 81 80 14 05 02 00 80 06 02 00 80 07 04 00 00 00 01 08 04 00 00 00 01 CE 6A 7E
TX: 13:43:46 7E A0 6B 03 D1 10 44 C5 E6 E6 00 60 5D A1 09 06 07 60 85 74 05 08 01 03 A6 0A 04 08 7E A0 07 03 D1 53 0B BB 8A 02 07 80 8B 07 60 85 74 05 08 02 06 AC 12 80 10 06 64 83 CA A7 42 48 8D 5E 72 EF 30 EF A4 A2 34 BE 23 04 21 21 1F 30 90 E1 D0 CB 8F 15 21 69 F6 34 AB D3 5C 12 17 AD D7 00 40 E3 E5 C5 1E D2 8A 78 9A 82 AC A1 16 DE 7E
RX: 13:43:46 7E A0 2D D1 03 30 57 EF E6 E7 00 61 1F A1 09 06 07 60 85 74 05 08 01 03 A2 03 02 01 01 A3 05 A1 03 02 01 01 BE 06 04 04 0E 01 00 06 F4 7F 7E
FAILED
Traceback (most recent call last):
File "C:\Users\\AppData\Local\Programs\Python\Python314\Lib\site-packages\gurux_dlms\_GXAPDU.py", line 821, in parsePDU2
_GXAPDU.parseUserInformation(settings, cipher, buff, xml)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\\AppData\Local\Programs\Python\Python314\Lib\site-packages\gurux_dlms\_GXAPDU.py", line 332, in parseUserInformation
_GXAPDU.parseInitiate(False, settings, cipher, data, xml)
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\\AppData\Local\Programs\Python\Python314\Lib\site-packages\gurux_dlms\_GXAPDU.py", line 559, in parseInitiate
_GXAPDU.parse(initiateRequest, settings, cipher, data, xml, tag)
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\\AppData\Local\Programs\Python\Python314\Lib\site-packages\gurux_dlms\_GXAPDU.py", line 406, in parse
raise GXDLMSConfirmedServiceError(ConfirmedServiceError(data.getUInt8()), ServiceError(data.getUInt8()), data.getUInt8())
gurux_dlms.GXDLMSConfirmedServiceError.GXDLMSConfirmedServiceError: ServiceError Initiate Error exception. Application reference 6
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\DLMSGURUPython\main.py", line 133, in main
reader.initializeConnection()
~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "c:\DLMSGURUPython\GXDLMSReader.py", line 392, in initializeConnection
self.client.parseAareResponse(reply.data)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
File "C:\Users\\AppData\Local\Programs\Python\Python314\Lib\site-packages\gurux_dlms\GXDLMSClient.py", line 619, in parseAareResponse
_GXAPDU.parsePDU(self.settings, self.settings.cipher, reply, None)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\\AppData\Local\Programs\Python\Python314\Lib\site-packages\gurux_dlms\_GXAPDU.py", line 657, in parsePDU
ret = _GXAPDU.parsePDU2(settings, cipher, buff, xml)
File "C:\Users\\AppData\Local\Programs\Python\Python314\Lib\site-packages\gurux_dlms\_GXAPDU.py", line 828, in parsePDU2
raise GXDLMSException(resultComponent, resultDiagnosticValue)
gurux_dlms.GXDLMSException.GXDLMSException: Connection is permanently rejected
No reason is given.
REPR: GXDLMSException('Connection is permanently rejected\r\nNo reason is given.')
ARGS: ('Connection is permanently rejected\r\nNo reason is given.',)
DisconnectRequest
TX: 13:43:46 7E A0 07 03 D1 53 0B BB 7E
RX: 13:43:46 7E A0 20 D1 03 73 47 14 81 80 14 05 02 00 80 06 02 00 80 07 04 00 00 00 01 08 04 00 00 00 01 CE 6A 7E
PS C:\DLMSGURUPython>
Using the example from the GuruX website, I get :
py -3.14 main.py -S COM23 -L LGZ
gurux_dlms version: 1.0.203
gurux_net version: 1.0.23
gurux_serial version: 1.0.21
Authentication: 0
ClientAddress: 0x10
ServerAddress: 0x1
Standard: 0
DisconnectRequest
Connection is permanently rejected
No reason is given.
Ended. Press any key to continue.
How exactly should I use the example. I'm probably doing it wrong.
Hi, I believe you are…
Hi,
I believe you are talking about the Landis+Gyr E360 meter. Do you try to communicate with the optical probe or via a TCP/IP connection?
The settings vary between different connections.
Regards,
Mikko
Hi Kurumi. It's an optical…
Hi Kurumi. It's an optical probe, and I do get some comms back and forth. I do not really know DLMS ,so I do not know what the logs mean.
Hi, Select Landis+Gyr as a…
Hi,
Select Landis+Gyr as a manufacturer. Then change authentication level to None and
interface from HDLC to HdlcWithModeE.
The baud rate is 300 7E1.
You should be able to connect now.
Regards,
Mikko
Like I said, I'm able to get…
Like I said, I'm able to get traffic back and forth, so I don't think changing the comms settings will work.
Authentication : 6
ClientAddress : 104
ServerAddress : 1
InvocationCounter : 0x90e1d0cb
Authentication: 6
ClientAddress: 0x68
ServerAddress: 0x1
Initializing secure association...
Standard: 0
Security Suite: 0
Security: 48
System title: 7E A0 07 03 D1 53 0B BB
Authentication key: D0 D1 D2 D3 D4 D5 D6 D7 D8 D9 DA DB DC DD DE DF
Block cipher key: 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
TX: 13:43:46 7E A0 07 03 D1 93 07 7D 7E
RX: 13:43:46 7E A0 20 D1 03 73 47 14 81 80 14 05 02 00 80 06 02 00 80 07 04 00 00 00 01 08 04 00 00 00 01 CE 6A 7E
TX: 13:43:46 7E A0 6B 03 D1 10 44 C5 E6 E6 00 60 5D A1 09 06 07 60 85 74 05 08 01 03 A6 0A 04 08 7E A0 07 03 D1 53 0B BB 8A 02 07 80 8B 07 60 85 74 05 08 02 06 AC 12 80 10 06 64 83 CA A7 42 48 8D 5E 72 EF 30 EF A4 A2 34 BE 23 04 21 21 1F 30 90 E1 D0 CB 8F 15 21 69 F6 34 AB D3 5C 12 17 AD D7 00 40 E3 E5 C5 1E D2 8A 78 9A 82 AC A1 16 DE 7E
RX: 13:43:46 7E A0 2D D1 03 30 57 EF E6 E7 00 61 1F A1 09 06 07 60 85 74 05 08 01 03 A2 03 02 01 01 A3 05 A1 03 02 01 01 BE 06 04 04 0E 01 00 06 F4 7F 7E
FAILED
Traceback (most recent call last):
File "C:\Users\\AppData\Local\Programs\Python\Python314\Lib\site-packages\gurux_dlms\_GXAPDU.py", line 821, in parsePDU2
_GXAPDU.parseUserInformation(settings, cipher, buff, xml)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\\AppData\Local\Programs\Python\Python314\Lib\site-packages\gurux_dlms\_GXAPDU.py", line 332, in parseUserInformation
_GXAPDU.parseInitiate(False, settings, cipher, data, xml)
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\\AppData\Local\Programs\Python\Python314\Lib\site-packages\gurux_dlms\_GXAPDU.py", line 559, in parseInitiate
_GXAPDU.parse(initiateRequest, settings, cipher, data, xml, tag)
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\\AppData\Local\Programs\Python\Python314\Lib\site-packages\gurux_dlms\_GXAPDU.py", line 406, in parse
raise GXDLMSConfirmedServiceError(ConfirmedServiceError(data.getUInt8()), ServiceError(data.getUInt8()), data.getUInt8())
gurux_dlms.GXDLMSConfirmedServiceError.GXDLMSConfirmedServiceError: ServiceError Initiate Error exception. Application reference 6
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\DLMSGURUPython\main.py", line 133, in main
reader.initializeConnection()
~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "c:\DLMSGURUPython\GXDLMSReader.py", line 392, in initializeConnection
self.client.parseAareResponse(reply.data)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
File "C:\Users\\AppData\Local\Programs\Python\Python314\Lib\site-packages\gurux_dlms\GXDLMSClient.py", line 619, in parseAareResponse
_GXAPDU.parsePDU(self.settings, self.settings.cipher, reply, None)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\\AppData\Local\Programs\Python\Python314\Lib\site-packages\gurux_dlms\_GXAPDU.py", line 657, in parsePDU
ret = _GXAPDU.parsePDU2(settings, cipher, buff, xml)
File "C:\Users\\AppData\Local\Programs\Python\Python314\Lib\site-packages\gurux_dlms\_GXAPDU.py", line 828, in parsePDU2
raise GXDLMSException(resultComponent, resultDiagnosticValue)
gurux_dlms.GXDLMSException.GXDLMSException: Connection is permanently rejected
No reason is given.
REPR: GXDLMSException('Connection is permanently rejected\r\nNo reason is given.')
ARGS: ('Connection is permanently rejected\r\nNo reason is given.',)
DisconnectRequest
TX: 13:43:46 7E A0 07 03 D1 53 0B BB 7E
RX: 13:43:46 7E A0 20 D1 03 73 47 14 81 80 14 05 02 00 80 06 02 00 80 07 04 00 00 00 01 08 04 00 00 00 01 CE 6A 7E
PS C:\DLMSGURUPython>
Using the example from the…
Using the example from the GuruX website, I get :
py -3.14 main.py -S COM23 -L LGZ
gurux_dlms version: 1.0.203
gurux_net version: 1.0.23
gurux_serial version: 1.0.21
Authentication: 0
ClientAddress: 0x10
ServerAddress: 0x1
Standard: 0
DisconnectRequest
Connection is permanently rejected
No reason is given.
Ended. Press any key to continue.
How exactly should I use the example. I'm probably doing it wrong.
Hi, Your block cipher or…
Hi,
Your block cipher or authentication key is different from what the meter uses. You need to check that.
BR,
Mikko