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. Integrating of GuruxDLMSClientExample (c Source) Client Application In To My Micro Controllers Based Boards To Read DLMS Meters

Integrating of GuruxDLMSClientExample (c source) Client application in to my micro controllers based boards to read DLMS meters

Forum Rules

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.

By obulesu , 2 January, 2019
Forums
Gurux.DLMS

Hi,

I am looking to integrate the GuruxDLMSClientExample ( c source ) in to my controller based board to read the DLMS meters.
any body having the source code based on the micro controllers.

thanks in advance.

Profile picture for user Kurumi

Kurumi

7 years 5 months ago

Integrating of GuruxDLMSClientExample (c source) Client

Hi,

There is an client example under Arduino_IDE. We have also an example for Atmel. What compiler you are using?

BR,
Mikko

obulesu

7 years 5 months ago

In reply to Integrating of GuruxDLMSClientExample (c source) Client by Kurumi

Integrating of GuruxDLMSClientExample (c source) Client

thanks for your reply.

I am using Sourcery_CodeBench_Lite_for_ARM_EABI compiler.

Profile picture for user Kurumi

Kurumi

7 years 5 months ago

Sourcery CodeBench

Hi,

We can add an example for Sourcery CodeBench, but it'll take a few weeks.

BR,

Mikko

obulesu

7 years 5 months ago

Integrating of GuruxDLMSClientExample (c source) Client

hi Mikko,
Can you share the Atmel example source code , we will try to incorporate the same in to our board.

Profile picture for user Kurumi

Kurumi

7 years 4 months ago

Integrating of GuruxDLMSClientExample (c source) Client

Hi,

Simple example for Atmel Studio 7.0 added. Microcontroller is AtMega2560.

BR,

Mikko

obulesu

7 years 4 months ago

In reply to Integrating of GuruxDLMSClientExample (c source) Client by Kurumi

Integrating of GuruxDLMSClientExample (c source) Client

Hi Mikko,

i have checked the source,but it not for the Atmega2560 , it is for sam family of atmel.

obulesu

7 years 4 months ago

In reply to Integrating of GuruxDLMSClientExample (c source) Client by Kurumi

Integrating of GuruxDLMSClientExample (c source) Client

Hi Mikko,
Can you please upload the example project based on the atmega2560, i have checked the example project what you have uploaded it is not for the atmega2560 ,it is for the sam arm7 family, can you please upload the sample project for the atmega2560.

thanks

Profile picture for user Kurumi

Kurumi

7 years 4 months ago

Integrating of GuruxDLMSClientExample (c source) Client

Hi,

That is an example what we are running with ATMega Mega.
https://www.arduino.cc/en/Guide/ArduinoMega2560

What kind of problems you have?

BR,

Mikko

obulesu

7 years 4 months ago

Integrating of GuruxDLMSClientExample (c source) Client

Hi Mikko,

I am using the opemcpu sdk version 2.8 (quectel), in that sdk, calloc and realloc fuctions are not implemented ,it will support only malloc function, but in the gurux client example source has calloc and realloc fuctions, we are facing the problem with that functions.Is there any source without dynamic memory allocation functions?.

need your help.

Profile picture for user Kurumi

Kurumi

7 years 4 months ago

Integrating of GuruxDLMSClientExample (c source) Client

Hi,

So this is a compiler, not a HW issue.

You need to define own implementation from gxcalloc and gxrealloc.

Add this to the begin of your project.
Something like this:

void* __cdecl ownRealloc(
void* _data,
size_t _size)
{
//Allocate memory.
return NULL;
}

#define gxcalloc(p, s) malloc(s)
#define gxrealloc(p, s) ownRealloc(p, s)

BR,

Mikko

obulesu

7 years 4 months ago

In reply to Integrating of GuruxDLMSClientExample (c source) Client by Kurumi

Integrating of GuruxDLMSClientExample (c source) Client

thanks Mikko,
we will incorporate the same in our project and test the same.

thanks for your response and quick reply.

poojash

5 years 2 months ago

Hello sir I am trying to

Hello sir I am trying to compile Atmel project on MPLAB x IDE with gcc compiler but it not build there are lots of errors while compling.
Please tell me how I can compile it to check reading from meter using SAM board

Profile picture for user Kurumi

Kurumi

5 years 2 months ago

Hi pooja,

Hi pooja,

Can you tell exact information from your board? What kind of errors you are receiving?

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

Who's new

  • Tuanhgg
  • Adel
  • charnon
  • Paddles
  • Miguel Ángel
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin