Drivers for BeagleBoneBlack and Raspberry Pi

Discussion forum for the Picoscope 6 Linux software
Hitesh

Re: Drivers for BeagleBoneBlack and Raspberry Pi

Post by Hitesh »

Hi benamis,

You can obtain the files from https://github.com/picotech/picosdk-c-e ... ter/pl1000.

Regards,

alsamaraee
Newbie
Posts: 0
Joined: Mon Mar 20, 2017 12:21 pm

Re: Drivers for BeagleBoneBlack and Raspberry Pi

Post by alsamaraee »

Hitesh wrote:Hi alsamaree,

There is an incorrect reference to the PicoStatus.h file which this driver does not use.

I've updated the zip file in the post above so please download this and the source code file should have the fix.

Edit: The files are now available from GitHub:

https://github.com/picotech/picosdk-c-e ... er/usbtc08

Please use the usbtc08con.c file from the usbtc08Con sub-folder.

Regards,
Hi Hitesh,
Did you update the files in the link ?
I cann't find the same files that worked for me last time.
I using raspberry pi.
Regards

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

Re: Drivers for BeagleBoneBlack and Raspberry Pi

Post by Martyn »

Can you check with the files from the Repository

and if you are still having problems let us know exactly what the errors are.
Martyn
Technical Support Manager

tobiwan
Newbie
Posts: 0
Joined: Sun Jun 04, 2017 9:13 am

Re: Drivers for BeagleBoneBlack and Raspberry Pi

Post by tobiwan »

Hello,

I do have quite some problems getting the example C codes to run. I already installed the ps2000a drivers and used the usbtest, which works. I then downloaded the relevant picosdk-c-example. The autogen.sh , however, seems to be broken for the provided example. For me it first crashes because it can't find "../install-sh". After i created a link, it then crashes because it can't find "../ltmain.sh". After moving ltmain.sh to said directory I get the following log/error:

Code: Select all

libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
configure.ac:31: installing '../compile'
configure.ac:31: installing '../config.guess'
configure.ac:31: installing '../config.sub'
configure.ac:10: installing '../missing'
Makefile.am: installing '../depcomp'
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... configure: error: ls -t appears to fail.  Make sure there is not a broken
  alias in your environment
configure: error: newly created file is older than distributed files!
Check your system clock
Is this actually a problem with the autogen.sh or am I doing something wrong?
Could someone else try to prepare these build files?

Tobi

Hitesh

Re: Drivers for BeagleBoneBlack and Raspberry Pi

Post by Hitesh »

Hi Tobi,

I've tested the build files on Ubuntu 14.04 LTS and the build process works without issues (I had to make the autogen.sh file executable first).

Have you installed the autoconf and libtool packages?

Regards,

alsamaraee
Newbie
Posts: 0
Joined: Mon Mar 20, 2017 12:21 pm

Re: Drivers for BeagleBoneBlack and Raspberry Pi

Post by alsamaraee »

Hi,

Trying to compile a modified version of the usbtc08con.c example. Using command line. eg

Code: Select all

 gcc -std=c99 -std=c11 -Wall -g -DONE=1 -I/opt/picoscope/include/ usbtc08con-test.c -L/opt/picoscope/lib/ -lusbtc08 -o test
Got this fault

Code: Select all

usbtc08con-test.c: In function ‘main’:
usbtc08con-test.c:181:3: warning: implicit declaration of function ‘usleep’ [-Wimplicit-function-declaration]
   Sleep(200);
   ^
usbtc08con-test.c:272:7: warning: format ‘%lu’ expects argument of type ‘long unsigned int *’, but argument 2 has type ‘uint32_t *’ [-Wformat=]
       scanf_s("%lu", &numberOfReadings);
       ^
Do I missing an external lib ??

Regards

Hitesh

Re: Drivers for BeagleBoneBlack and Raspberry Pi

Post by Hitesh »

Hi alsamaree,

Are there any error messages after those two warning messages?

Have you tried building our example source code file using the files from the linux-build-files folder?

You should be able to use the commands ./autogen.sh and make to build the application if you copy the usbtc08con.c file into the folder.

Regards,

alsamaraee
Newbie
Posts: 0
Joined: Mon Mar 20, 2017 12:21 pm

Re: Drivers for BeagleBoneBlack and Raspberry Pi

