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
Meridian
Posts: 14
So I dumped the UNO and got a MEGA but I am still having trouble.

I followed the LCD tutorial and I can see "Mobiflight Rocks" on the display so at least I know the display is OK.

Whenever I start Mobiflight I get this error "Your config could not be loaded, please check for syntax errors". I wouldn't know where to start looking for the errors.
This happens at this point in the tutorial "https://www.mobiflight.com/forum/message/5840.html" after I add the 5th line which sets up the display. If I save at this point and restart Mobiflight I get the error.

If I type any characters into the display box and hit test the characters are displayed on the screen.

All I have done is followed the tutorial exactly as written. I started with a clean config. But as soon as I get to the last part of the tutorial where you set up the display, the display just goes blank.

I looked inside the MobiFlight Mega.mfmc file and see that the Address="39" even though I set it to 0x27 in the software.
[Last edited by Meridian, 2018-01-16 13:54]
2018-01-16 11:44
Avatar
StephanHo
From: EDDG, Germany
Posts: 1867
Supporter
Hi Meridian,

the adress 0x27 (hex) is the decimal 39. So that's ok.

I will have a view on my test-file at home and write it here for you. So you can verify this and if needed you can copy it into you file. Please stay tuned, soon on work.
Grüße,
Stephan (Time: UTC+2)
2018-01-16 15:06
Avatar
Meridian
Posts: 14
Thanks Stephan,

I'll do a file compare when you post and see what the differences are if any.
2018-01-16 15:09
Avatar
StephanHo
From: EDDG, Germany
Posts: 1867
Supporter
Here a my lines I used for the tutorial:

mfmc-File:
iconmfmc:

<?xml version="1.0" encoding="utf-8"?>
<Config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<ModuleName />
<PowerSavingTime>600</PowerSavingTime>
<LcdDisplay Name="LcdDisplay" Address="39" Cols="20" Lines="4" />
<Button Name="Button" Pin="2" />
</Config>



and the mcc-file:

iconmcc:


<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<MobiflightConnector>
<outputs>
<config guid="f4cd2904-4034-4a94-81c7-e3df7e0c4635">
<active>true</active>
<description>Z1 COM1</description>
<settings msdata:InstanceType="MobiFlight.OutputConfigItem, MFConnector, Version=7.4.0.0, Culture=neutral, PublicKeyToken=null" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<source type="FSUIPC" offset="0x034E" offsetType="Integer" size="2" mask="0xFFFF" bcdMode="True" />
<comparison active="False" value="" operand="" ifValue="" elseValue="" />
<display type="" serial="-" trigger="normal" pin="" pinBrightness="255" />
<preconditions />
<transformation active="False" expression="$" substrStart="0" substrEnd="7" />

<configrefs />
</settings>
</config>
<config guid="f65beb28-2ed4-4fe6-b96d-d87dc8f4898a">
<active>true</active>
<description>Z2 COM2</description>
<settings msdata:InstanceType="MobiFlight.OutputConfigItem, MFConnector, Version=7.4.0.0, Culture=neutral, PublicKeyToken=null" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<source type="FSUIPC" offset="0x3118" offsetType="Integer" size="2" mask="0xFFFF" bcdMode="True" />
<comparison active="False" value="" operand="" ifValue="" elseValue="" />
<display type="" serial="-" trigger="normal" pin="" pinBrightness="255" />
<preconditions />
<transformation active="False" expression="$" substrStart="0" substrEnd="7" />

<configrefs />
</settings>
</config>
<config guid="32c5abe9-4a64-42bb-b764-4031e80cf3f4">
<active>true</active>
<description>Z3 NAV1</description>
<settings msdata:InstanceType="MobiFlight.OutputConfigItem, MFConnector, Version=7.4.0.0, Culture=neutral, PublicKeyToken=null" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<source type="FSUIPC" offset="0x0350" offsetType="Integer" size="2" mask="0xFFFF" bcdMode="True" />
<comparison active="False" value="" operand="" ifValue="" elseValue="" />
<display type="" serial="-" trigger="normal" pin="" pinBrightness="255" />
<preconditions />
<transformation active="False" expression="$" substrStart="0" substrEnd="7" />

<configrefs />
</settings>
</config>
<config guid="24846bf8-7ce3-43e1-a69b-5cb44b9579bc">
<active>true</active>
<description>Z4 NAV2</description>
<settings msdata:InstanceType="MobiFlight.OutputConfigItem, MFConnector, Version=7.4.0.0, Culture=neutral, PublicKeyToken=null" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<source type="FSUIPC" offset="0x0352" offsetType="Integer" size="2" mask="0xFFFF" bcdMode="True" />
<comparison active="False" value="" operand="" ifValue="" elseValue="" />
<display type="" serial="-" trigger="normal" pin="" pinBrightness="255" />
<preconditions />
<transformation active="False" expression="$" substrStart="0" substrEnd="7" />

<configrefs />
</settings>
</config>
<config guid="92636cee-fff7-4ace-b448-404f0b922bab">
<active>true</active>
<description>Displayausgabe</description>
<settings msdata:InstanceType="MobiFlight.OutputConfigItem, MFConnector, Version=7.4.0.0, Culture=neutral, PublicKeyToken=null" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<source type="FSUIPC" offset="0x0000" offsetType="Integer" size="1" mask="0x00FF" bcdMode="False" />
<comparison active="False" value="" operand="" ifValue="" elseValue="" />
<display type="LcdDisplay" serial="MF-Test/ SN-9c3-c7d" trigger="normal" address="LcdDisplay">
<line>COM1: 1??.?? MHz</line>
<line>COM2: 1&&.&& MHz</line>
<line>NAV1: 1§§.§§ MHz</line>
<line>NAV2: 1##.## MHz</line>

</display>
<preconditions />
<transformation active="False" expression="$" substrStart="0" substrEnd="7" />
<configrefs>
<configref active="True" ref="24846bf8-7ce3-43e1-a69b-5cb44b9579bc" placeholder="#" />
<configref active="True" ref="32c5abe9-4a64-42bb-b764-4031e80cf3f4" placeholder="§" />
<configref active="True" ref="f65beb28-2ed4-4fe6-b96d-d87dc8f4898a" placeholder="&" />
<configref active="True" ref="f4cd2904-4034-4a94-81c7-e3df7e0c4635" placeholder="?" />
</configrefs>
</settings>
</config>
</outputs>
<inputs />
</MobiflightConnector>



Best would be you copy this line into an editor (recommend notepad++) and in the other file-window of the editor and then use "compare".
You should keep your config guid's and copy only the lines in italics

Be so kind to report your experiences.
Grüße,
Stephan (Time: UTC+2)
2018-01-16 18:24
Avatar
Meridian
Posts: 14
Hi,

First error I get when using your settings. When I try to save the MCC file using Notepadd++ I get an "XML Parsing error at line 69".

I also still get the "Your config could not be loaded, please check for syntax errors" when I try to open it in Mobiflight.

I will do the tutorial again from the start and post my files here.
2018-01-16 19:44
Avatar
Meridian
Posts: 14
My MFMC File:

<?xml version="1.0" encoding="utf-8"?>
<Config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<ModuleName />
<PowerSavingTime>600</PowerSavingTime>
<LcdDisplay Name="LcdDisplay" Address="39" Cols="20" Lines="4" />
</Config>


My MCC File:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<MobiflightConnector>
<outputs>
<config guid="cd540f7b-b462-4f8d-bc37-717dfced1bbe">
<active>false</active>
<description>COM1 Active</description>
<settings msdata:InstanceType="MobiFlight.OutputConfigItem, MFConnector, Version=7.4.0.0, Culture=neutral, PublicKeyToken=null" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<source type="FSUIPC" offset="0x034E" offsetType="Integer" size="2" mask="0xFFFF" bcdMode="True" />
<comparison active="False" value="" operand="" ifValue="" elseValue="" />
<display type="" serial="-" trigger="normal" pin="" pinBrightness="255" />
<preconditions />
<transformation active="True" expression="$+10000" substrStart="0" substrEnd="7" />
<configrefs />
</settings>
</config>
<config guid="dd74847e-850b-439a-92fb-8b9d1d0eec11">
<active>false</active>
<description>COM2 Active</description>
<settings msdata:InstanceType="MobiFlight.OutputConfigItem, MFConnector, Version=7.4.0.0, Culture=neutral, PublicKeyToken=null" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<source type="FSUIPC" offset="0x3118" offsetType="Integer" size="2" mask="0xFFFF" bcdMode="True" />
<comparison active="False" value="" operand="" ifValue="" elseValue="" />
<display type="" serial="-" trigger="normal" pin="" pinBrightness="255" />
<preconditions />
<transformation active="True" expression="$+10000" substrStart="0" substrEnd="7" />
<configrefs />
</settings>
</config>
<config guid="3b61e8e0-6e51-416e-9af8-41fc4234afda">
<active>false</active>
<description>NAV1 Active</description>
<settings msdata:InstanceType="MobiFlight.OutputConfigItem, MFConnector, Version=7.4.0.0, Culture=neutral, PublicKeyToken=null" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<source type="FSUIPC" offset="0x0350" offsetType="Integer" size="2" mask="0xFFFF" bcdMode="True" />
<comparison active="False" value="" operand="" ifValue="" elseValue="" />
<display type="" serial="-" trigger="normal" pin="" pinBrightness="255" />
<preconditions />
<transformation active="True" expression="$+10000" substrStart="0" substrEnd="7" />
<configrefs />
</settings>
</config>
<config guid="15b339c5-4279-494c-9e1a-6401ac9247c4">
<active>false</active>
<description>NAV2 Active</description>
<settings msdata:InstanceType="MobiFlight.OutputConfigItem, MFConnector, Version=7.4.0.0, Culture=neutral, PublicKeyToken=null" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<source type="FSUIPC" offset="0x0352" offsetType="Integer" size="2" mask="0xFFFF" bcdMode="True" />
<comparison active="False" value="" operand="" ifValue="" elseValue="" />
<display type="" serial="-" trigger="normal" pin="" pinBrightness="255" />
<preconditions />
<transformation active="True" expression="$+10000" substrStart="0" substrEnd="7" />
<configrefs />
</settings>
</config>
<config guid="15deebf7-d275-4cbf-a378-00104c3ae8b9">
<active>false</active>
<description>Radios 2004 LCD</description>
<settings msdata:InstanceType="MobiFlight.OutputConfigItem, MFConnector, Version=7.4.0.0, Culture=neutral, PublicKeyToken=null" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<source type="FSUIPC" offset="0x0000" offsetType="Integer" size="1" mask="0x00FF" bcdMode="False" />
<comparison active="False" value="" operand="" ifValue="" elseValue="" />
<display type="LcdDisplay" serial="MobiFlight Mega 1/ SN-e00-227" trigger="normal" address="LcdDisplay" />
<preconditions />
<transformation active="False" expression="$" substrStart="0" substrEnd="7" />
<configrefs>
<configref active="True" ref="15b339c5-4279-494c-9e1a-6401ac9247c4" placeholder="#" />
<configref active="True" ref="3b61e8e0-6e51-416e-9af8-41fc4234afda" placeholder="§" />
<configref active="True" ref="dd74847e-850b-439a-92fb-8b9d1d0eec11" placeholder="&" />
<configref active="True" ref="cd540f7b-b462-4f8d-bc37-717dfced1bbe" placeholder="?" />
</configrefs>
</settings>
</config>
</outputs>
<inputs />
</MobiflightConnector>
2018-01-16 19:51
Avatar
StephanHo
From: EDDG, Germany
Posts: 1867
Supporter
What about these lines?

Your file - from line 56:

iconQuote:

<source type="FSUIPC" offset="0x0000" offsetType="Integer" size="1" mask="0x00FF" bcdMode="False" />
<comparison active="False" value="" operand="" ifValue="" elseValue="" />
<display type="LcdDisplay" serial="MobiFlight Mega 1/ SN-e00-227" trigger="normal" address="LcdDisplay" />
<preconditions />
<transformation active="False" expression="$" substrStart="0" substrEnd="7" />
<configrefs>



my file from line 56:

iconQuote:

<source type="FSUIPC" offset="0x0000" offsetType="Integer" size="1" mask="0x00FF" bcdMode="False" />
<comparison active="False" value="" operand="" ifValue="" elseValue="" />
<display type="LcdDisplay" serial="MF-Test/ SN-9c3-c7d" trigger="normal" address="LcdDisplay">
<line>COM1: 1??.?? MHz</line>
<line>COM2: 1&&.&& MHz</line>
<line>NAV1: 1§§.§§ MHz</line>
<line>NAV2: 1##.## MHz</line>

</display>
<preconditions />



The bold lines are missing. Don't you define them?
Grüße,
Stephan (Time: UTC+2)
2018-01-16 20:00
Avatar
Meridian
Posts: 14
Hi,

Yes, I did have those lines there but now I can't even open the file as I keep getting the syntax error.
2018-01-16 20:09
Avatar
Meridian
Posts: 14
ITS WORKING.

Apologies Stephan. Was my mistake and Google translate causing the trouble.

It wasn't until I watched the video version of the tutorial I realised my mistake. I hadn't input the values into the LCD screen grafik.

Thanks for your time anyway and apologies for wasting it.
2018-01-16 20:27
icon