I am using a 128kB flash MCU, and this library occupied space more than 115kB, so doesn't have much space for my code. So, requesting to help for lower footprint of DLMS library.
I tried your solution and able to reduce only 12kB of size.
I need to read only Register and Profile generic and our flash limitation is of 20 kB maximum for DLMS library.
Could I achieve this? or Is there another way to get Register and Profile generic with 20kB of flash for DLMS library?
You need to un-comment all the features that you don't need. I don't know what compiler you are using, so I can't compare the results.
If you have a maximum of 20 Kb flash I can say that it's very unlike that you can read DLMS meters. Before you can read the register or data objects you must establish the connection for the meter.
If you need to use a High level or GMac authentication the size will increase much bigger.
I believe it's not possible. HDLC framing will take about 6 Kb.
Data or Register values can be example bit-string, date-time, string, signed number or unsigned number, etc. Handling different data types is not trivial.
Establishing the connection is not an easy task. There are a lot of different errors that might occur and you must handle them all.
Hi,
Hi,
Open gxignore.h file and un-comment all COSEM objects that you don't need.
#define GX_DLMS_MICROCONTROLLER
#define DLMS_IGNORE_ARBITRATOR
etc...
BR,
Mikko
I tried your solution and
I tried your solution and able to reduce only 12kB of size.
I need to read only Register and Profile generic and our flash limitation is of 20 kB maximum for DLMS library.
Could I achieve this? or Is there another way to get Register and Profile generic with 20kB of flash for DLMS library?
Hi,
Hi,
You need to un-comment all the features that you don't need. I don't know what compiler you are using, so I can't compare the results.
If you have a maximum of 20 Kb flash I can say that it's very unlike that you can read DLMS meters. Before you can read the register or data objects you must establish the connection for the meter.
If you need to use a High level or GMac authentication the size will increase much bigger.
BR,
Mikko
I am using arm-gcc-none-eabi
I am using arm-gcc-none-eabi for STM32.
I need Low level authentication only. Is it possible to achieve only 20kB flash for Dlms Library.
Hi,
Hi,
I believe it's not possible. HDLC framing will take about 6 Kb.
Data or Register values can be example bit-string, date-time, string, signed number or unsigned number, etc. Handling different data types is not trivial.
Establishing the connection is not an easy task. There are a lot of different errors that might occur and you must handle them all.
BR,
Mikko