Skip to main content

This is a CLI management tool for MicroPython-based embedded systems.

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 or directroy 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 or directory

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

  • -in (or default): Does not display the pressed key in the terminal window (Echo off)
  • -i: Display the pressed key in the terminal window (Echo on)
  • -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.)

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.4.0.tar.gz (16.1 kB view details)

Uploaded Source

Built Distribution

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

xnode-1.4.0-py3-none-any.whl (16.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: xnode-1.4.0.tar.gz
  • Upload date:
  • Size: 16.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.0

File hashes

Hashes for xnode-1.4.0.tar.gz
Algorithm Hash digest
SHA256 8b4ac4b2f5420ec512584b52643f6329afd73cff7a317e788621162a5f2ba700
MD5 f0c311deb4a7527fd97fe58ae29c208c
BLAKE2b-256 749ec66d0e24d5d32b13c09fd9adf7671d3e66c46ff3d3e5de6c5fa593d7f75c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xnode-1.4.0-py3-none-any.whl
  • Upload date:
  • Size: 16.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.0

File hashes

Hashes for xnode-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9873b40e5d57b5eef9627cb4b5c2d97ba7c2672191cd945fc22c18696d85b7a0
MD5 4114ba95cd27eeb0ad21ec95ebe79d23
BLAKE2b-256 34af7d70061308df5c52a8f70e68c88b323e40f4f453172546efb2eb6bd0525b

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