Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2681000pxb; Sat, 25 Sep 2021 14:35:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxLHjlUwgm9KSk0HmsFptsikw9p2Nqoam02eOalapK6TDxoDjGcrfBRZFkX8MXi6qKYKNfO X-Received: by 2002:a5d:80d7:: with SMTP id h23mr14079181ior.68.1632605719633; Sat, 25 Sep 2021 14:35:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632605719; cv=none; d=google.com; s=arc-20160816; b=Go3xgDW18xAZAu25kPow1hy8ghBx9tjYCTltzNfl00C2B6N1Omr1K6FBz50hoTPI7B RRgQEb1ewoiexc7hsYqqk5R37nTgFZ05t73obaxbvLpgEpKFP21RlYNYxmvFRbj+Bqaz Jbi5hFVSPPnOfJcTeNyO7ixpMee0UdTwIQPwIL2gnO0zQqgYPlHj04vBRD+FIrMntzGW ZPRB41h5sVpiNJhMIqXnhLgaMQnrnv5EIxneQ6yB/B7xP8f+NGVmh1Jr8w06yxh/U4DJ 68emZgjB92LMCnZe5oLyhyyDhdlxVX0y9dxM0TKdPOx2g+exXZXYgn6mvCQ8FwbIbiW6 YF9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=porFZzdm8JVmmHzZZ5ZKPQUFfxSegDPiNcGaBMKMqUg=; b=BVm1gjTq4QRxYzOOKRYhkr77t8qN1H5PKabcOkI4BY4OYGBbHDqtB+/sy8Q8N0iS5o meUOlIFBcrg++z5YNM35Yj3gD529WiB+gO5JGyndjDw+nnZsCuB3AYIERxL7hBvYwsuZ 5ftWl0GPHoxauJlZxfbB4/d/co15KzSseit5/AFiaHQMYCDUCC1f8QR5rJEFksZhGVUB OVBnCl0g/T7/3ImyRjTCP2km3UaP14sbqu88ACWUQn5UMPh4aPbNoLCOY6Lo840JBXjK RME6CtiyQqvArOKAisLLVpt0dGdYp7UTG3Hrz7jhMF0VL4JcnPVDtJDZyQkZ1ZXavwOM 0B2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=R3ZrKq9E; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z7si21871606ilu.143.2021.09.25.14.34.45; Sat, 25 Sep 2021 14:35:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=R3ZrKq9E; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229993AbhIYVfK (ORCPT + 99 others); Sat, 25 Sep 2021 17:35:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229977AbhIYVfJ (ORCPT ); Sat, 25 Sep 2021 17:35:09 -0400 Received: from mail-vk1-xa2b.google.com (mail-vk1-xa2b.google.com [IPv6:2607:f8b0:4864:20::a2b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83115C061570 for ; Sat, 25 Sep 2021 14:33:34 -0700 (PDT) Received: by mail-vk1-xa2b.google.com with SMTP id t200so5450151vkt.0 for ; Sat, 25 Sep 2021 14:33:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=porFZzdm8JVmmHzZZ5ZKPQUFfxSegDPiNcGaBMKMqUg=; b=R3ZrKq9ExOsgiv6PC2HIEavzgxEczoGMDfpsnwa4wIa+/q7h1T6XOQy89mwUImwmxg GUcGaja7V5xKheFVFkX/Y/vCDyJEMPAvZBD7Q/mC5nb0uEM9ngWB2JqZUAFRoEFGJf6x 0MJ12jtyvN/n044pTC3c4ORLFMYGjYbU9IOWQlnZFCcAGbjlo5vPKHRWAq1CL9XSt2O1 H3MRgiczqUUoD/xSxhDlpLpmZ1rvUCvYE4w5pPTBWel7KTFwN7ZccY0cmT9jdEd5YBZT ushhUkAH37juIlKTEcgvucB2H4KfcMtPI+Yaih90a/yc+WMh90AmSur6XPBKOD7x+ntC Nc2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=porFZzdm8JVmmHzZZ5ZKPQUFfxSegDPiNcGaBMKMqUg=; b=OT3OlUO3W0chI7JokXNpYG3ekjrGmB2fXEVehM5TGRFUTm7LeCkui8E/IHAq2mvo/0 lYTBkRlGXjPlfwQiBDflgE5cmqeU2WJ5VVP+5Sw9d32C3kEZmjP7r1wF4ZLND+aKivkJ GKSarRrF6ZbEDgoXK8RZdbvzQIz8PgW+oQtSGyqX3L73ZCTMmK4i097Z0duyEtSylc9+ 7vKQzhow+hmy9DXLEQhXQsIOPfRY6Qm1ytT1IYD6x0vmCteWrP/82aznGgaarAYmJ/Dj BS1Xrk8Cm/zs/5RoTCUixVaQLjtymZIVwUQkUNLfUHzVeObSy1IeF7/aGDNaBH3/OFvo nbKg== X-Gm-Message-State: AOAM531pSh2TjYL0eSSoPx8zxi3zKPMFTb5EtMvv+MeR6psDEQL8CSXF iwlVs2YgyO3WuyRPnpi7rnVQMwFF7Ku1LV6h6NlydCf0 X-Received: by 2002:a1f:2952:: with SMTP id p79mr12753142vkp.11.1632605613176; Sat, 25 Sep 2021 14:33:33 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: jim.cromie@gmail.com Date: Sat, 25 Sep 2021 15:33:06 -0600 Message-ID: Subject: Re: Device doesnt show up on Ble Scanner - gatt-service example in tools folder as per Documentation(doc) To: Raul Piper Cc: Luiz Augusto von Dentz , "open list:BLUETOOTH SUBSYSTEM" , kernelnewbies Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org On Tue, Aug 31, 2021 at 2:41 AM Raul Piper wrote: > > On Tue, Aug 31, 2021 at 12:08 PM Luiz Augusto von Dentz > wrote: > > > > Hi Raul, > > > Hello Luiz, > > On Mon, Aug 30, 2021 at 11:32 PM Raul Piper wrote: > > > > > > Any inputs on this? > > > > Did you remember to advertise? I mean those only services but it > > doesn't necessarily advertise which is something perhaps could be > > updated on those samples so they become visible on the scanners. > > > Isnt ./gatt-service supposed to advertise as well? > I cross built and rant ./advtest with -h and it gave not much information : > ./advtest --h > advtest - Advertising testing > Usage: > advtest [options] > > and when I ran > ./advtest > it gave : At least 2 controllers are required > what other input does it take ? hci0?hci1? > > when i try to run ./advtest -hci0 > it gave : Invalid command line parameters > > i tried to find bt controllers on my board and it gave : > > hcitool dev > Devices : > > It gave nothing. > > Any idea how to proceed ?I suspect I need to enable the hci controller > or something? > But it is strange that ./gatt-service did not throw any error and > registered the services without any error?shouldn't these examples > check for the ble controller first before proceeding further? > > > > > On Sun, Aug 29, 2021 at 11:42 PM Raul Piper wrote: > > > > > > > > Hello, > > > > I tried cross compiling the bluez and ported it to my linux platform.I > > > > think i have done it correctly as I am able to launch the gatt-service > > > > example successfully but i am not able to view it on the Smartphone > > > > app - blescanner or light blue. > > > > > > > > Below are the logs : > > > > =============================================== > > > > ./gatt-service > > > > gatt-service unique name: :1.18 > > > > Registered service: /service1 > > > > Registered service: /service2 > > > > Registered service: /service3 > > > > Get Primary: True > > > > Get UUID: 00001802-0000-1000-8000-00805f9b34fb > > > > Exist Includes: 00001802-0000-1000-8000-00805f9b34fb > > > > Get Includes: 00001802-0000-1000-8000-00805f9b34fb > > > > Includes path: /service3 > > > > Get Includes: /service2 > > > > Characteristic(00002a06-0000-1000-8000-00805f9b34fb): Get("Value") > > > > Descriptor(8260c653-1a54-426b-9e36-e84c238bc669): Get("Value") > > > > Get Primary: True > > > > Get UUID: A00C > > > > Exist Includes: A00C > > > > Characteristic(00002c07-0000-1000-8000-00805f9b34fb): Get("Value") > > > > Descriptor(FFFF): Get("Value") > > > > Get Primary: True > > > > Get UUID: A00D > > > > Exist Includes: A00D > > > > Characteristic(00002b06-0000-1000-8000-00805f9b34fb): Get("Value") > > > > Descriptor(0260c653-1a54-426b-9e36-e84c238bc669): Get("Value") > > > > > > > > > > > > > > > > I also tried to run the python example inside test/example-gatt-server > > > > but again I am not able to view the device name. > > > > > > > > Below are the logs : > > > > ======================================= > > > > python3 example-gatt-server > > > > example-gatt-server:395: PyGIDeprecationWarning: GObject.timeout_add > > > > is deprecated; use GLib.timeout_add instead > > > > GObject.timeout_add(5000, self.drain_battery) > > > > example-gatt-server:652: PyGIDeprecationWarning: GObject.MainLoop is > > > > deprecated; use GLib.MainLoop instead > > > > mainloop = GObject.MainLoop() > > > > Registering GATT application... > > > > GetManagedObjects > > > > GATT application registered > > > > > > > > I even opened the btmon on a different tab but still I am not able to > > > > see anything on that. > > > > Is there any other application we have to run? > > > > Has any one ran it successfully and able to view/connect and see all > > > > the 3 services it is advertising. > > > > > > > > Please advise / ask for any further information , I will provide. > > > > > > > > Thanks in advance ! > > > > > > > > Regards, > > > > R > > > > > > > > -- > > Luiz Augusto von Dentz > any progress ? this thread looked promising...