WVC inverter MQTT Data logging for all versions of inverters

for my experience with HC-12, I currently have ten!
The only one I would describe as original is that oh my WVC300. The problem is that there are counterfeits as seen on the site of HC01 the manufacturer of HC-12


look at the “white-egg” color of the Original !
for more authenticity informations : HC服务中心

Concretely: the modules are bad or defective or only communicate between the two modules you just bought on Aliexpress like the last ones I took! :frowning_face:
The originals are several hundred meters, the others are no more than a few meters!

I have been using my RPI to run node-red with the HC12 directly connected to the UART pins of the GPIO for 1 year. I had no disconnection .(Only change 5v power supply : god save China lol)
I configured the RPI like this:


in RPI

in node-red actually working

BE CAREFUL of the connection! From my memories, you must use 3v3 to power the HC12 because the logic levels of the UART are between 0v and 3v.


I consume a lot of RAM because it does a lot of things other than a photovoltaic monitor.

I do not use red-node dash for that reason - it can be very hungry-- my memory is quite low at

and with running zigbee@mqtt, influxdb, cronograf ( my dashbord), kapacitor, domoticz, collectd all while acting as router on openwrt os using a 2 core Banana pi -R1 with gig of memory

@Rene_Baars

image

send like with 1 up 64

F1 FF FF FF FF FF FF 00 00 03 00 FF FF 01 

up to

F1 FF FF FF FF FF FF 00 00 03 00 FF FF 64

@ thalesmala
I build my own battery storage.

Normally the MPP Tracker isn´t good to use behinde a battaery.

@ Ducati
Inside the Inverter the antenna cabel is near by a lot of electronic components. And especially the coil cause a lot of magnatic fields → emc.

Maybe it could be a solution like that. I took the HC12 of the Inverter and it works very good.

Nice – I set up similar with sun-1000gtil2 it a nice inverter works with batteries or solar panels directly it also has GTI limiting function. but I can also control directly with a using a digital pot on the external port… one day I will try to figure out the comport data coming off it just never tried yet

here a pdf if you are curious

Following with HC-12 experiences

My setup Portable PC with HC-12… only work to 1 meter. Very weak radio link.

Then I removed from my modem R2 the HC-12 with an external antenna. And… voila, WORK!! fine several meters and walls…great!!!

In order to clarify I tested several options at the same time.Portable PC with:

  • CP210 + HC-12 from WVC + External antenna → work fine
  • CP210 + HC-12 from Aliextpres +spring antenna → not fine
  • CP210 + HC-12 from Aliextpres +Ext antenna +100uF → not fine
  • CP210 + HC-12 from Aliextpres +Ext antenna → not fine
    -CP210 + HC-12 from WVC + spring antenna → no tested

My conclusion. My HC-12 from Aliexpress is garbage, only works in short distances.
How to distinguish garbage or valuable?
One HC-12 is v2.4 and other V2.6. Enough reason?
Where bay good HC-12?

you can try banggood.com price is comparable to aliexpress.com though you pay more for shipping-- I bought mine from them as they deliver quicker… my inverters are about 500 feet away no issue reallly

@ stephen krywenko Wich kind antenna are you using? Wich voltage?

Bingo! Probably is gone by now. Totally forgot.

I feel that as well. Once you deploy and debug your script, I will follow it.

Nice, I was thinking about use that inverter for a small wind turbine as well.

i use a usb serial at 5v and the antenna that came with it

see here : exist counterfeits HC-12

@ Ducati
I bought my HC12 in this Store and it works very well.

https://eckstein-shop.de/HC-12-433MHz-SI4438-Wireless-Serial-Remote-Modul-mit-Antenna-1000m?gclid=EAIaIQobChMI8N_--vrR5wIVBrDtCh1iDQDwEAQYASABEgJAL_D_BwE

Hi @stephen Wich funcions are working in R3 version?
have you tested all of them. In my setup only work F0 to F5

Has anyone tried other functions successfully?

I do not have my R3 inverter yet i am working off assumptions from my R2 inverters and a pdf that was provided to me- perhaps my R3 will be here next week perhaps next month- who knows with the cronoVirus how far the schedule being thrown off

@stephen
Could you send me the PDF you mentioned.

@Ducati
I tested also F0 to F5. All of them work fine. But i am afraid to use F6 to F8 :see_no_evil:

@ all
Do anyone knows how i can deactivat the mppt with F8…

Thanks!

for any one who wants to try here my interceptty version
I am pretty sure it works +95% okay just not sure on the total wattage… would have to run a constant input for 1 hour and do a comparison to either test watt 1 2 or 3 ( in the r3 inverter display)
it publishes mqtt in the background ( to either influx database or to tft display screen) so adjust to your preference and has an output display for debugging purpose and can test against key file for the R3 ( how I debugged it for errors since I do not have my inverter yet)

command line: example (fb041185 is your modem id if using hc-12 can be anything 4 byte otherwise it should match your Modem ID )
./wvc /dev/ttyUSB0 /home/stephen/WCVF/wvc.ini fb041185 hc

I uploaded to Github currently as it is – as I believe my inverter will be probably at least a month before it shipped due to coronavirus – if anyone has issue let me know what error you get… if any and I will try resolve it for you…

edit :
for anyone who downloaded from github yesterday I forgot to disable test from key file on line 404
OUTPUT="$(cat /home/stephen/r3 | sed -nr ‘/^.{56,56}$/p’)"
just comment it out with a #

GT-38 module is alternative to HC-12?

https://www.electrodragon.com/w/GT-38

Attached my result after frame analysis with a logic analyzer (Seleale)
image
The request is made by ESP8266 connected to HC-12 (frame F2…65) . This request is received by WVC600 R3 inverter and then he answers with other frame with data.

The distance between these two frames is 130 - 150 ms when WVC is in red led status (without Vac). The distance change to 40 -60 ms when the inverter status is solid green led (power injection).

Could be interesting to optimize (time outs, etc…) in the “modem emulator” (ESP8266 o similar).