Skip to main content
Home
for DLMS smart meters
Open source solutions for DLMS smart metering

Main navigation

  • Home
  • Products
  • About us
  • Open Source
  • Community
  • Forum
  • Downloads
User account menu
  • Log in

Breadcrumb

  1. Home
  2. I Can't Compile The Client Code In Microchip Controller

I can't compile the Client code in Microchip controller

By Sanketp , 26 April, 2024
Forums
Gurux.Serial

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?

Profile picture for user Kurumi

Kurumi

2 years 1 month ago

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

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Tue, 06/09/2026 - 11:16
    gurux.dlms.java 4.0.95
  • Tue, 06/09/2026 - 10:03
    Gurux.DLMS.Python 1.0.199
  • Mon, 06/08/2026 - 13:39
    gurux.dlms.cpp 9.0.2606.0801
  • Mon, 06/01/2026 - 10:15
    gurux.dlms.cpp 9.0.2606.0101
  • Thu, 05/28/2026 - 16:06
    gurux.dlms.java 4.0.94

New forum topics

  • Error reading L&G Meter
  • Pass a TCP Client to GXNet
  • Australian EDMI Mk10D (Essential Energy area)
  • Strange mix of data notificiation vs get response
  • DLMS Connection
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin