#Mega's serial

1 messages · Page 1 of 1 (latest)

willow ore
#

Hello friends,
not a big problem but just an annoyance: when starting Mobiflight it seems that the serial number of the Mega 2560 cards changes and requires me to reassign the card (as visible in the screenshot).

I run this and everything works fine. Is there anything I can do to avoid this situation ?

Thank you and ciao.

P.S. looking at a previously post it seems that to prevent Mega's random serial change is important to power the same boards before to power the pc (sometimes I power the boards after pc); also i will test this.

edgy inlet
#

It has happened to me randomly on two mega 2560 pro boards. Not with every start. I would try clearing the EEPROM and reloading the firmware.

#

On one of my boards, it happens about every two months. I wrote an arduino sketch to restore the same serial number in the EEPROM, so I don't have to update any of my mcc files. I don't know the cause, I suspect it is the EEPROM chip that is not 100% reliable.

#

Someone reported recently that his LCD screen was causing the issue. I know you have one LCD screen in your setup.

willow ore
#

Good morning @edgy inlet and sorry for the delay in replying due to time zones (also today in Italy is a holiday and therefore late waking up).

The situation is:
this "loss" of the serial occasionally only happens to two mega 2560 R3s, one drives only LEDs and switches while the other also drives two LCDs.
This only happens to me on the Mega R3 2560 while the Mega Pro and the Micro present do not highlight it.

When I reassign the new serial I don't lose any configurations so the hassle is really minimal.

Now I have applied what was written in the previous post, i.e. to power the Mega before starting the PC but as you can see in the current screenshot I am always asked to confirm a new serial number.

I repeat that it is now "routine" but I would be curious to understand why.

Ciao

edgy inlet
#

Make sure you have the device config saved in an mfmc file. Do a board factory reset, reload firmware, reload device config. See if the issue disappears.

untold ginkgo
willow ore
#

Thank you @untold ginkgo and @edgy inlet for attention.
As written previously, the serial change affects both the two Mega 2560 R3s that I use in my panel and not other types of Arduino; just one of these 2560 Pilot LCD's.

I have carried out some tests and it seems that the new serial is set if I power up the two Megas** after** starting the PC.
Otherwise, starting Mobiflight does not report any changes.

I will continue to test these situations and eventually report errors if any.

Ciao

willow ore
untold ginkgo
#

Thanks for your feedback. I will follow your progress.

willow ore
#

In this last weeks I have verified the changes in the serial number of the Mega and I can confirm that this ONLY happens to me if I power the Arduino AFTER power ON the PC.
If I first turn on the USB hub where they are connected and then the PC, the serial number never changes.
Ciao

edgy inlet
jolly totem
willow ore
willow ore
jolly totem
#

Hmhm, that's so strange. At least the Mega is the board with the most free RAM...

jolly totem
willow ore
hexed pecan
#

Yeah, ive run into this before, even worse it takes a serial of another card and then screws everything up when you reset the card, because it then ruins 2 cards.....Oh the problems it caused me.