Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp4306201pxb; Tue, 31 Aug 2021 01:42:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz5whT9o9PXne7pIp2AsuMAr1RduJTxZodQcBwQ3X9H6HTx0xF3lnfXsiqy6SffrwiZBu65 X-Received: by 2002:a6b:8e50:: with SMTP id q77mr21178938iod.96.1630399343869; Tue, 31 Aug 2021 01:42:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630399343; cv=none; d=google.com; s=arc-20160816; b=FRfz2yncb9v9FjbYTdGloN9bQwqk6r0nPfA5nI2juXYTWEqkoezAKVKvM03qCn0fgD Uawmz0f5upOxbhoUsp+v1SjjWlAGD28qIz2Nvcv0mDuo4acmZJu/u12MtUzcME3hnwqp 9zRkXs7MqgSRloo1zN5UP2gskzZy6X0hrvchSZhAGe9MrPiKeWDxbbW0RQOaWr7QYqKx klefMQf/KWUs5kX7oAE2e4Vh4Ov3khADdVOl2lpmMc0otl2Ra8iLMlSZWrZGCvQiEcU4 jiixrb8U/noLyoAeepmg4+FfP/e5DOmCU8dhckmSr4TI+JkNAj73glsEkyevLRmXycnL k0SA== 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=fnoI6CG9LP4qkdU1r3LZclsflgNdl+r3ubqdleqrDpA=; b=uFpam6KsGwXhOMRDzdVb/qu4BdS3vdIocNLC/CFmaZWukMP6JSuLDtLV2Zkhr8D0OX xkkbGme8Qe0iTvl0X15q35W2lW1gU7r2CIv+wvp7W4xCX66uNaDhiRp9IPc1GhQC0Qut wjphnQKre7Ni4H4lZFcGCLT+e5oJikphBXS8qyZJG5rY5tcBGk42q/19iaOYJf4s/jEN GgfXBfnlXpWSuO22A+gD+CHNXhVWUPhSDNuRgajb16pFmac1QqR4c9dd55OqxD+Xd2f0 diOExT67YRDTawcDjOxxIenBfokIpSPUsfKyTdNVzFpBcThHiPFBWjOIspIeJbZUDqia xpnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hZhENILg; 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 c7si18179700ilu.60.2021.08.31.01.42.03; Tue, 31 Aug 2021 01:42:23 -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=20161025 header.b=hZhENILg; 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 S240378AbhHaIlc (ORCPT + 99 others); Tue, 31 Aug 2021 04:41:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240326AbhHaIlb (ORCPT ); Tue, 31 Aug 2021 04:41:31 -0400 Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9ABF0C061575 for ; Tue, 31 Aug 2021 01:40:36 -0700 (PDT) Received: by mail-lj1-x229.google.com with SMTP id f2so30457219ljn.1 for ; Tue, 31 Aug 2021 01:40:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=fnoI6CG9LP4qkdU1r3LZclsflgNdl+r3ubqdleqrDpA=; b=hZhENILgB7B7CxGTuurHNSZ9xY7PN20ReVZ1bFVIW9lItww8Ml2tl9dmXlg5BBL8CM EnqmbSwGYT5lXxW+mTOBLCapr+kGa8SvjNsRszdEWdvmAyKIOT76hVCrihf1gWqEL9Bw B6vV5evQf6+6x8o9vCTKszBUe+ZLz8gKaRWh4IQB/0X+WXerBFzYxMH7BhSSB1osDGDu f8/kHfS5gl5kQTMynSY9oPnWrjF+6hId6HXf8edj8+q93ST53xYAF2829Ho/Tc4RRhiy 6MZpDCFL5MwTCto4NVPk3f5S2Bnq3L8gnaCQ0exIiL1rXqqAQRrNwEgWING3F2F6NmHY tQlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=fnoI6CG9LP4qkdU1r3LZclsflgNdl+r3ubqdleqrDpA=; b=LeaT2PaA+46ShqABOm6VEtkXeKx0jgitLASVxvQSoejeU1d6brUzFMwHNUaxYdd2TC /Uiq7/Se83pmg8A6nxEOWrnK1eoJrKt82wUAvLGnrIcthL1Re/rUmjAkCwrsr5/jriID WRGbGPrO/KKqXtrfCdmlrm9LAzzL08s+DcnQ15wczD4FQixRlGQRLoSc92mffd50zYuD vbfy2cI0uyS104WZMSmBWfhJnM7IBCxfgGtTe/XdaT0sub6OnflXNbsKIKezGBBrW6pz jSOXcc/PKusBCpuMOTPWRDPpsfsQ2HtwRV4l4FUIzDcBR+jRLcX2k01zTkqEITj0NvSW 7ddQ== X-Gm-Message-State: AOAM533lHggUfxMX84HxfAlP5Mw4IC/e2gMphqKvJQezf2sdm+ZTCrXd 3ML38QUwGLs1c0DNccnJV0X+wmPPV6BTGZ6afVvIEPVpp8jCIA== X-Received: by 2002:a2e:9247:: with SMTP id v7mr24330435ljg.97.1630399234674; Tue, 31 Aug 2021 01:40:34 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Raul Piper Date: Tue, 31 Aug 2021 14:10:23 +0530 Message-ID: Subject: Re: Device doesnt show up on Ble Scanner - gatt-service example in tools folder as per Documentation(doc) To: Luiz Augusto von Dentz Cc: "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 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