China Micro inverter : how import data power monitoring

you could try my wvc software and extract the protocol from it

the protocol is ::
you send byte string that starts with f2 , modemID, inverterID, ends with 65
it sends back a response with a 34 bits the 17-20th bit is VDC , 21-24 bit is ADC, 25-28 is VAC 29 -32 is AAC and 33-34 is temp ( they are little edian that you converted to decimal) and then lookup in a table – the first bits is your modemID, then inverterID, then I believe PF But i do use it so it not included in the bash script.

anything else let me know

my bash script works as follow ;

  1. get command line arguments and set virtual pot ID for interceptty
  2. reads configuration file
  3. sends payload
  4. test for payload if no response then send modem test if still no response restart virtual port
  5. if response 86 on temp then modem is sending NUL data (nighttime stop processing and and go to the next )
  6. extract bit convert to from little edian to decimal and look up in table
  7. calculate wattage and panel efficiencies
  8. end of configuration file- calculate totals and overall efficiencies
  9. repeat

by the way I got my information from reverse engineering another opensource WVC software-- it did not work for me no response from the author- so a day later i reverse engineered it into something simpler and easier that I can use on and openwrt router platform just plug the modem into the USB port on a comman router and it send data to database