<< return to Pixycam.com

Pixymon on Linux (x64) - USB write problem:-(

Hi,

I’m trying to run the Pixymon software on my Linux laptop. I managed to compile it and create the right udev rule, so that I can access the camera.

But now I’m stuck during the initialization (I guess):

marcow@feather4:~/src1/pixy/host/pixymon$ ./PixyMon 
mw before setLink() flags= 0x       2
libusb_bulk_write -7, timeout= 1000, len= 64
libusb_bulk_write -7, timeout= 1000, len= 64
libusb_bulk_write -7, timeout= 1000, len= 64
libusb_bulk_write -7, timeout= 1000, len= 64
libusb_bulk_write -7, timeout= 1000, len= 64
libusb_bulk_write -7, timeout= 1000, len= 64
interpreter finished
destroying interpreter...
done
...

Any ideas?

Thanks,
– Marco

Same timeout problem. Even with infinite timeout.

lsusb -v works just fine, so the pixy can be reached and it replies.

From wireshark:

This is the outgoing chirp (my initial post had buffer with an overeager memset() which clobbered the data, now there is no memset()):

0000  80 47 0a b4 01 88 ff ff  53 03 02 0f 03 00 2d 00   .G...... S.....-.
0010  12 d8 33 53 00 00 00 00  5e e6 06 00 8d ff ff ff   ..3S.... ^.......
0020  40 00 00 00 40 00 00 00  00 00 00 00 00 00 00 00   @...@... ........
0030  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ........ ........
0040  55 55 aa aa a1 7f 00 00  06 00 00 00 02 02 40 00   UU...... ......@.
0050  01 01 00 6c d2 7f 00 00  e0 aa 00 6c d2 7f 00 00   ...l.... ...l....
0060  80 ab 00 6c d2 7f 00 00  20 ac 00 6c d2 7f 00 00   ...l....  ..l....
0070  00 b1 00 6c d2 7f 00 00  80 b1 00 6c d2 7f 00 00   ...l.... ...l....

On Windows 7 64bit the chirp packet looks like:

0000  1b 00 90 47 c2 0b 80 fa ff ff 00 00 00 00 09 00   ...G............
0010  00 02 00 05 00 02 03 40 00 00 00 55 55 aa aa a1   [email protected]...
0020  00 00 00 06 00 00 00 02 02 40 00 01 01 00 00 00   .........@......
0030  00 00 00 8e 02 00 00 00 00 00 00 00 00 00 00 01   ................
0040  00 00 00 00 00 00 00 70 00 00 00 8e 02 00 00 01   .......p........
0050  00 00 00 8e 02 00 00 70 00 00 00                  .......p...

So linux seems to be missing some data.

Thanks for the info, everyone! We’re looking in to it. I’ll get back to you with an update soon.

Scott

https://github.com/Learath/pixy has fixed it.
Picking the right usblib header file seems to have sovled it.