Re: [Libusbx-devel] Bug in get_string_descriptor?

2012-10-30 Thread Stefano Di Martino
Great THANKS, it works! :-D But, it's weird, that I get with pyUSB the same Overflow error. I don't know why... Maybe this is an error in pyUSB, so I will contact the maintainer... But anyway: THANKS! :-) Best regards Stefano Original-Nachricht Datum: Mon, 29 Oct 2012

Re: [Libusbx-devel] Bug in get_string_descriptor?

2012-10-30 Thread Tormod Volden
On Tue, Oct 30, 2012 at 1:59 PM, Stefano Di Martino wrote: Hi Pete, I'm not sure, if the bug is completely fixed. pyUSB uses a different method to retrieve the string descriptor. It's doing it with ctrl_transfer() and the appropriate request and I'm getting an overflow error. I tried to

Re: [Libusbx-devel] Bug in get_string_descriptor?

2012-10-30 Thread Stefano Di Martino
Hey Pete, sorry, for bothering you, but this time, there was no bug in libusbx. I just requested a to big string (my buffer length was 255) and this blew things up. So everything is fine. THX! :-) Best regards Stefano Original-Nachricht Datum: Tue, 30 Oct 2012 13:59:11 +0100

Re: [Libusbx-devel] Building git code on Mac; CMake support?

2012-10-30 Thread Ludovic Rousseau
2012/10/30 Xiaofan Chen xiaof...@gmail.com: On Tue, Oct 30, 2012 at 8:03 AM, Sean McBride s...@rogue-research.com wrote: On Mon, 29 Oct 2012 23:57:26 +, Pete Batard said: Regarding build using Xcode I added a config.h for Xcode. So it is now possible to build using Xcode without using

[Libusbx-devel] Example udev rules file

2012-10-30 Thread David Grant
Could someone with write access to the libusbx wiki add this to the Can I run Linux libusbx applications without root privilege? section? Example udev rules file, call it 10-libusb.rules SUBSYSTEM==usb, ENV{DEVTYPE}==usb_device, GROUP=libusbusers, MODE=0664 Example script setup.sh in same

Re: [Libusbx-devel] Example udev rules file

2012-10-30 Thread Tormod Volden
On Tue, Oct 30, 2012 at 7:25 PM, David Grant wrote: Could someone with write access to the libusbx wiki add this to the Can I run Linux libusbx applications without root privilege? section? Example udev rules file, call it 10-libusb.rules SUBSYSTEM==usb, ENV{DEVTYPE}==usb_device,

Re: [Libusbx-devel] Example udev rules file

2012-10-30 Thread David Grant
On Tue, Oct 30, 2012 at 2:43 PM, Tormod Volden lists.tor...@gmail.com wrote: On Tue, Oct 30, 2012 at 7:25 PM, David Grant wrote: cp $SCRIPT_DIR/10-libusb.rules /etc/udev/rules.d/ echo In order for these changes to take effect you must restart your computer No, rebooting is not necessary.

Re: [Libusbx-devel] Example udev rules file

2012-10-30 Thread Peter Stuge
David Grant wrote: Rebooting is necessary for the add user to group change to take effect. Once the user has been added to the group, it's very easy to upgrade a running shell to use the new gid: exec su ${USER} (What it does is of course to *replace* the current shell with a new shell, but

Re: [Libusbx-devel] Bug in get_string_descriptor?

2012-10-30 Thread Pete Batard
On 2012.10.30 14:09, Stefano Di Martino wrote: sorry, for bothering you, but this time, there was no bug in libusbx. I just requested a to big string (my buffer length was 255) and this blew things up. No worries. Don't hesitate reporting weird behaviours you see - that's how we get to

Re: [Libusbx-devel] Example udev rules file

2012-10-30 Thread David Grant
On Tue, Oct 30, 2012 at 3:29 PM, Peter Stuge pe...@stuge.se wrote: David Grant wrote: Rebooting is necessary for the add user to group change to take effect. Once the user has been added to the group, it's very easy to upgrade a running shell to use the new gid: exec su ${USER} (What it

Re: [Libusbx-devel] Example udev rules file

2012-10-30 Thread Xiaofan Chen
On Wed, Oct 31, 2012 at 9:29 AM, Xiaofan Chen xiaof...@gmail.com wrote: On Wed, Oct 31, 2012 at 2:25 AM, David Grant davidgr...@gmail.com wrote: Could someone with write access to the libusbx wiki add this to the Can I run Linux libusbx applications without root privilege? section? Example

Re: [Libusbx-devel] Example udev rules file

2012-10-30 Thread David Grant
On Tue, Oct 30, 2012 at 6:31 PM, Xiaofan Chen xiaof...@gmail.com wrote: On Wed, Oct 31, 2012 at 9:29 AM, Xiaofan Chen xiaof...@gmail.com wrote: On Wed, Oct 31, 2012 at 2:25 AM, David Grant davidgr...@gmail.com wrote: Could someone with write access to the libusbx wiki add this to the Can I run