Websocket CLI Tools
Websocket CLI Tools provides a set of commands for interacting remotely and easily with IoT-Lab nodes using the Websosket protocol.
Websocket CLI Tools can be used in conjunction with the IoT-Lab CLI Tools commands like iotlab-auth and iotlab-experiment.
Installation:
You need python pip. To install ws-cli-tools, use pip (or pip3 for Python 3):
$ pip install iotlabwscli --user
Example:
Start an experiment, wait for it to be ready and connect to the serial port:
$ iotlab-experiment submit -d 120 -l saclay,m3,1,tutorial_m3.elf
{
"id": 65535
}
$ iotlab-experiment wait
Waiting that experiment 65535 gets in state Running
"Running"
$ iotlab-ws
Using custom api_url: https://www.iot-lab.info/rest/
Connected to m3-1.saclay
h
m3-1.saclay:
m3-1.saclay:
m3-1.saclay: IoT-LAB Simple Demo program
m3-1.saclay: Type command
m3-1.saclay: h: print this help
m3-1.saclay: t: temperature measure
m3-1.saclay: l: luminosity measure
m3-1.saclay: p: pressure measure
m3-1.saclay: u: print node uid
m3-1.saclay: d: read current date using control_node
m3-1.saclay: s: send a radio packet
m3-1.saclay: b: send a big radio packet
m3-1.saclay: e: toggle leds blinking
m3-1.saclay:
e
m3-1.saclay: cmd >
m3-1.saclay: leds > off
m3-1.saclay:
l
m3-1.saclay: cmd > Luminosity measure: 2.4414062 lux
m3-1.saclay:
^CExiting
0
Shell on an open Linux node:
iotlab-ws-shell opens a root shell on the open Linux of a node of the experiment, in the local terminal, without an SSH key: a8-1 runs its Linux on node-a8-1, rpi3-1 on node-rpi3-1, a PoE Linux node (jetson-nano-1, node-custom-7) is its own Linux. Every key goes to the shell, Ctrl-C included; exit the shell to quit. The exit status of the shell is the exit status of the command:
$ iotlab-ws-shell a8-1.grenoble
root@node-a8-1:~# uname -m
armv7l
root@node-a8-1:~# exit
Radio sniffer in Wireshark:
iotlab-ws-sniffer writes the radio sniffer of the nodes as a pcap stream, to pipe in Wireshark. The nodes need a monitoring profile with the radio in sniffer mode. The packets are ZEP in UDP (port 17754): Wireshark shows the channel, RSSI and LQI, then the 802.15.4 frame; --raw only writes the 802.15.4 frames.
$ iotlab-ws-sniffer -l grenoble,m3,1-2 | wireshark -k -i -
$ iotlab-ws-sniffer -o capture.pcap
The sniffer of a node accepts one client at a time, as the serial: it can’t be read while a sniffer_aggregator of the SSH frontend reads it, and the other way round.
Tests:
tox -e e2e runs the clients against the iot-lab-websocket service (installed from GitHub, or IOTLABWEBSOCKET=../iot-lab-websocket), with a local SSH server and sniffer; -r after a change of the service.
Metadata
Release files for iotlabwscli 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| iotlabwscli-0.3.0.tar.gz | 28.9 kB | Without provenance | Details for iotlabwscli-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| iotlabwscli-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for iotlabwscli-0.3.0-py3-none-any.whl |
Total release size: 66.8 kB
Release files / iotlabwscli-0.3.0.tar.gz
| Download URL | iotlabwscli-0.3.0.tar.gz |
|---|---|
| Size | 28.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
90adf141eb469e3df358585b339fe5dd562c8de43e474a6bc0ac15558d4099ff
|
|
BLAKE2b-256 checksum How to use checksums |
3685e73c971cc0b0c11dd66ff15da3691160019a0becaf931cf47143bec52eda
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|
Release files / iotlabwscli-0.3.0-py3-none-any.whl
| Download URL | iotlabwscli-0.3.0-py3-none-any.whl |
|---|---|
| Size | 37.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
34bcbf3e49e6ff24390c03dd3c4b41d0f59f3cd372b2ab85f708149ce092bc95
|
|
BLAKE2b-256 checksum How to use checksums |
6cdff2ac0a0c78119ec5c2b03692b5d41a65dbfedee94f00e703d29230ec6a43
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|
Security for iotlabwscli 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.