Boetje Posted August 31, 2018 Report Share Posted August 31, 2018 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-01RS2Which are directly linked to the P1 of the Smart Power MeterThis is automatically sent every 10 seconds by the Smart Power MeterI read the telegram in the buffer by using the COM Rx functionBut how do I filter the (float) values out of the telegramStart = /End =!After the! = CRC16 using the polynomial: x16 + x15 + x2 + 1The 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 Quote Link to comment Share on other sites More sharing options...
NahumS Posted January 8, 2019 Report Share Posted January 8, 2019 Hello Boetje, I need you to send the application file, I would like to check your configuration. In addition, explain me in details what would you like to achieve and give me one or two examples for emphasizing it. Quote Link to comment Share on other sites More sharing options...
hotwires Posted January 9, 2019 Report Share Posted January 9, 2019 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? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.