Skip to main content

A command-line tool for provisioning DotBot devices and gateways.

Project description

dotbot-provision

A command-line tool for provisioning DotBot devices and gateways.

Installation

pip install dotbot-provision
Usage: dotbot-provision [OPTIONS] COMMAND [ARGS]...

  A tool for provisioning DotBot devices and gateways.

Options:
  --help  Show this message and exit.

Commands:
  fetch          Fetch firmware assets into bin/<fw-version>/.
  flash          Flash firmware + config using versioned bin layout.
  flash-bringup  Flash J-Link OB or DAPLink programmer firmware.
  flash-hex      Flash explicit app/net hex files.
  read-config    Read config from the device.

Deploying a testbed

First, download firmware assets:

dotbot-provision fetch --fw-version v0.7.0

Then, to flash a DotBot-v3 while specifying a certain Network ID:

dotbot-provision flash --device dotbot-v3 --fw-version v0.7.0 --network-id 0100

And to flash a Mari Gateway:

dotbot-provision flash --device gateway --fw-version v0.7.0 --network-id 0100

... and it's done!

Deploying a testbed on fresh robots

If your robot just arrived from factory, first you have to run the flash-bringup command. You can concatenate it with a regular flash command so that all happens in sequence with minimal manual work. Like this:

dotbot-provision flash-bringup --programmer-firmware jlink -d ../../../programer-files-dotbot && \
  dotbot-provision flash -d dotbot-v3 -f local -n 0100 -s 77

... where the -s flag stands for --sn-starting-digits and serves as a pattern to identify the connected programming probe. In this case it solves a problem where the flash command incorrectly selects the external J-Link probe instead of the dotbot's (most DotBots come from factory with a serial number starting by 77).

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

dotbot_provision-0.1.0.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

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

dotbot_provision-0.1.0-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

Details for the file dotbot_provision-0.1.0.tar.gz.

File metadata

  • Download URL: dotbot_provision-0.1.0.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.12

File hashes

Hashes for dotbot_provision-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5cb7bf73fea5e0589bd12d810ba6df63f82a1ccde4ec1c59a71eabbb49c34d6f
MD5 375f20343f6fec2adf9d987d0c591791
BLAKE2b-256 784464961c0118b1905b538811049fcbe06680a633d16ec3fa96dca6d7751be6

See more details on using hashes here.

File details

Details for the file dotbot_provision-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for dotbot_provision-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 24723e8b10dbf5f8c5c8e57c5938d253da8ec3e14034f03049538f66998634d0
MD5 34eb56870769101ccb740a9ce0e13048
BLAKE2b-256 51a28f2fdf52304b3c66d421013956527820897dcd478a3f01fad6dd26e808ae

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