Class creation

20 posts / 0 new
Last post
sha m
Class creation

Hai,
I planned to integrate DLMS protocol to my existing energy meter code. Initially I want to know how to create a class for meter(server). If there any tutorial or example kindly let me know. Thanks in advance.

Regards,
sha.

sha m

Hello any one there to help?

Kurumi
Kurumi's picture

Hi,
I'm sorry for the slow reply. What programming language you want to use? There is an example server available in GitHub. https://github.com/gurux/

BR,

Mikko

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

sha m

Hi mikko,
I have tried with gurux director and I have seen the request and response but there is no baud rate setting or changing commands in it. 7E A0 07 03 41 93 5A 64 7E this is the initial request, after that AARQ is sending. My doubt is,
1. when will the synchronization happen?
2.I have not seen anything like this “/ ? Device Address ! CR LF” why?

Thanks
sha.

Kurumi
Kurumi's picture

Hi,

Change start protocol from DLMS to IEC.

BR,
Mikko

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

sha m

Hi mikko,
Thanks for your reply.
1. if start protocol is DLMS then there is no Serial number detection then how it will identify the exact server? by unique server ID?
2. What is the standard procedure, starting with IEC or DLMS?

Thanks
sha.

Kurumi
Kurumi's picture

Hi,

1. After connection is made client will ask Logical Device Name from the server. It consists FLAG ID + serial number.

2. IEC is used if you connect to the meter using optical head (probe) otherwise, it's DLMS.

BR,
Mikko

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

sha m

Hi mikko,
Thanks for your reply.
1. In which case SNRM will contain Information?
2. If information is not there then meter should send default value right?
3. How the negotiation will happen? can I send Default value as negotiated value?
4. client is sending some information about window size, tx and rx size, What all are it means?

Thanks & Regards,
Sha.

Kurumi
Kurumi's picture

Hi,

If there are no parameters, default settings are used. tx and rx size are size of the frame.

BR,
Mikko

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

sha m

Hi mikko,
Thanks for your reply. I have tried with Gurux open source server code and I have sent AARQ with low level authentication and got the below response,
7E A0 37 41 03 30 21 79 E6 E7 00 61 29 A1 09 06
07 60 85 74 05 08 01 01 A2 03 02 01 00 A3 05 A1
03 02 01 00 BE 10 04 0E 08 00 06 5F 1F 04 00 40 1E 1C
01 64 00 07 5D C6 7E

It's well and good then I tried without authentication that case also I got "40 1E 1C" as Conformance block value.. why it's giving same access to the both cases? is it right?

Thanks & Regards,
Sha M.

sha m

hi mikko kindly reply as soon as possible

Kurumi
Kurumi's picture

Hi,

Yes, Conformance block value can be the same. It depends on the meter what kind of functionality is allowed.

BR,

Mikko

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

sha m

Hi mikko,

Is there any standard documents for authentication and its accessibility. I mean, lowest level authentication only give this much accessibility and low level can give this much accessibility like that.

Thanks & Regards,
Sha m.

Kurumi
Kurumi's picture

Hi,

DLMS standard doesn't define what to show. That depends on the manufacturer. In some sub-standards, Like India and Italy, it's defined.

BR,
Mikko

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

sha m

Ok thank you mikko

sha m

HI mikko,
In colored book they are using one term MAC frame,on it mac value is coming along with the HDLC packet
example from green book
MAC frame carrying an SNRM HDLC frame
6C 6C 00 C0 10 10 10 7E A0 08 02 23 C9 93 E4 43
7E 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 3F 96 F1
-- Explanation:
6C 6C // NS field, number of MAC subframes is 1
00 // Credit fields, IC = 0, CC = 0, DC = 0
C0 10 10 // MAC addresses: SA = C01, Initiator, DA = 010, Individual
10 // Pad length
7E // HDLC frame flag
A0 08 // Frame type and length
02 23 C9 // DA =0x0111, SA = 0x64
E4 43 // HDLC FCS
7E // // HDLC frame flag
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // padding
3F 96 F1 // MAC FCS

My doubt is what is the use MAC frame and in which condition mac frame is to be used?

Thanks,
Sha M.

Kurumi
Kurumi's picture

HI,

We are not supporting MAC frames at the moment. I have made a design for that and we can add support quite easily. Can you tell what programming language you want to use and we'll add support for that first?

BR,
Mikko

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

sha m

Hi,
I'm just asking about the case, in which case MAC should be used. one of my friend told PLC needs MAC is it right? btw I'm using C language for my meter.
Thanks,
Sha M.

Kurumi
Kurumi's picture

Hi,

Your friend is right. MAC is used with PLC.

BR,

Mikko

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

sha m

Thanks mikko.