Post by alsamaraee »

Hitesh wrote:Hi alsamaree,

Are there any error messages after those two warning messages?

Have you tried building our example source code file using the files from the linux-build-files folder?

You should be able to use the commands ./autogen.sh and make to build the application if you copy the usbtc08con.c file into the folder.

Regards,
Hi Hitesh,

Thank you for your replay.
I have done building your example using

Code: Select all

./autogen.sh
and

Code: Select all

make
.
But I need to go this way to build the program/code bacause I need to add another external lib(bcm2835).

Any help?

Hitesh

Re: Drivers for BeagleBoneBlack and Raspberry Pi

Post by Hitesh »

Hi alsamaraee,

Looking at the errors, please change:

Code: Select all

scanf_s("%lu", &numberOfReadings);
to

Code: Select all

scanf_s("%u", &numberOfReadings);
For the warning related to the Sleep function, you may wish to check our linux-build-files folder to see how we configure and compile the code. The alternative is to delete the #define line and use usleep() instead of Sleep().

Hope this helps,

gcusepico
Newbie
Posts: 0
Joined: Mon Jun 18, 2018 8:56 am

Re: Drivers for BeagleBoneBlack and Raspberry Pi

Post by gcusepico »

Hi,
recently I tried to install the pico on BeagleBoneBlack but had some problem.
device: pico2205A
BeagleBoneBlack rev C with debian8 (Jessie)
I had followed the instructions of the first post. But got the error msg:

Package libps2000 is not available. but is referred to by another package.
...
E: Package 'libps2000' has no installation candidate

That should be some simple mistake, since this is only thread I found and 4 years ago.
Please help!

Regards

Hitesh

Re: Drivers for BeagleBoneBlack and Raspberry Pi

Post by Hitesh »

Hi gcusepico,

We are aware of an issue with accessing the libraries via the package manager.

You can obtain the armhf driver from here but will need to install the package manually.

I hope this helps.

gcusepico
Newbie
Posts: 0
Joined: Mon Jun 18, 2018 8:56 am

Re: Drivers for BeagleBoneBlack and Raspberry Pi

Post by gcusepico »

Hitesh wrote:Hi gcusepico,

We are aware of an issue with accessing the libraries via the package manager.

You can obtain the armhf driver from here but will need to install the package manually.

I hope this helps.
Thanks!
this way works.

gcusepico
Newbie
Posts: 0
Joined: Mon Jun 18, 2018 8:56 am

Re: Drivers for BeagleBoneBlack and Raspberry Pi

Post by gcusepico »

Hi Hitesh,
additional problem about the driver.
After the last post I managed to install the lastest driver on BeagleboneBlack.
libps2000_2.1.6-3r05_armhf.deb
OS is Debian9 (Stretch). Plan to run Python example on it. (from picotech/picosdk-python-examples)
After install all (hope that is true) dependency and finally can do "from picosdk import ps2000". The pico2205A can not be found by simple test code.

>>> from picosdk import ps2000
>>> ps=ps2000.Device()
>>> st=ps.open_unit()
>>> st
3
>>> ps.info
{
}

Python 2.7.13
pico is connected and LED is on. BeagleboneBlack with 4dCAPE display running Debian9

Is that driver or picosdk problem? Please help.

Regards.

Hitesh

Re: Drivers for BeagleBoneBlack and Raspberry Pi

Post by Hitesh »

Hi gcusepico,

Is the device visible when running the libusb command?

What is the result of the ./usbtest application which is in the /opt/picoscope/share/doc/libps2000 directory?

Regards,

gcusepico
Newbie
Posts: 0
Joined: Mon Jun 18, 2018 8:56 am

Re: Drivers for BeagleBoneBlack and Raspberry Pi

Post by gcusepico »

Hitesh wrote:Hi gcusepico,

Is the device visible when running the libusb command?

What is the result of the ./usbtest application which is in the /opt/picoscope/share/doc/libps2000 directory?

Regards,
Thanks for the quick reply! Hitesh

Did below:

debian@beaglebone:/opt/picoscope/share/doc/libps2000$ ls
Copyright usbtest
debian@beaglebone:/opt/picoscope/share/doc/libps2000$ usbtest
-bash: usbtest: command not found

What and where is libusb command?

Post Reply