PicoScope Driver on Linux Bus error

Discussion forum for the Picoscope 6 Linux software
Post Reply
simi
Newbie
Posts: 0
Joined: Thu Aug 17, 2023 9:16 am

PicoScope Driver on Linux Bus error

Post by simi »

Hi
I am working on a Raspberry Pi 4 (32 Bit).
About 6 months ago I setup a Project with the Picoscope, therefore I installed the libps2000 driver
https://labs.picotech.com/debian/pool/m ... _armhf.deb

And I used the picosdk-python-wrapper for my python scripts, everything worked fine.

But when I want to do it now always when I try to open the device I get a Bus Error.

with dmesg i see following logs:

Code: Select all

[12061.136295] usb 1-1.2: reset high-speed USB device number 10 using xhci_hcd
[12061.237213] usb 1-1.2: usbfs: process 23239 (python3) did not claim interface 0 before use
I also tried the C- wrapper but the result was the same.

When I execute the usbtest everything seems fine:

Code: Select all

pi@raspberrypi /opt/picoscope/share/doc/libps2000 $ ./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 pi.
 - You are in the following groups:
     pi adm tty dialout cdrom sudo audio video plugdev games users input render netdev lpadmin docker gpio i2c spi

Please connect your Pico USB device and press enter to continue...

Pico USB device found: /dev/bus/usb/001/010

 - 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.
Does anyone now how the get it working again?
GuenterQ
Newbie
Posts: 0
Joined: Sat Sep 09, 2023 9:53 am

Re: PicoScope Driver on Linux Bus error

Post by GuenterQ »

I am experiencing the same problem with model 20xxA models on Raspberry Pi4 with both Buster and Bullseye
(OS11). 2xxxB models work perfectly, though. I also tried the latest version of libpicoipp.so from the PicoLog
package, without any improvement. Installing and running the PicoLog package shows the same problem.
On other Linux-platforms (tried Ubuntu and openSuse) I did not observe any problems with PS2xxxA devices.

Getting the PS2204A and PS2205A working on a Raspberry again would be very valuable, as these are very
cost-effective data acquisition devices for all kinds of fast signals. May be the information above helps to
get at the origin of the problem.
simi
Newbie
Posts: 0
Joined: Thu Aug 17, 2023 9:16 am

Re: PicoScope Driver on Linux Bus error

Post by simi »

For me it worked to downgrade the kernel to version 5.10
GuenterQ
Newbie
Posts: 0
Joined: Sat Sep 09, 2023 9:53 am

Re: PicoScope Driver on Linux Bus error

Post by GuenterQ »

Did some more checks:
Models 2204A and 2207A both worked on a Raspberry Pi 3B with both buster and bullseye OS!

When plugging the same card into a Raspberry Pi4 (Model 4B and 400), both the 2204A and the 2207A
produce "Bus error" when accessing USB.

PicoScope Models 2x0xB work on all Raspberry Pi models 3 and 4.

==> the problem appears to be the USB interface of the Raspberry Pi 4, which is incompatible with
PicoScope A models.
simi
Newbie
Posts: 0
Joined: Thu Aug 17, 2023 9:16 am

Re: PicoScope Driver on Linux Bus error

Post by simi »

I don't know why its working for you on the RPI3 and not on the RPI4. I have the following "settings", maybe this helps you.

I have installed following driver: libps2000_3.0.83-3r3073_armhf.deb
and I am using the Kenrel version: 5.10.103-v7l+
and the os infos:
PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
NAME="Raspbian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

with this configuration the Model 2204A works fine.

with the kernelversion 6.XX i have the same error, so I think the driver is not compatible with the new kernel.
Post Reply