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
PaulH
Posts: 15
On my I/O-board I have a "hidden" Reset button that is connected to the RESET pin on the Arduino board. When pressing the button it pulls the pin to LOW. This should resets the MEGA.

And it definitely resets, the blue LED blinks shortly, and all displays blank out. But it seems that the Mobiflight firmware does not restart. I always need to "Stop" and "Run" manually, even if "AutoRun" is activated.

I would like the software to restart automatically shortly after a reset. Is there a solution to this?

Edit: The Connector still shows Running... in the status line. But this is not the case.

Paul
2021-04-18 23:48
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
No there is not at the moment.

Why do you need this ?


1. There is absolutly no needness to Restart a Board while Running it.
2. In my testings the Board restarts and there is no problem. It runs again same way as before ( Whatever in Run Mode) .

Sure.... LED and Displays get struggle aslong there come a new Data from MF..... But Buttons work. So this indicates the Firmware correctly Restarts !
Good Luck !
2021-04-19 13:44
Avatar
PaulH
Posts: 15
Regarding your point # 1
Do you mean that I should reset the board only when it is NOT running. This does not make senso to me at all. I f the board is not running I can just start the board and it will initiallize properly. It only makes sense to reset a board when it IS running.

Regarding your point # 2
I agree, it might be true that the board is running after a reset. Sometimes the buttons work. BUT it does not really initiallize properly. All LED and 7-segment displays are off after a reset

The answer to your first question "Why do you need this?" is simple.
Because it is "Good Engineering Practice" to have a means to reset a device (wheter it is hardware or software) to an initial state, where it can start from again.
Otherwise one would have to ask why they include this little reset button on any and every Arduino board. They could save that, if it is needless.

Paul
2021-04-21 21:17
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
When you build your cockpit then the Arduino is no longer reachable..... Its far away behind the Panel, Switches and Led´s.
How do you want to press the Button when your cockpit is finished.....

The only way is to wire a real Button ( e.g. placed on the side of your cockpit).... So each Mega get a "Reset" System outsourced from the Board.

But here again.... WHY.... If your Config work and the Hardware is desigend correctly (Within the Power Limits and without electrical issues like loose wires) then there will be nearly no situation you would ever reset a Mega. ( Only verry rare crashes..... But then mostly a Full Computer reset is needed including the Sim and MF Software)

Belive in me.... I see lots of Buildings since i work for Mobiflight.... Only one user have those Reset Buttons. All other not see there Megas for years after they closed the Panel when they finished the building phase....: So they could not press this button whatver they want do do this !

****************

About your question to LED.

MF will SET each Output after you Press RUN Button ONE TIME !
Then only a change ( LED should go from ON to OFF or reversed) is send as a single sequence.

So your right. If you reset a MEGA while MF is in RUN Mode then all LED are OFF..... And only if status of LED´s in Sim is change, that single LED get "updated".
To Solve press STOP and RUN in MF..... This "initiallised" all LED once again.

************

Summary: I understand your Problem.... But hopefully you understand me, too. If you build your Cockpit then there is no need for a reset or for a "sync" of LED´s by the software!
In the Rare Cases a Reset is needed ( Full Crashes maybe every few weeks) a restart from MF and in whorst case a restart of Computer solve all problems !
Good Luck !
2021-04-22 19:58
icon