| 68a6da99 |
monitor: Rename Directed Advertising Timeout
In Bluetooth 5.0 spec this error code is named "Advertising Timeout" |
Michał Narajowski |
8 years ago |
1 file, +1, -1 |
| cd851d6d |
monitor: Add support for missing error codes
These codes were added in Bluetooth 5 |
Michał Narajowski |
8 years ago |
1 file, +4, -0 |
| fc4b7be1 |
monitor: Fix connection latency decoding
Connection Latency is a number, not time |
Michał Narajowski |
8 years ago |
1 file, +16, -11 |
| 7c3d2845 |
monitor: Add LE Set Privacy Mode decoding
< HCI Command: LE Set Privacy Mode (0x08|0x004e) plen 8
Peer Identity address type: Random (0x01)
Peer Identity address: 01:01:01:01:01:01 (Non-Resolvable)
Privacy Mode: Use Device Privacy (0x01) |
Michał Narajowski |
8 years ago |
2 files, +34, -1 |
| fb681b2f |
monitor: Add LE RF commands decoding
This patch adds decoding for following commands:
LE Read Transmit Power
LE Read RF Path Compensation
LE Write RF Path Compensation
< HCI Command: LE Write RF Path Compensation (0x08|0x004d) plen 4
RF Tx Path Compensation Value: 0x0201
RF Rx Path Compensation Value: 0x0403 |
Michał Narajowski |
8 years ago |
2 files, +59, -3 |
| 3074b371 |
monitor: Add LE Periodic Advertising commands decoding
This patch adds decoding for following commands:
LE Periodic Advertising Create Sync
LE Periodic Advertising Create Sync Cancel
LE Periodic Advertising Terminate Sync
LE Add Device To Periodic Advertiser List
LE Remove Device From Periodic Advertiser List
LE Clear Periodic Advertiser List
LE Read Periodic Advertiser List Size
< HCI Command: LE Periodic Advertising Create Sync (0x08|0x0044) plen 14
Filter policy: Use Periodic Advertiser List (0x01)
SID: 0x02
Adv address type: Random (0x01)
Adv address: 00:00:00:00:00:00 (Non-Resolvable)
Skip: 0x0201
Sync timeout: 30 msec (0x0003)
Unused: 0x0a
< HCI Command: LE Periodic Advertising Terminate Sync (0x08|0x0046) plen 2
Sync handle: 0x0201
< HCI Command: LE Add Device To Periodic Advertiser List (0x08|0x0047) plen 8
Adv address type: Random (0x01)
Adv address: 07:06:05:04:03:02 (Non-Resolvable)
SID: 0x08
< HCI Command: LE Add Device To Periodic Advertiser List (0x08|0x0047) plen 8
Adv address type: Random (0x01)
Adv address: 07:06:05:04:03:02 (Non-Resolvable)
SID: 0x08 |
Michał Narajowski |
8 years ago |
2 files, +122, -7 |
| e29ef3b8 |
monitor: Add LE Extended Scan commands decoding
This patch adds decoding for following commands:
LE Set Extended Scan Parameters
LE Set Extended Scan Enable
LE Extended Create Connection
LE Extended Advertising Report Event
< HCI Command: LE Set Extended Scan Parameters (0x08|0x0041) plen 13
Own address type: Public (0x00)
Filter policy: Accept all advertisement (0x00)
PHYs: 0x05
Entry 0: LE 1M
Type: Active (0x01)
Interval: 30.000 msec (0x0030)
Window: 30.000 msec (0x0030)
Entry 1: LE Coded
Type: Active (0x01)
Interval: 30.000 msec (0x0030)
Window: 30.000 msec (0x0030)
< HCI Command: LE Set Extended Scan Enable (0x08|0x0042) plen 6
Extended scan: Enabled (0x01)
Filter duplicates: Disabled (0x00)
Duration: 0 msec (0x0000)
Period: 0.00 sec (0x0000)
< HCI Command: LE Extended Create Connection (0x08|0x0043) plen 29
Filter policy: White list is not used (0x00)
Own address type: Public (0x00)
Peer address type: Public (0x00)
Peer address: 11:22:33:C0:DE:C0 (OUI 11-22-33)
Initiating PHYs: 0x04
Entry 0: LE Coded
Scan interval: 10.000 msec (0x0010)
Scan window: 10.000 msec (0x0010)
Min connection interval: 30.00 msec (0x0018)
Max connection interval: 50.00 msec (0x0028)
Connection latency: 0 (0x0000)
Supervision timeout: 2560 msec (0x0100)
Min connection length: 10.000 msec (0x0010)
Max connection length: 480.000 msec (0x0300) |
Michał Narajowski |
8 years ago |
2 files, +449, -17 |
| 61563bd7 |
monitor: Add LE Set Periodic Advertising commands decoding
This patch adds decoding for following commands:
LE Set Periodic Advertising Parameters
LE Set Periodic Advertising Data
LE Set Periodic Advertising Enable
< HCI Command: LE Set Periodic Advertising Parameters (0x08|0x003e) plen 7
Handle: 1
Min interval: 2.50 msec (0x0002)
Max interval: 318.75 msec (0x00ff)
Properties: 0x00ff
Include TxPower
Unknown advertising properties (0x00bf)
< HCI Command: LE Set Periodic Advertising Data (0x08|0x003f) plen 7
Handle: 1
Operation: Last fragment (0x02)
Data length: 0x04
ff 00 ff 00 ....
< HCI Command: LE Set Periodic Advertising Enable (0x08|0x0040) plen 2
Periodic advertising: Enabled (0x01)
Handle: 2 |
Michał Narajowski |
8 years ago |
2 files, +121, -3 |
| 3e472a08 |
monitor: Add LE Extended Advertising commands decoding
This patch adds decoding for following commands:
LE Set Advertising Set Random Address
LE Set Extended Advertising Parameters
LE Set Extended Advertising Data
LE Set Extended Scan Response Data
LE Set Extended Advertising Enable
LE Read Maximum Advertising Data Length
LE Read Number of Supported Advertising Sets
LE Remove Advertising Set
LE Clear Advertising Sets
LE Advertising Set Terminated Event
LE Scan Request Received Event
< HCI Command: LE Set Advertising Set Random Address (0x08|0x0035) plen 7
Advertising handle: 0x00
Advertising random address: 0A:0B:0C:0D:0E:0F (OUI 0A-0B-0C)
< HCI Command: LE Set Extended Advertising Parameters (0x08|0x0036) plen 25
Handle: 0x00
Properties: 0x0005
Connectable
Directed
Min advertising interval: 30.000 msec (0x0030)
Max advertising interval: 60.000 msec (0x0060)
Channel map: 37, 38, 39 (0x07)
Own address type: Public (0x00)
Peer address type: Public (0x00)
Peer address: 00:11:22:33:44:55 (CIMSYS Inc)
Filter policy: Allow Scan Request from Any, Allow Connect Request from Any (0x00)
TX power: 127 dbm (0x7f)
Primary PHY: LE Coded (0x03)
Secondary max skip: 0x00
Secondary PHY: LE Coded (0x03)
SID: 0x00
Scan request notifications: Disabled (0x00)
< HCI Command: LE Set Extended Advertising Data (0x08|0x0037) plen 39
Handle: 0x00
Operation: Complete extended advertising data (0x03)
Fragment preference: Fragment all (0x00)
Data length: 0x23
16-bit Service UUIDs (partial): 1 entry
Unknown (0x1234)
128-bit Service UUIDs (partial): 1 entry
Vendor specific (0f0e0d0c-0b0a-0908-0706-050403020100)
Name (short): device-name
< HCI Command: LE Set Extended Scan Response Data (0x08|0x0037) plen 39
Handle: 0x00
Operation: Complete extended advertising data (0x03)
Fragment preference: Fragment all (0x00)
Data length: 0x23
16-bit Service UUIDs (partial): 1 entry
Unknown (0x1234)
128-bit Service UUIDs (partial): 1 entry
Vendor specific (0f0e0d0c-0b0a-0908-0706-050403020100)
Name (short): device-name
< HCI Command: LE Set Extended Advertising Enable (0x08|0x0039) plen 24
Extended advertising: Enabled (0x01)
Number of sets: 2 (0x02)
Entry 0
Handle: 0xff
Duration: 0 ms (0x00)
Max ext adv events: 0
Entry 1
Handle: 0x00
Duration: 0 ms (0x00)
Max ext adv events: 1
< HCI Command: LE Remove Advertising Set (0x08|0x003c) plen 1
Handle: 1 |
Michał Narajowski |
8 years ago |
2 files, +519, -66 |
| dba3ac80 |
monitor: Add LE Enhanced Test commands decoding
This patch adds decoding for following commands:
LE Enhanced Receiver Test
LE Enhanced Transmitter Test
< HCI Command: LE Enhanced Receiver Test (0x08|0x0033) plen 3
RX channel: 0x01
PHY: LE 1M (0x01)
Modulation index: Stable (0x01)
< HCI Command: LE Enhanced Transmitter Test (0x08|0x0034) plen 4
TX channel frequency: 2402 MHz (0x00)
Test data length: 255 bytes
Packet payload: 0x01
PHY: LE Coded with S=8 (0x03) |
Michał Narajowski |
8 years ago |
2 files, +77, -2 |
| 4364085a |
HACKING: Update instructions on how to run from source tree
Make use of -f option in the instruction of how to run bluetoothd from
the source tree since that doesn't require installing the main.conf
when testing new options. |
Luiz Augusto von Dentz |
8 years ago |
1 file, +2, -2 |
| 1a6f8ed7 |
Support to set main.conf file location via cl arg
Adds command line arg, which allows the caller to set the location of
the conf file used.
This allows system builds that easily support multiple bluetooth configs
(e.g. ChromeOS) and also makes debugging/testing easier. |
C Shapiro |
8 years ago |
2 files, +22, -5 |
| b9190acf |
core: Fallback to LE if BR/EDR connection fails with EHOSTDOWN
This might mean BR/EDR bearer is currently offline but LE be online
thus this retry connecting of LE. |
Luiz Augusto von Dentz |
8 years ago |
1 file, +16, -2 |
| 5a765af1 |
client: Use rl_hexdump to print fixed sized iterators
This makes the output less clutter with duplicated infomation:
before:
[CHG] Device 00:1B:DC:07:31:88 ServiceData Key: 00001827-0000-1000-8000-00805f9b34fb
[CHG] Device 00:1B:DC:07:31:88 ServiceData Value: 0xdd
[CHG] Device 00:1B:DC:07:31:88 ServiceData Value: 0xdd
[CHG] Device 00:1B:DC:07:31:88 ServiceData Value: 0x00
[CHG] Device 00:1B:DC:07:31:88 ServiceData Value: 0x00
[CHG] Device 00:1B:DC:07:31:88 ServiceData Value: 0x00
[CHG] Device 00:1B:DC:07:31:88 ServiceData Value: 0x00
[CHG] Device 00:1B:DC:07:31:88 ServiceData Value: 0x00
[CHG] Device 00:1B:DC:07:31:88 ServiceData Value: 0x00
[CHG] Device 00:1B:DC:07:31:88 ServiceData Value: 0x00
[CHG] Device 00:1B:DC:07:31:88 ServiceData Value: 0x00
[CHG] Device 00:1B:DC:07:31:88 ServiceData Value: 0x00
[CHG] Device 00:1B:DC:07:31:88 ServiceData Value: 0x00
[CHG] Device 00:1B:DC:07:31:88 ServiceData Value: 0x00
[CHG] Device 00:1B:DC:07:31:88 ServiceData Value: 0x00
[CHG] Device 00:1B:DC:07:31:88 ServiceData Value: 0x00
[CHG] Device 00:1B:DC:07:31:88 ServiceData Value: 0x00
[CHG] Device 00:1B:DC:07:31:88 ServiceData Value: 0x00
[CHG] Device 00:1B:DC:07:31:88 ServiceData Value: 0x00
after:
[CHG] Device 00:1B:DC:07:31:88 ServiceData Key: 00001827-0000-1000-8000-00805f9b34fb
dd dd 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 .. |
Luiz Augusto von Dentz |
8 years ago |
1 file, +73, -0 |
| 96fc3c1e |
client: Fix output for DBUS_TYPE_UINT32 iter
The correct for should be 0x%08x not 0x%06x. |
Luiz Augusto von Dentz |
8 years ago |
1 file, +1, -1 |
| 97effeb8 |
core: Add GetDiscoveryFilters
In order to extend SetDiscoveryFilter with more filters the application
might have to query what filters are available. |
Luiz Augusto von Dentz |
8 years ago |
2 files, +67, -26 |
| 9bd39196 |
client: Add set-scan-filter-reset-data command
This adds set-scan-filter-reset-data that makes use of ResetData
filter:
[bluetooth]# set-scan-filter-reset-data on
SetDiscoveryFilter success
[bluetooth]# scan on
Discovery started
[CHG] Controller B8:8A:60:D8:17:D7 Discovering: yes
[CHG] Device F0:79:59:2F:D6:5A RSSI: -87
[NEW] Device 39:5B:8F:12:84:2E 39-5B-8F-12-84-2E
[CHG] Device 14:99:E2:0E:AC:6B RSSI: -80
[CHG] Device 14:99:E2:0E:AC:6B ManufacturerData Key: 0x004c
[CHG] Device 14:99:E2:0E:AC:6B ManufacturerData Value: 0x09
[CHG] Device 14:99:E2:0E:AC:6B ManufacturerData Value: 0x06
[CHG] Device 14:99:E2:0E:AC:6B ManufacturerData Value: 0x03
[CHG] Device 14:99:E2:0E:AC:6B ManufacturerData Value: 0x19
[CHG] Device 14:99:E2:0E:AC:6B ManufacturerData Value: 0x00
[CHG] Device 14:99:E2:0E:AC:6B ManufacturerData Value: 0x00
[CHG] Device 14:99:E2:0E:AC:6B ManufacturerData Value: 0x00
[CHG] Device 14:99:E2:0E:AC:6B ManufacturerData Value: 0x00
[CHG] Device 39:5B:8F:12:84:2E RSSI: -30
[CHG] Device F0:79:59:2F:D6:5A RSSI: -87
[CHG] Device 00:1B:DC:07:31:88 RSSI: -31
[CHG] Device 00:1B:DC:07:31:88 ServiceData Key: 00001827-0000-1000-8000-00805f9b34fb
[CHG] Device 00:1B:DC:07:31:88 ServiceData Value: 0xdd
[CHG] Device 00:1B:DC:07:31:88 ServiceData Value: 0xdd
[CHG] Device 00:1B:DC:07:31:88 ServiceData Value: 0x00
[CHG] Device 00:1B:DC:07:31:88 ServiceData Value: 0x00
[CHG] Device 00:1B:DC:07:31:88 ServiceData Value: 0x00
[CHG] Device 00:1B:DC:07:31:88 ServiceData Value: 0x00
[CHG] Device 00:1B:DC:07:31:88 ServiceData Value: 0x00
[CHG] Device 00:1B:DC:07:31:88 ServiceData Value: 0x00
[CHG] Device 00:1B:DC:07:31:88 ServiceData Value: 0x00
[CHG] Device 00:1B:DC:07:31:88 ServiceData Value: 0x00
[CHG] Device 00:1B:DC:07:31:88 ServiceData Value: 0x00
[CHG] Device 00:1B:DC:07:31:88 ServiceData Value: 0x00
[CHG] Device 00:1B:DC:07:31:88 ServiceData Value: 0x00
[CHG] Device 00:1B:DC:07:31:88 ServiceData Value: 0x00
[CHG] Device 00:1B:DC:07:31:88 ServiceData Value: 0x00
[CHG] Device 00:1B:DC:07:31:88 ServiceData Value: 0x00
[CHG] Device 00:1B:DC:07:31:88 ServiceData Value: 0x00
[CHG] Device 00:1B:DC:07:31:88 ServiceData Value: 0x00
[CHG] Device 14:99:E2:0E:AC:6B RSSI: -75
[CHG] Device 14:99:E2:0E:AC:6B ManufacturerData Key: 0x004c
[CHG] Device 14:99:E2:0E:AC:6B ManufacturerData Value: 0x09
[CHG] Device 14:99:E2:0E:AC:6B ManufacturerData Value: 0x06
[CHG] Device 14:99:E2:0E:AC:6B ManufacturerData Value: 0x03
[CHG] Device 14:99:E2:0E:AC:6B ManufacturerData Value: 0x19
[CHG] Device 14:99:E2:0E:AC:6B ManufacturerData Value: 0x00
[CHG] Device 14:99:E2:0E:AC:6B ManufacturerData Value: 0x00
[CHG] Device 14:99:E2:0E:AC:6B ManufacturerData Value: 0x00
[CHG] Device 14:99:E2:0E:AC:6B ManufacturerData Value: 0x00
[CHG] Device F0:79:59:2F:D6:5A RSSI: -86
[CHG] Device F0:79:59:2F:D6:5A RSSI: -86
[CHG] Device F0:79:59:2F:D6:5A RSSI: -86
[CHG] Device 00:1B:DC:07:31:88 RSSI: -27
[CHG] Device 00:1B:DC:07:31:88 ServiceData Key: 00001827-0000-1000-8000-00805f9b34fb
[CHG] Device 00:1B:DC:07:31:88 ServiceData Value: 0xdd
[CHG] Device 00:1B:DC:07:31:88 ServiceData Value: 0xdd
[CHG] Device 00:1B:DC:07:31:88 ServiceData Value: 0x00
[CHG] Device 00:1B:DC:07:31:88 ServiceData Value: 0x00
[CHG] Device 00:1B:DC:07:31:88 ServiceData Value: 0x00
[CHG] Device 00:1B:DC:07:31:88 ServiceData Value: 0x00
[CHG] Device 00:1B:DC:07:31:88 ServiceData Value: 0x00
[CHG] Device 00:1B:DC:07:31:88 ServiceData Value: 0x00
[CHG] Device 00:1B:DC:07:31:88 ServiceData Value: 0x00
[CHG] Device 00:1B:DC:07:31:88 ServiceData Value: 0x00
[CHG] Device 00:1B:DC:07:31:88 ServiceData Value: 0x00
[CHG] Device 00:1B:DC:07:31:88 ServiceData Value: 0x00
[CHG] Device 00:1B:DC:07:31:88 ServiceData Value: 0x00
[CHG] Device 00:1B:DC:07:31:88 ServiceData Value: 0x00
[CHG] Device 00:1B:DC:07:31:88 ServiceData Value: 0x00
[CHG] Device 00:1B:DC:07:31:88 ServiceData Value: 0x00
[CHG] Device 00:1B:DC:07:31:88 ServiceData Value: 0x00
[CHG] Device 00:1B:DC:07:31:88 ServiceData Value: 0x00 |
Luiz Augusto von Dentz |
8 years ago |
1 file, +25, -0 |
| f4ab5f0b |
core: Add ResetData filter
Reset service/manufactorer data so the application can see each and
every instance of them. |
Luiz Augusto von Dentz |
8 years ago |
4 files, +54, -8 |
| eebb86a3 |
monitor: Format URI hash using 8 hex digits
URI hash is a 32 bits value. |
Frédéric Dalleau |
8 years ago |
1 file, +1, -1 |
| b8c3fcd3 |
monitor: Fix OOB information bit in mesh oob table
The bit 15 should be used for 'On device'. |
Frédéric Dalleau |
8 years ago |
1 file, +1, -1 |
| c15b986e |
core: Make easier to manage checked groups
This makes easier to manage groups which need to be checked for. |
ERAMOTO Masaya |
8 years ago |
1 file, +16, -7 |
| b4044b6f |
core: Add checking for unknown GATT options
This adds to check for unknown GATT options. |
ERAMOTO Masaya |
8 years ago |
1 file, +6, -0 |
| c1ba9154 |
core: Add checking for unknown Policy options
This adds to check for unknown Policy options. |
ERAMOTO Masaya |
8 years ago |
1 file, +9, -0 |
| c437b644 |
core: Fix General options in main.conf
For supported_options struct,
- adds FastConnectable.
(That was added at 1cd65e52665cfbf939c923baea51748e359abfa5.)
- removes AlwaysPairable.
(That was removed at 12464916d39fa88f2ade96ccbc1d8efd6ea37789.) |
ERAMOTO Masaya |
8 years ago |
1 file, +1, -1 |
| 7600800c |
core: Split check_config() function
Split to check_config() and check_options() that checks main.conf options. |
ERAMOTO Masaya |
8 years ago |
1 file, +30, -20 |
| 7d509194 |
core: Add group information to warning message for main.conf
Into warning message for main.conf, this adds group information like:
bluetoothd[XXXX]: Unknown key PirableTimeout for group General in main.conf |
ERAMOTO Masaya |
8 years ago |
1 file, +2, -1 |
| 32867836 |
advertising: Fix client_disconnect_cb logging
85cb255b462da360d4712f8b9ff9b5ee398f7c1c wrongly changed the message
logged when client disconnects. |
Luiz Augusto von Dentz |
8 years ago |
1 file, +1, -1 |
| 95749eef |
gatt: Disconnect IO if the device is disconnected
Don't persist the IO accross connections, the application should
reacquire once the device reconnects. |
Luiz Augusto von Dentz |
8 years ago |
1 file, +8, -0 |
| 3790a1f4 |
gatt: Fix crash when cleanup notify_io
When removing interfaces the code will attempt to free any notify client
but the notify_io may still be pointing to the client causing the
following crash:
Invalid read of size 8
at 0x49D531: notify_io_destroy (gatt-client.c:1452)
by 0x49E1B2: pipe_io_destroy (gatt-client.c:1077)
by 0x49E25D: characteristic_free (gatt-client.c:1650)
by 0x4CA2B9: remove_interface (object.c:667)
by 0x4CAF05: g_dbus_unregister_interface (object.c:1391)
by 0x49D248: unregister_characteristic (gatt-client.c:1730)
by 0x4D0956: queue_remove_all (queue.c:351)
by 0x49D05D: unregister_service (gatt-client.c:1879)
by 0x4D0956: queue_remove_all (queue.c:351)
by 0x4D09B4: queue_destroy (queue.c:73)
by 0x4A10C6: btd_gatt_client_destroy (gatt-client.c:2079)
by 0x4A4087: device_free (device.c:640)
Address 0x8f56b00 is 0 bytes inside a block of size 32 free'd
at 0x4C2FD18: free (vg_replace_malloc.c:530)
by 0x49D4AF: notify_client_unref (gatt-client.c:1267)
by 0x49D520: remove_client (gatt-client.c:1711)
by 0x4D0956: queue_remove_all (queue.c:351)
by 0x49D205: unregister_characteristic (gatt-client.c:1727)
by 0x4D0956: queue_remove_all (queue.c:351)
by 0x49D05D: unregister_service (gatt-client.c:1879)
by 0x4D0956: queue_remove_all (queue.c:351)
by 0x4D09B4: queue_destroy (queue.c:73)
by 0x4A10C6: btd_gatt_client_destroy (gatt-client.c:2079)
by 0x4A4087: device_free (device.c:640)
by 0x4CA2B9: remove_interface (object.c:667) |
Luiz Augusto von Dentz |
8 years ago |
1 file, +2, -2 |
| 5e44548e |
client: Print properties changes of LEAdvertisingManager1
This prints properties changes of org.bluez.LEAdvertisingManager1
interface:
[bluetooth]# advertise on
[CHG] Controller B8:8A:60:D8:17:D7 AdvertisementInstances: 0x04
Advertising object registered
[bluetooth]# advertise off
[CHG] Controller B8:8A:60:D8:17:D7 AdvertisementInstances: 0x05 |
Luiz Augusto von Dentz |
8 years ago |
1 file, +36, -0 |
| 85cb255b |
advertising: Add AdvertisementInstances
This indicated to clients the number of advertisement instances left. |
Luiz Augusto von Dentz |
8 years ago |
2 files, +34, -3 |
| d4477e8f |
plugins: Fix reconnect_interval for cases of improper main.conf
There are two problems:
- When main.conf is not found, bluetoothd copies short the default set
of reconnecting intervals to reconnect_interval. It does not match
the reconnct_interval_len used as the array length.
So if a link of device is disconnected, bluetoothd is run over
reconnect_interval as time proceeds and will not time out as expected.
bluetooothd with --debug option outputed the following log in my box:
plugins/policy.c:reconnect_set_timer() attempt 1/7 1 seconds
plugins/policy.c:reconnect_timeout() Reconnecting profiles
plugins/policy.c:conn_fail_cb() status 4
plugins/policy.c:reconnect_set_timer() attempt 2/7 2 seconds
plugins/policy.c:reconnect_timeout() Reconnecting profiles
plugins/policy.c:conn_fail_cb() status 4
plugins/policy.c:reconnect_set_timer() attempt 3/7 0 seconds
plugins/policy.c:reconnect_timeout() Reconnecting profiles
plugins/policy.c:conn_fail_cb() status 4
plugins/policy.c:reconnect_set_timer() attempt 4/7 0 seconds
- When ReconnectIntervals in main.conf includes invalid characters,
reconnct_interval_len value is bigger than the default array length.
So if ReconnectAttempts value in main.conf is bigger than
reconnct_interval_len value and a link of device is disconnected,
bluetoothd is run over reconnect_interval as time proceeds and will
not time out as expected.
bluetooothd with --debug option outputed the following log in my box,
if ReconnectAttempts value was 28 and ReconnectIntervals was inproper:
...
plugins/policy.c:reconnect_set_timer() attempt 6/28 32 seconds
plugins/policy.c:reconnect_timeout() Reconnecting profiles
plugins/policy.c:conn_fail_cb() status 4
plugins/policy.c:reconnect_set_timer() attempt 7/28 64 seconds
plugins/policy.c:reconnect_timeout() Reconnecting profiles
plugins/policy.c:conn_fail_cb() status 4
plugins/policy.c:reconnect_set_timer() attempt 8/28 0 seconds
...
plugins/policy.c:reconnect_set_timer() attempt 25/28 1 seconds
plugins/policy.c:reconnect_timeout() Reconnecting profiles
plugins/policy.c:conn_fail_cb() status 4
plugins/policy.c:reconnect_set_timer() attempt 26/28 3 seconds
plugins/policy.c:reconnect_timeout() Reconnecting profiles
plugins/policy.c:conn_fail_cb() status 4
plugins/policy.c:reconnect_set_timer() attempt 27/28 110683472 seconds
This fix properly uses the default set of reconnecting intervals. |
ERAMOTO Masaya |
8 years ago |
1 file, +4, -3 |
| 23f7d0f1 |
monitor: Add basic decoding for Mesh Data
This adds basic decoding for Mesh Data packets such as:
> HCI Event: LE Meta Event (0x3e) plen 43
LE Advertising Report (0x02)
Num reports: 1
Event type: Non connectable undirected - ADV_NONCONN_IND (0x03)
Address type: Random (0x01)
Address: 29:3C:CE:85:C7:3D (Non-Resolvable)
Data length: 31
Mesh Data: 37cb3a2bdfca0783b10833cfbdc9e691b0d58b2dada00269181477c901
IV: 1
NID: 0x1b
RSSI: -28 dBm (0xe4) |
Luiz Augusto von Dentz |
8 years ago |
1 file, +13, -1 |
| ad0cdbc1 |
monitor: Add basic decoding for Mesh Provisioning
This adds basic decoding for Mesh Provisioning packets such as:
< HCI Command: LE Set Advertising Data (0x08|0x0008) plen 32
Length: 24
Mesh Provision: 024874cb0003dddd0000000000000000000000000000
Link ID: 0x024874cb
Transaction Number: 0
Provisioning Bearer Control (0x03)
Link Open (0x00)
Device UUID: 03dddd00000000000000000000000000
> HCI Event: LE Meta Event (0x3e) plen 20
LE Advertising Report (0x02)
Num reports: 1
Event type: Non connectable undirected - ADV_NONCONN_IND (0x03)
Address type: Random (0x01)
Address: 34:11:85:DC:41:39 (Non-Resolvable)
Data length: 8
Mesh Provision: 024874cb0007
Link ID: 0x024874cb
Transaction Number: 0
Provisioning Bearer Control (0x03)
Link Ack (0x01)
RSSI: -28 dBm (0xe4) |
Luiz Augusto von Dentz |
8 years ago |
1 file, +92, -1 |
| 0ba12681 |
monitor: Add basic decoding for Mesh Beacon
This adds basic decoding for Mesh Beacon packets such as:
> HCI Event: LE Meta Event (0x3e) plen 37
LE Advertising Report (0x02)
Num reports: 1
Event type: Non connectable undirected - ADV_NONCONN_IND (0x03)
Address type: Random (0x01)
Address: 36:47:34:FC:63:DA (Non-Resolvable)
Data length: 25
Mesh Beacon: 00dddd0000000000000000000000000000000000000000
Unprovisioned Device Beacon (0x00)
Device UUID: dddd00000000000000000000000000
OOB Information: 0x0000
URI Hash: 0x0000
RSSI: -28 dBm (0xe4)
< HCI Command: LE Set Advertising Data (0x08|0x0008) plen 32
Length: 24
Mesh Beacon: 0100c7005d732329eadf000000003e60e50797ef6d5c
Secure Network Beacon (0x01)
Flags: 0x01
Network Id: 00c7005d732329ea
IV Index: 0xdf000000
Authentication Value: 003e60e50797ef6d |
Luiz Augusto von Dentz |
8 years ago |
1 file, +83, -1 |
| 2b27ff86 |
monitor: Add decoding of GATT Mesh Services
This adds UUIDs of GATT Mesh Provisioning Service and Mesh Proxy
Service. |
Luiz Augusto von Dentz |
8 years ago |
1 file, +7, -1 |
| 092f75d8 |
monitor: Add AD/EIR types for mesh
Print out mesh type and payload:
> HCI Event: LE Meta Event (0x3e) plen 33
LE Advertising Report (0x02)
Num reports: 1
Event type: Non connectable undirected - ADV_NONCONN_IND (0x03)
Address type: Random (0x01)
Address: 29:D0:F2:61:17:B0 (Non-Resolvable)
Data length: 21
Mesh Data: 59a7ddee2e1f580463521b98c40c2a3b5086c6
RSSI: -72 dBm (0xb8) |
Luiz Augusto von Dentz |
8 years ago |
1 file, +15, -0 |
| 76255f73 |
hciattach: fix the delay timer for bcm43xx firmware download
From the log in .bcm43xx_load_firmware():
/* Wait 50ms to let the firmware placed in download mode */
nanosleep(&tm_mode, NULL);
But timespec tm_mode is real is 50us. Correct the delayed timer count. |
Andy Duan |
8 years ago |
1 file, +2, -2 |
| 3349c9cb |
gatt: Don't return to AcquireNotify until it has completed
Wait until bt_gatt_client_register_notify to reply since the client may
need to synchronize the IO. |
Luiz Augusto von Dentz |
8 years ago |
1 file, +17, -17 |
| e4dae82f |
core/advertisement: Add specifc error if max instance is reached
Returning generic error may confuse the application using
RegisterAdvertisement:
https://bugs.chromium.org/p/chromium/issues/detail?id=741056#c4 |
Luiz Augusto von Dentz |
8 years ago |
2 files, +21, -10 |
| 46f47fc8 |
Release 5.46 |
Marcel Holtmann |
8 years ago |
2 files, +12, -1 |
| b8887cf0 |
autopair: Use unsigned int for passcode string |
Marcel Holtmann |
8 years ago |
1 file, +2, -2 |
| 3a140aa3 |
sap: Remove support for STE U8500 platform
This code didn't received updates for few years. It is not installed
(build only) since BlueZ 5 release. And STE U8500 platform is long
dead. |
Szymon Janc |
8 years ago |
2 files, +0, -758 |
| 1c358b92 |
client: Fix error when AcquireNotify fails
It should print "Failed to AcquireNotify". |
Luiz Augusto von Dentz |
8 years ago |
1 file, +1, -1 |
| 7b027896 |
audio: Add missing fall through declaration |
Luiz Augusto von Dentz |
8 years ago |
1 file, +1, -0 |
| 0446d4a9 |
sap: Add missing fall through declaration |
Marcel Holtmann |
8 years ago |
1 file, +2, -3 |
| 9a35bd6d |
audio: Add missing break statements |
Marcel Holtmann |
8 years ago |
1 file, +2, -0 |
| b8653aa7 |
audio: Add missing fall through declaration |
Marcel Holtmann |
8 years ago |
1 file, +1, -0 |
| f55b3a7e |
network: Add missing fall through declaration |
Marcel Holtmann |
8 years ago |
2 files, +2, -6 |
| f9923bd2 |
shared: Add missing fall through declaration |
Marcel Holtmann |
8 years ago |
1 file, +3, -4 |