User Tools

Site Tools


informatica:linux:bluetooth

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
informatica:linux:bluetooth [2012/01/01 20:13] 95.21.145.45informatica:linux:bluetooth [2023/01/27 22:05] (current) javi
Line 1: Line 1:
 +====== parear cascos (actualizado) ======
 +
 +Instalar bluetooth
 +
 +  sudo apt update && sudo apt install bluetooth
 +  
 +Ejecutar:
 +
 +  bluetoothctl
 +  default-agent 
 +  pairable on
 +  devices
 +  
 +Si sale el mismo que hay que parear mejor olvidarlo:
 +
 +  remove F8:4D:89:25:92:89
 +
 +Poner el dispositivo bluetooth a parear en modo "descubrible". En mi caso unos airpods
 +
 +  scan on
 +  
 +Encontrar el ID del dispositivo
 +
 +  pair F8:4D:89:25:92:89
 +
 +En futuras ocasiones:
 +
 +  bluetoothctl
 +  connect F8:4D:89:25:92:89
 +  
 +  
 +
 +
 ====== bluetooth ====== ====== bluetooth ======
  
Line 326: Line 359:
 obexftp -b $mac -g $directorio/`cat /tmp/mobil2.txt` obexftp -b $mac -g $directorio/`cat /tmp/mobil2.txt`
 </code> </code>
 +
 +===== beacon =====
 +Lanzamos el scan y mientras está el scan el btmon:
 +  hcitool lescan
 +<code>
 +4A:F6:C7:2E:D3:DE (unknown)
 +44:9B:E0:3A:70:DA (unknown)
 +E7:9F:D3:88:87:66 (unknown)
 +42:AA:DA:C2:5D:5C (unknown)
 +14:51:9A:A1:9C:E3 (unknown)
 +F8:DF:15:C8:E0:E2 JBL Flip 4
 +</code>
 +
 +  sudo btmon
 +<code>
 +> HCI Event: LE Meta Event (0x3e) plen 42                                              [hci0] 662.852030
 +      LE Advertising Report (0x02)
 +        Num reports: 1
 +        Event type: Connectable undirected - ADV_IND (0x00)
 +        Address type: Random (0x01)
 +        Address: E7:9F:D3:88:87:66 (Static)
 +        Data length: 30
 +        Flags: 0x06
 +          LE General Discoverable Mode
 +          BR/EDR Not Supported
 +        Company: Apple, Inc. (76)
 +          Type: iBeacon (2)
 +          UUID: 25786407-ebc6-cfaf-b14f-e2a49306a5fd
 +          Version: 256.512
 +          TX power: -40 dB
 +        RSSI: -61 dBm (0xc3)
 +</code>
 +
 +Para buscar dispositivos que también nos sirve para ver la señal:
 +  sudo btmgmt find
 +<code>
 +Discovery started
 +hci0 type 7 discovering on
 +hci0 dev_found: 67:27:CE:8B:B9:47 type LE Random rssi -89 flags 0x0000 
 +AD flags 0x1a 
 +eir_len 30
 +hci0 dev_found: 73:02:AE:3E:48:1D type LE Random rssi -72 flags 0x0000 
 +AD flags 0x1a 
 +eir_len 30
 +hci0 dev_found: 72:9B:24:DA:2E:6D type LE Random rssi -63 flags 0x0004 
 +AD flags 0x00 
 +eir_len 31
 +hci0 dev_found: 0F:CE:FC:59:11:D2 type LE Random rssi -92 flags 0x0004 
 +AD flags 0x00 
 +eir_len 31
 +hci0 dev_found: 28:11:A5:33:A0:B7 type LE Public rssi -87 flags 0x0000 
 +AD flags 0x19 
 +eir_len 25
 +hci0 dev_found: 49:ED:F5:D8:8E:FA type LE Random rssi -87 flags 0x0000 
 +</code>
 +  
 +
informatica/linux/bluetooth.txt · Last modified: 2023/01/27 22:05 by javi