Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revisionBoth sides next revision
bluetooth_controllers_-_manual_setup [2020/02/04 22:36] lalabluetooth_controllers_-_manual_setup [2021/04/30 17:50] – Multiple BT adapters + fix formatting lbrpdx
Line 17: Line 17:
 So you are in Pairing Mode and you likely see text messages like this. So you are in Pairing Mode and you likely see text messages like this.
  
->[bluetooth]# scan on +   [bluetooth]# scan on 
->Discovery started +   Discovery started 
->[CHG] Controller 43:45:C0:00:1F:AC Discovering: yes +   [CHG] Controller 43:45:C0:00:1F:AC Discovering: yes 
->[NEW] Device E4:17:D8:C2:0B:0E 8BitDo M30 Modkit+   [NEW] Device E4:17:D8:C2:0B:0E 8BitDo M30 Modkit
  
 Now we want to connect to our controller. So we type following commands to connect to discovered controller with MAC adress ''E4:17:D8:C2:0B:0E'' properly. Now we want to connect to our controller. So we type following commands to connect to discovered controller with MAC adress ''E4:17:D8:C2:0B:0E'' properly.
Line 32: Line 32:
 So we see for a example a process text like this So we see for a example a process text like this
  
->[bluetooth]# pair E4:17:D8:C2:0B:0E +   [bluetooth]# pair E4:17:D8:C2:0B:0E 
->Attempting to pair with E4:17:D8:C2:0B:0E +   Attempting to pair with E4:17:D8:C2:0B:0E 
->[CHG] Device E4:17:D8:C2:0B:0E Connected: yes +   [CHG] Device E4:17:D8:C2:0B:0E Connected: yes 
->[CHG] Device E4:17:D8:C2:0B:0E Modalias: usb:v2DC8p5101d0100 +   [CHG] Device E4:17:D8:C2:0B:0E Modalias: usb:v2DC8p5101d0100 
->[CHG] Device E4:17:D8:C2:0B:0E UUIDs: 00001124-0000-1000-8000-00805f9b34fb +   [CHG] Device E4:17:D8:C2:0B:0E UUIDs: 00001124-0000-1000-8000-00805f9b34fb 
->[CHG] Device E4:17:D8:C2:0B:0E UUIDs: 00001200-0000-1000-8000-00805f9b34fb +   [CHG] Device E4:17:D8:C2:0B:0E UUIDs: 00001200-0000-1000-8000-00805f9b34fb 
->[CHG] Device E4:17:D8:C2:0B:0E ServicesResolved: yes +   [CHG] Device E4:17:D8:C2:0B:0E ServicesResolved: yes 
->[CHG] Device E4:17:D8:C2:0B:0E Paired: yes +   [CHG] Device E4:17:D8:C2:0B:0E Paired: yes 
->Pairing successful +   Pairing successful 
- +    
->[bluetooth]# connect E4:17:D8:C2:0B:0E +   [bluetooth]# connect E4:17:D8:C2:0B:0E 
->Attempting to connect to E4:17:D8:C2:0B:0E +   Attempting to connect to E4:17:D8:C2:0B:0E 
->Failed to connect: org.bluez.Error.Failed +   Failed to connect: org.bluez.Error.Failed 
->[CHG] Device E4:17:D8:C2:0B:0E Connected: yes +   [CHG] Device E4:17:D8:C2:0B:0E Connected: yes 
->Authorize service +   Authorize service (yes/no): yes  
->o): yes Authorize service 00001124-0000-1000-8000-00805f9b34fb (yes/no +    
- +   Authorize service 00001124-0000-1000-8000-00805f9b34fb  
->[8BitDo M30 Modkit]# trust E4:17:D8:C2:0B:0E +   [8BitDo M30 Modkit]# trust E4:17:D8:C2:0B:0E 
->[CHG] Device E4:17:D8:C2:0B:0E Trusted: yes +   [CHG] Device E4:17:D8:C2:0B:0E Trusted: yes 
->Changing E4:17:D8:C2:0B:0E trust succeeded+   Changing E4:17:D8:C2:0B:0E trust succeeded
  
  
Line 57: Line 57:
 Type ''remove MAC-ADRESS'' to remove single devices \\ Type ''remove MAC-ADRESS'' to remove single devices \\
 Type ''yes'' if you are asked for authorization progress or enter PIN Type ''yes'' if you are asked for authorization progress or enter PIN
 +
 +
 +If you have multiple Bluetooth adapters on your machine and you want to tell which one is used, you can use the command ''hcitool dev'' to list them all. On my setup, ''hci0'' is the internal BT on my Pi4, and ''hci1'' is an additional USB BT module:
 +
 +   # hcitool dev
 +   Devices:
 +       hci1    90:80:62:00:88:00
 +       hci0    DC:A6:32:04:10:7F
 +    
 +   # bluetoothctl 
 +   Agent registered
 +   [bluetooth]# scan on
 +   Discovery started
 +   [CHG] Controller 90:80:62:00:88:00 Discovering: yes
 +   
 +
  • bluetooth_controllers_-_manual_setup.txt
  • Last modified: 15 months ago
  • by atari