Hobby Components USB 8CH 24MHz Logic Analyser (HCTEST0006)

Test equipments and accessories
marl_scot
Posts: 1
Joined: Mon Sep 24, 2018 9:31 pm

Re: Hobby Components USB 8CH 24MHz Logic Analyser (HCTEST0006)

Post by marl_scot » Mon Sep 24, 2018 9:45 pm

Tried creating a new topic, so this wouldn't get lost in the number of replies, but am unable to.
Admin, if possible could you re-post this as a separate topic for this board?

Installing Hobby Components USB 8CH Logic analyser on a Raspberry Pi


Using Raspbian GNU/Linux 9

log into the pi via SSH/GUI

If using the GUI, then open a terminal.

type :

Code: Select all

sudo apt-get install autoconf autoconf-archive automake check cmake default-jdk doxygen g++ gcc git-core libboost-filesystem-dev libboost-serialization-dev libboost-system-dev libboost-test-dev libftdi1-dev libglib2.0-dev libglibmm-2.4 dev libqt5svg5-dev libtool libusb-1.0-0-dev libzip-dev make pkg-config python3-dev python-dev python-gi-dev python-numpy python-setuptools qtbase5-dev swig wget sdcc
If you get an Java error 'error 4' or message like 'ca-certificates-java' failed to install correctly, then type :

Code: Select all

ln /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm/client /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm/server -s
(thats a lower case L followed by a lower case N)

and then repeat the above apt-get command (apt will carry on from where it was).

Follow the instructions on this page https://sigrok.org/wiki/Linux to compile the software, I have included the commands below to make it easier for copy/paste

Code: Select all

cd ~
git clone git://sigrok.org/libserialport
cd libserialport
./autogen.sh
./configure
make
sudo make install

Code: Select all

cd ~
git clone git://sigrok.org/libsigrok
cd libsigrok
./autogen.sh
./configure
make
sudo make install

Code: Select all

cd ~
git clone git://sigrok.org/libsigrokdecode
cd libsigrokdecode
./autogen.sh
./configure
make
sudo make install

Code: Select all

cd ~
git clone git://sigrok.org/sigrok-cli
cd sigrok-cli
./autogen.sh
./configure
make
sudo make install

Code: Select all

cd ~
git clone git://sigrok.org/pulseview
cd pulseview
cmake .
make
sudo make install

Code: Select all

cd ~
git clone git://sigrok.org/sigrok-firmware-fx2lafw
cd sigrok-firmware-fx2lafw
./autogen.sh
./configure
make
make install

Code: Select all

cd ~
sudo cp libsigrok/contrib/60-libsigrok.rules  /etc/udev/rules.d/
sudo cp libsigrok/contrib/61-libsigrok-plugdev.rules /etc/udev/rules.d/
Reboot the Raspberry Pi
To run the software, open a terminal and type :

Code: Select all

pulseview
In the pulseview software, click on the device menu, on my install this defaulted to 'Demo Driver'

This will show a 4 step dialog :
Step 1 : You should select the 'fx2lafw' driver
Step 2 : Make sure 'USB' is selected
Step 3 : Click on 'Scan for devices using the driver above'
Step 4 : Select the 'sigrok FX2 LA (8ch) with 8 channels' device
and click 'OK'

You should now be able to use the logic probe and the software :)

andrew
Site Admin
Posts: 798
Joined: Sun Aug 05, 2012 4:15 pm

Re: Hobby Components USB 8CH 24MHz Logic Analyser (HCTEST0006)

Post by andrew » Tue Sep 25, 2018 9:03 am

Thanks very much for taking the trouble to create this guide. The ability to create a new topic is disabled in the product sections of the forum to stop these sections from getting cluttered with duplicate threads. However as this is a really useful guide I've now added it to the bottom of the first post so that its easy to find. Thanks again.
Comments made by this poster do not necessarily reflect the views of Hobby Components Ltd.

AndrewS
Posts: 1
Joined: Sun Oct 21, 2018 5:08 pm

Re: Hobby Components USB 8CH 24MHz Logic Analyser (HCTEST0006)

Post by AndrewS » Sun Oct 21, 2018 5:24 pm

I got an HCTEST0006 for Xmas 2 years ago. It seemed a little complicated so I did not try to install it, until this weekend.

I downloaded PulseView (32 bit) for my Win10 laptop, but am having problems with the drivers. The analyser shows in device manager as fx2lafw.

When I start pulseview it starts with 'failure to open device - generic unspecified error'. Then it opens and I can connect to a device, but the 'sigrok fx2 la' mentioned does not appear in the list. If I select the generic fx2lafw then scan for devices using that driver I do get 'sigrok fx2 la (8ch) with 8 channels' in the bottom window. If I select this and click OK I again get the 'failed to open device' message.

Can you please advise what I should do to get this working?

andrew
Site Admin
Posts: 798
Joined: Sun Aug 05, 2012 4:15 pm

Re: Hobby Components USB 8CH 24MHz Logic Analyser (HCTEST0006)

Post by andrew » Mon Oct 22, 2018 8:36 am

I've seen USB issues before where a device will enumerate ok but then you try to communicate with it, it suddenly fails. This is most likely a hardware issue like a bad connection somewhere but I would suggest trying the following two things:

Firstly If you have a spare mini USB cable could you try that as a bad cable is the most likeliest cause of the issue.

If that doesn't fix the problem try reinstalling the drivers using the Zadig installer utility just in case it is a problem with the driver. The Zadig utility can be found in the C:\Program Files (x86)\sigrok\PulseView folder, or wherever you have installed Pulseview. You can reference the first post in this thread for instructions on how to use the utility. Note that if your analyser is from 2 years ago it could have the default Cypress VID and PID (VID:04B4 PID:8613) but this shouldn't make a difference.
Comments made by this poster do not necessarily reflect the views of Hobby Components Ltd.

Post Reply