• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

SimConnect Schema

Messages
27
Country
unitedkingdom
Hi,

I'm thinking about creating a little utility application for P3D. I want to use SimConnect to fetch some data (like local time and aircraft position) from the sim. However I'm toying with the idea of creating it using web technologies (e.g. http://electron.atom.io/) rather than C#. However I've no idea how I'd go about constructing the requests to send to the sim machine via SimConnect. Is there some sort of Schema available that shows the request / response format?

Thanks.

Wills
 
Hi Wills,

This is my first post here, and there are probably people far more capable of answering this but here we go.

SimConnect is a library. The P3D V3 SimConnect documentation is here: http://www.prepar3d.com/SDKv3/LearningCenter/utilities/simconnect/simconnect.html#SimConnect API Reference

As far as I know, there are no Javascript bindings for the SimConnect library. I'm currently thinking about writing a native NodeJS module, which would wrap the SimConnect API, but I'm not sure if there is enough demand (or that I've got the time!). If anyone is interested in this - please let me know.

It may be worth looking at node-ffi ( https://github.com/node-ffi/node-ffi ) or SWIG ( http://www.swig.org/ ) in order to get something up and running quickly.

Or alternatively, I guess you could write a C++ / C# stub, which could communicate with the JS process via IPC.

Thanks,

Tom.
 
Hi Tom,

Thanks for the info. I've seen the documentation and API reference, but these all assume the use of the provided C/C# bindings :(.

I was hoping to be able to create something with technologies I'm more familiar with (web), hence the interest in Electron, but to be honest I'm probably better off hacking something together in C# with Windows Forms as it's going to be a mammoth task trying to create custom Javascript bindings when I can't even see any details on the message schema... (Plus I've not got any experience working on stuff that low-level).

I'd be highly interested in a SimConnect Node module, and would be interested and willing to help out with that if you ever decide to start :).

Cheers and Merry Christmas,

Wills
 
Hi Wills,
...
As far as I know, there are no Javascript bindings for the SimConnect library. I'm currently thinking about writing a native NodeJS module, which would wrap the SimConnect API, but I'm not sure if there is enough demand (or that I've got the time!). If anyone is interested in this - please let me know.
...
Tom.

Hi Tom, even though your post is quite old right now, i'd be really interested in a SimConnect or FSUIPC npm-module that runs easily within Node 64 Bit with Prepar3D 64 Bit. :-)
I'd like to use it as base for my repo at https://github.com/joeherwig/portable-sim-panels/ that is triggered to update SVG-based gauges by simply subscribing to a websocket.

Unfortunately i don't get Marcins WebSimBrowser running anymore after some Updates, and can't figure out why.
So just let me know if you're interested to create something for easy web-access to our simulators.

Joe
 
Back
Top