Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Install the SDK and start building your own applications for interacting with the sensor. You can also run the included example program to immediately start communicating with the sensor. 

Downloading zForce SDK

Download the SDK from

Preparing the system for building and running SDK programs

While the SDK is built and tested on Ubuntu 16.04 it should work well on other flavors of Linux.

Preparing Ubuntu 16.04

This instruction may work on other Ubuntu and Debian versions as well.

  1. Make sure there is an Internet connection.
  2. Open a terminal.
  3. Execute the following command to install gcc, the libudev development files and update the system.

    sudo apt-get update && sudo apt-get -y install build-essential libudev-dev && sudo apt-get -y dist-upgrade

  4. Enter the password when prompted.

  5. When the installation completes, reboot the system.
  6. Extract zForceSDK-x.x.x.tar.gz or into any folder.

Preparing Other Linux Flavors

  1. Follow the Linux distribution's normal methods to install packages, for example, if Internet access is required, make sure it is available.
  2. Install the following tools:
    1. gcc or clang.
    2. make
    3. cpp
    4. binutils
  3. Install the following development files:
    1. glibc development files
    2. pthreads development files
    3. libudev development files
  4. Extract zForceSDK-x.x.x.tar.gz or into any folder.

Building and Running the Example Program

The example program is included in the SDK for two reasons, to allow you to start communicating with the sensor and to serve as a starting point for creating your own application. 

  1. Enter the directory that was created when extracting the .tar.gz or .zip file.
  2. Open the file called "Makefile" with a texteditor. 
  3. Go to the top of the file, and remove the hash from whichever CPU architecture you are using, and then save and close the file.
    If you are using ARMv6+VFPv2 it should look like this:


  4. In the terminal, navigate to the directory that was created when extracting the .tar.gz or .zip file.
  5. Execute the following command to build the example program:


  6. Check for errors. If errors occur, make sure all steps in Preparing the System were performed correctly. If another flavor of Linux than Ubuntu 16.04 is used, the compiler version may be too old. If that is the case, upgrade the compiler.
  7. To run the example program using USB HID:
    a. Plug in a USB-HID enabled sensor into a USB port of the computer.
    b. Navigate to the root folder of the SDK release.
    c. Execute the following command to run the example program:


  8. If prompted, enter the password.
  9. To break the program, press Control-C.

Read More

  • No labels