PS2000 in OpenSuse 11.x [device not found]

Post your Linux discussions here
Post Reply
babis
Newbie
Posts: 0
Joined: Tue Aug 24, 2010 3:02 pm

PS2000 in OpenSuse 11.x [device not found]

Post by babis »

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?

Thank you in advance
Charalampos Alexopoulos

emandersson

Re: PS2000 in OpenSuse 11.x [device not found]

Post by emandersson »

I have the same problem, with a picoscope 2203 and Ubuntu 10.04
I notice the lines:
Pico USB device found: /dev/bus/usb/001/005
(other numbers)
and then the last line:
Pico USB device not found. Please try again
which seems contradicting

Martyn
Site Admin
Site Admin
Posts: 4491
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: PS2000 in OpenSuse 11.x [device not found]

Post by Martyn »

The following is just an error in the script and can be safely ignored
Pico USB device not found. Please try again
Having just followed the installation instructions I have been able to successfully build and run the example code on Ubuntu 11.04

Please confirm if you can do the same and if not what errors do you get ?
Martyn
Technical Support Manager

martin.sadler
Newbie
Posts: 0
Joined: Thu Apr 01, 2010 4:14 pm

Re: PS2000 in OpenSuse 11.x [device not found]

Post by martin.sadler »

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'd appreciate any help on this.

Martin
Attachments
usbtest.txt
Corrected version of usbtest. Rename to usbtest and set permissions to executable.
(3.5 KiB) Downloaded 817 times

Martyn
Site Admin
Site Admin
Posts: 4491
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: PS2000 in OpenSuse 11.x [device not found]

Post by Martyn »

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.
Martyn
Technical Support Manager

martin.sadler
Newbie
Posts: 0
Joined: Thu Apr 01, 2010 4:14 pm

Re: PS2000 in OpenSuse 11.x [device not found]

Post by martin.sadler »

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.

Onwards and upwards.....

Martyn
Site Admin
Site Admin
Posts: 4491
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: PS2000 in OpenSuse 11.x [device not found]

Post by Martyn »

Good spot, and one to file away at the back of the brain and never get caught by it again.
Martyn
Technical Support Manager

Post Reply