Test and Measurement Forum

Drivers for BeagleBoneBlack and Raspberry Pi

Discussion forum for the new Picoscope Linux software

Drivers for BeagleBoneBlack and Raspberry Pi

Postby mario_ » Wed Nov 05, 2014 11:24 am

Dear Linux community,

We have just finished round of testing and are able to release drivers for PicoScope to be used on ARM powered platforms. We have decided to focus on 2 groups: specialized armhf build for RaspberryPi under control of Raspbian and more general amrhf build to be used with BeagleBoneBlack (cortex-A8 based devices) under control of Debian.

There are few remarks with this release as well with general notes to be taken into account before using those drivers on embedded devices.
  • It is recommended to use powered USB hub while connecting the devices. Some of the devices have increased power requirements and connecting them to the embedded system may cause a power surge, which subsequently may cause voltage drop effecting in OS/CPU hang or in extreme cases blowing a fuse or damaging the port.
  • Most of the embedded systems will be running below recommended system requirements for the drivers. This means that on some occasions while system is busy, the driver will not have enough resources to process the data, resulting in internal watchdog kicking in and dropping of the device / hanging the application.
  • Designing application you should have in mind memory requirements and adjust the sampling rate/amount accordingly to the device it is run under.
  • Although the use case in this topic shows PicoScope6 running on BeagleBoneBlack, there are no current plans on releasing it for mentioned platforms. Mainly due to system resource demands. We did optimize the application to the point of operation, but the real world usability is minimal.
  • The drivers may work on other platforms - but those cases we are not able to test or provide fixes for. Also they are delivered as Debian packages and extracting binaries for use with another system may cause the faulty behavior.
  • This release is treated as *BETA* release. We took care to make all drivers features to be available, but they may not work in all cases. At this stage it is mainly targeted for experienced software/system developers willing to explore possibility of running our devices on mentioned platforms. For any queries and bug reports please contact support@picotech.com

The packages have been provided on our Debian/Raspbian(new) repositories. To get drivers for BeagleBoneBlack and likes, the entry in /etc/apt/sources.list should be:
Code: Select all
deb http://labs.picotech.com/debian/ picoscope main

For Raspbian use the following:
Code: Select all
deb http://labs.picotech.com/raspbian/ picoscope main

Every package is signed with or key, so in order to verify them the public part has to imported:
Code: Select all
wget -O - http://labs.picotech.com/debian/dists/picoscope/Release.gpg.key | sudo apt-key add -

To pull/update repositories cache run
Code: Select all
sudo apt-get update

And to install package for required device use
Code: Select all
sudo apt-get install package_name

Following packages are available: libpl1000, libps2000, libps2000a, libps3000, libps3000a, libps4000, libps4000a, libps5000, libps5000a, libps6000, libusbdrdaq, libusbtc08

Every driver package comes with C console example - /opt/picoscope/share/doc/libdriver. Those require autotools to configure. To install all dependencies use:
Code: Select all
sudo apt-get install build-essential autoconf automake make libtool

To compile the example, in the console/terminal navigate to the required folder.
Code: Select all
cd /opt/picoscope/share/doc/libdriver

To prepare build files run (and wait...):
Code: Select all
./autogen.sh

Then compile the code:
Code: Select all
make

And finally run the application (adjust model to the specific example):
Code: Select all
./psMODELcon

The examples were taken straight from any other Linux releases. They may have values/configurations not suitable for every particular device so please be aware.

Best Regards,
Mario
mario_
Site Admin
Site Admin
 
Posts: 112
Joined: Fri Sep 13, 2013 12:57 pm

Re: Drivers for BeagleBoneBlack and Raspberry Pi

Postby pablorivera » Wed Nov 05, 2014 5:47 pm

I have a question:
Which version of Debian ?
Debian 7 or Debian 8 ( Jessie ) ?
I remember that you suggested Debian jessie for run the Picoscope 6
but Jessie is still a unstable version
I need to develop some applications using this drivers

thank you
I really appreciate the effort !

Pablo Rivera
pablorivera
Newbie
 
Posts: 0
Joined: Fri Oct 24, 2014 4:18 am

