Rotating banners with links
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    500+ This must be a daytime job
    Join Date
    Jan 2007
    Location
    Netherlands
    Posts
    550

    Level: 35 [?]
    Experience: 727,189
    Next Level: 824,290

    Thanks
    12
    Thanked 52 Times in 43 Posts

    Old: FMC with USBKeys card

    This is a summary of the posts of the use of a USBKeys card for the FMC (next to the other possibility to use a MasterCard)

    Important to note is: we do not use the USBKeycard as a keyboard emulator (generating real key strokes), but as a device that generates (integer) codes for each key pushed. If you wire a USB key card yourself, you only need to run IOCKeys.exe during development to detect which keycode is generated for each hardware push button press, and then you have to modify the sioc script (see below) with your codes.
    The key codes will be received in your SIOC program in a variable you can define like this:

    Var 6000 Static name Key Link USB_KEYS (the number is free, you can take any number above 999)

    The blank key of the SDK generates a 'space' character, it does not wipe out your scratchpad; use a number of CLR keys for that.

    Tutorial for writing a SIOC script via the GUI interface of Config_sioc.exe. Personally I think it is a lot easier to use the Notepad editor; especially if you want to use the script that is described next...

    FMC SIOC Script for USBKeys card

    A plug and play script for the Opencockpits CDU (which has a USBKeys card in it) is available in the lekseecon downloads section at this website.
    Last edited by kiek; 04-26-2010 at 03:29 AM.

  2. #2
    500+ This must be a daytime job
    Join Date
    Jan 2007
    Location
    Netherlands
    Posts
    550

    Level: 35 [?]
    Experience: 727,189
    Next Level: 824,290

    Thanks
    12
    Thanked 52 Times in 43 Posts

    Re: Old: FMC with USBKeys card

    Here the steps to be taken to program your self built FMC (with a USB Keys card) from scratch:

    1. Download SIOC 3.7 beta 1, from Opencockpits website, and install (using the default folders)

    2. Download Setup_lekseeconv6.0.exe from here (lekseecon downloads section) and install (using the default folders)

    3. Download file FMC SIOC Script for USBKeys card from FMC USBKeys tutorial post (see sticky post above) and unzip

    4. Download IOCKeys_03.zip from Opencockpits, downloads tab (configuration software) at USBKey card in Sales shop, and unzip in SIOC folder.

    5. Run IOCKeys.exe, press each of the 69 buttons at your FMC and write down for each button its code

    6. Run Notepad, open the file FMC767Keys.txt
    For each IF statement like this
    Code:
    IF &Key = 5 
            { 
              &LET_Z = CHANGEBITN 0 &LET_Z 
            }
    Check whether your (in this example) Z key has code 5, if not change it in the .txt file.

    7. Run Config_sioc.exe, Import as Text file FMC767Keys.txt, push OK, and File, Save as FMC767Keys.ssi

    8. Open Notepad and create the following sioc.ini file (and put in in the SIOC folder, overwriting the current sioc.ini (if existing))
    Code:
    [SIOC]
    IOCP_port=8092
    IOCP_timeout=4000
    Minimized=Yes
    toggle_delay=20
    CONFIG_FILE=FMC767Keys.ssi
    
    [IOCARDS MODULE]
    IOCard_disable=No
    IOCard_LPT=No
    
    [MASTERS]
    
    [USBKEYS]
    USBKeys=0,1004   // change 1004 into the device number in use in your PC
                     // check SIOC main window
    
    [FSUIPC MODULE]
    FSUipcdisable=Yes
    
    [IOCP CLIENTS MODULES]
    IOCPini_delay=3000
    IOCPclient0_disable=Yes
    IOCPclient0_host=localhost
    IOCPclient0_port=8090
    IOCPclient1_disable=Yes
    IOCPclient1_host=localhost
    IOCPclient1_port=8099
    
    [SOUND MODULE]
    Sound_disable=Yes
    Volume=100
    Important: Replace number 1004 by the DEVICE number in use for your USBKeys card, see SIOC main window.

    9. Run SIOC, inspect its main window and write down the device number of your USBKeys card.
    Exit SIOC

    10. Run Notepad and put the devicenumber in sioc.ini

    Now we are done, just
    1. Run FSX/FS9, 2. Run SIOC, 3. Run Lekseecon(X/9) dependent on FS

    enjoy your FMC!

    Nico
    Last edited by kiek; 06-06-2010 at 02:34 PM.

+ Reply to Thread

Visitors found this page by searching for:

Nobody landed on this page from a search engine, yet!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts