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:24] 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 ====== 
 +{{ network:for_wiki_.png?200|}}
  
 Sensus support M-bus specs. of EN 13757-3. Sensus support M-bus specs. of EN 13757-3.
Line 13: 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))
     return sum     return sum
 end  end 
Line 43: Line 44:
     SND_NKE[4] = getCRC(SND_NKE, 2, 2)     SND_NKE[4] = getCRC(SND_NKE, 2, 2)
 </code> </code>
 +{{network:data_read.png|}}
  
sensus_heat_meter.1610717044.txt.gz · Last modified: 2021/01/15 13:24 by emozolyak

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki