Kernel driver for National Instruments USB-6251 device

by jm » Tue, 12 Jan 2010 20:23:02 GMT


Sponsored Links
 Hi,
Has any one done any work towards building a USB driver for any of the
National Instruments multifunction I/O devices (specifically the NI-
USB-6251...) ?

I have downloaded the Linux 2.7 DDK from NI, which provides the source
for a generic kernel driver, but I have never rebuilt (or modified) a
Linux kernel before.

Are there pointers to any 'how-to' pages/docs available?

regards,
jm



Kernel driver for National Instruments USB-6251 device

by Greg KH » Tue, 12 Jan 2010 20:26:35 GMT


 


Is this a USB device (where you plug it into a USB host), or a USB
host controller
where you are going to be running Android with it as the host controller?


Have you read, "Documentation/HOWTO" in the Linux kernel source tree?
If not, I suggest starting there, that is what it was written for :)

good luck,

greg k-h


Sponsored Links


Kernel driver for National Instruments USB-6251 device

by jm » Tue, 12 Jan 2010 20:39:31 GMT


 Hi Greg,

Thx for the fast response.

Yes, there is a USB device (NI-USB-6251), and a Motorola Droid will be
the USB Host Controller.
Thanks for the ref to the doc - will start there and come back to this
thread with any questions.

-jm





> greg k-h



Kernel driver for National Instruments USB-6251 device

by jm » Fri, 15 Jan 2010 21:18:21 GMT


 Nope. No idea that this will not work.

Are you saying that the Motorola hardware cannot support the role of a
USB Host Contoller?






> greg k-h



Kernel driver for National Instruments USB-6251 device

by jm » Fri, 15 Jan 2010 21:32:17 GMT


 The kernel mods, I agree need to be performed - I have the driver
source from device manufacturer (generically, for Linunx 2.6.x) and
currently in the middle or re-building the kernel.

But you raise a good question of the USB controller on the phone - I
assumed (most likely incorrectly...) that it would support the role of
a host.

trying the keyboard...





> greg k-h



Kernel driver for National Instruments USB-6251 device

by jm » Mon, 18 Jan 2010 15:23:37 GMT


 No keyboards to be found that feature a micro-usb connector
(MotorolaDroid uses a micro...), so no-joy yet. No converter cables
either.

As far as a USB driver, I got libusb to compile (ARM) and run on the
Droid.
It's nice since it strictly user-space, and does not require any
kernel mods.
However, it wants the usbfs to be mounted, which you can't do with
rooting the phone (un-desireable, in my case).





> > greg k-h



Other Threads

1. Scrolling frustration - is this a feature or bug?

In browser, or gmail, about 1 out of every 10 times i scroll down with
my finger (by pressing and moving my finger up and releasing), the
page scrolls much faster and does not stop until it reaches the end.
This is not the normal "fast scroll" feature -- i know that if i flick
my finger up fast then the scrolling has more momentum, and takes
longer to slow to a stop. This seems to be some discrete mode that
indicates i really want to scroll all the way to the end. What's weird
is, i can't get it to do this on purpose, and those times it does
happen, i swear my finger is not moving especially fast, or moving off
the edge of the screen. Any idea what gives?

--~--~---------~--~----~------------~-------~--~----~

2. ListView.getSelectedItemId

Hi,
I am learning Android with the exercises, during playing with the
exercise 2, I found that when the getSelectedItemId method will always
return a value of non-Long.MIN_VALUE, means there is a row
selected(except when there is nothing). Is this the expected behavior?
I didn't select any row before I click the delete button but always
the first row is deleted.

Thanks for any suggestion.

--~--~---------~--~----~------------~-------~--~----~

3. :: problem with Customized Button

4. Spinner (Sample doesnt work)

5. Connecting to Android Emulator through Java Application

6. How to capture the intents generated by an activity?

7. Non US Tax