Skip navigation.
Home
The QNX Community Portal

View topic - Increasing USB driver priorities

Increasing USB driver priorities

For discussion of realtime and/or embedded programming.

Increasing USB driver priorities

Postby parrado » Fri Jan 23, 2009 2:32 pm

I have developed an USB driver for an own data acquistion card, and everything goes fine.

Now, i'm interested in running such program with a higher priority level (i.e: 50) but my QNX Neutrino 6.3.2 machine gets blocked (at least mouse and keyboard don't answer), i have had to push the reset button.

I thought it's an io-usb driver issue, so, I killed this process and i started it again with an increased priority level by using:

nice -n-40 io-usb -dehci -dohci -duhci


But the problem persists.


How could i solve this problem?


Thanks in advance,


Alex
parrado
Active Member
 
Posts: 20
Joined: Sat Oct 25, 2008 2:39 pm

Postby Tim » Fri Jan 23, 2009 2:47 pm

Alex,

What kind of USB driver have you developed?

In other words, is your data acquisition card a HID device by chance?

You need to make sure your own USB driver is not interfering with the QNX HID driver that registers with io-usb.

From what I recall a while ago (more than a year so my memory is getting fuzzy) when I was developing a USB driver I had to be very careful not to step on the toes of devi-hid which registers to get all HID devices (mice, keyboards etc). So make sure your own USB driver is only registering to get JUST your card.

Tim
Tim
Senior Member
 
Posts: 1388
Joined: Wed Mar 10, 2004 12:28 am

Postby parrado » Fri Jan 23, 2009 3:04 pm

Hi Tim,

Thanks for your reply,



yeah, mi daq is very simple, it's vendor specific and uses only control transfers through the endpoint 0. My machine is old, so its mouse and keyboard are ps/2.




regards,


alex
parrado
Active Member
 
Posts: 20
Joined: Sat Oct 25, 2008 2:39 pm

Postby parrado » Fri Jan 23, 2009 4:26 pm

Hi,


Problem solved, i had an stupid "busy wait" when using a mutex.


Thanks
parrado
Active Member
 
Posts: 20
Joined: Sat Oct 25, 2008 2:39 pm


Return to Realtime and Embedded

Who is online

Users browsing this forum: No registered users and 1 guest