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!
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:
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
@ 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.
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
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
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
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 #
Attached my result after frame analysis with a logic analyzer (Seleale)
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).