Re: Drivers for BeagleBoneBlack and Raspberry Pi

Postby Martyn » Wed Nov 05, 2014 7:57 pm

Debian 8 would be required for PicoScope, due to missing packages in 7, but 7 will be fine for your own application using the drivers.
Martyn
Technical Specialist
Martyn
Site Admin
Site Admin
 
Posts: 2280
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: Drivers for BeagleBoneBlack and Raspberry Pi

Postby pablorivera » Fri Nov 07, 2014 4:18 am

config.log.txt
is the output of configure
(38.15 KiB) Downloaded 205 times
Hi
Hi
I followed all the instructions in my BBB with Debian 8 Jessie and ran #./autogen.sh
I got the following error message: configure: error: libps5000a missing!
and after that, I couldn't continue.
I kindly appreciate your help as soon as possible !
Find attached the config.log
Find attached the o-outgent.txt
regards
Pablo Rivera
o-autogen.txt
the screen output during autogen
(4.97 KiB) Downloaded 187 times

I ran #sudo usermod -G pico root
I ran #newgrp
all as root
pablorivera
Newbie
 
Posts: 0
Joined: Fri Oct 24, 2014 4:18 am

Re: Drivers for BeagleBoneBlack and Raspberry Pi

Postby mario_ » Fri Nov 07, 2014 8:47 am

Code: Select all
/usr/bin/ld: warning: libopencv_core.so.2.3, needed by //opt/picoscope/lib/libpicoipp.so.1, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libopencv_imgproc.so.2.3, needed by //opt/picoscope/lib/libpicoipp.so.1, not found (try using -rpath or -rpath-link)


This is due to Jessie having upgraded opencv to 2.4.
You need to install older versions...
Code: Select all
wget http://ftp.uk.debian.org/debian/pool/main/o/opencv/libopencv-imgproc2.3_2.3.1-11_armhf.deb
wget http://ftp.uk.debian.org/debian/pool/main/o/opencv/libopencv-core2.3_2.3.1-11_armhf.deb
ar p libopencv-core2.3_2.3.1-11_armhf.deb data.tar.gz | tar -C / -xzf -
ar p libopencv-imgproc2.3_2.3.1-11_armhf.deb data.tar.gz | tar -C / -xzf -
ldconfig


Hope this helps.

Mario
mario_
Site Admin
Site Admin
 
Posts: 112
Joined: Fri Sep 13, 2013 12:57 pm

Re: Drivers for BeagleBoneBlack and Raspberry Pi

Postby pablorivera » Sat Nov 08, 2014 1:52 am

Great !
the application runs fine !
thank you
Pablo Rivera
pablorivera
Newbie
 
Posts: 0
Joined: Fri Oct 24, 2014 4:18 am

Re: Drivers for BeagleBoneBlack and Raspberry Pi

Postby MeasurementBlues » Tue Nov 25, 2014 8:14 pm

How might some of you use a Pico Scope with open-source hardware? I'd like to chat offline for a possible article on EDN or EE Times.

Thanks,

Martin Rowe
Sr. Technical Editor, Test & Measurement
+1-212-600-3403
martin.rowe@ubm.com
MeasurementBlues
Newbie
 
Posts: 0
Joined: Tue Nov 25, 2014 8:05 pm

Re: Drivers for BeagleBoneBlack and Raspberry Pi

Postby jhonatan_camacho » Sat Jan 10, 2015 3:11 pm

Hi Mario,

