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.
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.
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?.
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
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
Integrating of GuruxDLMSClientExample (c source) Client
thanks for your reply.
I am using Sourcery_CodeBench_Lite_for_ARM_EABI compiler.
Sourcery CodeBench
Hi,
We can add an example for Sourcery CodeBench, but it'll take a few weeks.
BR,
Mikko
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.
Integrating of GuruxDLMSClientExample (c source) Client
Hi,
Simple example for Atmel Studio 7.0 added. Microcontroller is AtMega2560.
BR,
Mikko
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.
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
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
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.
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
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.
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
Hi pooja,
Hi pooja,
Can you tell exact information from your board? What kind of errors you are receiving?
BR,
Mikko