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

12 posts / 0 new
Last post
obulesu
Integrating of GuruxDLMSClientExample (c source) Client application in to my micro controllers based boards to read DLMS meters

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.

kurumi
kurumi's picture
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

________________________________________
Mikko Kurunsaari
Gurux Ltd
Hermiankatu 6-8 H 33720 TAMPERE, FINLAND
Phone: +358 3 265 1244
Home page: http://www.gurux.org

obulesu
Integrating of GuruxDLMSClientExample (c source) Client

thanks for your reply.

I am using Sourcery_CodeBench_Lite_for_ARM_EABI compiler.

Obulesu

kurumi
kurumi's picture
Sourcery CodeBench

Hi,

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

BR,

Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
Hermiankatu 6-8 H 33720 TAMPERE, FINLAND
Phone: +358 3 265 1244
Home page: http://www.gurux.org

obulesu
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.

Obulesu

kurumi
kurumi's picture
Integrating of GuruxDLMSClientExample (c source) Client

Hi,

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

BR,

Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
Hermiankatu 6-8 H 33720 TAMPERE, FINLAND
Phone: +358 3 265 1244
Home page: http://www.gurux.org

obulesu
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

obulesu
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

Obulesu

kurumi
kurumi's picture
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

________________________________________
Mikko Kurunsaari
Gurux Ltd
Hermiankatu 6-8 H 33720 TAMPERE, FINLAND
Phone: +358 3 265 1244
Home page: http://www.gurux.org

obulesu
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.

Obulesu

kurumi
kurumi's picture
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

________________________________________
Mikko Kurunsaari
Gurux Ltd
Hermiankatu 6-8 H 33720 TAMPERE, FINLAND
Phone: +358 3 265 1244
Home page: http://www.gurux.org

obulesu
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.

Obulesu