Kinect + USB3.0 ExpressCard + OS X = no love

1,067 views
Skip to first unread message

dtr

unread,
Sep 29, 2011, 3:50:58 PM9/29/11
to OpenNI
Hi,

I've had no success trying to get a Kinect to work when connected to a
USB3.0 ExpressCard interface. I know the Kinect won't work at USB3.0
speed but the card also works with USB2.0 and USB1.0 devices
(confirmed by testing) so I'd expect a Kinect to work too. I'm getting
errors though:

dtr:Release dtr$ /Users/dtr/Documents/OpenNI/OpenNI-Bin-MacOSX-
v1.3.2.3/Samples/Bin/Release/NiViewer
Open failed: Failed to open the USB device!

And SimpleOpenNI (a wrapper for Processing) reports:

SimpleOpenNI Version 0.20
Invalid memory access of location 0x8 eip=0x3fa27a1a

It does show up in System Profiler as:

>USB Super-Speed Bus
>>Hub
>>>Xbox NUI Camera
>>>Xbox NUI Audio
>>>Xbox NUI Motor

The reason why I try to make this work is that I need to connect 2
Kinects to my MacBook Pro which has only one internal USB2.0 root hub.
I'm hoping that by adding another USB controller in the ExpressCard
slot I can connect a 2nd Kinect. Or else I have to use a 2nd computer,
which is not practical.

I'm using a DeLock card: http://www.delock.com/produkte/gruppen/Express-Card/Delock_Express_Card_2x_USB_30_61753.html
With the hacked LaCie USB3.0 driver for OS X:
http://www.insanelymac.com/forum/index.php?showtopic=236209

Other devices like my trackball and USB memory stick work fine but a
Kinect doesn't. Any ideas why?

And did anyone have more success with a similar approach? Perhaps with
another card?

I'm running the latest Avin2 driver, OpenNI and NITE. Older versions
have the same problem.


Thanks for any help, Dieter

Carlos Roberto

unread,
Sep 29, 2011, 5:36:03 PM9/29/11
to openn...@googlegroups.com
I have both USB 2.0 and 3.0 cards on my machine and Kinect works fine in any port. I use Windows 7 x64
Cheers.


Carlos Roberto, MSc
Software Eng. Consultant @ IBM

My profiles: LinkedIn Twitter Blogger



--
You received this message because you are subscribed to the Google Groups "OpenNI" group.
To post to this group, send email to openn...@googlegroups.com.
To unsubscribe from this group, send email to openni-dev+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/openni-dev?hl=en.




--
Carlos Roberto
Software Eng. Consultant @ IBM
My Blog
My LinkedIn
follow me @ twitter

dtr

unread,
Sep 30, 2011, 8:26:13 AM9/30/11
to OpenNI
Is that PCI or ExpressCards?

On Sep 29, 11:36 pm, Carlos Roberto <carlo...@gmail.com> wrote:
> I have both USB 2.0 and 3.0 cards on my machine and Kinect works fine in any
> port. I use Windows 7 x64
> Cheers.
>
> Carlos Roberto, MSc
> Software Eng. Consultant @ IBM
> My profiles: [image:
> LinkedIn]<http://br.linkedin.com/pub/carlos-lacerda-msc/5/964/378>
> [image:
> Twitter] <http://twitter.com/#%21/ze_tech> [image:
> Blogger]<http://kinect-i.blogspot.com/>
> Designed with WiseStamp -
> <http://r1.wisestamp.com/r/landing?u=9621ea660c4ca423&v=2.8.5&t=131733...>Get
> yours<http://r1.wisestamp.com/r/landing?u=9621ea660c4ca423&v=2.8.5&t=131733...>
> >http://www.delock.com/produkte/gruppen/Express-Card/Delock_Express_Ca...
> > With the hacked LaCie USB3.0 driver for OS X:
> >http://www.insanelymac.com/forum/index.php?showtopic=236209
>
> > Other devices like my trackball and USB memory stick work fine but a
> > Kinect doesn't. Any ideas why?
>
> > And did anyone have more success with a similar approach? Perhaps with
> > another card?
>
> > I'm running the latest Avin2 driver, OpenNI and NITE. Older versions
> > have the same problem.
>
> > Thanks for any help, Dieter
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "OpenNI" group.
> > To post to this group, send email to openn...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > openni-dev+...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/openni-dev?hl=en.
>
> --
> Carlos Roberto
> Software Eng. Consultant @ IBM
> My Blog <http://kinect-i.blogspot.com/>
> My LinkedIn <http://br.linkedin.com/pub/carlos-lacerda-msc/5/964/378>
> follow me @ twitter <http://twitter.com/#%21/ze_tech>

Diogo Correa (douttorx)

unread,
Sep 30, 2011, 8:13:44 PM9/30/11
to OpenNI
Don't work to me too. I'm in Ubuntu 11.04 32bits and using a USB 3.0
port in laptop.

michael hofmann

unread,
Nov 14, 2011, 6:40:59 AM11/14/11
to OpenNI
Hello All,

I also got the problem with USB3 and the Kinect. I tried with the an
onboard NEC controler and with an ASMedia pcie expansion card. I also
got the "USB3: ERROR no room on ep ring" error.
The basic problem is, that the bulk-ep-ring is limited to 1, and this
will not work with cameras with large data sizes, as the kinect.
The exact description can be found there:
http://www.spinics.net/lists/linux-usb/msg49736.html
and
http://www.spinics.net/lists/linux-usb/msg52072.html

You will also find a Patch there, wich will work around the problem by
enlarging the ep-ring, you will have to recompile your kernel, but
this is still better than having not the posibility to use the kinect
on USB3 ports.

I simply changed the following lines, without a module parameter, as
propost in the kernel patch:
drivers/usb/host/xhci-mem.c:

if (usb_endpoint_xfer_isoc(&ep->desc))
virt_dev->eps[ep_index].new_ring =
xhci_ring_alloc(xhci, 8, true, mem_flags);
+ else if (usb_endpoint_xfer_bulk(&ep->desc))
+ virt_dev->eps[ep_index].new_ring =
+ xhci_ring_alloc(xhci, 8,
+ true, mem_flags);
else
virt_dev->eps[ep_index].new_ring =
xhci_ring_alloc(xhci, 1, true, mem_flags);

drivers/usb/host/xhci.h:
- #define TRPS_PER_SEGMENT 64
+ #define TRPS_PER_SEGMENT 256

I need this change for my multi-kinect setup. I'm using a HighPoint
RocketU 1144A to attach 4 Kinects to my pc :)
Just testet the setup, 4Kinects working on one PC all connected to one
RocketU card. working like a charm with ROS

greetings
Michael

On 1 Okt., 01:13, "Diogo Correa (douttorx)" <doutt...@gmail.com>
wrote:

dtr

unread,
Nov 14, 2011, 7:23:40 AM11/14/11
to OpenNI
good job! it's great this mistery is solved now... you might wanna
tell primesense directly about this. should be officially documented.


On Nov 14, 12:40 pm, michael hofmann <mhofman...@gmail.com> wrote:
> Hello All,
>
> I also got the problem with USB3 and the Kinect. I tried with the an
> onboard NEC controler and with an ASMedia pcie expansion card. I also
> got the "USB3: ERROR no room on ep ring" error.
> The basic problem is, that the bulk-ep-ring is limited to 1, and this
> will not work with cameras with large data sizes, as the kinect.
> The exact description can be found there:http://www.spinics.net/lists/linux-usb/msg49736.html
> andhttp://www.spinics.net/lists/linux-usb/msg52072.html

Suat Gedikli

unread,
Nov 14, 2011, 11:34:28 PM11/14/11
to openn...@googlegroups.com
Hi Michael,
 
i will add your fix into the patched versions for ROS and PCL (if its ok for you) - so in our next release the binaries should be available for Linux, Windows and Mac.
-Suat
 
2011/11/14 michael hofmann <mhofm...@gmail.com>

michael hofmann

unread,
Nov 15, 2011, 7:26:27 AM11/15/11
to OpenNI
For me it is okay,
the original patch comes from:
http://www.spinics.net/lists/linux-usb/msg49736.html
Sarah Sharp <sarah.a.sharp@xxxxxxxxxxxxxxx>
maybe ask him too :)

On 15 Nov., 05:34, Suat Gedikli <suat.gedi...@googlemail.com> wrote:
> Hi Michael,
>
> i will add your fix into the patched versions for ROS and PCL (if its ok
> for you) - so in our next release the binaries should be available for
> Linux, Windows and Mac.
> -Suat
>
> 2011/11/14 michael hofmann <mhofman...@gmail.com>

dtr

unread,
Dec 12, 2011, 7:09:22 AM12/12/11
to OpenNI
Has anyone used Michael's solution to get (for example) the sample
OpenNI/NITE programs to work with a Kinect connected to USB3.0?


On Nov 15, 1:26 pm, michael hofmann <mhofman...@gmail.com> wrote:
> For me it is okay,
> the original patch comes from:http://www.spinics.net/lists/linux-usb/msg49736.html
> Sarah Sharp <sarah.a.sharp@xxxxxxxxxxxxxxx>
> maybe ask him too :)
>
> On 15 Nov., 05:34, Suat Gedikli <suat.gedi...@googlemail.com> wrote:
>
>
>
>
>
>
>
> > Hi Michael,
>
> > i will add your fix into the patched versions for ROS and PCL (if its ok
> > for you) - so in our next release the binaries should be available for
> > Linux, Windows and Mac.
> > -Suat
>
> > 2011/11/14 michael hofmann <mhofman...@gmail.com>
>
> > > Hello All,
>

> > > I also got the problem withUSB3and the Kinect. I tried with the an

> > > > > > > With the hacked LaCieUSB3.0 driver for OS X:

Reply all
Reply to author
Forward
0 new messages