User Tools

Site Tools


sensus_heat_meter

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
sensus_heat_meter [2021/01/15 13:37] emozolyaksensus_heat_meter [2022/01/15 17:30] (current) – ↷ Links adapted because of a move operation 127.0.0.1
Line 1: Line 1:
 ====== Sensus GmbH heat meters with M-bus ====== ====== Sensus GmbH heat meters with M-bus ======
-{{ ::for_wiki_.png?200|}}+{{ network:for_wiki_.png?200|}}
  
 Sensus support M-bus specs. of EN 13757-3. Sensus support M-bus specs. of EN 13757-3.
Line 14: Line 14:
     local mask = 0xFF     local mask = 0xFF
          
-    for i = pos, pos+len-1 do+    for i = pos, pos + len - 1 do
         sum = sum + a[i]         sum = sum + a[i]
-        sum = bit.band(sum,mask)+        sum = bit.band(sum, mask)
     end      end 
                               DEBUG("CRC sum in the end of function = "..tostring(sum))                               DEBUG("CRC sum in the end of function = "..tostring(sum))
Line 44: Line 44:
     SND_NKE[4] = getCRC(SND_NKE, 2, 2)     SND_NKE[4] = getCRC(SND_NKE, 2, 2)
 </code> </code>
-{{::data_read.png?800|}}+{{network:data_read.png|}}
  
sensus_heat_meter.1610717875.txt.gz · Last modified: 2021/01/15 13:37 by emozolyak

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki