trying to update firmware -> killed my emonTX V3

Hello,

This one was a very bad day for me: I killed two cards EmonTX V3 trying to install a new firmware using a module CP2102. I show my connection on the attached pic.

Has anyone had similar problems?

Thanks for your attention

Emilio

 

Robert Wall's picture

Re: trying to update firmware -> killed my emonTX V3

The CP2102 from the OEM Shop works OK for me. Do you have an up to date set of libraries? Which sketch were you trying to load?

emicon's picture

Re: trying to update firmware -> killed my emonTX V3

Hi Robert,

I'm using the CP2102 from OEM Shop too. I have updated RFu_JeeLib on Arduino libraries and i was loading the sketch emonTxV3_continuous_kwhtotals_noeeprom.ino.

After that my emonTX dont show any blinking led when i connect him to AC AC adapter, so i suppose he is dead.

Was my connection well made (as show in the attached pic? I mean i dont remember if i need to connect the emonTX to AC AC adapter while i'm doing that firmware upgrade).

Thanks for your help.

Best regards

Emilio

Robert Wall's picture

Re: trying to update firmware -> killed my emonTX V3

Have you looked at the sketch? Can you see where the LED is being driven?

That should have been the first thing to do, because that sketch does not use the LED! ! !
What do you see when you monitor the serial output with the Arduino IDE? You should see something like this:

----------------------------------
Sketch ID: emonTxV3_continuous_kwhtotals_noeeprom.ino
ADC mode: free-running
Extra Features: none
powerCal_CT1 = 0.2619
phaseCal_CT1 = 0.22
powerCal_CT2 = 0.2619
phaseCal_CT2 = 0.41
powerCal_CT3 = 0.2619
phaseCal_CT3 = 0.60
powerCal_CT4 = 0.0478
phaseCal_CT4 = 1.25
----
voltage thresholds long:
upper: 64000
lower: -64000
0
Go!
samples per mains cycle = -321.99
0:0, 0:0, 0:0, 0:0, samples per mains cycle = 38.43
0:00
, 0:0, 0:0, 0:0, samples per mains cycle = 38.29
0:0, 0:0, 0:0, 2:0, samples per mains cycle = 38.44
0:0, 0:0, 0:0, 0:0, samples per mains cycle = 38.45
0:0, 0:0, 0:0, 0:0, samples per mains cycle = 38.44
0:0, 0:0, 0:0, 0:0, samples per mains cycle = 38.44
0:05
, 0:0, -13:0, 0:0, samples per mains cycle = 38.29
0:0, 0:0, 0:0, 0:0, samples per mains cycle = 38.44
0:0, 0:0, 0:0, 0:0, samples per mains cycle = 38.44
0:0, 0:0, 0:0, 0:0, samples per mains cycle = 38.43
0:0, 0:0, 0:0, 0:0, samples per mains cycle = 38.44
0:010

And no, you don't need the ac adapter while loading the sketch, but you do need it for the sketch to run and produce the output above.

Note also that the data sent to your emonBase is now different.

[Edit]
You can if you wish alter the sketch to flash the LED each time the data is sent to emonCMS:

if ((millis()-lastsendtime)>sendinterval)
{
lastsendtime = millis();
digitalWrite(LEDpin, LED_ON);
send_rf_data(); // dispatch the RF message
Serial.println(tx_data.msgNumber++);
digitalWrite(LEDpin, LED_OFF);
}

emicon's picture

Re: trying to update firmware -> killed my emonTX V3

You made my day sunny, Robert!  I feel a little silly, but I'm glad to know that I did not kill no emonTX.

But still remains a bit 'strange to me the fact that there is not any LED that signals the emonTX is working. This is why I will modify the sketch as for your instructions before to use it.

Thanks again! Have a wonderful sunday.

Emilio.

Paul Reed's picture

Re: trying to update firmware -> killed my emonTX V3

-- But still remains a bit 'strange to me the fact that there is not any LED that signals the emonTX is working.

It would be a waste of power!
The emontx's have been designed to work efficiently, and maximize battery life.

Paul

Robert Wall's picture

Re: trying to update firmware -> killed my emonTX V3

I agree as far as the "discrete sampling" sketches are concerned, but this is a little different.
If someone is running the "continuous" sketch, that implies mains power is available (or there's a very big battery) and so in that case the energy required for flashing the LED isn't a major concern.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.