* Controlling external GPIO in IVC-200G board
@ 2011-10-12 14:03 Augusto Destrero
2011-10-12 14:46 ` Domenico Andreoli
0 siblings, 1 reply; 2+ messages in thread
From: Augusto Destrero @ 2011-10-12 14:03 UTC (permalink / raw)
To: linux-media
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Controlling external GPIO in IVC-200G board
2011-10-12 14:03 Controlling external GPIO in IVC-200G board Augusto Destrero
@ 2011-10-12 14:46 ` Domenico Andreoli
0 siblings, 0 replies; 2+ messages in thread
From: Domenico Andreoli @ 2011-10-12 14:46 UTC (permalink / raw)
To: Augusto Destrero; +Cc: linux-media
On Wed, Oct 12, 2011 at 04:03:46PM +0200, Augusto Destrero wrote:
> Hi there,
Hi,
> Now we would like to control the external GPIO embedded in the IVC-200G board,
> but we don't know how to do it.
bttv driver does not expose GPIOs to the userspace but I expect it can be
modified to do so. Have a look at the GPIO_BT8XX driver to see how to do.
Beware that GPIO_BT8XX is thought to drive physically altered boards
(hence not working as brand new product - read the help message of the
driver) while the bttv one has to keep all the other functionalities, so
you may have less GPIO to play with because some are wired to something
on the board itself.
cheers,
Domenico
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-10-12 14:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-12 14:03 Controlling external GPIO in IVC-200G board Augusto Destrero
2011-10-12 14:46 ` Domenico Andreoli
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox