View Full Version : Can't get 2nd Iocards USB Expansion Card to communicate with IOCP Console or FSX
Jerrymc3
09-06-2013, 06:47 PM
I'm using a 2nd Expansion Card with 4 Master Cards for my Home built 747 Overhead Panel. The #1 Expansion Card (Device = 23) is controling my MCP, Radios, etc. and most of that is working fine. However, my #2 Expansion Card(Device = 25) with 4 MasterCards isn't communicating with the IOCP Console or FSX. My Overhead switches are operating in the SIOC Monitor and the IOCP Console lists the switches I have configured in my SIOC script, I'm connected and Logged on but the log doesn't show anything when I push a switch, Ex.:
Var 0500, name Batt1, Link FSUIPC_OUT, Offset $5628, Length 2, Value 0
Var 0501, Link IOCARD_SW, Device 25, Input 71, Type I // Battery PB
{
IF V0501 = 1
{
&Batt1 = 1
}
ELSE
{
&Batt1 = 0
}
}
Am I maybe missing an entry in my config file?
Perik
09-07-2013, 03:37 AM
Hello Jerry
You should read up on how Device Numbering / Index works:
How to program in SIOC, many basic examples (http://www.lekseecon.nl/howto.html#device)
http://www.opencockpits.com/uploads/tutoriales/Multiple%20Modules%20%20Single%20Script%20tutorial.pdf
Jerrymc3
09-10-2013, 12:00 PM
I've read these articles before, I guess I could have missed something. I'm not using any OC Modules, all my panels are home built. The entries in my sioc.cfg file are: MASTER=0,4,3,23
MASTER=1,4,3,25
Everything is working on my first USB Expansion Card, Device 23, with 3 Mastercards. On the 2nd Card, Device 25, with 3 Mastercards, the inputs work on the Sioc Monitor but not on the Sioc Console or on my PMsystems Overhead. I haven't nearly finished my script for the overhead. I'm just trying to make sure its working first. Not sure what I'm missing here.
Jerry
Hi,
Var 0501, Link IOCARD_SW, Device 25, Input 71, Type I // Battery PB
What do you mean with Device 25? It should be either 0 or 1.....and in your case probably 1...
Please study this (http://www.lekseecon.nl/howto.html#device)carefully.
regards,
Nico
Jerrymc3
09-10-2013, 10:27 PM
That's where my misunderstanding was! Device = 25 is the number my computer assigns to the USB Port my Expansion Card is plugged in to. Its listed under Devices on the SIOC Window as IDX=1 - IOCardUSB - Device = 25. That's the Device number I thought I was supposed to use. Changed it to Device = 1 and its working now. Thanks!
Note that there is a difference between 'logical' DEVICE numbers used in SIOC scripts and 'physical' DEVICE numbers used in sioc.ini. You link the two in sioc.ini. If you would plug your card into another USB port you would get a new physical DEVICE number. Then you only have to update one line in your sioc.ini and not all your SIOC scripts...
Nico
Jerrymc3
09-12-2013, 06:06 PM
Thanks Nico, it all makes sense now.