Skip to main content

cli tool for obnizOS setup

Project description

obniz_cli

obniz_cli is cli tool for obnizOS(for ESP32) install.

Installation

Using pip,

pip install obniz_cli

Preparation

Connect the ESP32 device from the serial port to your PC and check if the PC recognizes the device. The following command shows the list of devices.

python -m serial.tools.list_ports

(You can execute this command after pip install obniz_cli.)
In most cases, port name is dev/cu.SLAB_USBtoUART or like COM3. If you can't find these port or can find but fail to install, you may need USB-driver for devices from here.

Usage

flashos

obniz_cli flashos [-b] [-p]

You can install obnizOS to your ESP32 device. If you execute without -p option, it is displayed as follows:

0: /dev/cu.Bluetooth-Incoming-Port
1: /dev/cu.SLAB_USBtoUART

Select NUMBER from above list(or if you want to cancel, input N key):

Select the device you want to install. (A device port can be passed to command with -p option like obniz_cli flashos -p /dev/cu.SLAB_USBtoUART).

Then, latest obnizOS is downloaded and installed to device. By default, installation is performed at 115200bps but if installation failed, try to decrease it by obniz_cli flashos -b 115200.

After install, cli automatically change serial mode to set obnizOS configuration

eraseos

obniz_cli eraseos [-p]

You can reset your device by this command.

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

obniz_cli-0.0.5.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

obniz_cli-0.0.5-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file obniz_cli-0.0.5.tar.gz.

File metadata

  • Download URL: obniz_cli-0.0.5.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for obniz_cli-0.0.5.tar.gz
Algorithm Hash digest
SHA256 3f4d5b9d0a6b7f5d3d78a5b598af33f5c131e9c4abd3ab692d9a9ed80b668066
MD5 ca3a5a9815e230af0ca654bf730feb1f
BLAKE2b-256 2887d2fb6d8e523a434833864ed4b7d984e38ce39edb13f3239270d857d9c770

See more details on using hashes here.

File details

Details for the file obniz_cli-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: obniz_cli-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for obniz_cli-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 c0e58a3cf24b7d2c5bafe33e0ad231420969558d83207dfc7585756448d39362
MD5 9625c7c7dfe7dc5e2e4f3cefb83756a7
BLAKE2b-256 d091854e93bccef5c4d56b50480563bf83ffdf157afc1f26ccadf908ee06eb48

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