Skip to main content

Acconeer Exploration Tool

Project description

Acconeer Exploration Tool

Explore the Next Sense with Acconeer Exploration Tool! Use one of our evaluation kits together with our Python examples and start exploring the world of Acconeer's radar sensor technology. The Python scripts and GUI in this repository will help you to easily stream the radar sensor's data to your local machine to start radar sensor evaluation and/or algorithm development for your application.

To run the Python exploration scripts, you will need an evaluation kit running the included Streaming or Module server, which are supplied with the Acconeer SDK and Module SW image.

This release is developed for Acconeer SDK and Module SW version 2.10.0. Running this version is strongly recommended, as we continuously fix bugs and add features.

The GUI in action

Quickstart for Windows

There is a portable version of the Acconeer Exploration Tool for Windows:

  • Download the zip file and extract
  • Double click the update.bat file and wait for the installation to finish, which takes a couple of minutes
  • Double click the run_gui.bat

For an in-depth evaluation we recommend a full installation as described below.

Documentation

Additional documentation is available at https://docs.acconeer.com.

Setting up your evaluation kit

For general help on getting started head over to the Acconeer developer page. There you will find both a getting started guide and a video showing you how to set up your evaluation kit. There you will also find the SDK download.

Setting up your local machine

Requirements

Python 3.7 or newer. Older versions have limited or no support.

Tested on:

  • Python 3 (developed and tested on 3.7, 3.8 and 3.9)
  • Windows 10
  • Ubuntu 18.04 and 20.04

Setup

Dependencies

If you have PyQt4 installed, it might conflict with PyQt5. If this is the case for you, we recommend using virtual environments to separate the two installations.

To run the GUI on Ubuntu 20.04, libxcb-xinerama0-dev needs to be installed:

sudo apt update
sudo apt install -y libxcb-xinerama0-dev

Installing the acconeer.exptool library

Install the supplied library acconeer.exptool:

python -m pip install -U --user ".[app]"

Note: The library has to be reinstalled after any change under src/, and it is therefore recommended to reinstall after every update.

Windows COM port drivers

If no COM port is recognized when plugging in a module, you might need to install a driver:

Connecting to a module through UART on Linux

If you are running Linux together with an XM112, XM122, or XM132 module through UART, you probably need permission to access the serial port. Access is obtained by adding yourself to the dialout group:

sudo usermod -a -G dialout $USER

Reboot for the changes to take effect.

Note: If you have ModemManager installed and running it might try to connect to the module, which has proven to cause problems. If you are having issues, try disabling the ModemManager service.

Connecting to an XM112 through SPI on Linux

If you are using Linux together with an XM112, you probably need permission to access the SPI bridge USB device. Either run the scripts with sudo, or create an udev rule as follows. Create and edit:

sudo nano /etc/udev/rules.d/50-ft4222.rules

with the following content:

SUBSYSTEM=="usb", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="601c", MODE:="0666"

This method is confirmed to work for Ubuntu 18.04 and 20.04.

GUI

Using the GUI is the easiest way to start exploring Acconeer's radar sensor and our application examples:

python -m acconeer.exptool.app

In the top right box of the GUI, named Connection, select the interface you wish to use

  • SPI: auto-detects an XM112 connected to USB2 (USB1 is also needed for power)
  • Socket: specify the IP address of your Raspberry Pi running the streaming server
  • Serial: specify the serial port that is assigned to the sensor

After pressing Connect, a connection should be established. In the box below labeled Scan controls, select the service or processing example you want to test. Now you may tune the sensor and processing settings to your specific setup. Once you press Start measurement, the application will start fetching data from the sensor and plotting the results. After pressing Stop, you can save (and later load data) or just replay the data stored in the buffer.

Except for Envelope, IQ, Power bins, and Sparse, the GUI is loading modules from the examples directory. If you modify code in those files, the changes will appear in the GUI once you reload it.

Running an example script on your local machine

If you prefer using the command line for testing and evaluation of our examples you can use the following instructions.

XC111+XR111 or XC112+XR112 (mounted on a Raspberry Pi):

python examples/basic.py -s <your Raspberry Pi IP address>

XM112+XB112 via SPI over USB:

python examples/basic.py -spi

Any module via UART over USB, attempting to auto-detect the serial port:

python examples/basic.py -u

Any module via UART over USB, using a specific serial port:

python examples/basic.py -u <the serial port, for example COM3>

Again, depending on your environment, you might have to replace python with python3 or py.

Choosing which sensor(s) to be used can be done by adding the argument --sensor <id 1> [id 2] .... The default is the sensor on port 1. This is not applicable for the modules.

Scripts can be terminated by pressing Ctrl-C in the terminal.

Examples

Basic

The basic scripts contains a lot of comments guiding you through the steps taken in most example scripts. We recommend taking a look at these scripts before working with the others.

  • basic.py
    Basic script for getting data from the radar. Start here!
  • basic_continuous.py
    Basic script for getting data continuously that serves as the base for most other examples.

Services

  • power_bins.py (doc)
    Demonstrates the power bins service.
  • envelope.py (doc)
    Demonstrates the envelope service.
  • iq.py (doc)
    Demonstrates the IQ service.
  • sparse.py (doc)
    Demonstrates the Sparse service.

Processing

  • breathing.py
    An example breathing detection algorithm.
  • button_press.py (doc)
    An example of a "button press" detection algorithm detecting a motion at short distances (~3-5 cm) based on the envelope service, which could be used as "hidden" touch buttons.
  • distance_detector.py (doc)
    An example of the envelope-based distance detection algorithm that estimates the distance to an object.
  • obstacle_detection.py (doc)
    An example of an obstacle detection algorithm estimating the distance and angle to an approaching obstacle.
  • phase_tracking.py (doc)
    An example of a relative movements tracking algorithm using phase information.
  • presence_detection_sparse.py (doc)
    An example of a presence/motion detection algorithm based on the sparse service.
  • sleep_breathing.py (doc)
    An example of a "sleep breathing" detection algorithm assuming that the person is still (as when in sleep) where only the motion from breathing is to be detected.
  • sparse_fft.py
    An example of a frequency analyzer to get an idea of the frequency content in the sparse service data.
  • sparse_inter_fft.py
    Another example of a frequency analyzer which keeps a history of frequency data at different distances.
  • sparse_speed.py
    An example of a speed detection algorithm estimating speeds of an approaching object based on the sparse service.

Record data

  • barebones.py
    A barebones stub that demonstrates how to save sensor data to file.
  • with_cli.py
    A stub for saving sensor data to file that uses command line arguments allowing you to set the filename, etc.
  • long_duration_split_files.py
    A stub that demonstrates how you can split one recording session into multiple files.

Plotting

  • plot_with_matplotlib.py
    Example of how to use matplotlib for plotting.
  • plot_with_pyqtgraph.py
    Example of how to use PyQtGraph for plotting.

Disclaimer

Here you find the disclaimer.

FAQ and common issues

See https://docs.acconeer.com/en/latest/faq.html.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

acconeer-exptool-4.0.0b1.tar.gz (6.7 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

acconeer_exptool-4.0.0b1-py3-none-any.whl (1.2 MB view details)

Uploaded Python 3

File details

Details for the file acconeer-exptool-4.0.0b1.tar.gz.

File metadata

  • Download URL: acconeer-exptool-4.0.0b1.tar.gz
  • Upload date:
  • Size: 6.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for acconeer-exptool-4.0.0b1.tar.gz
Algorithm Hash digest
SHA256 73e766bfbdfef13ae24de539a747059996c385530afd960d29105dfef7573df0
MD5 f22c781cffea757561fb225031c6ea21
BLAKE2b-256 63f5edb98a15c2f5016b91d797d2f78b889e494cf2aa914f57129f91289f322a

See more details on using hashes here.

File details

Details for the file acconeer_exptool-4.0.0b1-py3-none-any.whl.

File metadata

  • Download URL: acconeer_exptool-4.0.0b1-py3-none-any.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for acconeer_exptool-4.0.0b1-py3-none-any.whl
Algorithm Hash digest
SHA256 34c1c02312330bfd7cef5c275249ae72e1477bbc066591b476cb9af1e0adc2e8
MD5 f1abef64a0f021ac430109fe84448d63
BLAKE2b-256 01976cc30d332501fe5cced7f9997d439acafc8be7484a32a36a4a7f3f028219

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page