Closed Zaharid closed 10 years ago
python-usbtmc actually doesn't use the /dev/usbtmc devices, it detaches the driver that provides those and then communicates with the instrument directly. I think you still may have a permissions issue. Can you please check the permissions of the USB device itself in /dev/bus/usb? lsusb will give you the bus and device numbers, so just run ls -al /dev/bus/usb/[bus]/[device] and let me know what it says.
Hi, thank you for the fast reply.
After a few hours of fighting it worked after rebooting (probably needed to restart something in udev). This was pretty lame...
By the way, what is the reason you don't use the linux driver?
Yeah, it's a bit annoying when it requires the standard Windows solution (reboot) to fix a problem in Linux. Anyway, the reason I don't just wrap the Linux driver is because I want python ivi and as many of the interface modules as possible to be cross platform, and Windows does not have a built in usbtmc driver. I have not yet tested python USBTMC on Windows, however.
Alex Forencich
Zaharid notifications@github.com wrote:
Hi, thank you for the fast reply.
After a few hours of fighting it worked after rebooting (probably needed to restart something in udev). This was pretty lame...
By the way, what is the reason you don't use the linux driver?
Reply to this email directly or view it on GitHub: https://github.com/alexforencich/python-usbtmc/issues/2#issuecomment-27978193
Hi,
I am trying to run usbtmc as nonroot in linux mint 15.
I have set the permissions with an udev rule as described in the index. I can do things like:
echo "*idn?" >> /dev/usbtmc0
and cat /dev/usbtmv0
However I get the following error when running as non root: