ZeWaren / izar-prios-smart-meter-collector

WMBus PRIOS smart meter collector implementation for IZAR 868MHz I R4 water meters
https://zewaren.net/wmbus-izar-meter.html
BSD 3-Clause "New" or "Revised" License
39 stars 5 forks source link

OMS version of IZAR RC I G4 #1

Open modjo756 opened 4 years ago

modjo756 commented 4 years ago

Hi, thanks a lot for your nice job on Izar water counter with PRIOS decoding. I would like to use wireless counter and following your work i have bought the same ST evaluation card. But for the counter i hesitate to take the version G4 that use the OMS protocol. From your post it seems that PRIOS just encode the payload (if i understand). Is the frame already respect the OMS protocol ? Regards,

ZeWaren commented 4 years ago

If your meter is using a different payload protocol, then you can still reuse everything up until the PRIOS part:

https://github.com/ZeWaren/izar-prios-smart-meter-collector/blob/20bcd21d548c20bed90852b849944ea42da2c748/ST-STEVAL-FKI868V1/Src/S2LP_WMBus.c#L83

Instead of calling getMetricsFromPRIOSWMBusFrame, you'd call another function decoding another protocol.

The physical link and data link layers should work the same since it's wireless m-bus, and wmbus doesn't care what its payload is.

modjo756 commented 4 years ago

Thanks for your answer. I will order the G4 model (OMS) and make a pullRequest when i will decode the payload if you want ?