informatica:linux:bluetooth
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| informatica:linux:bluetooth [2012/01/01 20:13] – 95.21.145.45 | informatica: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: | ||
| + | |||
| + | Poner el dispositivo bluetooth a parear en modo " | ||
| + | |||
| + | scan on | ||
| + | | ||
| + | Encontrar el ID del dispositivo | ||
| + | |||
| + | pair F8: | ||
| + | |||
| + | En futuras ocasiones: | ||
| + | |||
| + | bluetoothctl | ||
| + | connect F8: | ||
| + | | ||
| + | | ||
| + | |||
| + | |||
| ====== bluetooth ====== | ====== bluetooth ====== | ||
| Line 326: | Line 359: | ||
| obexftp -b $mac -g $directorio/ | obexftp -b $mac -g $directorio/ | ||
| </ | </ | ||
| + | |||
| + | ===== beacon ===== | ||
| + | Lanzamos el scan y mientras está el scan el btmon: | ||
| + | hcitool lescan | ||
| + | < | ||
| + | 4A: | ||
| + | 44: | ||
| + | E7: | ||
| + | 42: | ||
| + | 14: | ||
| + | F8: | ||
| + | </ | ||
| + | |||
| + | sudo btmon | ||
| + | < | ||
| + | > 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: | ||
| + | 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) | ||
| + | </ | ||
| + | |||
| + | Para buscar dispositivos que también nos sirve para ver la señal: | ||
| + | sudo btmgmt find | ||
| + | < | ||
| + | Discovery started | ||
| + | hci0 type 7 discovering on | ||
| + | hci0 dev_found: 67: | ||
| + | AD flags 0x1a | ||
| + | eir_len 30 | ||
| + | hci0 dev_found: 73: | ||
| + | AD flags 0x1a | ||
| + | eir_len 30 | ||
| + | hci0 dev_found: 72: | ||
| + | AD flags 0x00 | ||
| + | eir_len 31 | ||
| + | hci0 dev_found: 0F: | ||
| + | AD flags 0x00 | ||
| + | eir_len 31 | ||
| + | hci0 dev_found: 28: | ||
| + | AD flags 0x19 | ||
| + | eir_len 25 | ||
| + | hci0 dev_found: 49: | ||
| + | </ | ||
| + | | ||
| + | |||
informatica/linux/bluetooth.1325448821.txt.gz · Last modified: (external edit)
