Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp801246rwb; Fri, 18 Nov 2022 08:24:02 -0800 (PST) X-Google-Smtp-Source: AA0mqf41yBxGFxozRiJhq0zEmRGCn70Dv/KWwy97ctfogmdWe5V+My3R8Qpy1mMwiQv8Jvbv+T9c X-Received: by 2002:a17:902:848d:b0:17f:8097:83c1 with SMTP id c13-20020a170902848d00b0017f809783c1mr314130plo.10.1668788642314; Fri, 18 Nov 2022 08:24:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668788642; cv=none; d=google.com; s=arc-20160816; b=H/G3B/FpK2vwK5v9aI7isPy1xMDUdLDNXDZq8WaJMO2/Fgkb4+csejbokXSgr4+aF9 95YgbUQZ3gwSd4vVLlgN2YYQTolm3KDWo4oMZiaNtxqN4lR7lXWLjrXF1NI0Ego1m4ws TYM5j9XmJqNqhFuNEABE71PWnr52CS1ki3yP3RA52d/491FP/PsEnoa3xCZvZXevYt9D 0nnvfGAz6qRsmIEUuNtljfh18vkzWIkXoB3LgUQjemhWFSY0t/lOzT/g5sVnmbKpDO5n k0WXcXGbwlWbBiXpORCVrPxCdIq90iKzH+HbbMdpCaBbw/WHYM4dj11fmlpno1Tux/pk z+PQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:subject:from:to :content-language:user-agent:mime-version:date:message-id; bh=FSvJP+y20uRteVEOCGrSXU6Rh1qLLDKZblhFn+IVA0w=; b=09nGdmiB/EUckU2NU8QPSFTwWKnbjMLURoJeAprqDXhV48l52cpYkt21HukjmvRb4V iWULxdERqCWJ4lv/y2kWUBpVGEwG2bdnbLxjsWc/f5TB6np2DV9w78t0tVa4s/ERMQgV bGbhPguNOjnys/EaZSnqgWDYdr2JB4yBWbuSkxkOyHt8Hyje63lK86HaMiM/Lkbp5d2o v6eFZwnfYwrxGFHYaWs2xukoGjVbhtrowOdziWi33cwuVVPScdyCNAphrbhJcTiEhAHW szmY5U2c/CwIUXH74/hjAQIhcoDOxbPXd5DQo69+PKO7GMKEHDjr3xWnkevkNm7BrWmh 5B1g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w125-20020a636283000000b0042bc6e8d3f7si4285240pgb.642.2022.11.18.08.23.28; Fri, 18 Nov 2022 08:24:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240866AbiKRQOe (ORCPT + 99 others); Fri, 18 Nov 2022 11:14:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235220AbiKRQOd (ORCPT ); Fri, 18 Nov 2022 11:14:33 -0500 X-Greylist: delayed 261 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Fri, 18 Nov 2022 08:14:30 PST Received: from mailgw1.uni-kl.de (mailgw1.uni-kl.de [IPv6:2001:638:208:120::220]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44491922E6 for ; Fri, 18 Nov 2022 08:14:29 -0800 (PST) Received: from [192.168.2.118] (dslb-088-068-027-038.088.068.pools.vodafone-ip.de [88.68.27.38]) (authenticated bits=0) by mailgw1.uni-kl.de (8.14.4/8.14.4/Debian-8+deb8u2) with ESMTP id 2AIG9xTU065171 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 18 Nov 2022 17:10:03 +0100 Message-ID: Date: Fri, 18 Nov 2022 17:09:59 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Content-Language: de-DE, en-GB To: linux-bluetooth@vger.kernel.org From: Marvin Sinnwell Subject: LE Advertisement on data channels/ btvirt Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Score: (0.001) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hello everyone, TL;DR: Seeking advice on advertising on arbitrary channels + usage of btvirt specifically function "send_adv_pkt". I am currently working on my bachelor thesis and have the following problem with I would like to request some advice: I want to test several algorithms that try to improve the time it takes to find an advertisement packet of another device. For this I not only want to change the method of advertising, on channels 37-39 in sequential order, to something else, but also send advertisement packets on other channels. My main difficulty currently is composed of trying to find out where the actual advertisement packets are sent. Currently my best guess is, that is is controlled by the firmware of my raspberry pi that I am using (specific model below), because I could not find anything within the bluez stack. Maybe one of you has more knowledge on where I have to search. What I was able to find was the btvirt tool, which could help with my problem. There I found in the file "le.c" in function "adv_timeout_callback" another function called "send_adv_pkt". Sadly while trying out btvirt and clever usage of some print statements I could not see the function be executed. Maybe someone can give me some advice on that, because this function should do exactly what I am looking for. It could be that I was just using the tool incorrectly in which case it would be great if somebody could tell me how to use it. My methodology was: 1. "sudo ./btvirt -L -l2 -d" to create 2 new local LE controller. 2. Start advertisement using hcitool "sudo hcitool -i hci2 cmd 0x08 0x000a 01". The advertisement is correct and the other local controller can connect to the first one. My current equipment is: Device:                Raspberry Pi 3 Model B+ Kernel + OS:       Linux raspberrypi 5.15.61-v7+ #1579 SMP Fri Aug 26 11:10:59 BST 2022 armv7l GNU/Linux Bluez version:     5.65 Kind regards Marvin Sinnwell