Line 1: |
Line 1: |
− | This page contains instructions on how to use CLI / SSH command '''ubus''' for scanning and pairing new '''Bluetooth''' devices on '''RUTX'''. | + | This page contains instructions on how to use '''ubus''' commands in CLI / SSH to scan and pair '''Bluetooth''' devices on '''RUTX10/11'''. |
| | | |
| ---- | | ---- |
− | The '''ubus''' command line tool allows to interact with the '''ubusd''' server (with all currently registered services). It's useful for investigating/debugging registered namespaces as well as writing shell scripts. For calling procedures with parameters and returning responses it uses the user-friendly JSON format. Below is '''Help''' output of this command: | + | |
− | ...
| + | The '''ubus''' command line tool allows to interact with the '''ubusd''' server (with all currently registered services). It's useful for investigating/debugging registered namespaces as well as writing shell scripts. For calling procedures with parameters and returning responses it uses the user-friendly JSON format. |
− | root@Teltonika-RUTX11:~# ubus
| + | |
− | Usage: ubus [<options>] <nowiki><command></nowiki> [arguments...]
| |
− | Options:
| |
− | -s <socket>: Set the unix domain socket to connect to
| |
− | -t <timeout>: Set the timeout (in seconds) for a command to complete
| |
− | -S: Use simplified output (for scripts)
| |
− | -v: More verbose output
| |
− | -m <type>: (for monitor): include a specific message type
| |
− | (can be used more than once)
| |
− | -M <r|t> (for monitor): only capture received or transmitted traffic
| |
− | Commands:
| |
− | - list [<path>] List objects
| |
− | - call <path> <method> [<message>] Call an object method
| |
− | - listen [<path>...] Listen for events
| |
− | - send <type> [<message>] Send an event
| |
− | - wait_for <nowiki><object> [<object>...] Wait for multiple objects to appear on ubus</nowiki>
| |
− | - monitor Monitor ubus traffic
| |
− | ...
| |
| ---- | | ---- |
| Steps to use '''ubus''' for '''blesem''' service on RUTX: | | Steps to use '''ubus''' for '''blesem''' service on RUTX: |