Before commenting read Forum rules
Don't comment the topic if you have a new question.
You can create a new topic selecting correct category from Gurux Forum and then create a new topic selecting "New Topic" from the top left.
Before commenting read Forum rules
Don't comment the topic if you have a new question.
You can create a new topic selecting correct category from Gurux Forum and then create a new topic selecting "New Topic" from the top left.
Hello,
I'm trying to connect to a meter using an optical head. The connection is closing after sending AARQ request. I'm relatively new to DLMS protocol but after spending 2 days on the problem I can't find a way forward. Could you please help me ?
Here are the logs :
12:34:07 Initializing serial connection.
12:34:07 12:34:07.901 Info Opening
12:34:07 12:34:07.901 Info Serial Port Settings: Port Name: COM6 Baud Rate: 300 Data Bits: 7 Parity: Even Stop Bits: One Flow Control: None Eop: None
12:34:07 12:34:07.924 Info Open
12:34:08 IEC Sending:/?!<CR><LF>
12:34:08 12:34:08.938 Sent 2F 3F 21 0D 0A
12:34:09 12:34:09.263 Received 2F
12:34:09 12:34:09.294 Received 2F
12:34:09 12:34:09.325 Received 4B
12:34:09 12:34:09.357 Received 46
12:34:09 12:34:09.389 Received 4D
12:34:09 12:34:09.421 Received 35
12:34:09 12:34:09.453 Received 5C
12:34:09 12:34:09.485 Received 32
12:34:09 12:34:09.518 Received 0D
12:34:09 HDLC received: /KFM5\2<CR><LF>
12:34:09 BaudRate is : 9600
12:34:09 PM Moving to mode E.
06 32 35 32 0D 0A
12:34:09 12:34:09.523 Sent 06 32 35 32 0D 0A
12:34:11 12:34:11.533 Info Closing
12:34:11 12:34:11.664 Info Closed
12:34:11 12:34:11.664 Info Opening
12:34:11 12:34:11.664 Info Serial Port Settings: Port Name: COM6 Baud Rate: 9600 Data Bits: 8 Parity: None Stop Bits: One Flow Control: None Eop: None
12:34:11 12:34:11.683 Info Open
12:34:12 PM Send SNRM request.
7E A0 07 03 21 93 0F 01 7E
12:34:12 12:34:12.698 Sent 7E A0 07 03 21 93 0F 01 7E
12:34:12 12:34:12.744 Received 7E A0 20 21 03 73 73 98 81 80 14 05 02 02
12:34:12 12:34:12.765 Received 02 50
12:34:12 12:34:12.780 Received 00 00 01 8B FD
12:34:12 PM
7E A0 20 21 03 73 73 98 81 80 14 05 02 02 50 06 02 02 50 07 04 00 00 00 01 08 04 00 00 00 01 8B FD 7E
12:34:12 Parsing UA reply succeeded.
12:34:12 PM Send AARQ request.
7E A0 2B 03 21 10 FB AF E6 E6 00 60 1D A1 09 06 07 60 85 74 05 08 01 01 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 00 1E 5D FF FF B3 E2 7E
12:34:12 12:34:12.784 Sent 7E A0 2B 03 21 10 FB AF E6 E6 00 60 1D A1 09 06 07 60 85 74 05 08 01 01 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 00 1E 5D FF FF B3 E2 7E
12:34:12 12:34:12.875 Received 7E A0 0C 21 03 30
12:34:12 12:34:12.891 Received 30 8B F0
12:34:12 PM
7E A0 0C 21 03 30 8B F0 E6 E7 00 9E B4 7E
12:34:12 12:34:12.894 Sent 01 42 30 03 0D 0A
12:34:17 12:34:17.907 Info Closing
12:34:18 12:34:18.023 Info Closed
System.InvalidOperationException: Invalid PDU.
at Gurux.DLMS.GXDLMS.GetPdu(GXDLMSSettings settings, GXReplyData data)
at Gurux.DLMS.GXDLMS.GetData(GXDLMSSettings settings, GXByteBuffer reply, GXReplyData data, GXReplyData notify)
at Gurux.DLMS.GXDLMSClient.GetData(GXByteBuffer reply, GXReplyData data, GXReplyData notify)
at GXDLMSDirector.GXDLMSCommunicator.ReadDLMSPacket(Byte[] data, Int32 tryCount, GXReplyData reply)
at GXDLMSDirector.GXDLMSCommunicator.ReadDataBlock(Byte[] data, String text, Int32 multiplier, Int32 tryCount, GXReplyData reply)
at GXDLMSDirector.GXDLMSCommunicator.ReadDataBlock(Byte[] data, String text, Int32 multiplier, GXReplyData reply)
at GXDLMSDirector.GXDLMSCommunicator.ReadDataBlock(Byte[] data, String text, GXReplyData reply)
at GXDLMSDirector.GXDLMSCommunicator.ReadDataBlock(Byte[][] data, String text, GXReplyData reply)
at GXDLMSDirector.GXDLMSCommunicator.InitializeConnection(Boolean force)
at GXDLMSDirector.GXDLMSDevice.InitializeConnection()
at GXDLMSDirector.MainForm.Connect(Object sender, GXAsyncWork work, Object[] parameters)
I was assuming a client or
I was assuming a client or server address wrongly set but I have no clue on how to know the right address if it is the case.
Hi,
Hi,
I believe that you are right that the client or meter address is wrong. The meter returns invalid data.
7E A0 0C 21 03 30 8B F0 E6 E7 00 9E B4 7E
The only way to solve this is if you ask the client and meter address from the meter vandor.
It's possible to try to find them, but it's easier if you get them from the meter vendor.
BR,
Mikko
Thank you Kurumi. However,
Thank you Kurumi. However, the manufacturer is on holiday right now.. Any idea on how to get the address ?
Hi,
Hi,
It can be anything. It's interesting that the meter is reply with default address values, but then it returns invalid data. The best way is if you contact the meter vendor and ask if they have any documents from this. Ask also if there are any firmware updates avaialble.
BR,
Mikko