EasyManua.ls Logo

Orange Pi Zero2 - Page 44

Orange Pi Zero2
88 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
43
Link mode: SLAVE ACCEPT
Name: 'orangepizero2'
Class: 0x000000
Service Classes: Unspecified
Device Class: Miscellaneous,
HCI Version: 5.0 (0x9) Revision: 0x400
LMP Version: 5.0 (0x9) Subversion: 0x400
Manufacturer: Spreadtrum Communications Shanghai Ltd (492)
2) Use bluetoothctl to scan for Bluetooth devices
root@orangepi:~# bluetoothctl
[NEW] Controller 10:11:12:13:14:15 orangepizero2 [default]
Agent registered
[bluetooth]# power on # Enable controller
Changing power on succeeded
[bluetooth]# discoverable on # Set the controller to be discoverable
Changing discoverable on succeeded
[CHG] Controller 10:11:12:13:14:15 Discoverable: yes
[bluetooth]# pairable on # Set the controller to be pairable
Changing pairable on succeeded
[bluetooth]# scan on # Start scanning for surrounding Bluetooth devices
Discovery started
[CHG] Controller 10:11:12:13:14:15 Discovering: yes
[NEW] Device 76:60:79:29:B9:31 76-60-79-29-B9-31
[NEW] Device 9C:2E:A1:42:71:11 Xiaomi mobile phone
[NEW] Device DC:72:9B:4C:F4:CF orangepi
[bluetooth]# scan off # After scanning the Bluetooth device you want to
connect, you can turn off the scan, and then write down the MAC address of the
Bluetooth device. The Bluetooth device tested here is an Android phone, the
Bluetooth name is orangepi, and the corresponding MAC address is
DC:72:9B:4C :F4:CF
Discovery stopped
[CHG] Controller 10:11:12:13:14:15 Discovering: no
[CHG] Device DC:72:9B:4C:F4:CF RSSI is nil
3) After scanning the device you want to pair, you can pair it. Pairing requires the
MAC address of the device
[bluetooth]# pair DC:72:9B:4C:F4:CF # Use the scanned MAC address of the
Bluetooth device for pairing
Attempting to pair with DC:72:9B:4C:F4:CF
[CHG] Device DC:72:9B:4C:F4:CF Connected: yes
Request confirmation
[leeb1m[agent] Confirm passkey 764475 (yes/no): yes # Enter yes here, you also
need to confirm on the phone

Table of Contents

Related product manuals