DLMS Simulation for Push Objects

26 posts / 0 new
Last post
ajaywazir
DLMS Simulation for Push Objects

Hi Mikko,
Do you have any example of push objects and push configuration in DLMS server simulator.
I tried to set one up with one push object but how to make it send data every 1 minute to the client.
Do we need to use a timer to be invoked or the push configuration does it automatically.
I could not get it going on automatic basis
Regards
Ajay

kurumi
kurumi's picture
DLMS Simulation for Push Objects

Hi Ajay and Happy new year.

We do not have server Simulator at the moment. We are receiving Push messages and parse them, but we do not have Simulator to generate them.

I will add this to the worklist, but it will take about two months before we have time to add this. We are little bit busy with new API at the moment.

BR,

Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
Hermiankatu 6-8 H 33720 TAMPERE, FINLAND
Phone: +358 3 265 1244
Home page: http://www.gurux.org

gura
DLMS Simulation for Push Objects

Hi Mikko,

I'm interested in the analysis of real data-notification push messages from real power meter,
and if you can send me a few examples of messages you received from meter.

Best regards,
Gura

kurumi
kurumi's picture
DLMS Simulation for Push Objects

Hi Gura,

Message is something like this:

00 01 00 01 00 01 00 F4 E0 00 00 01 00 00 0F 00 00 00 11 00 02 08 01 08 02 04 12 00 28 09 06 00 07 19 09 00 FF 0F 02 12 00 00 02 04 12 00 01 09 06 00 00 2A 00 00 FF 0F 02 12 00 00 02 04 12 00 01 09 06 00 00 60 01 01 FF 0F 02 12 00 00 02 04 12 00 01 09 06 01 00 00 02 00 FF 0F 02 12 00 00 02 04 12 00 01 09 06 00 00 60 04 00 FF 0F 02 12 00 00 02 04 12 00 01 09 06 00 00 60 05 00 FF 0F 02 12 00 00 02 04 12 00 01 09 06 00 00 61 61 00 FF 0F 02 12 00 00 02 04 12 00 0F 09 06 00 00 28 00 00 FF 0F 04 12 00 00 09 10 4D 45 4C 31 30 31 30 37 31 30 35 30 30 30 32 37 09 40 4D 45 54 35 30 30 2D 45 33 34 4E 2D 49 30 35 20 49 4D 31 30 30 20 55 4E 32 33 30 2D 41 33 31 30 30 33 20 52 33 32 30 30 33 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

This is only part of whole message, but I believe that you can get a clue.

BR,

Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
Hermiankatu 6-8 H 33720 TAMPERE, FINLAND
Phone: +358 3 265 1244
Home page: http://www.gurux.org

gura
DLMS Simulation for Push Objects

Hi Mikko,

you send me part of "Push On Instalation" message and thank you for it. I analyzed and understand what it means.
Please send me the message beginning, data before 00 01 00 01 00 01 00 F4 E0 00 00 01 00 00 0F 00 00 00 11 00 to analyze that part of the message.
If you have messages "Push on Wakeup" and "Push on Alarm", I would be grateful if you send them.

BR,
Gura

kurumi
kurumi's picture
DLMS Simulation for Push Objects

Hi,

There is no data. This is using WRAPPER, not HDLC framing.
I do not have any example from "Push on Wakeup" or "Push on Alarm" at the moment.

BR,

Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
Hermiankatu 6-8 H 33720 TAMPERE, FINLAND
Phone: +358 3 265 1244
Home page: http://www.gurux.org

gura
DLMS Simulation for Push Objects

Hi Mikko,

Could you please perform Push setup for "0-7:25.9.0.255 Push On Instalation" attribut 2. push_object_list,
and set only 3 objects (1. 0-0:42.0.0.255 COSEM Logical Device Name;
2. 0-0:96.1.1.255 Device ID2,
3. 1-0:0.2.0.255 Active firmware version)
and then execute the method 1. push (data) for the object "0-7:25.9.0.255 Push On Instalation"
on the meter that you test (MEL 10107 10500027) and send the message you receive in response from meter.
Thank you in advance,
Gura

kurumi
kurumi's picture
DLMS Simulation for Push Objects

Hi,

We have added Push and Data notification generator to Java and C# versions. Get latest versions and read more here: http://www.gurux.fi/gurux.dlms

BR,

Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
Hermiankatu 6-8 H 33720 TAMPERE, FINLAND
Phone: +358 3 265 1244
Home page: http://www.gurux.org

Ambitious
Data Notification service

