Jump to content

CPDLC - help needed


A340-642X

Recommended Posts

Same thing for CPDLC:

Quote

many thanks for your reply and already your "thorough" investigation! I have forwarded this as well to the respective development team, however I cannot tell you if/when this will be fixed. I am sorry for this inconvenience.

So we are waiting... Let's give 'em some time and will see.

  • Like 1
Link to comment
Share on other sites

  • 7 months later...

After having received 0 response from Aerosoft after raising a ticket, I decided to take matter into my own hands.

 

Using wireshark, I saw that the last character of my hoppie logon code was being cutoff, so hoppie would always return "incorrect logon code".

I decompiled the CPDLC.dll and increased the memory size for reading the ACARS.ini, but that did not sort it.

 

Instead, I got Fiddler and made a rule such that any request being made using the incorrect logon code would be re-routed as a request using the correct code. This now made the requests go through and hoppie to return "ok".

 

EDIT:

I did manage to fix the issue in the CPDLC.dll by just hardcoding the missing character, thus not needing to use fiddler. If anyone has the same issue, see if the correct login code is being used or if it is being cutoff somewhere.

 

Link to comment
Share on other sites

  • 2 weeks later...
On 9/22/2024 at 12:08 AM, RAZERZ said:

EDIT:

I did manage to fix the issue in the CPDLC.dll by just hardcoding the missing character, thus not needing to use fiddler. If anyone has the same issue, see if the correct login code is being used or if it is being cutoff somewhere.

 

Thank you for your efforts in finding a fix for this issue

You say you've managed to register your Hoppie's network key in the CPDLC.DLL.

Path :Aerosoft A330 Pro V5\SimObjects\Airplanes\Aerosoft A330 Professional Base\Panel_Fallback\DLLs

 

I myself have tried with JetBrains Dotpeek but I can't find my key.
Can you help please?

Link to comment
Share on other sites

  • 3 weeks later...
On 10/6/2024 at 8:18 AM, Recciosilva said:

I myself have tried with JetBrains Dotpeek but I can't find my key.

 

Firstly, put in your logon code in the A330 configurator (or in Documents/Aerosoft/General/A3XX CPDLC/CPDLC.ini)

 

Then, install wireshark and filter for http on your connection (I use my ethernet port, so I select ethernet, then in the search bar type in http).

 

Then load up the sim with the plane and try to logon to some station, you'll see a call in wireshark with your logon code. Check if the logon code matches what is in the CPDLC.ini file. Personally my old code shows up in the wireshark for polling, but my actual one shows up with the request. Check the return message of the logon request in wireshark, it will either say "ok", or say that the logon code is invalid. If the logon code matches what is in the CPDLC.ini, then generate a new logon code from the hoppie website (they de-activate the unused ones after a while). If it is the case that the last character is missing, then continue reading

 

Download ghidra (since the CPDLC.dll is not a .NET file, you won't be able to decompile using dotPeek) which is free from their github and let it decompile and analyze the DLL which takes a while the first time

 

Then click search and then search program text and hit the "all fields" button and search for "&from=". It should be after the "/acars/system/connect.html?logon=" area. Right click, hit patch data and add in your missing character and hit enter. Then go to file and export in C/C++ format and copy and paste it into the /Panel_Fallback/DLLs folder (of course, make a backup of the original CPDLC.dll file!) and restart the sim and try it out

Link to comment
Share on other sites

Many thanks RAZERZ for your helpful assistance

Aerosoft should have continued to update the excellent A330 for Prepar3D (I was even prepared to pay for an update) it's a pity when I see the flop with the MSFS one.
 

Link to comment
Share on other sites

  • 1 month later...
On 10/22/2024 at 6:59 PM, RAZERZ said:

 

Firstly, put in your logon code in the A330 configurator (or in Documents/Aerosoft/General/A3XX CPDLC/CPDLC.ini)

 

Then, install wireshark and filter for http on your connection (I use my ethernet port, so I select ethernet, then in the search bar type in http).

 

Then load up the sim with the plane and try to logon to some station, you'll see a call in wireshark with your logon code. Check if the logon code matches what is in the CPDLC.ini file. Personally my old code shows up in the wireshark for polling, but my actual one shows up with the request. Check the return message of the logon request in wireshark, it will either say "ok", or say that the logon code is invalid. If the logon code matches what is in the CPDLC.ini, then generate a new logon code from the hoppie website (they de-activate the unused ones after a while). If it is the case that the last character is missing, then continue reading

 

Download ghidra (since the CPDLC.dll is not a .NET file, you won't be able to decompile using dotPeek) which is free from their github and let it decompile and analyze the DLL which takes a while the first time

 

Then click search and then search program text and hit the "all fields" button and search for "&from=". It should be after the "/acars/system/connect.html?logon=" area. Right click, hit patch data and add in your missing character and hit enter. Then go to file and export in C/C++ format and copy and paste it into the /Panel_Fallback/DLLs folder (of course, make a backup of the original CPDLC.dll file!) and restart the sim and try it out

Wow, I did not try yet and don't want to honestly, but will do if I have to... I'll let the Devs know in a ticket I've created long ago that You might have found a workaround https://helpdesk.aerosoft.com/hc/en-gb/requests/24267?page=1. Maybe they will finally release a fix for this... Did it work for You RAZERZ?

Link to comment
Share on other sites

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

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. Privacy Policy & Terms of Use