Results 1 to 10 of 18
-
08-23-2010, 12:07 PM #1
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.
-
08-23-2010, 12:47 PM #2
- Join Date
- Jul 2013
- Posts
- 917
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
-
08-23-2010, 01:05 PM #3
- Join Date
- Oct 2008
- Location
- ontario
- Posts
- 95
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.
DaveDave Kemp
FS9-BU0836X-GoFlight 166-TH2GO-WideFS-FSUIPC-Opencockpits
-
08-23-2010, 01:23 PM #4
- Join Date
- Jul 2013
- Posts
- 917
Re: MasterCard/USBExpansion detection
Dave
Quite right, my mistake
David
-
08-23-2010, 05:16 PM #5
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...
NicoLast edited by kiek; 08-23-2010 at 05:19 PM.
-
08-23-2010, 06:43 PM #6
Re: MasterCard/USBExpansion detection
Thanks Nico, Dave and David. Your replies have been most helpful.
-
08-27-2010, 06:55 AM #7
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.
-
08-29-2010, 04:53 PM #8
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
-
08-29-2010, 05:41 PM #9
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 } } } } } } }
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
-
08-29-2010, 05:55 PM #10
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 {
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
Similar Threads
-
Connecting Mastercard to USB Expansion
By colt45 in forum OpenCockpits General DiscussionReplies: 3Last Post: 08-10-2010, 04:57 PM -
OC MasterCard Help.
By CessnaGuy in forum General Builder Questions All Aircraft TypesReplies: 15Last Post: 04-05-2010, 09:45 AM -
Mastercard OC
By 150245 in forum OpenCockpits General DiscussionReplies: 4Last Post: 03-09-2010, 02:02 PM -
Switch on Mastercard
By Biting Bee in forum OpenCockpits General DiscussionReplies: 1Last Post: 10-14-2009, 01:25 AM -
USBExpansion troubles.
By poonta in forum OpenCockpits General DiscussionReplies: 15Last Post: 04-17-2008, 12:47 PM
Pretty Girls from your city for night
New Version of UPDNAV for Jeehell...