Dear All;
I'm a new to the data notification services, and i read the Push interface classes and objects in the Blue book and it is OK to me but my question is how can i format the message to be sent to the client,what is the process for doing it
shall the meter(server) have to connect to the client to send the data or something else
what is the frame format to send for push message?
is their any simple example containing the message frame?

Thank you
I appreciate your support

------------------------------------
Mohamed Hamed
Embedded Software Team leader
Elsewedy Electrometer

kurumi
kurumi's picture
Data Notification service

Dear Mohamed,

Frame is DLMS frame. You can use our Gurux.DLMS.Push.Listener.Example.Net to send and receive push messages. I hope it will help you to get started.

BR,

Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
Hermiankatu 6-8 H 33720 TAMPERE, FINLAND
Phone: +358 3 265 1244
Home page: http://www.gurux.org

Ambitious
Push service over using HDLC

Dear Kurunsaari;
Thank you for you support, I used the example you mentioned and it was very helpful,
i decoded the Push services as below, could you please correct me if i'm wrong?

00 01 00 01 00 01 // wrapper header
00 5c // length
0f // Push service
c0 00 00 01 // invocation id
00 // unknown byte
02 03 // struct of 3 elements
01 03 // Array[3]
02 04 // struct of [4], Push setup class
12 00 28 // class ID
09 06 00 07 19 09 00 ff // Obis
0f 02 // att index 0x02
12 00 00 // data index long-unsighed [0]
02 04 // structure of [4] // Date and time [ the event send date and time]
12 00 08
09 06 00 00 01 00 00 ff
0f 02
12 00 00
02 04 // struct [4]// simple data, date and time( just an example)
12 00 08
09 06 00 00 01 00 00 ff
0f 02
12 00 00
09 0c 07 e0 0c 0c 01 0f 08 0e 33 00 78 00 // Date and time of sending the date
09 0c 07 e0 0c 0c 01 0f 08 0e 33 00 78 00 // Date and time( simple date)

Another example, when i used the HDLC format i got this frame over the Ethernet.
7e //infanion
a0 22 // Length
03 // addredd 0x01
03 // address 0x01
30 // address 0x15
19 // control field
67 // CFC
e6 e7// Data link command
00 // unknow
0f // Push service command
c0 00 00 01 // invoc ID
00 // unknow
02 // struct
01 // array[1]
09 0c 07 e0 0c 0c 01 0f 0f 0e 0a 00 78 00 00 f6 7e // Oct string 12 bytes, date and time

The questions are:
-1- Is my decoding is write or i'm wrong
-2- what is the 0x00 ( unknown byte refer to)
-3- could you please let me know is it applicable to send the above frame over Serial interface (or we should follow a specific standard)
-4- is their a fixed HDLC addreses for Push service

Thanks
Mohamed Hamed

------------------------------------
Mohamed Hamed
Embedded Software Team leader
Elsewedy Electrometer

kurumi
kurumi's picture
Push service over using HDLC

Dear Mohamed,

Your data seems correct. Because there is not all data, I can't verify it.
0x00 is latest LLC byte. You can send HDLC frame over serial interface. Our clients are usually using WRAPPER, but client address and server address what you are using are same what we are using.

BR,

Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
Hermiankatu 6-8 H 33720 TAMPERE, FINLAND
Phone: +358 3 265 1244
Home page: http://www.gurux.org

Ambitious
Push service over using HDLC

Dear Mikko;
Thank you for your reply, could you please let me know is it applicable to send data ( Push service) over serial interface direct or not? if it is applicable could you please let me know the frame format and can the meter send the data without pre-Association initiated?

------------------------------------
Mohamed Hamed
Embedded Software Team leader
Elsewedy Electrometer

kurumi
kurumi's picture
Push service over using HDLC

Hi,

Our DLMS component is supporting only WRAPPER interface at the moment. Standard is not take part is WRAPPER or HDLC used. Meter (server) can send push messages without initialization (AARQ/AARE).

BR,

Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
Hermiankatu 6-8 H 33720 TAMPERE, FINLAND
Phone: +358 3 265 1244
Home page: http://www.gurux.org

Ambitious
Thanks

Thanks

------------------------------------
Mohamed Hamed
Embedded Software Team leader
Elsewedy Electrometer

ajaywazir
Decoding Data Notification

Hi Mikko,
I am able to create a datanotificaiton message as follows
00 01 00 01 00 01 00 41 0F C0 00 00 01 00 02 03 01 03 02 04 12 00 28 09 03 25 25 05 0F 02 12 00 00 02 04 12 00 01 09 03 42 25 05 0F 02 12 00 00 02 04 12 00 2A 09 03 25 25 05 0F 03 12 00 00 09 03 12 34 56 06 07 01 A8 C0
However, in the example, I see only
List<KeyValuePair<GXDLMSObject, int>> list;
list = ParsePush((Object[])data.Value);
This is giving me errors.
Is there any example that shows how to decode actual data notification message?
Ajay

P.S.
I also noticed that It works in Windows 7 64 bit system (under any cpu config) but not on Windows 10, 64bit, both under x86 and any cpu!!! Looks strange...

P.S. P.S
Gurux.DLMS and the example need to be compiled in x86 for the example to work.
Looks working...

Ajay Wazir

kurumi
kurumi's picture
Decoding Data Notification

Hi Ajay,

In my mind push messages are little bit problematic. You can select data what you want to send to push message, but push message is not describe what data is sent or example register scalers.

Some of our clients are sending push_object_list as first item. This will tell what kind of data is sent.
You can use ParsePush for that.

All data is data.Value field. You do not need to call ParsePush. I just talk from this and we are removing this from the example bevause standard is not say anything that push_object_list is need to send first.

Check this and you can see the data:
http://www.gurux.fi/GuruxDLMSTranslator?pdu=0FC0000001000203010302041200...
BR,

Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
Hermiankatu 6-8 H 33720 TAMPERE, FINLAND
Phone: +358 3 265 1244
Home page: http://www.gurux.org

ajaywazir
Hi Mikko,

Hi Mikko,
Thanks.
I do understand the complexities.
We have to configure meters in a way to send a list of capture objects followed by respective values.

Regards
Ajay

Ajay Wazir

yatingarg168
DLMS Simulation for Push Objects

Hi Mikko

As per your above comment
"We do not have server Simulator at the moment. We are receiving Push messages and parse them, but we do not have Simulator to generate them.

I will add this to the worklist, but it will take about two months before we have time to add this. We are little bit busy with new API at the moment.

BR,

Mikko"

Did you get a chance to create the Simulator to generate push messages?

Thanks
Yatin

kurumi
kurumi's picture
DLMS Simulation for Push Objects

Hi Yatin,

Please, create a new topic.

There is a push simulator available for C# and Java.
Check example for C# : Gurux.DLMS.Push.Listener.Example.Net

BR,
Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
Hermiankatu 6-8 H 33720 TAMPERE, FINLAND
Phone: +358 3 265 1244
Home page: http://www.gurux.org

ps
DLMS Simulation Push Objects with GBT

Hi Mikko,
We are trying to perform PUSH using GBT mechanism.In GB 8.3 edition Fig 118 explains Datanotification service with GBT. but not getting a clear idea about the additional service parameters used.How to include it in APDU? What will be the values of LB,STR,Window field when push occurs?
Push example sequence given in your earlier post was,
00 01 00 01 00 01 00 F4 E0 00 00 01 00 00 0F 00 00 00 11 00 02 08 01 08 02 04 12 00 28 09 06 00 07 19
where E0-Tag of GBT ,00 represents Blockcontrol,00 01 represents block number...In which if the no: of blocks sent is 1 then how the value of LB and STR in Block control became 0?
Could you please provide us a valid GBTdata notification example with additional service parameters?
Thank you

ps
India

kurumi
kurumi's picture
DLMS Simulation Push Objects with GBT

Hi,
This is defined on DLMS standard. You can get an idea of the bits from here:
http://www.gurux.fi/GuruxDLMSTranslator?pdu=E000000100000F00000011000208...

Note! Lenght of the frame is wrong in your bytes.

BR,

Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
Hermiankatu 6-8 H 33720 TAMPERE, FINLAND
Phone: +358 3 265 1244
Home page: http://www.gurux.org

ps
Push Objects using GBT

Hii Mikko,
I got some idea about the GBT data notification sequence from the link you suggested.But now also having some doubts regarding LB , STR ,Block number and using additional parameters as part of GBT. So could you please provide an example sequence of push using GBT sending "multiple blocks"
Thanks

ps
India

jagadeesh
Data notification and Event notification for push

Hi Mikko,

I'm new to DLMS can you please support regarding pushing of data using data notification and event notification?

ps
Push Objects using GBT

Hi Mikko,
Please give reply to my previous post.Please provide a complete example sequence of push using GBT sending multiple blocks.
Thanks

ps
India

kurumi
kurumi's picture
Push Objects using GBT

Hi PS,

What kind of doubts you have from streaming and block number?

BR,

Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
Hermiankatu 6-8 H 33720 TAMPERE, FINLAND
Phone: +358 3 265 1244
Home page: http://www.gurux.org