Hi,
I'm using example application "AtMega2560\GuruxDLMSClientExample" from GuruxDLMS.c.
Between the DLMS client and meter, HDLC connection is setup by transmitting and receiving SNRM and AARQ requests and responses. However, after that the application fails to read data object "0.0.42.0.0.255".
Function call hierarchy:
int com_readAllObjects()
|
int com_read(gxObject* object,unsigned char attributeOrdinal) //For "Data"
|
int cl_read(dlmsSettings* settings,gxObject* object,unsigned char attributeOrdinal,message* messages)
|
int cl_readLN(dlmsSettings* settings,unsigned char* name,DLMS_OBJECT_TYPE objectType,unsigned char attributeOrdinal,gxByteBuffer* data, message* messages)
|
int dlms_getLnMessages(gxLNParameters* p,message* messages)
|
int dlms_getLNPdu(gxLNParameters* p,gxByteBuffer* reply)
In dlms_getLNPdu(), ciphering for DLMS_COMMAND_GET_REQUEST command is resulting in default_handler().
Console log for HDLC connection:
Tx: 7E A0 07 03 21 93 0F 01 7E
Rx: 7E A0 1E 21 03 73 C3 7A 81 80 12 05 01 80 06 01 80 07 04 00 00 00 01 08 04 00 00 00 01 53 3B 7E
Tx: 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 1D FF C5 E4 7E
Rx: 7E A0 37 21 03 30 6C 7C E6 E7 00 61 29 A1 09 06 07 60 85 74 05 08 01 01 A2 03 02 01 00 A3 05 A1 03 02 01 00 BE 10 04 0E 08 00 06 5F 1F 04 00 00 00 10 03 0C 00 07 04 53 7E
Hi, Are you receiving an…
Hi,
Are you receiving an error from com_read? There are no read requests In your trace. Is that missing?
BR,
Mikko