Page 1 of 2 12 LastLast
Results 1 to 10 of 18
  1. #1
    500+ This must be a daytime job Boeing 747 Flyer's Avatar
    Join Date
    Nov 2009
    Location
    England
    Posts
    771
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    MasterCard/USBExpansion detection

    Hiya everyone,

    I have three questions in regards to the MasterCard and USBExpansion setup:

    1.) Does 5V need to be applied to either card for detection in the main SIOC Window?

    2.) In the main SIOC Window, should USBE and Master come up as seperate entries or as one?

    3.) Does it matter which port I plug the Master ino on my USBE?

    Cheers.

  2. #2
    500+ This must be a daytime job
    Join Date
    Jul 2013
    Posts
    948
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: MasterCard/USBExpansion detection

    Jack

    In reverse order

    3) I recommend that you use a motherboard USB port and not a Hub

    2) On my overhead, with 1 USB Expansion and two mastercards - it just shows IOCardUSB - Device = xx

    1) I can really recommend reading the OC manual for the expnasion card/mastercard - it is very informative on your question and lots of other issues


    David

  3. #3
    75+ Posting Member
    Join Date
    Oct 2008
    Location
    ontario
    Posts
    100
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: MasterCard/USBExpansion detection

    jack,

    Regarding question 3, I believe you are asking which port on the USB expansion board do you plug the Mastercard to? If I am right with this assumption than I believe the ports on the USBE are numbered J1 to J4 and you should plug the first MC into J1, the second MC (if you have one) to J2, etc.

    Re: question 1, power is supplied to the MC.

    Dave
    Dave Kemp
    FS9-BU0836X-GoFlight 166-TH2GO-WideFS-FSUIPC-Opencockpits

  4. #4
    500+ This must be a daytime job
    Join Date
    Jul 2013
    Posts
    948
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: MasterCard/USBExpansion detection

    Dave

    Quite right, my mistake

    David

  5. #5
    2000+ Poster - Never Leaves the Sim kiek's Avatar
    Join Date
    Jan 2007
    Location
    Netherlands
    Posts
    2,198
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: MasterCard/USBExpansion detection

    Jack,
    Regarding your question 3)
    No I don't think it matters, although it has effect on the numbering of your in- and outputs, see this document. And in sioc.ini you have to indicate how many MC's there are at a USB Exp card. So J1 is more logical for the first MC...

    Nico
    Last edited by kiek; 08-23-2010 at 06:19 PM.

  6. #6
    500+ This must be a daytime job Boeing 747 Flyer's Avatar
    Join Date
    Nov 2009
    Location
    England
    Posts
    771
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: MasterCard/USBExpansion detection

    Thanks Nico, Dave and David. Your replies have been most helpful.

  7. #7
    500+ This must be a daytime job Boeing 747 Flyer's Avatar
    Join Date
    Nov 2009
    Location
    England
    Posts
    771
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: MasterCard/USBExpansion detection

    I have made my own pin diagrams of the Master Card to replace the somewhat blurry ones provided by Opencockpits. How do you find these:



    ANY mistakes please point out.

  8. #8
    2000+ Poster - Never Leaves the Sim kiek's Avatar
    Join Date
    Jan 2007
    Location
    Netherlands
    Posts
    2,198
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: MasterCard/USBExpansion detection

    Hi Jack,

    I believe your diagrams are not really needed. There already are enough websites perfectly explaining the pins, like this one for instance.

    Nico

  9. #9
    500+ This must be a daytime job Boeing 747 Flyer's Avatar
    Join Date
    Nov 2009
    Location
    England
    Posts
    771
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: MasterCard/USBExpansion detection

    Thanks very much Nico, I have printed that diagram off and will use it regularly.

    BTW: Is that diagram definitely correct (the one you linked)? reason I ask, I setup a test script for a few LEDs and they do not illuminate, but do when testing in controlador.exe.

    Code:
    Var 10, Name LED1, Link IOCARD_OUT, Output 11 // LED1
    Var 11, Name LED2, Link IOCARD_OUT, Output 13 // LED2
    Var 12, Name LED3, Link IOCARD_OUT, Output 15 // LED3
    Var 13, Name LED4, Link IOCARD_OUT, Output 17 // LED4
    Var 14, Name LED5, Link IOCARD_OUT, Output 19 // LED5
    Var 15, Name LED6, Link IOCARD_OUT, Output 23 // LED6
    Var 9003, name Speed, Link FSUIPC_IN, Offset $02BC, Length 4 // IAS from Sim
    {
     L0 = DIV &Speed 128
     IF L0 = 10
     {
      &LED1 = 1
      &LED2 = 0
       IF L0 = 20
       {
        &LED1 = 0
        &LED2 = 1
        &LED3 = 0
         IF L0 = 30
         {
          &LED2 = 0
          &LED3 = 1
          &LED4 = 0
           IF L0 = 40
           {
            &LED3 = 0
            &LED5 = 0
            &LED4 = 1
             IF L0 = 50
             {
              &LED4 = 0
              &LED6 = 0
              &LED5 = 1
               IF L0 = 60
               {
                &LED5 = 0
                &LED6 = 0
               }
              }
             }
            }
           }
          }
         }
    SIOC.ini:
    Code:
    [SIOC]
    IOCP_port=8092
    IOCP_timeout=4000
    Minimized=Yes
    toggle_delay=20
    CONFIG_FILE=ttt.ssi
    
    [IOCARDS MODULE]
    IOCard_disable=No
    IOCard_LPT=No
    
    [DEVICE INFORMATION]
    USBSERVOS=0,77
    deviceUSB=2132
    
    [USBEXPANSION]
    USB=Yes
    
    [USBKEYS]
    USBKeys=0,67
    
    [MULTIPLE]
    MUSB=Yes
    
    [A/D FOR MASTER]
    USB_AD=4
    
    [NUMBER MASTERS]
    NCards=1
    
    [FSUIPC MODULE]
    FSUipcdisable=No
    FSUipcRefresh=50
    
    [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
    I set everything in accordance to the Opencockpits MasterCard manual.

  10. #10
    2000+ Poster - Never Leaves the Sim kiek's Avatar
    Join Date
    Jan 2007
    Location
    Netherlands
    Posts
    2,198
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: MasterCard/USBExpansion detection

    Your SIOC script is wrong, it will not test your leds.... what will happen IF L0 = 10?

    Code:
      L0 = DIV &Speed 128
      IF L0 = 10
      {
    All your other tests will fail ...


    If you want to test leds, just write a simple script writing 1's and 0's to these leds. Do not complicate the test by reading from a FSUIPC offset.
    Design principle KISS, Keep It Simple..., Stupid!

    Nico

Page 1 of 2 12 LastLast

Similar Threads

  1. Connecting Mastercard to USB Expansion
    By colt45 in forum OpenCockpits General Discussion
    Replies: 3
    Last Post: 08-10-2010, 05:57 PM
  2. OC MasterCard Help.
    By AlexJ in forum General Builder Questions All Aircraft Types
    Replies: 15
    Last Post: 04-05-2010, 10:45 AM
  3. Mastercard OC
    By 150245 in forum OpenCockpits General Discussion
    Replies: 4
    Last Post: 03-09-2010, 02:02 PM
  4. Switch on Mastercard
    By Biting Bee in forum OpenCockpits General Discussion
    Replies: 1
    Last Post: 10-14-2009, 02:25 AM
  5. USBExpansion troubles.
    By poonta in forum OpenCockpits General Discussion
    Replies: 15
    Last Post: 04-17-2008, 01:47 PM