Jump to content
The simFlight Network Forums

Recommended Posts

Posted
14 minutes ago, Paul Henty said:

Have you enabled the CDU broadcast in the PMDG ini file?

Yes, of course, but with one difference:

[SDK]
EnableDataBroadcast=1
EnableCDUBroadcast.0=1
EnableCDUBroadcast.1=0

Is it wrong? I just don’t need First Office CDU.

 

Posted

Here You are:
 

   PMDG_NGX_CDU_Screen cdu = new PMDG_NGX_CDU_Screen(5400);

            cdu.RefreshData();

            if (cdu.Powered) {

                PMDG_NGX_CDU_Row row0 = cdu.Rows[0];

                string cduText = cdu.ToString("\r\n");

                string row0Text = cdu.Rows[0].ToString();
                string row1Text = cdu.Rows[1].ToString();
                string row2Text = cdu.Rows[2].ToString();
                string row3Text = cdu.Rows[3].ToString();
                string row4Text = cdu.Rows[4].ToString();
                string row5Text = cdu.Rows[5].ToString();

                txtFMC.Text = row0Text + Environment.NewLine;
                txtFMC.Text = row1Text + Environment.NewLine;
                txtFMC.Text = row2Text + Environment.NewLine;
                txtFMC.Text = row3Text + Environment.NewLine;
                txtFMC.Text = row4Text + Environment.NewLine;
                txtFMC.Text = row5Text + Environment.NewLine;
            }
            else {
               txtStatus.Text += "CDU -> No Power";
            }

Btw.

cdu.Powered

gives my always false. Maybe this helps.

Posted

Now it looks this way:

Rows[0].ToString() - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0
Rows[1].ToString() - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0
Rows[2].ToString() - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0
Rows[3].ToString() - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0
Rows[4].ToString() - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0
Rows[5].ToString() - \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0

 

Posted

Looks like the PMDG info just isn't being broadcast.

It would be worth trying some of the other PMDG offsets and see if they work. If they don't, it's definitely a problem with the PMDG broadcast rather than your (or my) code.

Paul

Posted

 I believe I have PMDG broadcast .

I’m using app called MobiFlight for home cockpit builders and I’m able to get all PMDG offset. I’m displaying on LCD or LED display all MPC values (HDG,) and change those values using rotary encoders. It’s working with no problem.

But MobiFlight is using Pete Dowson version of FSUIPCDotNetClient2.4.

 

Doing this with C# and Yours FSUIP CClient I’m only learning. Is it correctly?


 private Offset<byte> MPC_HDG = new Offset<byte>(0x652C);

 FSUIPCConnection.Process();

this.txtStatus.Text = MPC_HDG.Value.ToString();

 

and it seems to work. What I set in FSX, I can see in my C# test app.

Posted

Yes the broadcast is working fine then.

I really don't know what else to suggest other than to make sure you have the latest updates to whatever version of FSUIPC you are using, my dll, and the PMDG Aircraft.

Paul

 

 

Posted
5 hours ago, Skino2412 said:

Tonight I upload my working project as source code. Maybe it will help.

Thank You very much. I was looking for such a thing.


But please tell me, where I can find this upload?
I'm new on this forum.

Posted
1 hour ago, Skino2412 said:

In my hurry I found only an incomplete project but even this should help.

And it helps, thank You.

Unfortunately effect is the same.

FSUIPC version is 4.975a - the last version for FSX
Paul Henty DLL version is 3.1.21.239 (Skino2412 use 3.1.4.305)


PMDG Aircraft – this is what left to check

Could You tell me what version PMDG 737NGX do You have?

Posted

I can confirm this is working with the 3.1.21 version of my DLL. Also FSUIPC Version 4.975a.

This is the code I used: Just a simple form with a button and a text box.

        public frmCDUTest()
        {
            InitializeComponent();
        }

        private PMDG_NGX_CDU_Screen cdu0 = null;

        private void frmCDUTest_Load(object sender, EventArgs e)
        {
            FSUIPCConnection.Open();
            cdu0 = new PMDG_NGX_CDU_Screen(0x5400);
        }

        private void Button1_Click(object sender, EventArgs e)
        {
            cdu0.RefreshData();
            this.txtCDU.Text = cdu0.ToString("\r\n");
        }

Using the PMDG 737-800 NGX. 

In the file: \SteamLibrary\steamapps\common\FSX\PMDG\PMDG 737 NGX\737NGX_Options.ini

I added:

[SDK]
EnableDataBroadcast=1
EnableCDUBroadcast.0=1
EnableCDUBroadcast.1=0

PMDG Version numbers:

On the CDU: PMDG Setup -> About says 1.1

In the document:

\SteamLibrary\steamapps\common\FSX\PMDG\PMDG 737 NGX\README_PMDG_737-800-900_NGX.txt

it says: v1.10.6461 at the top.

Hope that helps...

Paul

 

Posted
1 hour ago, Paul Henty said:

You haven't put the .ini file entries in FSUIPC4,.ini by mistake?

What kind of entires?

Today I made experiment. With my laptop I went to my friend, who has P3Dv4.5 and PMDG 737NGX.
And You know what? It’s working. My code (for the truth it’d Yours), Skino2412 code and it works  beautifully.

One one hand – good to know that the code is workig. On the other – why not on my computers. Eh...

Posted
Quote

What kind of entires?

These ones:

[SDK]
EnableDataBroadcast=1
EnableCDUBroadcast.0=1
EnableCDUBroadcast.1=0

You definitely have them in  \FSX\PMDG\PMDG 737 NGX\737NGX_Options.ini

Not in the FSUIPC4.ini?

Paul

Posted

Hi,

check those are set to Auto or Yes, at least for the PMDG model you use. Those are in FSUIPC INI file within the [General] section.

Quote

[General]

. . .

PMDG737offsets=Auto
PMDG747offsets=Auto
PMDG777offsets=Auto


The PMDG aircraft offset support is not enabled all the time unless specifically required. The option is controlled by
these three parameters in the [General] section of the FSUIPC5.INI file
The default “Auto” setting makes the offset support start only when the aircraft is loaded. This assumes the text
“PMDG” and “7x7” (x as appropriate) are found anywhere in the pathname to the add-on’s AIR file. For all PMDG
installations which haven’t been very much user modified this should be the case, but otherwise you can force the
support by setting “Yes” instead of “Auto”.

To prevent any PMDG offsets support at all, just set these parameters to “No”. This should not be needed except to
possibly avoid or diagnose problems.

Thomas

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.