Results 1 to 2 of 2
  1. #1
    75+ Posting Member WJH308's Avatar
    Join Date
    Aug 2008
    Location
    San Francisco, CA
    Posts
    81
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Need a definitive howto - Simconnect and a simple external switch

    I learned some C and C++ in highschool long ago. My knowledge of the language ends with console programs and programming AVR's in GNU C.
    For the life of me, I do not understand the junk that microsoft has added to the languages.
    Here is what I would love to find if it already exists. A tutorial on interfacing an external toggle switch that connects to the computer via a serial port. All I want is step by step instructions on how to make this simple toggle switch turn on the landing lights, or the seat belt sign, etc.
    Now I already know how to program an AVR to send data via the serial port. I do NOT know how to make my pc respond to this serial data and further, make the functions work in FSX. All I know is that SimConnect does this, some how. I know there are many products I can purchase that will allow me to do this. That is not the point, I feel an intense need to learn this stuff, I want to learn and do it for my own satisfaction. Long term project is an L1011 cockpit. I need to learn the basics first before I start deciphering synchros in the autopilot controls and communicating serially to FSX.
    I have also purchased Mikes book on building recreational simulators and found it to be a great help, although I wished he used AVRs programmed in C rather than PIC's in assembly :P
    Thanks if anyone can point me into the right direction

  2. #2
    300+ Forum Addict



    Join Date
    Feb 2007
    Location
    California, USA
    Posts
    380
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Need a definitive howto - Simconnect and a simple external switch

    You probably have already seen these, but if not:
    Simconnect info from MS: http://msdn.microsoft.com/library/cc526948.aspx
    Serial port under win32: http://msdn.microsoft.com/en-us/library/ms810467.aspx

    This information worked for Windows XP. I do not know if it works for Win7

    I suggest working through the simconnect code samples before dealing with the serial comm port.

Similar Threads

  1. How to make a simple switch panel
    By cnopicilin in forum Where to Start Building a Home Cockpit
    Replies: 44
    Last Post: 12-21-2010, 01:29 PM
  2. FSX SDK Simconnect troubles
    By knuffelbaer1971 in forum General Microsoft Flight Simulator 10 (FSX)
    Replies: 1
    Last Post: 02-27-2010, 12:10 PM
  3. Planning to start simple - not as simple as I thought!
    By Skylar in forum Where to Start Building a Home Cockpit
    Replies: 3
    Last Post: 01-12-2010, 05:47 AM
  4. simconnect ?
    By Mr. Midnight in forum General Builder Questions All Aircraft Types
    Replies: 1
    Last Post: 11-01-2009, 12:04 AM