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
Andreas_Grisu
Posts: 2
Hi,
because I have an existing, selfbuild Cockpit with stepper motor driven instruments, I'm searching for a solution to get values like Airspeed, Altitude, Engine RPM, heading etc. out of FS2020 in any dataformat. MobiFlight is a great and easy tool to get many things done in a very easy and fast way. Unfortunately the "Firmware" (arduino sketch) will be loaded automatically and ins't available as source code. If yes, where? I would like to use my hardware also in the future like I did in the past with FSX, but making the hardware compatible to the Arduino Mega is too much work. I did it in a very different way. So I'm looking for a way to read the values I need out of the MobiFlight Connector and translate it to my hardware, I don't need the Arduino Mega to control the hardware, I do this already with an Arduino UNO. Btw, in the past I used Link2FS with FSX, but this did not work anymore with FS2020, I don't know why. Is there any chance to get information, how MobiFlight sends data to the Arduino Mega? So if needed, i can use the Arduino Mega as an translater, in case there is some sourcecode available.....
I don't need the full source code, only a working sketch to receive requested data. An example for only one value will be ok. I'm not experienced in programming a GUI, so I need something existing.
Or any other hint how to do this?
Thanks a lot for your answers, regards, Andreas
2020-12-29 13:00
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi

At first to awnser the master question..... Yes the firmware is puplished and available.
https://bitbucket.org/mobiflight/mobiflightfc/src/master/
This should also include the firmware, the upadeter and uploader system and the whole conncetor code.

About request.....
In Theroy this is possible.
You need to "copy" the way how the firmware recive data..... In your Arduino Sketch. Then this will work.

BUT

You should also think about alternates. In the time you do that maybe a other solution is more profitable.
"Andreas" sounds german. If Yes feel free to join Discord and talk to Sebastian, Stephan or Myself. Maybe a Brainstorming is verry usefull here.
If not german,.,,, English works well also,

Way 1. Simply disconnect your devices from the UNO and conncet it to a Mega. Should be no big deal. Cost some € for Megas but pretty sure much more faster as programming a own System.

Way 2. Using UNO with Mobiflight.... In Theory UNO is compatible.... But the Firmware is to large. So we stop this project. ( But the master code is still in the software).
Our target was to handle a UNO same way like a Mega.... So for User all is possible. That was a fault cause Memory is not enough to handle the firmware.
BUT in your case you not need the full firmware. If you not use LCD, / Seg etc. you can remove this parts.... And then the firmware should be compatible with UNO.
So... A rework of the exisiting MF system is maybe more easy as build a fully new one.

Way 3 Reverse Way.... Why think about a NEW Firmware on the UNO and using the esiting Mobiflight as "Data Creator" . Why do you not create a own Software on The Desktop ( alternate to Mobiflight) that just read the data from Sim and recalculate it.... and send it to your UNO same way like in the past.
You not need a GUI and experience there. This Software can run without a interface... All you need can be done within the code.
Good Luck !
2020-12-29 15:19
Avatar
Andreas_Grisu
Posts: 2
Hallo,

hervorragend! Vielen Dank für die ausführliche Antwort, das ist genau das, nachdem ich gesucht habe. Die Werte nun aus den entsprechenden Variablen herauszulesen und zu übersetzen sollte nur noch ein kleines Problem darstellen. Die Daten übersetzen und an die vorhandene Hardware mit UNO weitergeben wird der erste Schritt sein. Wenn das funktioniert, kann ich meine Software ja auf dem MEGA integrieren, Platz genug ist da ja. Meine Hardware ganz auf MobiFlight umstellen wäre ein recht großer Aufwand, aber zusätzliche Funktionen per MobiFlight zu integrieren ist dann sicher kein Problem mehr.
Und wie ich ja schon geschrieben hatte, ein Interface auch ohne GUI für Windows zu programmieren, da habe ich gar keine Ahnung von.
Nochmals vielen Dank für den hervorragenden und schnellen Support!

Gruß, Andreas
2020-12-30 12:57
icon