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.

Go to page 1Go to page 1123Go to page 3Go to page 3
Avatar
avidflyer
Posts: 138
Hello slammer,

You have to use the fsx/p3d offsets with mobi they were translate by xuipc on the respective dataref. How much offsets are integrated and which event id i dont know. I trieded xuipc only with a compass setup which worked in p3d. The only thing i have done was loading xplane with xpuipc installed. Mobiflight show you in the window were you can see the connection to fsuipc - xpuipc
2017-01-27 16:32
Avatar
pizman82
From: ETSI, Germany
Posts: 6010
Supporter
Sorry slammer88

I Already awnsered youre question some postings before so i think this is solved and not awnsered again....

iconQuote:

The Standardoffsetlist for Xplane should be the same like the FSUIPC List... This can be find by google or on Pete Dawsons Supportpage!



So if you wan´t to readout a LED of Standard B737 in Xplane then you use the same Offset like you readout the Standard B737 in FSX.
If Manual is correct then The XPUIPC did the same (with same Offsets) as FSUIPC.... And Mobiflight not see a diference between this programmes.

But once youre right.... Youre PMDG Offsets and Event ID´s can´t work cause they only for PMDG. You Need the "Standard List" i describe above !

Good Luck!
Good Luck !
2017-01-28 02:46
Avatar
avidflyer
Posts: 138
Hallo,

Ich bin umgestiegen von P3d 3.4 auf XP 11. Meine 4 Megas laufen via wide client und XPUIPC und sollen eine default Baron zum leben erwecken. Es klappt eigentlich ganz gut. Die einzige Inkompatibilität konnte ich bei OFfsets des Audiopanels und Lights sowie bei DME Speed und Entfernung.Bei den Lights und dem Audiopanel werden einzelne Bits angesteuert für eine Funktion. Hat hier jamand schon mehr Erfahrung mit XP 11oder kann man in Mobi etwas ändern?

Mkg
Christian
2017-04-29 19:22
Avatar
DocMoebiuz
Moderator
From: EDSH, Germany
Posts: 1516
Hey Christian

Look at the xpuipc config file. It explains how to make the different DataRefs available.
Although the lights in FSUIPC are using bits this can be different in XPUIPC - it depends how you make them available. I can't tell right now if the lights are exposed in the same way as in FSUIPC off the top of my head. Have you tried it?
Have a great day!
Sebastian

MobiFlight - Simply build your own home cockpit for your favorite flight sim - MSFS2020, FSX, Prepar3D (FSUIPC), X-Plane (XPUIPC)
2017-04-29 19:32
Avatar
avidflyer
Posts: 138
Hey,

Yes I was talking about the bits in fsuipc. Unfourtunately if you work with those offsets then they switch on or off with values bigger hen 1 ( 2/48/16/32/64/128). You can read it if you put in a output line to check. If you switch for example bit 7 it will hold in the output file the value 128 only a short period and then fallling back to zero. I like to build an audio panel and like to switch com etc and show the respective status via leds but they went after a short period off. I hope i could make my self clear?:confused:

Regards Christian
2017-04-29 19:57
Avatar
DocMoebiuz
Moderator
From: EDSH, Germany
Posts: 1516
Is that the behavior you see in X-Plane? I mean that the switches flip back to 0?
Have a great day!
Sebastian

MobiFlight - Simply build your own home cockpit for your favorite flight sim - MSFS2020, FSX, Prepar3D (FSUIPC), X-Plane (XPUIPC)
2017-04-29 22:09
Avatar
avidflyer
Posts: 138
Hello Doc

yes this is the behavior that i see in Xplane. I talked about this with Pizmann see Message #4149. The Panellight wasnt important but Audiopanel light is. I took a look at the XPUIPC Cfg via notepad ++ and I found a DME OFFSet which is in the FSUIPC doc with 5 bytes and 2 others which are not documented. I will try these and will post all OFFSets which will work for my BARON in XPlane 11.
My questions are:
Can Mobiflight something do against the above described behavior ?
Are there someone how knowes how to circum navigate that issue?

If the solution is to adapt XPUIPC maybe there is someone out who is willig to do that because I have no Idea and no knowledge in codeing.
In XPUIPC cfg are 500 lines but I couldnt find the gear OFFSET but I know that this OFFSET is working too. I am confused

Thanks in advance
regards Christian
2017-04-30 10:56
Avatar
avidflyer
Posts: 138
Hello,

I did some testing today in regard to my problems with the audio panel. I made the following discoveries

1. outside the audiopanel - I tried the offset 0c2e as string for my DME Speed indication and it worked (it seems Offset 0302 2bytes is not supported by XPUIPC)

2. Audiopanel

Inputlines for push buttons (momentary)
Com1 ON 3122 1^7 value 0 on press - precondition is if read only output Com1 = 128
Com1 OFF 3122 1^7 value 128 on press - precondition is if read only output Com1 = 0

