Jump to content

Protocol scan telegram RS232 ASCII


Recommended Posts

Hello to  all :) ,

I'm struggling with reading out a smart power meter
I want to use the (float) values of a telegram in a building automation project

The data I get through an RS232 card UAC-01RS2
Which are directly linked to the P1 of the Smart Power Meter
This is automatically sent every 10 seconds by the Smart Power Meter
I read the telegram in the buffer
by using the COM Rx function
But how do I filter the (float) values out of the telegram

Start = /
End =!
After the! = CRC16 using the polynomial: x16 + x15 + x2 + 1

The telegram scan by PuTTY

---------------------------------------------------------------------------------

/KFM5KAIFA-METER

 

1-3:0.2.8(42)

0-0:1.0.0(180831122702S)

0-0:96.1.1(serial number of the electricity counter 34 )

1-0:1.8.1(007782.396*kWh)

1-0:1.8.2(020529.570*kWh)

1-0:2.8.1(000000.000*kWh)

1-0:2.8.2(000000.000*kWh)

0-0:96.14.0(0002)

1-0:1.7.0(01.276*kW)

1-0:2.7.0(00.000*kW)

0-0:96.7.21(00010)

0-0:96.7.9(00007)

1-0:99.97.0(2)(0-0:96.7.19)(170211134618W)(0000008681*s)(000101000008W)(2147483647*s)

1-0:32.32.0(00000)

1-0:52.32.0(00000)

1-0:72.32.0(00000)

1-0:32.36.0(00000)

1-0:52.36.0(00000)

1-0:72.36.0(00000)

0-0:96.13.1()

0-0:96.13.0()

1-0:31.7.0(003*A)

1-0:51.7.0(002*A)

1-0:71.7.0(000*A)

1-0:21.7.0(00.699*kW)

1-0:41.7.0(00.486*kW)

1-0:61.7.0(00.089*kW)

1-0:22.7.0(00.000*kW)

1-0:42.7.0(00.000*kW)

1-0:62.7.0(00.000*kW)

0-1:24.1.0(003)

0-1:96.1.0(serial number of the gas counter 34 )

0-1:24.2.1(180831120000S)(07839.248*m3)

!95D2

 

--------------------------------------------------------------------------------------------------

 

DSMR v4.0 final P1 bus enengie.pdf

Link to post
Share on other sites
  • 4 months later...

By filter the float values you mean extract for use elsewhere (separate from the rest of the telegram)? I have done something similar but on a smaller scale using find in substring and remove from string FB's. It would be a more complex construct for what you're doing, doable none the less. I agree with NahumS, need to see it in context, give an example of the extracted floats? A table, CSV, loaded into an array?

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...