Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp6687ybm; Tue, 26 May 2020 09:24:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxqE2fF/TxsnZN2/kA5rSafdY94gF0HpkllW50AWhSPwXiMThCJy5Y6ctBuXv8c1NovdLKl X-Received: by 2002:a17:906:b24f:: with SMTP id ce15mr1819522ejb.59.1590510243037; Tue, 26 May 2020 09:24:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590510243; cv=none; d=google.com; s=arc-20160816; b=DHixKmr64uXooAgCkQFo/ZyuRuJkzC6LWrQRhk5qJuSyywbOsbwuRdViAtur3G1sBQ il23v9ir2h4qURoIr5rS8M8D3FZ4I0E3WKQGDLZNWoM26XEFQH3cdUIKJAp0Z6UDRscZ b3TzqC2SC9USQc2dqt+J6vqCapY/HFHYMFETfP2nt8eBwMaPZtaQLYA3py9qcDd2zfc8 IxsJ6ziQ+FpvGQFuzAxtfCaU3p7Hs7QFnuC9QyFBjG2PdyNRc1tAIz/wbspwJSM1g25b LvQSCF44CehijxT+CsDBSSUu1HVgYigUVxYCVW7JeBQrvMNz34aLstbzGTKpUI0Mhszo lMMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=aaSBbAvhD/ngIFpKWu2r1Cofpo1zAj87bUvJZlIEYK8=; b=WFM01MdZNQfxS4f0eb/0eSeNxqYDCRu8HeOD+wZ+/XklSlApHXRd/FJ9zBbwdSZKXF jRAU4HMhNDz1jxaJiCo9eP9cuokZUNBXQj7h6Vgt0SkXKk7tBX6K3/IdxvYfPI49T2Bn x1aGUBx3o3/G835NB0AUniuEymnAch05QmnPePcAoB7t09hpS9XSo9iZGpmIAUjHNKDU 9TuA5XK9WM3ewRh0s4g8IxToGM0PJ4/kXRlhWH+fAyQqNDPaGP6ZVJzaimZrSKnYwy0R uSeFjzCgPlIl3ys9n1dBQFX1/0at7kt8yb7oyFKvIdK6DIyfuinHVJRWMWN2c71Fka0Q Ve4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QzukBiYD; 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 j14si161169edy.342.2020.05.26.09.23.29; Tue, 26 May 2020 09:24:03 -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=QzukBiYD; 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 S1726282AbgEZQWA (ORCPT + 99 others); Tue, 26 May 2020 12:22:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728332AbgEZQV7 (ORCPT ); Tue, 26 May 2020 12:21:59 -0400 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 36AFFC03E96D for ; Tue, 26 May 2020 09:21:59 -0700 (PDT) Received: by mail-ej1-x636.google.com with SMTP id a2so24432495ejb.10 for ; Tue, 26 May 2020 09:21:59 -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=aaSBbAvhD/ngIFpKWu2r1Cofpo1zAj87bUvJZlIEYK8=; b=QzukBiYDI5PsVgvbHOld5q+6ajgr9jDZCSZ3bl4Ma9oAmb7yhHDC+JM6lR1lJ/5DFy 3mAmPOzrazpPHfyBxXSx3WuawgcuKqo72J8rjiZQIC6AZoUpLepNBJ4Hov4mkkwmPG8m +QAuTMesS8EIKZMIlqpx3r0NNGbO2p8SnkAXnCaSVaoFbUSw3bE5m93nSJMTQIYhM8ko iTDVN1iM9aqcwmkY2qhZ3pNeVuFoRW9LjwT5/dYRgPw+lgx1Hjtj4dTE6Ik7/AaKhu8d hya3OFhXyCl3beILPdKU0yWkozZznmUBkjeLUNOWY1Jz+dY3DkyhDpLPZ0j7LOVQL7+F 2H0g== 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=aaSBbAvhD/ngIFpKWu2r1Cofpo1zAj87bUvJZlIEYK8=; b=kGxQ3EKLCsRH+qzgettG1e9w9IHl7v7Bz6VWE/YswILhEGXvwmJYf4xX6Nd9jua/5N RNM7Lya76Dw2G2KFMqWX+PCtq7R8zsKD4AIlQPdKQdGMJxcj4iK9aoYvGRkyTxQmgfya nAr+YTN3CWs93W0rdXrSI1usluo2HD+5c59/bp4431/Y+5ke9sTMc/Emkgt7H1OigG+Q 13Qa/tshPvN0hME81t0mdL249XEUm8x05aMRInsfWMc/VRcNmeKQGZLqKuP8Wely+5p7 JYJ7Y4BTW5hw51YYiEtWVgH9ZN2uv4CrlEjtLF1W1OMCNhKLTsROgWEfJq5zOzHZDejo Rs/Q== X-Gm-Message-State: AOAM5334mwK+yajngSDkYq5HpbDTi1z7KWprAeAxSniTLoJ0oJuhrUH+ 3UGRJFdIQnoVjly0FedSD3/MgF+F1zK3hdA0NkAY6MtA X-Received: by 2002:a17:906:379a:: with SMTP id n26mr1760512ejc.513.1590510117889; Tue, 26 May 2020 09:21:57 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Christopher de Vidal Date: Tue, 26 May 2020 12:21:20 -0400 Message-ID: Subject: Re: UUIDs for every single physical peripheral's service and characteristics? To: Alain Michaud Cc: BlueZ Content-Type: text/plain; charset="UTF-8" Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org So let me make sure I understand. The devices themselves have their own Bluetooth addresses (similar to MAC addresses, I don't know the proper term) which are unique among every physical device sold. And also there is one (and only one) service UUID which is shared among all 1,000+ peripherals which I sell, and 19 characteristic UUIDs that are shared among the physical peripherals. The devices come with their own Bluetooth "MAC" and I only need to obtain 20 UUIDs in total for the product line. Did I get that right? Christopher de Vidal Would you consider yourself a good person? Have you ever taken the 'Good Person' test? It's a fascinating five minute quiz. Google it. On Tue, May 26, 2020 at 10:57 AM Alain Michaud wrote: > > Hi Christopher, > > The term "unique" will vary based on context. In the context of a > Gatt Service and Characteristic, it is intended to uniquely identify > the "contract" defined by the service/characteristics. For example a > Temperature Service would have a UUID that universally defines the > contract/interface defined by that service. > > So for your custom service, you'll need to define a set of 20 128 bit > UUID (16 bit uuids are reserved for SIG defined uuids) that uniquely > identify the contract that's defined by your service/characteristics. > The devices can uniquely be identified/addressed by their respective > addresses. > > I hope this is helpful. > > Thanks! > Alain > > On Tue, May 26, 2020 at 10:38 AM Christopher de Vidal > wrote: > > > > Help a newbie? I'm seeking to build a niche product for sale, a > > Raspberry Pi-based device which during the initial setup acts a BLE > > peripheral. (Python using dbus to Bluez.) It has a single service and > > 19 characteristics. I get that the first "U" in UUID stands for > > unique. Must that be unique among each physical product, or may it be > > unique among the product line? > > > > So if I sell 1,000 units (which would be a success), would I need to > > obtain 1,000 service UUIDs and 19,000 characteristic UUIDs? Or just 20 > > total, for the entire product line? > > > > The goal is so that the iOS/Android app can have that pre-set in the > > code and quickly discover the device, pair it automagically. > > > > I suppose the risk is of a conflict of two similar devices which are > > in the same vicinity of the phone, and both set into peripheral mode > > at the same time. But that would be a minimal risk which I could > > accommodate for. > > > > Christopher de Vidal > > > > Would you consider yourself a good person? Have you ever taken the > > 'Good Person' test? It's a fascinating five minute quiz. Google it.