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.
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
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
Re: MasterCard/USBExpansion detection
Dave
Quite right, my mistake
David
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
Re: MasterCard/USBExpansion detection
Thanks Nico, Dave and David. Your replies have been most helpful:).
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:
http://i822.photobucket.com/albums/z...uspheric/J.jpg
ANY mistakes please point out.
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
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.
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