PDA

View Full Version : New tutorial available at www.Opencockpits.com - Using multiple USB modules with a single script



MortenHa
01-03-2013, 10:05 PM
Hello fellow builders!

I have written a tutorial on how to use Multiple USB modules and cards with a single script in SIOC! The tutorial uses a specific example with Project Magenta as its software counterpart. We have used it on our flightdeck, so the result has been verified!

Could be useful for the Newbies to OC hardware

enjoy

Link:

Tutorial Using multiple modules with only one Sioc's script (English). (http://www.opencockpits.com/index.php/en/tutorials-contents/item/tutorial-using-multiple-modules-with-only-one-sioc-s-script-english?category_id=6)

Morten

kiek
01-04-2013, 09:41 AM
Hello Morten,

Thank you for your contribution. And thanks for your kind words with respect to my website on Opencockpits.
I'll refer to your tutorial when people ask me generic questions about Opencockpits Modules.

Terminology is indeed sometimes confusing, I'm thinking of changing my 'logical' and 'real' device terminology into your (or OCs) device index and device numbers.

However, I would have called your tutorial: Using multple modules with only one SIOC.exe ...
Because that was your goal, how to get rid of three SIOC.exe instances.

Note that a SIOC instance always runs only one .ssi file. But that .ssi file can be compiled from one or from multiple SIOC scripts (files)... In my terminology a script is a .txt file... (see ConfigSioc of Opencockpits Tutorial, compiling single or multiple files (http://www.lekseecon.nl/configsioc.html))
In your tutorial you are compiling multiple SIOC scripts into one .ssi file, in order to need only one SIOC.exe instance ;)

regards,
Nico

fordgt40
01-04-2013, 10:40 AM
Morten

Many thanks for this. Although I have been using SIOC for many years, I did not appreciate that the Device Index was unique across all cards. I mistakenly thought that the Device Index differentiated between different cards of the same type ie the first USBServo card would be 0, the second would be 1 and so on. Not so, if you already have a Mastercard already connected, unless you make the Mastercard any Device Number other than 0 or 1

This might explain the odd problem I have encountered in the past, so thanks again

Now if only we could access other OC mastercards on different computers via sioc over the network :p

David

MortenHa
01-04-2013, 09:46 PM
Hello veteran builders Nico and David!

Nico:
Thank you for your kind words! I do feel honored been given praise by the very man that inspired me to do this :)!
Thank you Nico! I'm not going spend the better part of this post telling you how important your explanations on SIOC presented at your site have been! But you are the English-writing master wizard of SIOC! (Even the Grand master himself thinks (http://www.opencockpits.com/index.php/en/forum/ejemplos-sioc-sioc-examples/5268-need-sioc-script-com1-com2-nav1-nav2-form-pmd#18077) so :D )

As to your suggestions:
I agree with you, the terminology is very important, and as soon as I have revised the tutorial I will change it's name (and relevant content) so it reflects your point!

David:
you're so right! These declarations made us pull our hair out! And I didn't hack it before I read the PM OVH script! I find it interesting that the IOCard-SIOC system is so very elegant in its structure. Other HW interface protocols get the job done! But with SIOC, your toolbox goes from something you can fix your G20 Chevy Van with, to fixing the Enterprise!

Subjective opinions differ, but I'm willing to go a couple of rounds for OC SIOC, defending that claim!

Happy New Year to the both of you :D

Morten

MortenHa
01-08-2013, 02:59 AM
Now if only we could access other OC mastercards on different computers via sioc over the network

David:

Have you tried the IOCP clients module option for this?

I don't know how it works (yet), but this must be exactly what you're looking for :)

fordgt40
01-13-2013, 10:17 AM
Morten and I are working on this with some initial success :) Watch this space!