I am unable to make US connection using dlms for java. Gurux director successfully create US connection. So I have compared data of gurux director and dlms java. Both are same. But during parsing of user information, java code giving error as follows:
gurux.dlms.GXDLMSException: Connection is permanently rejected
No reason is given.
at gurux.dlms.GXAPDU.parsePDU2(GXAPDU.java:1111)
at gurux.dlms.GXAPDU.parsePDU(GXAPDU.java:873)
at gurux.dlms.GXDLMSClient.parseAareResponse(GXDLMSClient.java:729)
at le.dlms.client.GXDLMSReader.initializeConnection(GXDLMSReader.java:474)
I am using dlms java version 2.2.22.
I want to know how can i resolve it.
I have passed correct client address, authentication level and password. Even then i am getting this error.
If i use authentication level high with security level none then it works fine. But when i change security to AuthenticationEncryption then it fails. After decrypt data, i am getting tag 199. which cause to this error from parse(initiateRequest, settings, cipher, data, xml, tag); method in GXAPDU class.
US connection
Hi,
Check that your client address, authentication level and password are the same.
This is usually the reason.
BR,
Mikko
I have passed correct client
I have passed correct client address, authentication level and password. Even then i am getting this error.
If i use authentication level high with security level none then it works fine. But when i change security to AuthenticationEncryption then it fails. After decrypt data, i am getting tag 199. which cause to this error from parse(initiateRequest, settings, cipher, data, xml, tag); method in GXAPDU class.
US connection
Hi,
Can you post meter reply message here?
BR,
Mikko
Meter Reply :
Meter Reply :
7E A0 6F 61 03 30 D4 4A E6 E7 00 61 61 A1 09 06 07 60 85 74 05 08 01 03 A2 03 02 01 00 A3 05 A1 03 02 01 0E 88 02 07 80 89 07 60 85 74 05 08 02 02 AA 09 80 08 50 36 77 52 4A 32 31 46 A4 0A 04 08 4C 45 49 41 41 41 41 41 BE 23 04 21 28 1F 30 00 00 00 00 5B 3F F3 3D 9A CD D4 1A B8 B0 3B D1 B1 86 17 51 5B B1 06 BF 60 A6 01 55 A8 50 26 EC 7E
Hi
AArq Request :
7E A0 6B 03 61 10 2A FF E6 E6 00 60 5D A1 09 06 07 60 85 74 05 08 01 03 A6 0A 04 08 4C 45 49 41 41 41 41 41 8A 02 07 80 8B 07 60 85 74 05 08 02 02 AC 12 80 10 2D 01 2D 79 5F 66 1A 2B 5C 2E 51 5D 42 1B 35 30 BE 23 04 21 21 1F 30 00 00 00 00 9D 38 3C E5 4D 3B 9B 92 E4 D8 20 D9 AF 18 CA 2D C0 2A 76 6C FE C6 53 1C 82 BD 88 F6 7E
Meter Reply :
7E A0 6F 61 03 30 D4 4A E6 E7 00 61 61 A1 09 06 07 60 85 74 05 08 01 03 A2 03 02 01 00 A3 05 A1 03 02 01 0E 88 02 07 80 89 07 60 85 74 05 08 02 02 AA 09 80 08 50 36 77 52 4A 32 31 46 A4 0A 04 08 4C 45 49 41 41 41 41 41 BE 23 04 21 28 1F 30 00 00 00 00 5B 3F F3 3D 9A CD D4 1A B8 B0 3B D1 B1 86 17 51 5B B1 06 BF 60 A6 01 55 A8 50 26 EC 7E
US connection
Hi,
Meter replies AUTHENTICATION_REQUIRED error. Can you post reply message when using GXDLMSDirector?
BR,
Mikko
Hi
Problem solved. Thanks