• 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.

FSX Comms android app via simconnect

Messages
94
Country
unitedkingdom
Hello simmers,

I am trying to get build a remote app from my android tablet/phone to interrogate the radio stack (COM1, NAV1 and XPDR) via sim connect. I have managed to get a windows based "server" app to connect to sim connect and the android app to connect and send frequencies to it. But it gets stuck or silently fails when I want the frequency injecting into FSX

This is a project for my self and ultimately to use on an aircraft with a non standard radio gauge. To replicate the thought of a handheld system if you will.

I have had some success with chatgpt but would like to learn from other sources too..... I'm not home so if you wa t the files to inspect then you would have to give me a few days
 
Hi, sounds like a fun project.

Indeed it is going to be difficult to guess the issue w/out seeing some relevant code bits.

You're using "SET" Key Events to send the frequencies to the sim? E.g. COM_RADIO_SET. (e.g. vs. other events which increment/decrement individual digits)

If so, how are you handling the BCD value encoding?

Not sure what else to ask/suggest offhand... triggering Key Events is generally pretty straight forward... map the event name to your ID (MapClientEventToSimEvent()) and then TransmitClientEvent().

I can see how that cold silently fail (nothing appears to happen in the sim), but not sure what "gets stuck" would mean... :-)

To perhaps avoid "silence" from the sim, be sure to handle the SIMCONNECT_RECV_ID_EXCEPTION type messages from SimConnect and dump the info they provide to some debug facility (print to console/log or whatever). At least this will tell you if the sim couldn't parse one of your commands. The actual SimConnect functions/methods almost never return an error except when basic communication with the sim fails. The actual action to perform is only validated at the sim side and any actual errors are sent back asynchronously in those EXCEPTION messages.

If none of that provides any clues, do post some code (ideally something minimal that reproduces the issue).

Cheers,
-Max
 
Hello,

I've been working away and I re-thought and apparently Simconnect was the wrong way so I've gone down the FSUIPC route.

I did manage to get it change NAV1 whilst I;ve been trying to alter COM1. Attached are the Visual Studio forms - if someone could look over it as my head is frying
 
Back
Top