From: Augusto Destrero <destrero@imavis.com>
To: linux-media@vger.kernel.org
Subject: Controlling external GPIO in IVC-200G board
Date: Wed, 12 Oct 2011 16:03:46 +0200 [thread overview]
Message-ID: <201110121603.46582.destrero@imavis.com> (raw)
Hi there,
we recently purchased a IVC-200G board from IEI:
http://ieiworld.com/product_groups/industrial/content.aspx?gid=09049535992720993533&cid=09049577938864496628&id=08142301152930771045
we would like to use the external GPIO capabilities of such board on Linux.
This external GPIO is used to control external devices, such as lights, gates,
doors, ...
We already asked for support from the vendor, but they suggested us to use the
Windows SDK :(, so we hope that some one in this list have some knowledge
about the board and can help us.
We are using a quite recent version of Linux Kernel (2.6.35.11) and the bttv
module is working correctly for what concerns video capturing.
Now we would like to control the external GPIO embedded in the IVC-200G board,
but we don't know how to do it.
In the driver CD provided with the board we found a directory Linux,
containing three subdirectories: Demo, Driver and Sdk:
The "Demo" directory contains a demo program which demonstrates how to capture
video with the IVC-200G board, but doesn't help to understand how to control
the external GPIO.
The "Driver" directory contains some very old _binary_ bttv drivers (specific
for Red Hat 7.2, 7.3 and 8 versions), but this is not useful for our purpose.
The "Sdk" directory contains only a C header file (ieibt878.h, pasted here
http://pastebin.com/cjezwusy) and a text file sdk-howto (pasted here
http://pastebin.com/H66WzF1G).
The section 4 of sdk-howto explains something related to external GPIO, for
example we can read "To set GPIO outputs, use structure iei_gpio and
VIDIOC_IEI_SET_GPIO ioctl call", but it's not clear on which device (we mean
which node in /dev directory) we should perform the ioctl call.
Can you help us in using the external GPIO in the IVC-200G board on Linux?
Thank you very much for your help!
--
Augusto Destrero, PhD
next reply other threads:[~2011-10-12 14:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-12 14:03 Augusto Destrero [this message]
2011-10-12 14:46 ` Controlling external GPIO in IVC-200G board Domenico Andreoli
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201110121603.46582.destrero@imavis.com \
--to=destrero@imavis.com \
--cc=linux-media@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox