Skip to main content

This is a CLI management tool for MicroPython-based XNode.

Project description

This is a CLI management tool for MicroPython-based XNode.

Help

xnode

or

xnode --help

Find serial port

xnode scan

Option Rules

  • Options and values can have spaces or omit spaces.
  • Options and values can be inserted with the = character.
<option><value>  
<option> <value>
<option>=<value> 

Initialize XNode file system (Only xnode type b)

xnode -s<com_port_name> init

or

xnode --sport<com_port_name> init

<com_port_name> is the port number found by scan.

Check list of XNode file systems

xnode -s<com_port_name> ls
xnode -s<com_port_name> ls /flash/lib/xnode/pop

Put PC file into XNode

xnode -s<com_port_name> put my.py /flash/main.py

my.py is the name of the script written on the PC, main.py is the name to be installed on XNode

Automatically runs /flash/main.py if it exists when XNode starts

Get XNode file to PC

xnode -s<com_port_name> get /flash/main.py main.py

Delete XNode file

xnode -s<com_port_name> rm /flash/main.py

Executes the PC's MicroPython script by sequentially passing it to the XNode

xnode -s<com_port_name> run app.py

Wait for serial output until the script finishes

To force quit in running state, press Ctrl+c

Additional Options

  • -n: Does not wait for serial output, so it appears as if the program has terminated on the PC side.
    • Script continues to run on XNode
    • Used to check data output serially from XNode with other tools (PuTTY, smon, etc.)
  • -ni (or -in): Does not display the pressed key in the terminal window (Echo off)

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

xnode-1.1.1.tar.gz (16.0 kB view details)

Uploaded Source

Built Distribution

xnode-1.1.1-py3-none-any.whl (16.9 kB view details)

Uploaded Python 3

File details

Details for the file xnode-1.1.1.tar.gz.

File metadata

  • Download URL: xnode-1.1.1.tar.gz
  • Upload date:
  • Size: 16.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.9

File hashes

Hashes for xnode-1.1.1.tar.gz
Algorithm Hash digest
SHA256 dfd00aa0fab07b8708e2312156e07d5a37b3ddae40eefb11f0e74661fb70c570
MD5 b49a6f4173bb1316c44f6416f26b49a0
BLAKE2b-256 8e0a6f268b77a9e531877ff92e804c920f8234033ff6f3841b907bdb60d66368

See more details on using hashes here.

File details

Details for the file xnode-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: xnode-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 16.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.9

File hashes

Hashes for xnode-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f47dc0cfd810c7a9b535f95ac332a83217f5062e8ea9aeae50d9fb51217237b9
MD5 1035d07408cb2eabee13b0d4db4e0771
BLAKE2b-256 52bd2eb5786a10d162e7445bbc47b37f93558129ab1ba476da6a35fb13463b9e

See more details on using hashes here.

Supported by

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