Hi
I try to use a picoscope 2203 under Linux in three different machines with OpenSuse 11.1, 11.2(x86_64), 11.3 and fail in all of them.
When i run usbtest the output is : Pico USB device found: /dev/bus/usb/001/005
- It belongs to root (which is you) who has permissions rw-
- The members of group root (which you are in) have permissions rw-
- Everyone else has permissions rw-
- You can write to this device and so will be able to use it.
Pico USB device not found. Please try again
I compile and run thePS2000con.c and the output is: PS2000 driver example program
Version 1.0
Opening the device...
Handle: 0
Unable to open device
Unit Not Opened
Error Code: 3
Maybe is something wrong in the installation procedure that i follow.
What i did:
Install the RPM file with Yast
the lib files installed in /usr/local/lib,
and the header file in /usr/local/include/libps2000
Copy the 'PicoScope.conf' to /etc/ld.so.conf.d/
Run ldconfig as root
Copy the 95-pico.rules in /etc/udev/rules.d
Create with Yast a group named pico
Add user to pico group
Can someone see a mistake in this installation procedure? Did i miss something?
Martyn wrote:The following is just an error in the script and can be safely ignored
Please find attached a corrected version of the usbtest script. No charge for this.
Now, I'm getting a similar problem running under Linux Mint 9 (which is equivalent to Ubuntu 9.xx). I had it running fine under Linux Mint 8 on the same hardware and I've done all the necessary as per INSTALL. Here's the output from the (corrected) usbtest:
****************************************************************************
* Pico Technology Linux USB Diagnostics *
****************************************************************************
This script looks for Pico USB devices connected to your computer
and checks whether you are able to access them. If your user account
does not have permission to access the devices, the script will try
to suggest how to correct this for your particular Linux installation.
Press enter to continue...
Getting user and group information...
- You are running this script as martin.
- You are in the following groups:
martin adm dialout cdrom audio video plugdev fuse lpadmin admin sambashare pico
Please connect your Pico USB device and press enter to continue...
Pico USB device found: /dev/bus/usb/001/009
- It belongs to root (which is not you) who has permissions rw-
- The members of group pico (which you are in) have permissions rw-
- Everyone else has permissions r--
- You can write to this device and so will be able to use it.
Press enter to continue....
.... and here's the output from PS2000con:
PS2000 driver example program
Version 1.0
Opening the device...
Handle: 0
Unable to open device
Unit Not Opened
Error Code: 3
I occasionally get this with my Ubuntu Virtual machine when the USB, usually a disconnect from VM reconnect to VM fixes this. It may be worth checking dmesg for anything that looks out of place.
Ok, I found the problem - when I installed the new version of libps2000 I renamed the old one to libps2000.so.2.0.7.old. What I didn't realise is that the link in libps2000.so.2 automatically changes to point to the old file, too (I'm not a linux guru). When I then subsequently recompiled my program, it picked up the old version again.
I resolved it by deleting and recreating libps200.so.2 so that it now points to the new version of libps2000.so.2.0.7.