EmonESP does not connect to emonCMS

Could you unplug the EmonESP to view the data as a test?

It seems there may be a debug function in the EmonESP so you can see what it has received

@borpin, you mean logging the serial output of the TX with a FTDI. Sure that shouldnā€™t be a problem, but I guess I will do this another day because my TX is mounted in the neighbors house. Itā€™s a little too late now for working there :wink:

How do I get this data? Connect a ftdi to the emonESP while it is connected to the TX and then start the serial monitor? I am a bit confused

Sorry, I donā€™t know, I just looked at the code and could see it printed out (somewhere) what it had received. Trying to work out what it then does with it, but cpp is not my strenght :slightly_smiling_face:

The current version on GitHub differs to what you posted above

in the current GitHub version, 4-WIRE (ie the #else) has a leading comma on ā€œ,ct1:ā€ so it looks like its coming from the sketch, unless another version is in play and itā€™s just coincidentally the same error.

That is exactly the sketch that I am using on my emonTX. Looks like the leading comma in the else section is the problem

And therein lies the issue

Version controlā€¦

So, let me try to upload the V1.6 to my TX on tuesday. Hopefully this will fix my CMS problem :slight_smile: So far, thank you to all contributors

Yes, there is also a typo issue with 4-WIRE setting in the emonESP code. Check after ā€˜elseā€™ā€¦ (line before else was corrected yesterday.)

#if defined EMONESP && !defined SERIALOUT
#if WIRES == 3-WIRE
Serial.print(F("ct1:")); Serial.print(realPower1+realPower2);            // These for compatibility, but whatever you need if the receiver is configured to suit. 
Serial.print(F(",ct2:0.0"));
#else
Serial.print(F(",ct1:")); Serial.print(realPower1);
Serial.print(F(",ct2:")); Serial.print(realPower2);
#endif

I have updated the git repository to mirror @Robert.Wallā€™s v1.6 and taken the oppertunity to use git annotated tags: Release v1.6 fix for incorrect space character in the formatted output Ā· openenergymonitor/emontx-3phase Ā· GitHub Did I get it right @borpin?

This topic was the 4-WIRE comma issue
This topic was the 3-WIRE space issue

1 Like

Looks like it :grin: although it only ever shows me the latest tag from the command line for some reason.

Just one thing to be careful of, be consistent in the format you use. v1.6, is different to V1.6 which is different to 1.6 and previous versions were 1.x.0

It doesnā€™t matter what you use, just be consistent.

Just wanted to tell you, that everything works fine after flashing the fixed V1.6 to the TX.
The emonESP connects correctly to the emonCMS

1 Like