Hi guys,
I have just uploaded the 3 phase sketch to my emonTX v3 and am getting good readings back in the serial shell. However my emonhub/cms on the raspberry pi no longer sees data from it. I am guessing I need to change the node in the hub config but don't know what to change it to?
Can someone help?
Re: 3 Phase tx firmware > hub nodes config?
To whatever Node ID is in the 3-phase sketch! That's probably 10 unless you changed it. (Search the sketch for "nodeID".) That sketch does not check the switch position. It's pointless doing so as you need to edit the sketch to calibrate anyway, as it's much more sensitive to phase and timing errors than it's single-phase cousin.
Re: 3 Phase tx firmware > hub nodes config?
The Node ID is 10 and the Network is 210. The same as the tx node already configured in the hub?
Here is my calibrated sketch:
Re: 3 Phase tx firmware > hub nodes config?
I have solved this myself. The array of variable names within the transmission payload on the tx did not match the receive names of the node in the hub config.
I have matched them up and its working.
Might be worth including a node template in the code comments?
Re: 3 Phase tx firmware > hub nodes config?
If you use the emonHub defaults, you don't need to set the datacodes.
Re: 3 Phase tx firmware > hub nodes config?
I was using the defaults that existed in the emonhub.conf on my pre loaded SD card. They didn't work with the 3phase firmware.
Re: 3 Phase tx firmware > hub nodes config?
The "defaults" Robert refers to are emonHub's in-built "legacy defaults", original emonHub will operate with minimal settings, in most cases only your api key is needed, everything else "defaults" to the OEM standard for easy set up and use. When the SDcard image you are using was compiled (originally for the emonPi) a custom 'emon-pi' variant of emonHub was used and that has been allocated various "stock" settings (included in that image by "default" ?) . So I can see where the confusion slips in.
However, I'm not sure if the ability to run without the nodes explicitly defined was retained, so if it doesn't work you may need to try defining the node fully in emonhub.conf.
I think it would be good practice to include the emonHub settings in each sketch's comments IF it requires a mandatory definition in emonhub but (prior to the emon-pi variant) there were only 4 sketches that I'm aware of, the rest where voluntary.
Paul
Re: 3 Phase tx firmware > hub nodes config?
The [rx] section for the 3ph sketch should be something like
Paul