Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3384385rdh; Mon, 27 Nov 2023 12:51:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IE9ldbHMVnt0Yt/U6ZVj/y1TVGM8dtabFWJ8jZuWMTMkJoCRE/HfWgHsphPb4jL2TXUFwAG X-Received: by 2002:a17:902:ce90:b0:1cf:d9b5:5aba with SMTP id f16-20020a170902ce9000b001cfd9b55abamr3940382plg.30.1701118282805; Mon, 27 Nov 2023 12:51:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701118282; cv=none; d=google.com; s=arc-20160816; b=DtW7/Oauqd2ViwaOILbb+lzwUUa1J/hQenkgXjwtNCTZAwyW9TbkBULJYwRjZD28O8 /zg6KGK2sSwSmrLxZo6VE22/WMetrQBMx4G1XkwjrxpogCazy+CRzXCqqEIl3rGUl68N QHnnHw1WIBi7k8U5hjAIoBiFTyT0fQpTTcHHh92VQGVwZTdXfzyjTqUofrgliFtIiN1u oIFx0vrGnqTcQ6S8dohhZX0Kvu5n615VTrXsAVhlFpy5JvHQhkrWM5BxyPAKIbACuV4k 7q5AV49qZYK67gz1F4+sQwnpSHCaDVkzggw7u+WlYCE3S8oTY4rAaeRzytTY3QAWpIdi 4BzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date; bh=/4lNQrJ+Z390fSszBNIEAobY+hgi09560sGExN0g5JY=; fh=3cSdBMtcRAywFrrR6foFYH+GrpFrZSCZYjOocVh0ysY=; b=f8UZ+EfmN/VUgZ6w1VDJFQtkhZPr3JKgsMv062bsAs9JOsfK0xcE0bkw3poC8vojVr unGJ30IonLGl+qVsCx+HihHuMSLazI2hW1RgxqkvOyuCLAPBtbOLo3S+DJPGQK4WePAt RH9C/tzx141r6sBNIkyCvtGFO7Tfv85CeaNdznAp8eGZCNTFMWOmGFbe3p6KYVIy7nLA umE98vVCfgY+3XylprHm5s+te/iEE92t5Z7gx6xtz9+nQUA81SMW67YnG5jo9wdNe8rM WmJFxqgJMohsVeaTsB7ZKRImFtZs2oAlbHtUeGo1Bw2aP0YxPD9c62TMbNCVct7mlNjb S+SQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth+bounces-253-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-253-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id x7-20020a654147000000b005bd0728aeccsi10067672pgp.407.2023.11.27.12.51.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 12:51:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-253-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-bluetooth+bounces-253-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-253-linux.lists.archive=gmail.com@vger.kernel.org" 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 7B5DB280EF2 for ; Mon, 27 Nov 2023 20:51:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E4EAC4642B; Mon, 27 Nov 2023 20:51:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=none X-Original-To: linux-bluetooth@vger.kernel.org Received: from mail.andi.de1.cc (mail.andi.de1.cc [IPv6:2a02:c205:3004:2154::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA23F187; Mon, 27 Nov 2023 12:51:13 -0800 (PST) Received: from p200301077700a9001a3da2fffebfd33a.dip0.t-ipconnect.de ([2003:107:7700:a900:1a3d:a2ff:febf:d33a] helo=aktux) by mail.andi.de1.cc with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r7iZR-006mqW-Ju; Mon, 27 Nov 2023 21:51:09 +0100 Date: Mon, 27 Nov 2023 21:51:08 +0100 From: Andreas Kemnade To: Tony Lindgren Cc: marcel@holtmann.org, johan.hedberg@gmail.com, luiz.dentz@gmail.com, johan@kernel.org, arnd@arndb.de, gregkh@linuxfoundation.org, linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, tomi.valkeinen@ideasonboard.com, =?UTF-8?B?UMOpdGVy?= Ujfalusi , robh@kernel.org Subject: Re: [RFC PATCH 0/3] bluetooth/gnss: GNSS support for TiWi chips Message-ID: <20231127215108.6e985819@aktux> In-Reply-To: <20231127135424.GO5169@atomide.com> References: <20231126191840.110564-1-andreas@kemnade.info> <20231127135424.GO5169@atomide.com> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Hi, On Mon, 27 Nov 2023 15:54:24 +0200 Tony Lindgren wrote: [...] > > - Output at /dev/gnssX: > > AI2 vs. NMEA > > The chip can be configured into sending AI2-encapsulated NMEA, > > or proving data in a binary format. > > Some research has to be done yet for the details. > > A pile of logs is waiting for further analysis... > > > > Arguments for/against NMEA: > > + Userspace is prepared to handle it > > + Power management can be easily done by the kernel > > - Less functionality can be used. > > I'd go with NMEA format as the default setting :) > yes, that would also be my preference. > > Arguments for/against AI2: > > + Full functionality can be accessed from userspace (incl. A-GPS, > > maybe raw satellite data) > > - Userspace has to behave to have proper power management > > - No freely (not even as in beer) tool available to fully use AI2, > > so there will be only a real advantage after long "French Cafe" > > sessions. > > Seems AI2 could be optionally enabled as needed with some writes > to /dev/gnss0 to change the mode? Hmm, we have /sys/class/gnss/gnss0/type to get the mode, maybe we add some file to change the mode? Or having it hidden behing a module parameter and implement something better accessible if any need arrives? If we want NMEA output, probably some init commands will be sent at open(), but userspace doing something with AI2 probably does not want the device touched, so it should probably be already be set before open(). Regards, Andreas