Dlms-Cosem On GPRS For Gas Meter

8 posts / 0 new
Last post
Caner Dinçer
Dlms-Cosem On GPRS For Gas Meter

Hi,

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?

Best Regards

Kurumi
Kurumi's picture

Hi,

You need to download Gurux.DLMS.Push.Listener.Example.
https://github.com/Gurux/Gurux.DLMS.Net/tree/master/Gurux.DLMS.Push.List...

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

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi

Caner Dinçer

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

Kurumi
Kurumi's picture

Hi,

If you want to send push messages from the meter, check Arduino example:
https://github.com/Gurux/GuruxDLMS.c/blob/20d0ceadf1fc80d2ee0bbddf1d6cbe...

BR,
Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi

Caner Dinçer

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?

Kurumi
Kurumi's picture

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

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi

Caner Dinçer

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?

Kurumi
Kurumi's picture

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

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi