I need to add dlms/cosem structure on our gas metering module so which will run on GPRS(udp) network.
As far as i understand on this platform, our module must push messages in scheduled time and must act like a client.
At this point, is it enough using of dlms client source code on Gurux Git? I'm a little confused about this integration so could you help me?
I have tried to compile this code on Ardunio Uno but i'm getting an error but when i try to compile this code according to Ardunio Mega i didn't get any error. As far as i see, Uno memory is not suitable for this library. Also our own hardware has restricted rom and ram as Uno MCU so can i decrease some function usage on this library? Is it possible?
EEPROM size in 1 KB in UNO. I'm sorry to say that it's too small. Generating CRC table is takin 1/4 from it. If you want to cipher generated data, the GMAC table will take the whole EEPROM.
I'm sorry to say but it's not possible to run in UNO.
It depends on what kind of functionality you want to implement. If you want to only send push messages and there is not a lot of data that you want to send it might be possible even with 2 LB of RAM. DLMS is not a simple protocol.
Hi,
Hi,
You need to download Gurux.DLMS.Push.Listener.Example.
https://github.com/Gurux/Gurux.DLMS.Net/tree/master/Gurux.DLMS.Push.Lis…
It will listen to push messages and convert them to XML.
If you are using ciphered connection you must set correct authentication and block cipher keys.
BR,
Mikko
Hi Mikko,
Hi Mikko,
As far as i understand, your suggestion is for usage remote server side. Can i use push example code on meter side?
https://github.com/Gurux/GuruxDLMS.c/tree/master/GuruxDLMSPushExample
Hi,
Hi,
If you want to send push messages from the meter, check Arduino example:
https://github.com/Gurux/GuruxDLMS.c/blob/20d0ceadf1fc80d2ee0bbddf1d6cb…
BR,
Mikko
Hi Mikko,
Hi Mikko,
I have tried to compile this code on Ardunio Uno but i'm getting an error but when i try to compile this code according to Ardunio Mega i didn't get any error. As far as i see, Uno memory is not suitable for this library. Also our own hardware has restricted rom and ram as Uno MCU so can i decrease some function usage on this library? Is it possible?
Hi,
Hi,
EEPROM size in 1 KB in UNO. I'm sorry to say that it's too small. Generating CRC table is takin 1/4 from it. If you want to cipher generated data, the GMAC table will take the whole EEPROM.
I'm sorry to say but it's not possible to run in UNO.
BR,
Mikko
Hi Mikko,
Hi Mikko,
It is not problem. Our own hardware has 2kb ram so can we use uncipher data on this mcu(MSP430FR6972)? What are min requirements of this library?
Hi,
Hi,
It depends on what kind of functionality you want to implement. If you want to only send push messages and there is not a lot of data that you want to send it might be possible even with 2 LB of RAM. DLMS is not a simple protocol.
BR,
Mikko