This is a CLI management tool for MicroPython-based XNode.
### Help
```sh
xnode
```
or
```sh
xnode --help
```
### Find serial port
```sh
xnode scan
```
### Option Rules
- Options and values can have spaces or omit spaces.
- Options and values can be inserted with the = character.
```sh
<option><value>
<option> <value>
<option>=<value>
```
### Initialize XNode file system (Only xnode type b)
```sh
xnode -s<com_port_name> init
```
or
```sh
xnode --sport<com_port_name> init
```
> \<com_port_name\> is the port number found by scan.
### Check list of XNode file systems
```sh
xnode -s<com_port_name> ls
xnode -s<com_port_name> ls /flash/lib/xnode/pop
```
### Put PC file into XNode
```sh
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
```sh
xnode -s<com_port_name> get /flash/main.py main.py
```
### Delete XNode file
```sh
xnode -s<com_port_name> rm /flash/main.py
```
### Executes the PC's MicroPython script by sequentially passing it to the XNode
```sh
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)
Raw data
{
"_id": null,
"home_page": "https://github.com/planxstudio/xkit",
"name": "xnode",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "micropython, xnode",
"author": "chanmin.park",
"author_email": "devcamp@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/8e/0a/6f268b77a9e531877ff92e804c920f8234033ff6f3841b907bdb60d66368/xnode-1.1.1.tar.gz",
"platform": null,
"description": "This is a CLI management tool for MicroPython-based XNode.\r\n\r\n### Help\r\n```sh\r\nxnode\r\n```\r\nor\r\n```sh\r\nxnode --help\r\n```\r\n\r\n### Find serial port\r\n```sh\r\nxnode scan\r\n```\r\n\r\n### Option Rules\r\n- Options and values can have spaces or omit spaces.\r\n- Options and values can be inserted with the = character.\r\n\r\n```sh\r\n<option><value> \r\n<option> <value>\r\n<option>=<value> \r\n```\r\n\r\n### Initialize XNode file system (Only xnode type b)\r\n```sh\r\nxnode -s<com_port_name> init\r\n```\r\nor\r\n```sh\r\nxnode --sport<com_port_name> init\r\n```\r\n> \\<com_port_name\\> is the port number found by scan. \r\n\r\n### Check list of XNode file systems\r\n```sh\r\nxnode -s<com_port_name> ls\r\nxnode -s<com_port_name> ls /flash/lib/xnode/pop\r\n```\r\n\r\n### Put PC file into XNode\r\n```sh\r\nxnode -s<com_port_name> put my.py /flash/main.py\r\n```\r\n> my.py is the name of the script written on the PC, main.py is the name to be installed on XNode \r\n>> Automatically runs /flash/main.py if it exists when XNode starts\r\n\r\n### Get XNode file to PC\r\n```sh\r\nxnode -s<com_port_name> get /flash/main.py main.py\r\n```\r\n\r\n### Delete XNode file\r\n```sh\r\nxnode -s<com_port_name> rm /flash/main.py\r\n```\r\n\r\n### Executes the PC's MicroPython script by sequentially passing it to the XNode\r\n```sh\r\nxnode -s<com_port_name> run app.py\r\n```\r\n> Wait for serial output until the script finishes \r\n>> To force quit in running state, press Ctrl+c\r\n\r\n**Additional Options**\r\n - -n: Does not wait for serial output, so it appears as if the program has terminated on the PC side.\r\n - Script continues to run on XNode\r\n - Used to check data output serially from XNode with other tools (PuTTY, smon, etc.)\r\n - -ni (or -in): Does not display the pressed key in the terminal window (Echo off)\r\n",
"bugtrack_url": null,
"license": null,
"summary": "This is a CLI management tool for MicroPython-based XNode.",
"version": "1.1.1",
"project_urls": {
"Homepage": "https://github.com/planxstudio/xkit"
},
"split_keywords": [
"micropython",
" xnode"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "52bd2eb5786a10d162e7445bbc47b37f93558129ab1ba476da6a35fb13463b9e",
"md5": "1035d07408cb2eabee13b0d4db4e0771",
"sha256": "f47dc0cfd810c7a9b535f95ac332a83217f5062e8ea9aeae50d9fb51217237b9"
},
"downloads": -1,
"filename": "xnode-1.1.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "1035d07408cb2eabee13b0d4db4e0771",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 16928,
"upload_time": "2024-05-20T08:31:13",
"upload_time_iso_8601": "2024-05-20T08:31:13.300794Z",
"url": "https://files.pythonhosted.org/packages/52/bd/2eb5786a10d162e7445bbc47b37f93558129ab1ba476da6a35fb13463b9e/xnode-1.1.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "8e0a6f268b77a9e531877ff92e804c920f8234033ff6f3841b907bdb60d66368",
"md5": "b49a6f4173bb1316c44f6416f26b49a0",
"sha256": "dfd00aa0fab07b8708e2312156e07d5a37b3ddae40eefb11f0e74661fb70c570"
},
"downloads": -1,
"filename": "xnode-1.1.1.tar.gz",
"has_sig": false,
"md5_digest": "b49a6f4173bb1316c44f6416f26b49a0",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 16039,
"upload_time": "2024-05-20T08:31:14",
"upload_time_iso_8601": "2024-05-20T08:31:14.371085Z",
"url": "https://files.pythonhosted.org/packages/8e/0a/6f268b77a9e531877ff92e804c920f8234033ff6f3841b907bdb60d66368/xnode-1.1.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-05-20 08:31:14",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "planxstudio",
"github_project": "xkit",
"github_not_found": true,
"lcname": "xnode"
}