Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp3038188pxb; Sun, 29 Aug 2021 11:14:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxpnCV9bqATeLI+WS8pYyvwfLIYZEwYLmrnyOvceYX5ftalWEBJsENEbbA5ZZCsg3tIUwoy X-Received: by 2002:a17:906:2441:: with SMTP id a1mr21458855ejb.550.1630260894815; Sun, 29 Aug 2021 11:14:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630260894; cv=none; d=google.com; s=arc-20160816; b=vUQHHCyu0D9LuP/zlFYM3qBkPDn+m72hjwyi5uadOni1v8FDoWSC3/c+9TiX1q1cG0 AulHlY7DZcNfNss4uCEJ7chSGEG5zCx4dHNN8tgMGA06RtiY7XGS7EXdckZXtHhQSrAy X50zFNDilt8GA/YOVtNLMbsyazFI0hO9ImGoYckxQ4mIw/8wxU18Ug72sBa3WRCcvdMS t+P85AtOGcOgtaccj0KSBv12m0mIWT20ODsdAaVAzshazBVUTRbIjXoxmzeeS0kFAOUu bcGjUV440avSaIiv5WqNW0qlzLTHAMO1OfG8Tw4Rscr7i/SmBh4++lxidV1Yu+Z2umk9 iSWA== 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:mime-version :dkim-signature; bh=QeKlsgXj/fkw5z0goXRJNFqeU1/EXJaYLZmB7rAdZBg=; b=MrstzYX2hST8PdyIxRAu2jTvrcEFDyuGm1n7vrBbV65TQBFrS8bnTA3qIhh9p1Co0g GtIvcsMZqnexn6+yg5G+G8ivVk0AOL3h9E2ig30CDjHzJw3h6ufHveAHjJC+NcXMYxO1 B7/hw5QCsM4SbhF7fGp0p1I/ji42+hZbEtJP+lKZBiGH5JlGx8BYfTjwF9O7LdI7NdkY RuVHib1R6BXjjh2Qw7yScaXgFxjQWwaOXrjuTjoqSmAyT/6qc1vnu/MHzcNLnhuQvacm SWgEpOGbjCCsml0IRheB5jIKFn7Sg/PHTb4032XrcH43ZGT8L5bB5RU8aEYwSaejuJXC ysAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GQ2T9NsW; 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 g22si11807730edr.172.2021.08.29.11.14.04; Sun, 29 Aug 2021 11:14:54 -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=GQ2T9NsW; 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 S235770AbhH2SNR (ORCPT + 99 others); Sun, 29 Aug 2021 14:13:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230010AbhH2SNR (ORCPT ); Sun, 29 Aug 2021 14:13:17 -0400 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4B3CC061575 for ; Sun, 29 Aug 2021 11:12:24 -0700 (PDT) Received: by mail-lf1-x131.google.com with SMTP id y34so26425335lfa.8 for ; Sun, 29 Aug 2021 11:12:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=QeKlsgXj/fkw5z0goXRJNFqeU1/EXJaYLZmB7rAdZBg=; b=GQ2T9NsWxKC71mL8vVfu7W2wC04MouZ9fQJavzDB7ulpmJqye/gE024agIODAYQNrr uUBmClVKHxGq8DFjxTlh/Gok6mUzTZRhYMaubjSRmtJ2aRWOHaKakJ8eyD0WRBP6IJOU uBJN54RumatRE9eLxhb++ZJmpy2JE0LaNuLdmulV69cv1lywRZWnpbA/dWVpE4P9E2bn pLJLWm0XVLEsODbj6LVYerHPKAX8Xbsf6WcnyArItKtIbelCv7FS6MIr6/HgSV3jhjAi a2PG4cX9gWHeqKKl+SJ6dm+tIBGo+bkOxfX0jqgQFITpthIFLRCJRD5f3UK6vC5M09T0 Rk6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=QeKlsgXj/fkw5z0goXRJNFqeU1/EXJaYLZmB7rAdZBg=; b=lR/NZZyD0Hbiwd5H9FaKXClWJFbhDtsXPgQvncXVQFXY89JRsRsUYxHU9RkOIy2Of1 eaakmUJBW6m59cKJpFBNNhIRO+Gr1CM5LJ1+KlJo64nHGI149ElvQlbsL2bHP6Am/6ue borXiuQE8zQ15FWVTvIfnNmF5ioFEYv414Gt7KM5ndI/M3AOYcX/QkjKpSpBoyCTItgl IJyCuv/Z7WluDwDyFRB+MWxFIoI+65FVF+mkOnu9GtAWdk14lvzlmd4eh3ZlL1Zmv3Ez bKuzT7B/S+NO9695Q4KbPSkBo9ZhFtpwJTzJSq7BpkESABrkrIyyhYCf0cAzFQi3DS4J RmWg== X-Gm-Message-State: AOAM533Yxc2Ewl4JCypAal1MLHd2PTaecGz3rEe58SWnGTkHyNrkAD47 si2QyFMt8MKNIQUJnCxt7mlc1kNNix8i0M4z3jfwfUzW+Qc= X-Received: by 2002:a19:e214:: with SMTP id z20mr14717115lfg.37.1630260742632; Sun, 29 Aug 2021 11:12:22 -0700 (PDT) MIME-Version: 1.0 From: Raul Piper Date: Sun, 29 Aug 2021 23:42:11 +0530 Message-ID: Subject: Device doesnt show up on Ble Scanner - gatt-service example in tools folder as per Documentation(doc) To: linux-bluetooth@vger.kernel.org Cc: kernelnewbies Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org 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