That's expected for this device. It only has a single DIO subdevice
(subdevice 0 is type COMEDI_SUBD_DIO) and it doesn't support the comedi
"cmd" interface in either the "read" or "write" directions, therefore
the device has neither a "read" nor a "write" subdevice.
It does support the comedi "insn" interface, and will handle INSN_BITS,
INSN_READ, INSN_WRITE, and INSN_CONFIG (with data[0] set to
INSN_CONFIG_DIO_INPUT, INSN_CONFIG_DIO_OUTPUT, or
INSN_CONFIG_DIO_QUERY). At the comedilib level, these correspond to
comedi_dio_bitfield (or comedi_dio_bitfield2), comedi_dio_read,
comedi_dio_write, and comedi_dio_config or comedi_dio_get_config. You
can use comedi_get_subdevice_type to check the type of subdevice.
--
-=( Ian Abbott @ MEV Ltd. E-mail: <abb...@mev.co.uk> )=-
-=( Tel: +44 (0)161 477 1898 FAX: +44 (0)161 718 3587 )=-
--
You received this message because you are subscribed to the Google Groups "Comedi: Linux Control and Measurement Device Interface" group.
To post to this group, send email to comed...@googlegroups.com.
To unsubscribe from this group, send email to comedi_list...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/comedi_list?hl=en.
That might be it - the modinfo command should tell you:
modinfo ni_pcidio
The output should have a 'depends:' line near the bottom like this:
depends: comedi,mite,8255
If the 8255 is missing then you have the bug mentioned on that thread.
Please let me know and I'll investigate further. It may need a bug fix
back porting to the stable kernel.
> In an effort to get this working on my own, I upgraded my system to
> "unstable" to get a new kernel and latest comedi packages, and then ran:
>
> module-assistant a-i comedi
>
> to install the latest unstable comedi-source drivers, but now comedi is
> not loaded at boot time. Should I go back to stable Debian, or should I
> stick with unstable to get this working?
Which kernels have you been using? The comedi-source package might be
too old to compile for your kernels.
Some of the Debian "unstable" kernels include pitifully few comedi
modules. For example linux-image-2.6-2.6.38-2-686 only includes
comedi.ko, 8255.ko and pcm_common.ko. Not very useful! It may be worth
filing a Debian bug to fix it.
On 01/06/11 17:24, Brandon Coleman wrote:That might be it - the modinfo command should tell you:
> I added the following to my test script:
> type = comedi.comedi_get_subdevice_type(device,0)
> print "subdevice type: ", type
> print "----"
> count = comedi.comedi_get_n_channels(device,0)
> print "number of channels: ", count
> print "----"
>
> returning:
> subdevice type: -1
> ----
> number of channels: -1
> ----
>
> Googling further, could the issue in the link below be the same as the
> one I am having?
> http://groups.google.com/group/comedi_list/browse_thread/thread/2b995f61f0b07a0e?pli=1
modinfo ni_pcidio
The output should have a 'depends:' line near the bottom like this:
depends: comedi,mite,8255
If the 8255 is missing then you have the bug mentioned on that thread.
Please let me know and I'll investigate further. It may need a bug fix
back porting to the stable kernel.
> In an effort to get this working on my own, I upgraded my system toWhich kernels have you been using? The comedi-source package might be
> "unstable" to get a new kernel and latest comedi packages, and then ran:
>
> module-assistant a-i comedi
>
> to install the latest unstable comedi-source drivers, but now comedi is
> not loaded at boot time. Should I go back to stable Debian, or should I
> stick with unstable to get this working?
too old to compile for your kernels.
Some of the Debian "unstable" kernels include pitifully few comedi
modules. For example linux-image-2.6-2.6.38-2-686 only includes
comedi.ko, 8255.ko and pcm_common.ko. Not very useful! It may be worth
filing a Debian bug to fix it.
--
-=( Ian Abbott @ MEV Ltd. E-mail: <abb...@mev.co.uk> )=-
-=( Tel: +44 (0)161 477 1898 FAX: +44 (0)161 718 3587 )=-
You might as well ask for all comedi config options to be selected. I
suspect the problem arose because the kernel config options for changed
to give finer control over the comedi driver selection. A simple "make
oldconfig" with a kernel .config from an earlier kernel would have
deselected most of the comedi stuff by default.