Skip to main content

config tool for nanoradar

Project description

whl-nanoradar-conftool

Installation

pip install whl-nanoradar-conftool

Usage

scan devices

whl-nanoradar-conftool --interface socketscan --channel can1 --bitrate 5000 scan

it will print the list of devices found on the CAN bus.

Found nano radar devices:
sensor id: 0, conjecture number: 1
{
    "nvm_read_status": 1,
    "nvm_write_status": 0,
    "max_distance_cfg": 20,
    "sensor_id": 0,
    "sort_index": 1,
    "radar_power_cfg": 0,
    "motion_rx_state": 0,
    "send_ext_info_cfg": 0,
    "send_quality_cfg": 0,
    "output_type_cfg": 1,
    "ctrl_relay_cfg": 0,
    "can_baud_rate": 0,
    "rcs_threshold": 0,
    "calibration_enabled": 0
}

config sensor_id

assume that the current sensor ID is 0, and you want to set it to 1.

whl-nanoradar-conftool --interface socketscan --channel can1 --bitrate 5000 \
    config \
    --message_id $((0x200)) \
    --set sensor_id_valid 1 \
    --set sensor_id 1 \
    --set store_in_nvm_valid 1 \
    --set store_nvm 1

after running the command, you can check the sensor id by running the scan command again

Project details


Download files

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

Source Distribution

whl_nanoradar_conftool-0.0.1.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

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

whl_nanoradar_conftool-0.0.1-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file whl_nanoradar_conftool-0.0.1.tar.gz.

File metadata

  • Download URL: whl_nanoradar_conftool-0.0.1.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for whl_nanoradar_conftool-0.0.1.tar.gz
Algorithm Hash digest
SHA256 9265200bee5815540b000cce108f27acbfc335feb73eca4535e5163cabd0c8b6
MD5 bdf98ebf3151b0ce5a247203fea17623
BLAKE2b-256 65f171217402add61d8e241c712697ed5ec9ebaa42937a0defbc4e51f9ea95b9

See more details on using hashes here.

Provenance

The following attestation bundles were made for whl_nanoradar_conftool-0.0.1.tar.gz:

Publisher: python-publish.yml on wheelos-tools/whl-nanoradar-conftool

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file whl_nanoradar_conftool-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for whl_nanoradar_conftool-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1d8ff15f947aaea0a44b920560f496d4d363922257cc915822e080d5c6a642bb
MD5 773f7a64e4a4476e4669b6ed211bf74b
BLAKE2b-256 6bf450a8771d42b45cf661b41c3e4c1288313664917d24098ab1e75e6ed6d2b5

See more details on using hashes here.

Provenance

The following attestation bundles were made for whl_nanoradar_conftool-0.0.1-py3-none-any.whl:

Publisher: python-publish.yml on wheelos-tools/whl-nanoradar-conftool

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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