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
dtravlos
Posts: 6
Hello everybody!

Can you help me on how to connect my arduino mega to pmdg mcp? the normal way that I did on learjet doesn't work.

Thank you!
2017-01-21 21:03
Avatar
pizman82
From: ETSI, Germany
Posts: 6010
Supporter
icondtravlos:

the normal way that I did on learjet doesn't work.



What is normal ?? :-)

To help you pls tell us what function you need.... Input, Output ??

Basics....
To make a READ-Comunication posible between Mobiflight/Arduino and PMDG you first need to edit the Config File of PMDG
Quote of PMDG Manual....
iconQuote:

To enable the data communication output from the PMDG aircraft, you will need to open the file
737NGX_Options.ini (located in the FSX folder PMDG\PMDG 737 NGX, and add the following lines
to the end of the file:

[SDK]
EnableDataBroadcast=1



To send Inputs to PMDG you need different Offsets (Event ID´s) as in normal Planes like youre Stock LearJet.
You found everything what you need in the SDK Subfolder of youre /FSX/PMDG folder.

Just try.... If you need more Information please tell me exact WHAT Function you want to build in youre HC..... Then i can give you the right Offsets !

Good Luck !
Good Luck !
2017-01-21 22:14
Avatar
dtravlos
Posts: 6
Hello.

For example, I want to make my own mcp to use with pmdg 737ngx. I can't find a good tutorial on how to display data from the pmdg mcp like heading altitude etc and how to change these values from encoders.
2017-01-22 17:12
Avatar
pizman82
From: ETSI, Germany
Posts: 6010
Supporter
:w00t: You like "Think Big"
I planed to puplish a full PMDG turtorial for every Element ( MCP, Overhead, Pedestal and so on) but this will take a half Year to a Year until its finished i think. ( I need to build this myself first before i can write a full guide for other people)

To explane you the full MCP it will take Hours and lots of Pages in this Forum.....
So i will give you just 2 exmaples and you have to work out the configs by youreself.

FIRST BEFORE:
As i told you in entry Post you have to edit the Options.ini to "open" Data Comunication between PMDG and FSUIPC/Mobiflight. Without it´s not posible to light LED or Use Displays.))
Additional you need 2 Offset Lists...
-One for Input (located in the PMDG/SDK folder OR in a better form..... http://myhomecockpit.de/PMDG_737NGX_EVENT_IDs_SP1d.pdf
- One for Outputs ( Located in Modules/FSUIPC folder or in web on Pete Dawsons FSUIPC Homepage... "Offset Mapping for PMDG737NGX.pdf" )

****
Example Input:
To Set the Altitude Hold Button on MCP.....
Create a Input Config in Mobiflight and set it to the Push Button on youre Arduino you want to use for.
In Menu use "Event ID" as Type of Input
Set for "On Push"
Event ID for this Button is 70026 ( Shown in the list i told you)
Parameter for this action is 536870912 ( A Leftclick.... shown in this list, too)

So if you push the Button on youre MCP then in PMDG the ALT HOLD Button will be pushed, too.

****
Example Output:
LED Altidude Hold Button
To Light up the LED on the ALT HOLD Button do the follow.....
Create a Output Config and use as divice the LED on Arduino that use for the Button you like.
Use Offset 6543 1 Byte INT ( listed in the file i told you above)

Now if LED in PMDG is light up then youre LED in Homecockpit lights too.

**********
Please try out youreself.... You will see. It´s realy self explaned if you understand the system.

If you got problems with a special element just ask here ( or use serach function..... Lots of Elements are already explaned in this Mobiflight Board)
[Last edited by pizman82, 2017-01-23 00:34]
Good Luck !
2017-01-23 00:14
Avatar
iridio
Posts: 8
I'm trying to configure this plane with MobiFlight.

I've added to 737NGX_Options.ini file the lines:

[SDK]
EnableDataBroadcast=1


I've reach to set the Heading with an encoder (Event ID 70022) and with a push button I can lock it (Event ID 70024) with no problem.

But I've no outputs.

I've tried to light a LED or use a 7 segment display for Heading using offsets like pizman82 has proposed, but no success.

What is I've forgotten to configure? Thanks.
2017-04-23 11:44
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi.

Multible Reasons....

First... Please Confirm your LED and Max7219 7 Segment Display is working fine with Standard FSX Stuff. ( to exclude a Hardware Issue )
Just use the Presets for example the Parking Brake LED for your LED ..... and the COM1 Frequency for the Display... Use maby the Cessna to test this.

If youre hardware workes ok then the Problem is software side.

Please Confirm youre edit in Options.Ini is relay saved.... if you install FSX and PMDG in a Windows contolled Folder like c:/programmfiles86 then there is a write protection. Only Software with Admin Rights can write Data there. ( Start youre Editor as Admin) Or just install all Flightsim Stuff in a Folder that isn´t controlled in the future.

If the Options Ini is OK then you maby got a Version Conflict....
Please get shure for a full working system you got the newest versions of FSUIPC and PMDG737NGX.
NGX is current Version 1d (2016)
FSUIPC is current 4.96 ( 2017 )

If you got a real old FSUIPC or the PMDG in original V1 status a comunication is not posible, too.


If this all is done and it not work then please report.... Then we need to find the problem.
Good Luck !
2017-04-23 16:28
Avatar
iridio
Posts: 8
Hi,

As I've related in other post I've been trying with MobilFlight + Arduino Mega + Airbus 320 default in FSX. All is OK with encoders, LEDs, switchs, displays, etc.

I'd like to try with Aerosoft Airbus, but I've read it's more difficult and I don't want to waste time with programmation, I´m insterested in DIY cockpit, so I've decided to try with PDMG. I must to use Boeing instead Airbus.

Finally the problem was the PMDG version. I've downloaded the upgrade and now all is working. I've seen PMDG is really easy with mobiflight and other users thinks it's better to pilot Boeing than Airbus.

I'm waiting for some parts I've bought by eBay and I'll order dual encoders and other displays.

Thanks again pizman82 for your support.
2017-04-24 11:24
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Nice to hear it workes !

Boeing vs. Airbus is a question of personal taste..... Both Systems are good.. Myself i love Boeing ( In Real World too) and think Airbus sucks. But that not mean a Airbus is not good.


BUT: I Will recommend you to decide youre Favorit. If you like Airbus more then Boeing the build a Airbus.... You won´t get happy with a boeing finaly.

If you like try out " JEEHELL FMGS" It´s a freeware software solution for Airbus A320 Homecockpit.
Maby a little more difficult like PMDG but its a airbus !

So Make youre first steps with the PMDG. Its ok to try out the technics.... But Finaly build the Aircraft you Like !
Good Luck !
2017-04-24 11:42
Avatar
Apeshaft
Posts: 51
Supporter
Wrong thread
[Last edited by Apeshaft, 2018-05-17 16:29]
2018-05-17 16:10
Avatar
Sven8586
Posts: 2
iconpizman82:

Hi.

Multible Reasons....

First... Please Confirm your LED and Max7219 7 Segment Display is working fine with Standard FSX Stuff. ( to exclude a Hardware Issue )
Just use the Presets for example the Parking Brake LED for your LED ..... and the COM1 Frequency for the Display... Use maby the Cessna to test this.

If youre hardware workes ok then the Problem is software side.

Please Confirm youre edit in Options.Ini is relay saved.... if you install FSX and PMDG in a Windows contolled Folder like c:/programmfiles86 then there is a write protection. Only Software with Admin Rights can write Data there. ( Start youre Editor as Admin) Or just install all Flightsim Stuff in a Folder that isn´t controlled in the future.

If the Options Ini is OK then you maby got a Version Conflict....
Please get shure for a full working system you got the newest versions of FSUIPC and PMDG737NGX.
NGX is current Version 1d (2016)
FSUIPC is current 4.96 ( 2017 )

If you got a real old FSUIPC or the PMDG in original V1 status a comunication is not posible, too.


If this all is done and it not work then please report.... Then we need to find the problem.



Hello together, Hello pizman82,

Unfortunately I have the same problem as mentioned above when working with 7-segment LED Displays and (PMDG) offsets. I can display all radio and autopilot values on default aircraft by using the default offsets available in mobiflight. Now when it comes to the PMDG, the only default offsets, that work, are for the Radio (COM/NAV etc.) and on MCP the offsets for OBS/CRS1 and OBS/CRS2. So first check is complete, the LED-Display / hardware is working :)

HDG-offset (0x652C) or ALT, VS, SPD offsets don't Show anything. The values in mobiflight are all 0. :cry:

For the second part: Yes I did install into the default microsoft folder, but though I added the SDK line into the Options.ini (as admin). The only dismatch I can find here is, that I have a file called 737NGXu_options.ini instead of the former 737NGX_options.ini (in case mobiflight is directly linked to this file) ? Could this be a reason ?

I just purchased FSUIPC and PMDG. The PMDG 737 NGXu is for P3Dv4, so it is one of the latest versions since dec 2019. My FSUIPC is v5.152 July 2019. So the Solution of updating the versions doesn't seem to be sufficient in my case?

What else can I check ?
Thanks a lot for your support.

Best regards,
Sven
2020-04-14 17:13
Avatar
Ridgeandgable
Posts: 131
Hi Sven

For NGXu, you need to have the latest FSUIPC, which is 5.155. If you are getting outputs working on your radio, that confirms that [SDK]
EnableDataBroadcast=1 is set correctly in the options.ini. Download FSUIPC and try again
2020-04-14 18:04
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hiho
You give the awnser yourseself:

iconQuote:

The PMDG 737 NGXu is for P3Dv4, so it is one of the latest versions since dec 2019. My FSUIPC is v5.152 July 2019.


So your FSUIPC Version is from a time where the PMDG NGXu not existed. This "can" work but this not have to work.

As "Ridgeandgable" said.....

1. Get your FSUIPC up to Date ( On Pete Dowson Webside)
2. Get your PMDG Up to Date ( By PMDG Opp Center)
3. Confirm 100% Setting in Ini file is correct !

THEN all should work.
Good Luck !
2020-04-14 19:50
Avatar
Sven8586
Posts: 2
Indeed ! :thumbup: :thumbup: :thumbup:

The FSUIPC Version was too old. I updated to Version 6 and now all works fine! Never thought it could be this reason, since I purchased both FSUIPC and PMDG at the same time. I downloaded an old Version after purchasing :rolleyes:

Thanks a lot for that quick answer!

Best regards!
2020-04-15 17:17
icon