MobiFlight Community Support

Welcome to the forum for MobiFlight! Feel free to reach out to the community in case you have questions, issues or just want to share great ideas or details about your latest home cockpit project.

You like MobiFlight? Donate via PayPal and support the MobiFlight development. Thanks! 

05/03/2024 - This forum is read-only

The community support for MobiFlight has moved exclusively over to our Discord server. Register for free and enjoy more interactive functions like image and video upload, voice chat. More than 7,000 registered users around the world make it a great experience!

See you on our MobiFlight Community Discord server.

A HUGE Thank You to everyone who participated in the forum, especially obviously to Pizman and Stephan who did an outstanding job over so many years providing an incredible service to the MobiFlight community.

The forum is still providing a lot of good content, hence we keep this information accessible.

icon
Avatar
Ilirio
Posts: 38
Hi!

Yesterday I started Mobiflight with my Arduino to test some possible solutions to my issue with potentiometers without any problem. Today I have started Mobiflight to continue with my testings and Mobiflight told me that I had to update my firmware. I've done so but when I went to the Mobiflight Modules tab at Settings menu, all my devices seems to be gone and the serial and firmware data is set no n/a (although still detected as Arduino Mega 2560).

I've tried to reload the firware several times and the process seemed to finish successfully but with the same result every time. Does that mean that my Arduino board is broken? Any ideas no recover it?

Thank you!!
2021-12-04 14:22
Avatar
kjoussen
From: Hamburg, Germany
Posts: 178
Hi,

sometimes i have similar problems.

But it is not MF nor is it the Arduino.

What i found out is, that it is dependend of the USB-cable and even the USB Port on your computer.
Strange here: connected to lets name it Port-A my Arduino / MF worked for 4 weeks.
Nothing changed but suddenly it does not.
Pluggin into Port C it worked again. Same cable, same config

Just change cable, change ports....

And even if the Arduino IDE always finds your Mega, regardless of the cable or Port, MF does not.

Exlplanation? Sorry, none. There must be something very strange going on in deep Windows core.

Kai
2021-12-04 15:50
Avatar
StephanHo
Moderator
From: EDDG, Germany
Posts: 1867
Supporter
Hi,

try as follows:

go to MobiFlight Modules. Then activate a module, right mouse button and click Regenerate Serial and restart MF again.
Grüße,
Stephan (Time: UTC+2)
2021-12-04 20:24
Avatar
Ilirio
Posts: 38
Hi Stephan,

I tried to do as you suggested, but mobiflight said that "the current firmware does not support this function. Please update to the current firmware first". And when trying to update firmware, the proccess apparently ends succesfully, but then this is happening all times.

Also tried to change ports and cable but didn't work.

EDIT: When trying to upload firmware from the Modules Tab, an error occured, this is the log I got:

05/12/2021 12:14:53(172): ExecutionManager.AutoConnectStop:Stopped auto connect timer
05/12/2021 12:14:53(179): MobiflightModule.disconnect: Already Disconnected Default at COM3
05/12/2021 12:14:53(179): MobiflightModule.disconnect: Already Disconnected Default at COM3
05/12/2021 12:14:53(180): RunAvrDude : "Arduino\hardware\tools\avr\bin\avrdude"
05/12/2021 12:14:53(180): RunAvrDude : -C"Arduino\hardware\tools\avr\etc\avrdude.conf" -patmega2560 -cwiring -P\\.\COM3 -b115200 -D -Uflash:w:"C:\Users\Usuario\Documents\FS2020 Extras\Homecockpit\Mobiflight\firmware\mobiflight_mega_1_11_3.hex":i
05/12/2021 12:14:53(370): Firmware Upload Exit Code: 1
05/12/2021 12:14:53(371): Something went wrong when flashing with command
"Arduino\hardware\tools\avr\bin\avrdude" -C"Arduino\hardware\tools\avr\etc\avrdude.conf" -patmega2560 -cwiring -P\\.\COM3 -b115200 -D -Uflash:w:"C:\Users\Usuario\Documents\FS2020 Extras\Homecockpit\Mobiflight\firmware\mobiflight_mega_1_11_3.hex":i
05/12/2021 12:57:59(45): SimConnectCache::ClearSimVars . SimVars Cleared
05/12/2021 12:57:59(55): MobiFlightCache.disconnect()
05/12/2021 12:57:59(129): MobiflightModule.disconnect: Disconnected Default at COM3
05/12/2021 12:57:59(137): ExecutionManager.TestModeStop:Stopped test timer
05/12/2021 12:57:59(146): SimConnectCache::ClearSimVars . SimVars Cleared



Reinstalling Mobiflight could help?
[Last edited by Ilirio, 2021-12-06 07:08]
2021-12-05 09:22
Avatar
Ilirio
Posts: 38
Hi everybody,

Digging a little bit in the past, I found people who had the same problem and the way to solve it, which I post here just in case someone gets here with the same problem:

1. Clear Mega EEPROM (using official Arduino IDE, there is an example sketch you can use for it)
2. Delete .mfmc file causing the problem
3. Run Mobiflight and reload firmware
4. Add again all devices (now caring not exceeding 8 character length names)

And that worked for me.
2021-12-08 12:54
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi

Thanks for your Posting..... But to avoid confusion i need to correct some points....

iconIlirio:


1. Clear Mega EEPROM (using official Arduino IDE, there is an example sketch you can use for it)


Correct !


iconIlirio:


2. Delete .mfmc file causing the problem


Wrong ! The mfmc File is just a "Backup" file. This file have effect to Mobiflight !
Its no mater if it exist or if you delete it.



iconIlirio:


3. Run Mobiflight and reload firmware


The logical step after Point 1 .... Behind EEPROM Clear its a new Board and need firmware !



iconIlirio:


4. Add again all devices (now caring not exceeding 8 character length names)



Wrong ! The "Sort Device Names" are a Problem from the early Time of MF.
This is no longer a Factor..... Currently we have a protection if Names gonna to long ( Only happen in a extreme Setup with 60+ Buttons) .
And in next Version we finally increase the Mem..... So Then This is finally no factor at all !
Good Luck !
2021-12-08 13:27
icon