<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="http://192.168.180.206:8001/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="http://192.168.180.206:8001/feed.php">
        <title>wiki.niziak.spox.org - linux:bluetooth</title>
        <description></description>
        <link>http://192.168.180.206:8001/</link>
        <image rdf:resource="http://192.168.180.206:8001/_media/wiki:dokuwiki.svg" />
       <dc:date>2026-05-15T08:28:19+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="http://192.168.180.206:8001/linux:bluetooth:advertisement?rev=1625654413&amp;do=diff"/>
                <rdf:li rdf:resource="http://192.168.180.206:8001/linux:bluetooth:bcm20702a1?rev=1535102909&amp;do=diff"/>
                <rdf:li rdf:resource="http://192.168.180.206:8001/linux:bluetooth:ble_console?rev=1750852544&amp;do=diff"/>
                <rdf:li rdf:resource="http://192.168.180.206:8001/linux:bluetooth:bluez?rev=1668073799&amp;do=diff"/>
                <rdf:li rdf:resource="http://192.168.180.206:8001/linux:bluetooth:gatt_caching?rev=1670842799&amp;do=diff"/>
                <rdf:li rdf:resource="http://192.168.180.206:8001/linux:bluetooth:kernel?rev=1537348702&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="http://192.168.180.206:8001/_media/wiki:dokuwiki.svg">
        <title>wiki.niziak.spox.org</title>
        <link>http://192.168.180.206:8001/</link>
        <url>http://192.168.180.206:8001/_media/wiki:dokuwiki.svg</url>
    </image>
    <item rdf:about="http://192.168.180.206:8001/linux:bluetooth:advertisement?rev=1625654413&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-07-07T10:40:13+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Advertisement</title>
        <link>http://192.168.180.206:8001/linux:bluetooth:advertisement?rev=1625654413&amp;do=diff</link>
        <description>Advertisement

BLE has 40 channels (wider spacing 2MHz than classic BT)
Channels 37, 38, 39 are designated to be advertisement channels. Those channels are located at begining, middle at end of radio band. 
Location was chosen to do not interact with main 3 WiFi channels (1,6,11)</description>
    </item>
    <item rdf:about="http://192.168.180.206:8001/linux:bluetooth:bcm20702a1?rev=1535102909&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2018-08-24T09:28:29+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>BCM20702A0 based USB dongles</title>
        <link>http://192.168.180.206:8001/linux:bluetooth:bcm20702a1?rev=1535102909&amp;do=diff</link>
        <description>BCM20702A0 based USB dongles

	*  ASUSTek Computer, Inc. Broadcom BCM20702A0 Bluetooth
	*  ASUS Bt-400 0b05:17cd

Firmware


[  489.427780] usb 3-7: new full-speed USB device number 9 using xhci_hcd
[  489.450343] usb 3-7: New USB device found, idVendor=0b05, idProduct=17cb, bcdDevice= 1.12
[  489.450345] usb 3-7: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  489.450346] usb 3-7: Product: BCM20702A0
[  489.450347] usb 3-7: Manufacturer: Broadcom Corp
[  489.450348] usb 3-7: SerialN…</description>
    </item>
    <item rdf:about="http://192.168.180.206:8001/linux:bluetooth:ble_console?rev=1750852544&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-06-25T11:55:44+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>ble console</title>
        <link>http://192.168.180.206:8001/linux:bluetooth:ble_console?rev=1750852544&amp;do=diff</link>
        <description>ble console

&lt;https://github.com/nrfconnect/sdk-nrf/blob/main/scripts/shell/ble_console/ble-console.desktop&gt;</description>
    </item>
    <item rdf:about="http://192.168.180.206:8001/linux:bluetooth:bluez?rev=1668073799&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-11-10T09:49:59+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>bluez</title>
        <link>http://192.168.180.206:8001/linux:bluetooth:bluez?rev=1668073799&amp;do=diff</link>
        <description>bluez

Debug


MGMT_DEBUG=1 /usr/local/libexec/bluetooth/bluetoothd -n -d -f /etc/bluetooth/main.conf


Issues

Not possible to enable continuous BLE discovery: BLE discovery works for 10 seconds, then it waits 5 second and start again.


#define IDLE_DISCOV_TIMEOUT (5)
...
/*
 * In case the restart of the discovery failed, then just trigger
 * it for the next idle timeout again.
 */
trigger_start_discovery(adapter, IDLE_DISCOV_TIMEOUT * 2);

...
if (adapter-&gt;no_scan_restart_delay)
	trigger_star…</description>
    </item>
    <item rdf:about="http://192.168.180.206:8001/linux:bluetooth:gatt_caching?rev=1670842799&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-12-12T10:59:59+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>GATT Caching</title>
        <link>http://192.168.180.206:8001/linux:bluetooth:gatt_caching?rev=1670842799&amp;do=diff</link>
        <description>GATT Caching

First read:

	* Attribute Caching in BLE: Advantages and Pitfalls

Some references:

	*  bluetoothctl remove XX:XX:XX:XX:XX:XX does not remove cache file #191
	*  Service changed indication
	*  Service Change on BLE GATT Table
	*  &lt;https://stackoverflow.com/questions/43446918/bluez-showing-old-cached-data-on-dbus&gt;

	*  ESP-IDF:
		*  How to Indicate BLE &#039;Service Changed&#039; (0x2A05) #451
		*  How to Indicate BLE &#039;Service Changed&#039; (0x2A05) #1777 
			*  service_change_demo.zip

		*  Gene…</description>
    </item>
    <item rdf:about="http://192.168.180.206:8001/linux:bluetooth:kernel?rev=1537348702&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2018-09-19T09:18:22+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Enable pr_debug</title>
        <link>http://192.168.180.206:8001/linux:bluetooth:kernel?rev=1537348702&amp;do=diff</link>
        <description>mount -t debugfs none /sys/kernel/debug



echo &quot;file net/bluetooth/* +pfl&quot; &gt; /sys/kernel/debug/dynamic_debug/control


Enable pr_debug


CFLAGS += -DDEBUG=1



cp /lib/modules/$(uname -r)/build/.config .
cp /lib/modules/$(uname -r)/build/Module.symvers .

make oldconfig

#make EXTRAVERSION=-my modules_prepare
make modules_prepare
make M=net/bluetooth

sudo cp net/bluetooth/bluetooth.ko /lib/modules/`uname -r`/updates

depmod -a
sudo rmmod btusb btrtl btintel btbcm bnep btusb bluetooth

modinfo …</description>
    </item>
</rdf:RDF>
