PS 2204A poblem on Raspberry Pi and Ubuntu as well

Post your Linux discussions here
Post Reply
stenczelt
Newbie
Posts: 0
Joined: Tue Feb 18, 2020 4:41 pm

PS 2204A poblem on Raspberry Pi and Ubuntu as well

Post by stenczelt »

I am trying to use a picoscope with a raspberry pi 3 Model B V1.2. How to make this work? Please see the trace and the steps taken so far.

The driver was installed with the first 3 steps of the download page: `https://www.picotech.com/downloads/linux` and running `sudo apt-get install libps2000` as suggested for raspbian. This is giving the needed .so file in /opt/picoscope/lib. Plugging the machine in, and running `./opt/picoscope/share/doc/libps2000/usbtest` gives me the following output:

Code: Select all

"Pico USB device found: /dev/bus/usb/001/006

 - It belongs to root (which is not you) who has permissions rw-
 - The members of group root (which you are not in) have permissions rw-
 - Everyone else (this is you) has permissions rw-
 - You can write to this device and so will be able to use it."

Installing the python package and running the relevant test (ps2000BlockExample.py) the code fails on line library.py:line71, not finding the C library. Then explicitly referencing the C lib file as:

library.py:line67 changed to:

Code: Select all

library_path = find_library("/opt/picoscope/lib/libps2000.so.2.0.0")
The error is then in the api call:

Code: Select all

[...]functions.py", line 174, in assert_pico2000_ok
    raise PicoSDKCtypesError("Unsuccessful API call")
Testing the same on a laptop (Dell XPS 9360) the error is only in the API call, no need to change library.py. Trying the picoscope program, downloaded as the 4th step of the installation on the website, there is an error as well, from which the trace.xml has been included here.

The latter program cannot be installed on the raspberry pi, with hte following errors:
```

Code: Select all

pi@raspberrypi:~/picosdk-python-wrappers/ps2000Examples $ sudo apt-get install picoscope
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 picoscope : Depends: picomono (>= 4.6.2.16-1r02) but it is not installable
             Depends: libpicoipp (= 1.3.0-4r21) but it is not going to be installed
             Depends: libpl1000 (= 2.0.0-1r570) but it is not going to be installed
             Depends: libps2000 (= 3.0.0-3r570) but 3.0.17-3r1444 is to be installed
             Depends: libps2000a (= 2.1.0-5r570) but it is not going to be installed
             Depends: libps3000 (= 4.0.0-3r570) but it is not going to be installed
             Depends: libps3000a (= 2.1.0-6r570) but it is not going to be installed
             Depends: libps4000 (= 2.1.0-2r570) but it is not going to be installed
             Depends: libps4000a (= 2.1.0-2r570) but it is not going to be installed
             Depends: libps5000 (= 2.1.0-3r570) but it is not going to be installed
             Depends: libps5000a (= 2.1.0-5r570) but it is not going to be installed
             Depends: libps6000 (= 2.1.0-6r580) but it is not going to be installed
             Depends: libusbdrdaq (= 2.0.0-1r570) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
```
Attachments
trace.xml
(4.41 KiB) Downloaded 700 times

RaspiUncle
Newbie
Posts: 0
Joined: Tue Sep 07, 2021 7:02 am

Re: PS 2204A poblem on Raspberry Pi and Ubuntu as well

Post by RaspiUncle »

Hi,
I try to use a 2406B on a raspi.
When installing the libraries I had a similar issue with
libpicoipp (= 1.3.0-4r21) but it is not going to be installed
and
libps2000a (= 2.1.0-5r570) but it is not going to be installed

I downloaded those two files having the same release date e.g. 2021-05-07 in the download list.
So Icould install them.

Regards,

User avatar
atharvagabhe
Newbie
Posts: 0
Joined: Thu Apr 21, 2022 5:01 pm

Re: PS 2204A poblem on Raspberry Pi and Ubuntu as well

Post by atharvagabhe »

1. Install PicoLog Software (This is where the PicoSDK is hidden, VERY WELL HIDDEN :x )

Code: Select all

wget https://www.picotech.com/download/software/picolog6/sr/picolog-6.2.4-armhf.deb
wget -O - https://labs.picotech.com/debian/dists/picoscope/Release.gpg.key | sudo apt-key add -
sudo dpkg -i picolog-6.2.4-armhf.deb
sudo apt install -f
2. Install the ps2000 driver for 2204A

Code: Select all

wget https://labs.picotech.com/debian/pool/main/libp/libps2000/libps2000_3.0.83-3r3073_armhf.deb
sudo dpkg -i libps2000_3.0.83-3r3073_armhf.deb
sudo apt install -f
3. Clone and setup picosdk-python-wrappers

Code: Select all

git clone https://github.com/picotech/picosdk-python-wrappers.git
sudo apt-get install libatlas-base-dev
python setup.py install
PS : Edit the wget links if latest versions have changed.

Post Reply