Hi,
I am using Microchip PIC32MX350F256L controller for implementing the code. I try with Hardcoded data as per below and Got data successfully in the buffer from the Energy meter using serial communication
"Send SNRM request.
TX: 7E A0 07 03 41 93 5A 64 7E
RX: 7E A0 1E 41 03 73 8E 7F 81 80 12 05 01 80 06 01 80 07 04 00 00 00 01 08 04 00 00 00 01 53 3B 7E
Send AARQ request.
TX: 7E A0 4C 03 41 10 6B 04 E6 E6 00 60 3E A1 09 06 07 60 85 74 05 08 01 01 8A 02 07 80 8B 07 60 85 74 05 08 02 01 AC 12 80 10 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 62 1E 5D FF FF 64 C7 7E
RX: 7E A0 37 41 03 30 21 79 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 10 14 00 C8 00 07 92 70 7E
"
So I am trying to add a library of "GuruxDLMS.c" in our code but there are so many generated errors so I need help to find which macro used for proper output using this library for the controller in serial mode?
Hi, You need to add the…
Hi,
You need to add the development folder to your project.
DLMS is quite a complicated protocol. You need all the files in that folder.
Then you need to establish connection to the meter as shown in this example
https://github.com/Gurux/GuruxDLMS.c/blob/master/Arduino_IDE/client/cli…
You need also modify readDLMSPacket so it can send and receive with your UART.
BR,
Mikko