From: greg@kroah.com (Greg KH)
To: kernelnewbies@lists.kernelnewbies.org
Subject: need help with my first device driver
Date: Fri, 29 Apr 2011 08:21:05 -0700 [thread overview]
Message-ID: <20110429152105.GA12744@kroah.com> (raw)
In-Reply-To: <BANLkTin1ut-3U+ncwLe7SPvG_L3a4Zrn9w@mail.gmail.com>
On Fri, Apr 29, 2011 at 03:10:53PM +0530, Prashant Shah wrote:
> Hi,
>
> I am trying to write a comedi (drivers/staging/comedi) based driver
> for the National Instruments USB 6008 USB based data acquisition card.
>
> I have created a basic but more simpler structure for the drivers
> based on usbdux driver which are already present. I have got to the
> point where the device is detected and drivers are loaded. The
> /dev/comedi0 device file is created. I am unable to deal with the data
> transfer. When I try to run xoscope that is used to read the output
> from the card - the card freezes (the status lights stop blinking).
>
> Output from the lsusb :
> https://github.com/prashants/temptest/blob/8e81e7fb4ea260fa24e68f43c185d768aec48023/device.txt
> Source of the driver :
> https://github.com/prashants/temptest/blob/8e81e7fb4ea260fa24e68f43c185d768aec48023/drivers/ni_usb6008.c
> Device : http://sine.ni.com/nips/cds/view/p/lang/en/nid/201986
>
> I am not interested in the digital input/output and analog output at
> this point. My main concern is the ability to read the analog input.
I would recommend asking this on the comedi mailing list.
But, I would really not recommend writing a new driver for the comedi
subsystem, instead, look at the iio subsystem, which is what I want to
move the comedi drivers over to once it settles down. There is an
active developer community for the drivers, and a subsystem maintainer,
and people should be able to give you lots of help with your code if you
post it to their list and ask for help (hint, post the code, not a link
to the code so it can be reviewed in-line.)
Good luck,
greg k-h
next prev parent reply other threads:[~2011-04-29 15:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-29 9:40 need help with my first device driver Prashant Shah
2011-04-29 15:21 ` Greg KH [this message]
2011-05-03 17:05 ` Prashant Shah
2011-05-03 17:22 ` Greg KH
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=20110429152105.GA12744@kroah.com \
--to=greg@kroah.com \
--cc=kernelnewbies@lists.kernelnewbies.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;
as well as URLs for NNTP newsgroup(s).