Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp4235067pxb; Mon, 30 Aug 2021 23:32:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwM9fBjHEIFOhdSAT7zntaik8d0HfkbTf0tsOyCapDgNoRMJQBjLiYAsV6LpTiwgsMr5hX1 X-Received: by 2002:a17:906:3a57:: with SMTP id a23mr29510547ejf.469.1630391552561; Mon, 30 Aug 2021 23:32:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630391552; cv=none; d=google.com; s=arc-20160816; b=F3iu8Jnpv89ICoYxXLxlqvaZ4PiWHtdVZpbxAsg6/kj+wEeL5Ni2iD0TCRjYAvovbL xrFpfhNEL+c71UhEVvwnLUKwAca5ObKceI5PN+hVmbJ56KcJLaFTMlo9X6224zAV+Bcp KNp80mOt00NBgPsBKrRfXwXtJs902TwpBgMiZwefFeG1xxnj69DRNdRjQ0lrCshwF529 o/l/7rj3kRIvp64kgKaGFdz9LYuoTMUVa3SU3nS3isoFlyeS53J2yoW4RFI3wzT37ylx ez/6B7hD7eg1VsX/pJmL+fP4/WyJpd6euVrrPj+QclHwTN4gSNTOyfWMeX3USZD+Vj47 EVpg== 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=yA7Lgqz7j1tIlllXk3N2YvxDqcytsnPUv9JEZMC4Auo=; b=uDghAn9yXlL+uAsGg4Zrx01YuRf+fk0Ld38OdDhMKNwAUHC4JI3mLGKr926qfFD2so 1+/Sv2nQPnEH3d/hVM/3DrOWxAwHRKgRgpygh9RcFpQ4dOLXbxXKHqzOKODAsRpfIpEA YJ/038dXtkJnDTX7mddAg5MEuJCXE19x+jKb1f1gG74R+GnXC1YH3uDBhuNfEWBEez1Z AWWOXMW6vLwSfsUoGD/6wmZCx6D96Mq/wZFXfzzI02F4OXl6ieTlfehJjp3Chj1zTTSD 3qDeh+2WwD6UwlDse5ahn2FU6f+Vcxx1K0eFDgM2BSEicFBMA4OWWOAbhKbJvWK+NRjv HLug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="Mt/p3pwg"; 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 8si15685430ejx.341.2021.08.30.23.31.31; Mon, 30 Aug 2021 23:32:32 -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="Mt/p3pwg"; 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 S232836AbhHaG37 (ORCPT + 99 others); Tue, 31 Aug 2021 02:29:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232796AbhHaG36 (ORCPT ); Tue, 31 Aug 2021 02:29:58 -0400 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A69EDC061575 for ; Mon, 30 Aug 2021 23:29:03 -0700 (PDT) Received: by mail-lf1-x133.google.com with SMTP id p38so36381413lfa.0 for ; Mon, 30 Aug 2021 23:29:03 -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=yA7Lgqz7j1tIlllXk3N2YvxDqcytsnPUv9JEZMC4Auo=; b=Mt/p3pwg24kpBJvCngwTGURs6ueVEgtOy2tX/PzWKMU5FmOMUeUNJEs4aaJmn548SV SG248gZ76QocrCq4wndOyDNznXI4K8ciqyuU3RdoELD/H//HZa3CFk5KU9l3Eu+HOpr3 MhfPRvgqob4OdkdnL7ITpmHepGJq2U6lgvLCs32wZY2m0w9mcDIJXSw32bmfnLmaet8P k1nWBsKarr4S99HAW1ov3jLzoh9u9fxSTBCmy7S7j3rVfMiOK8TlXZGek9za2pegIQNT aJIo15v3ErBloa7npwmadvJYUnwLicNRZWXGcc0nH2zeTlxiXrxY/iqQp6fDMk9+5Ijx YV4w== 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=yA7Lgqz7j1tIlllXk3N2YvxDqcytsnPUv9JEZMC4Auo=; b=r2X+LKL6I6namg/2CFEGPd7nLrKCGcvD/NrHSjHKLjc+hNLXTqPttA0KzZ993ij+t9 XPPh8bfEkBMI3kdOXqZBnaFNkAnzG79BWyaa+hV2Y2lNYChX114mkQxZNPtPO1FyUVKa a5UTZYoupibSH+4hyG/oqiDW1mpB/cdnOz6OGhSIZTb1Or9/xxurcr4Eea7dZGpsfbc3 qkQeEhkbkoVl4hKEaDmRnUSmp7BNEuTCaCpQzXdaDVcKdzW2+7EivU5J9aJKb2yFAyJ9 anZklfHWWeNOVOL9hKUQGNwvVrQlPszxiGcQKzJDKVT83843yuu/6xEWntLcHlpjvQN/ iRtQ== X-Gm-Message-State: AOAM531JpfXnqfTwRGOSC+Mny/HpWW0xz+Z/qcwFVy62JyegcZ1voIkA Ho18iHu7MFf9BK7lenVnIFqqgzKkO3t4iB3mYYPVetQ0FkY= X-Received: by 2002:a05:6512:2356:: with SMTP id p22mr13752088lfu.67.1630391341623; Mon, 30 Aug 2021 23:29:01 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Raul Piper Date: Tue, 31 Aug 2021 11:58:50 +0530 Message-ID: Subject: Re: Device doesnt show up on Ble Scanner - gatt-service example in tools folder as per Documentation(doc) To: "open list:BLUETOOTH SUBSYSTEM" Cc: kernelnewbies Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Any inputs on this? 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