Test and Measurement Forum

PT-104 under Linux

Post your Linux discussions here

PT-104 under Linux

Postby aLondon » Tue Feb 17, 2015 12:11 pm

Hello,

I've seen that you provide Linux drivers for the PT-104, but I could not find any software or SDK download.
Could you tell me how I could go about using the PT-104 from a CentOS (5 or 6) machine, preferably through ethernet?
aLondon
Newbie
 
Posts: 0
Joined: Thu Jun 05, 2014 1:36 pm

Re: PT-104 under Linux

Postby mario_ » Wed Feb 18, 2015 8:16 am

Hi aLondon,

Drivers for USB PT-104 are in the libusbpt104 package. Configure repository as explained here https://www.picotech.com/downloads/linux and install it. Then navigate to /opt/picoscope/share/doc/libusbpt104 to find an C example. Note that communicating via ethernet your Linux application will require root privileges.

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

Re: PT-104 under Linux

Postby aLondon » Tue Mar 03, 2015 2:53 pm

Hi Mario,

Many thanks for the procedure. I managed to set up the repository, however when installing libusbpt104, it failed with the following message:

Code: Select all
libusbpt104-1.0.4-1r06.i386 from picoscope has depsolving problems
  --> Missing Dependency: libusb-1.0.so.0 is needed by package libusbpt104-1.0.4-1r06.i386 (picoscope)
Error: Missing Dependency: libusb-1.0.so.0 is needed by package libusbpt104-1.0.4-1r06.i386 (picoscope)

Is there a way to solve this?

aLondon
aLondon
Newbie
 
Posts: 0
Joined: Thu Jun 05, 2014 1:36 pm

Re: PT-104 under Linux

Postby mario_ » Wed Mar 04, 2015 7:54 am

Hi,

Yes, you need to install a package providing this dependency. Since CentOS 5 doesn't have it in standard repositories you need to search for it in your favorite search engine. One of the examples found is here. Download it and install by running rpm -i <file.rpm>.


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

Re: PT-104 under Linux

Postby aLondon » Wed Mar 04, 2015 3:28 pm

Hi,

Many thanks for the pointer, I didn't notice it was a Linux library.

Once this was sorted, and after a few more attempts (Linux issues), I managed to run the demo program, which worked. I am now in a good starting place to figure something out with the logger. Thanks again for your help.

In case it's helpful and relevant, I've noticed 2 bugs (which might be Linux ones):
#1. Running ./autogen throws an error from aclocal which cannot find the m4 directory. Creating an empty m4 directory solves the problem; maybe this could be added to autogen ?

#2. Running ./configure throws an error about an unexpected fi at line 18833. In the configure file I have (from the Pico installation file), there's indeed an empty else statement line 18833. Simply adding a : after the else resolved the problem. Maybe this could be fixed too?
aLondon
Newbie
 
Posts: 0
Joined: Thu Jun 05, 2014 1:36 pm

Re: PT-104 under Linux

Postby mario_ » Thu Mar 05, 2015 8:56 am

Hi aLondon,

Thanks for the pointers about autotools. They are probably occur on your system due to older versions not recognizing syntax correctly. I put them however into our bug tracking system to get them fixed for the next release.

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


Return to Linux

Who is online

Users browsing this forum: No registered users and 0 guests