Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp35982lqh; Wed, 27 Mar 2024 14:01:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW6lJULPsbd+4eNtVTufl5ZvYN6PMW7lD0iAUx+YrWWerFjrFqvrTxcpUhvvIAvn191hLn1fn1t98DGqwWQKmWHstXM7pOCtcaZAiVLDA== X-Google-Smtp-Source: AGHT+IGmaMgzBNep2BkoCf9fTpcZBPFAJcKJ4sUegy+rFtj4DWDazc4WT1kzqRNj7R1qUpo8fmti X-Received: by 2002:a17:906:f8cb:b0:a4e:1462:6524 with SMTP id lh11-20020a170906f8cb00b00a4e14626524mr329074ejb.33.1711573306882; Wed, 27 Mar 2024 14:01:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711573306; cv=pass; d=google.com; s=arc-20160816; b=sUWBrUD+/6/go2nN2ayF/BFMm6EK+iidjl3BCX8HGo0ynN7RjQHY1B0rk6NfV/PFTH 6wFce3qstON9gJOKpbrrpz8JDeTP0rToNFhgoXIMq6x1OeeR7xpvBgi8VGuBUulPHXms 2PwHguco+5x2o/CMwHntc1DrRkpT1BfiCrZBUkuxoz7pOvyxrcM8p9kekOVOs78zsq3g NBZ50/m5Ti80+AsKmp9T0vvBs8DYYb1WBqjBqM4nBifOA6AmG1iCn7Gz3vrUGb7bDhCF QjKsT4btxnJBd/tmdhiOD2uUobBpNZfHOiUQffu5uIQV9s0qn299YsjToL9qVdTg0u1n V1Sw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=0VdAPqd14du3TLfQ4kC1l/CAKQ4Z23FHSXA40h6eKdY=; fh=DJommNvIABASLXQZ7S0ebw/wFlTrCASl5yPsfE6WP/0=; b=s4ZS/sxu/Hgv1heb2sZ1gKykPcZ0Zd0XiFBLLJ07u48HaYOTUZGIl7OJt/rnDgpuZL 6yZe0ikZPvGSi2dTa00Tml8Am3L+r+IP2E9sAmdM+5ZUxj0LFbvTY4fnemnb4SjK2Z5W EHuPutlyzYAR5cQbdKbPgvLK43GaZcRGo0je1A3KjXQ4CyLtA5pyDfWApcHbzcUHtvU/ 5flNt/Z8Vws9zsGIOCQj1MrMAesaueP7oELQldepF3A4Zpknr90/eSvZpIWqwVozILzI KkF2yVqxbvXIaG6dufngE11d7MSbWqoT9Dm66iNFioocXrLwuzkfYraQowGZrJEPfOaT ytcQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=SOogOzH4; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-bluetooth+bounces-2875-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-2875-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id m12-20020a17090607cc00b00a4df0767a31si2153991ejc.328.2024.03.27.14.01.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 14:01:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-2875-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=SOogOzH4; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-bluetooth+bounces-2875-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-2875-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 9B9FA1F2E501 for ; Wed, 27 Mar 2024 21:01:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7FB77153565; Wed, 27 Mar 2024 21:01:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="SOogOzH4" X-Original-To: linux-bluetooth@vger.kernel.org Received: from mail-lj1-f175.google.com (mail-lj1-f175.google.com [209.85.208.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B1CFE15351E for ; Wed, 27 Mar 2024 21:01:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711573293; cv=none; b=gEF3Jh4GSODPs92tqljuAsvorXV+tK0mov9MS2LctYS8odH8IjHzVn5BJEHZDWLqvid/m0mYidHkdAB+F5RhRkhvDnOnjZjNerFWPCVM39Yy4xf19wD+5/WkxNZqRCJyJqxcnLNFx8iI12rqfnnyYkLYQIMfbgIT4zdkbS0axgE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711573293; c=relaxed/simple; bh=ZDFiSNmWaFYv4bc35f+srXHanLDpEpEDr+NGPpELKb0=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=aG3gUjxZxnp9QIkcyyFFC5iMykhEs3qTUB3D4zkGHS4+kh2LR1qtwYYdUcCB4fLZTjtIgHweTbsQ+++WKkoJdyY0ZE4WTLFy6D4k4o+4MrvLCsdmtoHCM509wnR8Exf8u44kDJWMQ7sHxwE/8XqWPdETTxd5gMOLfooczdyH8mA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=SOogOzH4; arc=none smtp.client-ip=209.85.208.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lj1-f175.google.com with SMTP id 38308e7fff4ca-2d6dda3adb9so2378451fa.1 for ; Wed, 27 Mar 2024 14:01:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711573290; x=1712178090; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=0VdAPqd14du3TLfQ4kC1l/CAKQ4Z23FHSXA40h6eKdY=; b=SOogOzH4txfpd3r/YpkmZDMb7NHfbfvf6ADBghbYS54cLgOOTaDuwNCQRZyNJmaB4n YbO/B3GcnJJT2P5sjQhrYXA3Jpfbzibamz0UbOLb58IolBfsH2k5SEI6XHB+6/sYiIhN IQ/jT1zxjFhzwYpEgywB70D6MRZMWLxuGnF5AdS8STVpSqDErN3W+PbJ/klqno6Sqxmm WqbxBHKNU8KcXQNzXkl42astUdCimBxD2TT27TSBDvopKKQuvMUrMYumgmphdPGRsBxj k/HftbgJV87YY0WvTrnkdClDzS6uUTOEwgeuJB6/lkwanSGa3MgZJO46utocDr7p1K3I WoQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711573290; x=1712178090; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0VdAPqd14du3TLfQ4kC1l/CAKQ4Z23FHSXA40h6eKdY=; b=sqQvDOCer6YRIxTo34pj8GlYEQG4kyhq45FnBG1pnRtmJOUxLBUzO5+xEJs+hPN5+7 mLfSslfsdg0YgJO0K2C63UFKFHxovPATEtGiPcgteiTM7tZVdMvGVhg3L/6hJNdhuQk+ ZkEJRbP+Odm2tQVVgGiuqRxd/4Hh16lVNsa/uf9aOBLs+LMMg2941EOD/5iw8/7NCkXT ux5sjsRXc6DJoOIt7iB1uh+N6PaoE3vLXIOMZCCU4hQ4DIu9I9GuVt1QslsFRph95Ftd hpVeOydF7ONuOHBknUww2/1jlmqtcJWTpwoPp+ybnudin4KaeJJbKdU49keqKh1O8aBR a9IQ== X-Gm-Message-State: AOJu0YwOlTiw+l9bMCVEOs//oy+2PISs8IbCuJ5KvA3tOX0KOp8cMmds TDgSQ2Ykr9Ja3VYjHI+v2t6l1pzA7CRwBqAvClJNjW5cJvXFW/MWEjOovjuoej09NrynqI4SXFO Jgm0VLJ3gYSXHrucyJiVoQFotBkCpKcle X-Received: by 2002:a05:651c:547:b0:2d4:2bc5:38dc with SMTP id q7-20020a05651c054700b002d42bc538dcmr580791ljp.30.1711573289441; Wed, 27 Mar 2024 14:01:29 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: In-Reply-To: From: Luiz Augusto von Dentz Date: Wed, 27 Mar 2024 17:01:16 -0400 Message-ID: Subject: Re: Maximum Bonded Devices To: Chris Laplante Cc: "linux-bluetooth@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Chris, On Wed, Mar 27, 2024 at 2:15=E2=80=AFPM Chris Laplante wrote: > > Hi, > > I have a customer with an issue where they are unable to get 30 devices p= aired and bonded when the BL5340PA (nRF5340) SoC as their central device. > > Following details might help you out- > 1. They are using the hci_usb sample code as the firmware on the SoC= . > 2. The stack on the host Linux system being used is BlueZ (version 5= .66) > > They are able to pair and bond with upto 8 devices pretty quickly and the= n this process slows down and they aren't able to pair with more than 12-15= sensors in a single go. > After the pairing and bonding process stagnates at around 12-15 sensors i= f they restart the host system (and in turn the SoC as well) they are able = to pair with a few more sensors but not 30 sensors. > So far out of the things that they have tried out to identify the source = of the problem it has something to do with the BlueZ stack configuration ( = they are currently using the default stack configuration) and/ or the firmw= are configuration parameters. > > Do you have any idea on what configuration parameters could be causing th= is behaviour and/ or what configuration changes need to be made so that the= y can achieve the target of pairing and bonding with 30 sensors. If you hav= e any more questions please let me know. Don't think there is such thing about number of paired devices limit, we just use lists so they be extended dynamically as you pair with more devices, there might be a limit on how many the controller can maintain connected simultaneously though, so perhaps you want to explain a little better how the process of pairing goes, is that serialized or you attempt to connect/pair everything in parallel? > I believe the default is set to something like 65K devices per MaxControl= lers in main.c as well as main.conf > > parse_config_u16(config, "General", "MaxControllers", > &btd_opts.max_adapters, > 0, UINT16_MAX); > > # Maximum number of controllers allowed to be exposed to the system. > # Default=3D0 (unlimited) > #MaxControllers=3D0 These are the number of controllers, not to confuse with paired devices tho= ugh. > I am assuming the issue isn't BlueZ specific but if there is any thoughts= or guidance you may have it would be appreciated. > > Thanks > Chris > > THE INFORMATION CONTAINED IN THIS DOCUMENT IS OF A PROPRIETARY NATURE AND= IS INTENDED TO BE KEPT CONFIDENTIAL BETWEEN THE SENDER AND THE INTENDED RE= CIPIENT. IT MAY NOT BE REPRODUCED OR USED WITHOUT EXPRESS WRITTEN PERMISSIO= N OF EZURIO --=20 Luiz Augusto von Dentz