Com2 3122 1^6 value 0 on press - precondition is if read only output Com2 = 64
Com2 3122 1^6 value 64 on press - precondition is if read only output Com2 = 0

Both 3122 1^5 value 1 on press - precondition is if read only output both = 0
Both 3122 1^5 value 0 on press - precondition is if read only output both = 32

Outputlins for read only/Led
for all 3 input line a read only line without pin configuration for the input precondition
LEDOutput
COM 1 3122 1^7 Vergleich wenn 0 dann 1 sonst 0
COM 2 3122 1^6 Vergleich wenn 0 dann 1 sonst 0
both 3122 1^5 Vergleich wenn 0 dann 0 sonst 1

Operating:
When i push the com1 or any other button of the audio panel via the mouse pointer in the sim all LEDs working like they should.
When i use the hardware button for Com1 then the led goes briefly on, after 1sec went off and the the Com2 led comes on. The switching matches now the picture in the sim Com2 is on.
When I press Com2 button all things goes vice versa and Com 1 comes on. Now I have a way to circum navigate my problem.
If I take a look during the switching of Com 1 at my read only Com1 line i can observe that this line went from 128 (which is = 0) to 0 and then back to 128.
In the both configs there are no problems all is working as it should and when i hit the hardware button for ; Com1 /2 and the both led come on and in sim I get the same picture.
I checked all things twice and I use a very inefficient way (many lines no if cause) to get this result. I dont understand why the switching is like it is - switching on Com1 switches Com2 on:confused: . I will check if the lines can be reduced.

In the next weeks I will put in all Offsets I have used with my Baron in this chat and I will check on the panellight problem. I like to switch on/off my ledstripe via the panellight offset via an relais on a output (which already work within P3d) to have one switch for hardware lights and the software light in the instrument software.

regards Christian
2017-04-30 16:17
Avatar
DocMoebiuz
Moderator
From: EDSH, Germany
Posts: 1516
Hi Christian

how are you trying to set the bits? I assume you use the BitMask function for this purpose?
Have a great day!
Sebastian

MobiFlight - Simply build your own home cockpit for your favorite flight sim - MSFS2020, FSX, Prepar3D (FSUIPC), X-Plane (XPUIPC)
2017-05-03 08:20
Avatar
avidflyer
Posts: 138
Hello Doc,

Yes I set the bits in the Bitmask via Mobi.

Regards Christian
2017-05-03 18:59
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi Guys....
Tomorow im out of work and can keep a eye on this problem . ( And the one i told in other topic)

At first Christian..... Please Confirm my Question from other Thread .... https://www.mobiflight.com/forum/message/4788.html
Is youre descripted technic ONLY for Xplane or do i need to investigate the FSX Logic of Offset 3122, too ?? ( The Other topic was FSX Only i think)


Second i already not understand at all what you did here.... Is there maby a Issue in youre written guide ??

1. The Lines not can be 1^0... 1^7 eg..... It MUST be 2^0 - 2^7

2.

iconavidflyer:


Inputlines for push buttons (momentary)
Com1 ON 3122 1^7 value 0 on press - precondition is if read only output Com1 = 128
Com1 OFF 3122 1^7 value 128 on press - precondition is if read only output Com1 = 0



Confirm the ON and OFF is correct here.... with normal logic a setting to 0 would be OFF and a setting to 128 would be ON ( Inverted to youre description)

3. I don´t understand the BASIC Logic of youre OFF Config.
If i´m right informed it is NOT POSIBLE to deactivate COM1 or COM2 via the Button. You only can Swap between the 2 Modes BUT you NOT can deaktivate them.

So If COM1 is active and you push the COM1 button again than 2 things are logical i think....
A) Nothing happen and COM1 is still active ( Maby in case of XPUIPC Logic the Value and LED short go to 0 (OFF) and come direct back to COM1 (128)
or
B ) The System means a additional Click on the still actvie COM1 should do a switch to COM2,,,,, ( Maby a internal Logic)

So finaly please Confirm... Is this Problem only on COM1 and COM2 or do you got Problems with the other NAV1 Marker etc too ??



4.
Look for this Information out of the XPUIPC Code file....

iconQuote:

# Audio panel (X-Plane >= 9.40)
# Before 9.40, the audio panel buttons in X-Plane were mutually exclusive,
# while in FS they aren't. To map this correctly, you would need to split
# this offset into COM, NAV, DME and marker parts, and then detect state
# changes within the COM and NAV portions. In other words, if e.g. Nav1 is
# already selected, and the Adf1 button is pressed, you need to make sure
# that Nav1 deactivates and Adf1 activates, not the other way round. And vice
# versa. This is probably just a tiny bit too complex to compute here, and would
# be better implemented in a little plugin publishing a custom dataref that
# could then be used here without further ado:



I got no Xplane and can´t test this.... Maby YOU see something interesting here
Good Luck !
2017-05-04 00:09
Avatar
avidflyer
Posts: 138
Hello Pizmann,

Iam talking about Xplane 11 only, in P3D it work (with default A/c) fully correct.
If you need XP 11 to Test take the Demo it works, so did I before I purchased Xplane. In the Demo you have a time limit to fly but you can
test without flying. I use the default Baron and XPUIPC via wideclient.

1. The OFFSET 3122 has only one Byte 1^0, 1^1 .... 1^7 :confused:
2. Yes it is strange but 0 is on and 128 is off but when I use the the Offset for "BOTH", ADF, MKR then it is the normal way and I have no problems
3. I will send you my Mobi file via Email but I am working away from home and I can send you this not before Friday. I didnt checked it with Nav1 and Nav2
4. I read this and was hoping that it is working for me because I have no information about such a pluggin.

I had simliar problems with the light and here the Panel light 0d0c. I didnt check with Offset 3123 but Iam affraid the I will encounter the same problems.

When can comunicate via Email. It would be easier to use plain language.

regards and thank you Christian
2017-05-04 08:15
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi Christian.

First sorry... But i think you not need to send me that file.
I can help in FSX Stuff but please appology i not want to startup with Xplane at he moment. My time is verry limitted and i got only one Computer at the moment.... So A Install of Xplane is not a option at the moment !

If you got basic questions or like to discuss just wirite a Mail.... In german. I try to help ! ( We can talk by Phone, too.... I Got FlatRate)

*************
To the 1^1 Part.... here you not understand the technic.
I Explane this in the linked thread of last posting.... Just have a look there.
2^3 NOT means BYTE 2 BIT 3 .... This is a mathematic syntax that show the Real Decimal Value of a Bitwise Binary Value....
For Example 2^3 means BIT 3 is ON (1) .... Binary this is 0000 1000 .... And same time 2^3 = 2*2*2 and this is "8" .... In Other Words If Only Bit 3 is ON then Value Decimal is 8.

Hope this is clear..... If not i try to explane in German by Email.
Good Luck !
2017-05-04 18:04
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Just think again about the problem.....

iconavidflyer:



Inputlines for push buttons (momentary)
Com1 ON 3122 1^7 value 0 on press - precondition is if read only output Com1 = 128
Com1 OFF 3122 1^7 value 128 on press - precondition is if read only output Com1 = 0

Outputlins for read only/Led
LEDOutput
COM 1 3122 1^7 Vergleich wenn 0 dann 1 sonst 0



I Think this all can´t work ! ( Whatever the Value is still inverted )

The Mobiflight Manual says the follow....
iconQuote:


The comparison is always performed with the transformed value, the one that you see in the Output Value Column. Hence it is NOT using the raw value from the FSUIPC Offset.



You say in the Output Config ( That one you use as precondition i think) IF Value = 0...THEN 1... ELSE 0 .... Raw Value can be 128 or 0
Output Value is then 0 for 128 and 1 for Zero .......... BUT It can´t be 128 after youre Compare.

Now if Mobiflight Manual is correct youre Precondition from the COM1 ON Button Config NEVER can be True ! ( Cause Value is never 128)
The Config for OFF would be active if youre Output is 0 ( Menas original FSUIPC is 128)
If Value of youre Compared Output config is 1 (0 Original FSUIPC Offset) Then ther is NO ACTIVE Input Config at this Moment ! ( Cause both got OTHER Preconditions)

EDIT: and additinal it is NOT Posible at all to set a Bitmasked Input to a value that is bigger then 1...... If you try to set Value to 128 while you use Bitmask then it sends Zero "0" cause 128 is a not posible entry


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

Finaly Again... i´m Pretty shure it´s not posible or needed to DISABLE COM 1 or 2
Maby there is a Problem in XPUIPC, too.... Then you need Support of the programmer ( OR we try to write Code in the ConfigFile for a custom Read/Write logic) ....
BUT Maby this is a big misstake and you still try to do something that isn´t posible at all.

So YES.. Please send youre Config.... and we talk about that ! pizman@freenet.de .... Please be patient... I work all the weekend until 11pm .
[Last edited by pizman82, 2017-05-05 03:10]
Good Luck !
2017-05-05 02:50
Avatar
DocMoebiuz
Moderator
From: EDSH, Germany
Posts: 1516
I don't understand your notation otherwise I maybe could help. What does

Com1 OFF 3122 1^7 mean?
Have a great day!
Sebastian

MobiFlight - Simply build your own home cockpit for your favorite flight sim - MSFS2020, FSX, Prepar3D (FSUIPC), X-Plane (XPUIPC)
2017-05-05 03:26
Go to page 1Go to page 1123Go to page 3Go to page 3