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
yuvalsegev11
Posts: 10
Sebastian,

Do you have any idea if or when a Event ID support will be added?
It really helps with controlling the PMDG NGX (Or there is a way to convert the Event ID to offsets).

Thanks,
Yuval
2015-03-19 23:06
Avatar
DocMoebiuz
Moderator
From: EDSH, Germany
Posts: 1516
Basically you can send EventID via Offset 0x3110. But currently the UI does not provide you the possibility to easily set an additional parameter - these exist for several IDs.
You can see an example in the example config file that ships with MobiFlight Connector in the examples-folder (see the increment of Squawk Code)

I will think about having a special config dialogue to support EventIDs better.

In the meantime you do the following workaround:
* Create a configuration for your switch / button
* Use FSUIPC Offset as input-type
* Use offset 0x3110 and 4 byte to trigger the EventID - as value you can send the decimal value of the EventID (instead of the text) - I think you find the values in the addons documentation or in FSUIPC SDK

In the need of setting an additional parameter as "argument"
* Duplicate the previous config item
* Use offset 0x3114, 4byte for the parameter

I cannot assure 100% that this works but it might work.
Have a great day!
Sebastian

MobiFlight - Simply build your own home cockpit for your favorite flight sim - MSFS2020, FSX, Prepar3D (FSUIPC), X-Plane (XPUIPC)
2015-03-21 16:12
Avatar
yuvalsegev11
Posts: 10
Sebastian,

Your method works great, when using one switch at the time,
but when using more than one at the same time, of course it fails to toggle both.
That's why EVENT ID support is needed..

Appreciate your help,
Yuval.
2015-03-22 15:50
Avatar
DocMoebiuz
Moderator
From: EDSH, Germany
Posts: 1516
What's the reason to toggle more than one switch at the same time? Do you have one switch which shall toggle two functions or two switches which you use at the same time?
Have a great day!
Sebastian

MobiFlight - Simply build your own home cockpit for your favorite flight sim - MSFS2020, FSX, Prepar3D (FSUIPC), X-Plane (XPUIPC)
2015-03-22 17:04
Avatar
yuvalsegev11
Posts: 10
For example, 4 landing lights switches, 2 apu bleed , 4 window heat etc.
2015-03-22 17:17
Avatar
Tomtomnrw71
From: Wuppertal, Germany
Posts: 3
Und es wär halt einfach super komfortabel und easy so schnell Schalter und damit eine ganze PMDG-Maschine mittels Event-IDs zuzuweisen.

Würde mich sehr freuen wenn das klappt! Und danke für die prima Arbeit bisher.

LG
Tom
2015-03-22 22:12
Avatar
DocMoebiuz
Moderator
From: EDSH, Germany
Posts: 1516
iconyuvalsegev11:

For example, 4 landing lights switches, 2 apu bleed , 4 window heat etc.

you want to trigger each group by a single switch?
Have a great day!
Sebastian

MobiFlight - Simply build your own home cockpit for your favorite flight sim - MSFS2020, FSX, Prepar3D (FSUIPC), X-Plane (XPUIPC)
2015-03-23 00:53
Avatar
yuvalsegev11
Posts: 10
iconDocMoebiuz:

iconyuvalsegev11:

For example, 4 landing lights switches, 2 apu bleed , 4 window heat etc.

you want to trigger each group by a single switch?



The opposite, i'm building a 737 OH and i want to put 4 switches for the landing lights.
If i will use your method i will have to touch 1 switch at the time. But off course i would like the push all 4 (or just 2) at the same time (with my hand) like the reality, and it wont work.

Yuval.
2015-03-23 09:39
Avatar
DocMoebiuz
Moderator
From: EDSH, Germany
Posts: 1516
Decrease the fsuipc polling interval to 100ms in the settings section and try again. Another workaround would be to try the normal "landing light"-offset and assign this to all four switches. It might work for you, because one always want to set all on or not.

Regarding APU bleed, you might also acostume to use both switches individually... 100ms is quite fast.

Integration of SimConnect really is a bigger task - i would have to put all this new stuff in, since we are talking about an FSUIPC restriction here. I am using an Overhead panel for B737 and it never bothered me. Actually I like to have to switch all 4 switches for window heat one by one and it is actually authentic... doing this faster than 100ms per switch is not necessary nor possible for me.
Have a great day!
Sebastian

MobiFlight - Simply build your own home cockpit for your favorite flight sim - MSFS2020, FSX, Prepar3D (FSUIPC), X-Plane (XPUIPC)
2015-03-23 10:52
Avatar
yuvalsegev11
Posts: 10
Tested again with 100ms interval, still same results, there is no way to acces Event ID's from fsuipc without using the offsets?
How does it works in the Buttons + Switches tab in the FSUIPC sim menu? I was able to access these Event ID's with my joystick from there.

Yuval.
2015-03-23 14:53
Avatar
DocMoebiuz
Moderator
From: EDSH, Germany
Posts: 1516
So maybe it helps when you are able to send keyboard strokes with the next version 6.0. You could make the assignment for these switches through FSUIPC then. I don't know how FSUIPC internally handles event ids, maybe it uses SimConnect. However the FSUIPC api does not permit the setting better than currently implemented in MobiFlight Connector.
Have a great day!
Sebastian

MobiFlight - Simply build your own home cockpit for your favorite flight sim - MSFS2020, FSX, Prepar3D (FSUIPC), X-Plane (XPUIPC)
2015-03-23 18:45
Avatar
yuvalsegev11
Posts: 10
Is there any option to create fictional key storkes, more than the ones on the keyboard? this will allow unlimited inputs.
2015-03-28 09:32
Avatar
yuvalsegev11
Posts: 10
BTW, LINDA provides good EventID support and works with FSUIPC
2015-03-28 14:45
Avatar
yuvalsegev11
Posts: 10
Sebastian,
Ive done some research about using controls with FSUIPC and LUA, and found that this function works well in lua:
ipc.control(control number, parameter) .
Maybe there is some way to implement this function to your software.

Yuval.
2015-04-04 13:28
Avatar
DocMoebiuz
Moderator
From: EDSH, Germany
Posts: 1516
I will see if there is a way to improve this. LINDA interfaces differently with FSUIPC.
Have a great day!
Sebastian

MobiFlight - Simply build your own home cockpit for your favorite flight sim - MSFS2020, FSX, Prepar3D (FSUIPC), X-Plane (XPUIPC)
2015-04-11 09:53
icon