From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7198BC432BE for ; Sun, 29 Aug 2021 18:13:04 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 180CE60F39 for ; Sun, 29 Aug 2021 18:13:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 180CE60F39 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.94.2) (envelope-from ) id 1mKPID-0004pO-LW; Sun, 29 Aug 2021 14:12:29 -0400 Received: from mail-lf1-x131.google.com ([2a00:1450:4864:20::131]) by shelob.surriel.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1mKPI9-0004og-EB for kernelnewbies@kernelnewbies.org; Sun, 29 Aug 2021 14:12:25 -0400 Received: by mail-lf1-x131.google.com with SMTP id x27so26505213lfu.5 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=Zpw8xvD4wPcdx2elcQEewMSRi1sG2im0SvlzQ8WFhDAqhynkDUAlSMBFUBNE4x08hx k3Ge2jpgOG7t0ziD8LsXvGSHN6nODdhuTpC7JO82EtgLcIdzQQLapkhUG32kYkQAREjx bDitu2LoEo6aswaTJt2eEige7Ppe2HCwZf/EYiAZtbCrVaSfJyh7rlxGkcSk6/tAnrqq lyT89nG7MDEm3RKVkb3QdKxlBoszPpGIL/h3+Y8/6F9qaNemrQ1SSD3dedAUj7+5p3Hk ZrJMCgwdqiMHCy4NVM9Cp27J6x7Lpkt9/xIP9wxBQWVpVnNp9W4tpdMhknv4QlVbVhh/ OEkA== X-Gm-Message-State: AOAM533qtrYZYz9zmnPbgV+gEgmPTmTURp6oFCgw+oOdihVJ4Bca7O6V lXx4y9fEAlWjR4WbJLuNE+VXs99To7mFmfbOG/Vnrvd8mMg= X-Google-Smtp-Source: ABdhPJzsFMeaRDiSHnEy+y6M0fAOo2SSWVe5NDDvaGVDOjfsw80a2Yl+6bVaRWFGri0rAhVunDx1mt6RXbCtY7PBURY= 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 X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kernelnewbies-bounces@kernelnewbies.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 _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies