pmcgn / dbus-modbus-client-kostal-smartmeter

13 stars 3 forks source link

Serial number not shown -> solution #12

Open cRaErBs opened 2 months ago

cRaErBs commented 2 months ago

Hello pmcgn,

I played around a bit and found a way for the serial number:

  self.info_regs = [
       Reg_u16(0x2002, '/HardwareVersion'),
       Reg_u16(0x2003, '/FirmwareVersion'),
       #Reg_u16(0x2033, '/Serial'), # not populated correctly by KSEM, therefore reading it as uInt instad of String - replaced by next line
       Reg_text( 0x2024, 16, '/Serial'),
   ]

Thanks again for providing the KSEM solution.