Re: [Libusbx-devel] Example udev rules file

2012-10-30 Thread David Grant
On Tue, Oct 30, 2012 at 6:31 PM, Xiaofan Chen wrote: > On Wed, Oct 31, 2012 at 9:29 AM, Xiaofan Chen wrote: >> On Wed, Oct 31, 2012 at 2:25 AM, David Grant wrote: >>> Could someone with write access to the libusbx wiki add this to the >>> "Can I run Linux libusbx applications without root privil

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

2012-10-30 Thread Xiaofan Chen
On Wed, Oct 31, 2012 at 12:55 AM, Ludovic Rousseau wrote: > It is not (or no more) specific to Mountain Lion. > I just tried the github code on Snow Leopard using Xcode 4.2 and it > builds without problem. > > Please resynch the repository and try again. Yes it works for me now. I see that you ch

Re: [Libusbx-devel] Example udev rules file

2012-10-30 Thread Xiaofan Chen
On Wed, Oct 31, 2012 at 9:29 AM, Xiaofan Chen wrote: > On Wed, Oct 31, 2012 at 2:25 AM, 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 "1

Re: [Libusbx-devel] Example udev rules file

2012-10-30 Thread Xiaofan Chen
On Wed, Oct 31, 2012 at 2:25 AM, 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] Questions about libusb on OS X

2012-10-30 Thread Xiaofan Chen
On Wed, Oct 31, 2012 at 7:41 AM, Sven Köhler wrote: > Now on OS X, we need to talk to USB devices. A driver for these devices > might already be installed. So that would probably need to be detached. > Furthermore, the program that uses libusb is not running with elevated > rights. it must be pos

[Libusbx-devel] Questions about libusb on OS X

2012-10-30 Thread Sven Köhler
Hi, I'm a developer of the leJOS open source project. We're currently looking for new ways for talking to USB devices. On Linux, we already use libusb with great success (however, port to libusb 1.0 and libusbx is pending). Some issues remain, like the one with libusb_detach_kernel_driver, which c

Re: [Libusbx-devel] Example udev rules file

2012-10-30 Thread David Grant
On Tue, Oct 30, 2012 at 3:29 PM, Peter Stuge 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] 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 id

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,

Re: [Libusbx-devel] Example udev rules file

2012-10-30 Thread David Grant
On Tue, Oct 30, 2012 at 2:43 PM, Tormod Volden wrote: > 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 "1

Re: [Libusbx-devel] Example udev rules file

2012-10-30 Thread David Grant
On Tue, Oct 30, 2012 at 2:43 PM, Tormod Volden 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. The rules.d di

Re: [Libusbx-devel] Example udev rules file

2012-10-30 Thread Philip.Joslin
Be careful on this last. We found that on certain distros, a reboot was necessary (we tried the reload commands, but to no avail). I don't remember now which distros were the problem (sorry). -Original Message- From: Tormod Volden [mailto:lists.tor...@gmail.com] Sent: Tuesday, October 30,

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"

[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" i

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

2012-10-30 Thread Sean McBride
On Tue, 30 Oct 2012 09:10:27 +0800, Xiaofan Chen said: >If you can come out with a universal Xcode project working for >Mac OS X 10.5 and later, that would be good. But I know >next to nothing about Xcode myself. Xcode is backwards compatible reading old formats. The best thing to do would be t

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

2012-10-30 Thread Ludovic Rousseau
2012/10/30 Xiaofan Chen : > On Tue, Oct 30, 2012 at 8:03 AM, Sean McBride 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 ./configure first. Use my x

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] 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

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 23:5