Is it possible to use the PicoScope 2208 series inthe Odroid-U3 plattform ?(http://www.hardkernel.com/main/products ... &tab_idx=2).

Details about architecture are following:

Linux odroid 3.8.13.28 #1 SMP PREEMPT Fri Oct 10 08:19:34 UTC 2014 armv7l armv7l armv7l GNU/Linux
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.1 LTS
Release: 14.04
Codename: trusty

I appreciate so much your recommendation.

Best Regards
jhonatan_camacho
Newbie
 
Posts: 0
Joined: Sat Jan 10, 2015 2:45 pm

Re: Drivers for BeagleBoneBlack and Raspberry Pi

Postby mario_ » Mon Jan 12, 2015 8:55 am

Hi Jonathan,

libps2000a *should work* on Ubuntu14 on any ARM based board as long as the OS support it. However we haven't tested this particular version of OS on the hardware in subject.

The problem you will definitely encounter is OpenCV version. Ubuntu14 supplies libopencv-core2.4 while libpicoipp, requirement for libps2000a, needs libopencv-core2.3. It can be attempted to solve in the same way as in previous posts for Pablo.


Nario
mario_
Site Admin
Site Admin
 
Posts: 112
Joined: Fri Sep 13, 2013 12:57 pm

Re: Drivers for BeagleBoneBlack and Raspberry Pi

Postby jhonatan_camacho » Mon Jan 12, 2015 3:13 pm

Hi Mario,
Thanks for your quick answer.
Effectivelly, when I try to install the libps2000a it occurs same problem as is described for pablo: the library is missing.

I would try the same procedure.

Best regards
jhonatan_camacho
Newbie
 
Posts: 0
Joined: Sat Jan 10, 2015 2:45 pm

Re: Drivers for BeagleBoneBlack and Raspberry Pi

Postby jhonatan_camacho » Sun Jan 18, 2015 10:26 pm

Hi mario,

I had success with the instalation for PicoScope Library under Odroid System,
However, I would like to know if it is possible to use a graphical interface as is shown in the forum (post42037.html#p42037).

I would appreciate so much your recomendations.

Best Regards
jhonatan_camacho
Newbie
 
Posts: 0
Joined: Sat Jan 10, 2015 2:45 pm

Re: Drivers for BeagleBoneBlack and Raspberry Pi

Postby design360 » Wed Jan 28, 2015 12:34 pm

Is there any support for the TC-08 Datalogger on a Raspberry Pi? I would be interested to know this as it could potentially be useful.

Ian.
design360
Newbie
 
Posts: 0
Joined: Wed Oct 01, 2014 12:30 pm

Re: Drivers for BeagleBoneBlack and Raspberry Pi

Postby Martyn » Thu Jan 29, 2015 8:17 am

There are armhf drivers in the repository (libusbtc08_1.8.10-1r07_armhf.deb), follow the instructions in the first post to access these.
Martyn
Technical Specialist
Martyn
Site Admin
Site Admin
 
Posts: 2280
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Problems on newest rasbian

Postby mkoennecke » Tue May 19, 2015 11:39 am

Hi,

I try to run the ps2000a driver on raspberry pi on the newest rasbian based on debian wheezy.
I have a little program which controls the signal generator. This runs nicely on a i386 system.
I can build it on the raspberry but it does not run for a variety of reasons:

* The first problem I had was the opencv version problem. I installed the 2.3 version as
described but this crashed with an invalid instruction error in libopencv-core
* I then reinstalled opencv 2.4 and created links to make the driver think it has 2.3. This sometimes
works but not in this case. I was rewarded with a memory problem in the usb library.

Quite obviously the issue is a library version mismatch issue. I now only see these ways forward:

* Either the library gets recompiled from source for the recent version of rasbian
* You hand out the source code such that I can compile myself.....
* You tell me with which version of rasbian this works and where I get the required old version from

Or shall I rather invest into a i386 based little computer to run the thing? We use only the signal
generator to drive a neutron spin flipper.

Best Regards,

Mark Koennecke
mkoennecke
Newbie
 
Posts: 0
Joined: Tue May 19, 2015 9:28 am

Re: Drivers for BeagleBoneBlack and Raspberry Pi

Postby Hitesh » Tue Jun 30, 2015 11:27 am

Hi Mark,

Apologies for the delay in a response back to you.

My understanding is that there has been a fix made to the drivers and a request has been made in order for these to be made available.

We will post back here once the repository has been updated.

Update: A new release of the drivers is now available resolving the opencv dependency problems.

Regards,
Last edited by Hitesh on Thu Jul 02, 2015 11:15 am, edited 1 time in total.
Reason: Updated to inform of new driver release
Hitesh

Technical Specialist
Pico Technology
Hitesh
Site Admin
Site Admin
 
Posts: 1997
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire

Next

Return to PicoScope for Linux

Who is online

Users browsing this forum: No registered users and 0 guests