Changes

no edit summary
Line 1: Line 1:  +
==Introduction==
 
This page contains instructions on how to use '''ubus''' commands in [[CLI]] / SSH to scan and pair '''Bluetooth''' devices on '''RUTX10/11'''.
 
This page contains instructions on how to use '''ubus''' commands in [[CLI]] / SSH to scan and pair '''Bluetooth''' devices on '''RUTX10/11'''.
   Line 10: Line 11:  
[[File:Networking_rutx_configuration_example_bluetooth_enable_v1.png]]
 
[[File:Networking_rutx_configuration_example_bluetooth_enable_v1.png]]
   −
*Now login to [[CLI]] or SSH and run '''scan.start''' command to start Bluetooth scan:
+
*Now login to [[CLI]] or SSH and initialize blesemd, run '''blesemd -D''' command:
 +
 
 +
...
 +
root@Teltonika-RUTX11:~# blesemd -D
 +
Initializing blesemd...
 +
Warning: debug messages will be shown!
 +
Preparing bluetooth interface...
 +
Reading config...
 +
Devices loaded: 0
 +
Creating database...
 +
modbus_data table already exists
 +
SENT_ID_TABLE already exists
 +
Create DB done
 +
Initializing uloop...
 +
Connecting to ubus...
 +
Initializing BLE device...
 +
Initializing BLE ubus interface...
 +
Adding ubus object...
 +
...
 +
 
 +
*Run '''scan.start''' command to start Bluetooth scan:
    
  ...
 
  ...
Line 70: Line 91:  
  ...
 
  ...
   −
*In order to unpair devices use this command:
+
*To get the statistics from paired devices, use '''stat''' command:
 
  −
...
  −
ubus call blesem unpair '{"address":"FF:CB:FA:6A:23:CB"}'
  −
...
  −
 
  −
*To get statistics from paired devices, use '''stat''' command:
      
  ...
 
  ...
Line 95: Line 110:  
  }
 
  }
 
  ...
 
  ...
 
+
[[Category:Hardware application]]
[[Category:RUT FAQ]]