Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp624759lqo; Wed, 8 May 2024 09:42:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXbEiKsYBDnDXX8mNS04OVLxkkfwz3GoRyw0DGHYz3Dls0dLUAoBsCBHQa0FVcWk63PH6inWcVQbDhfZ2QDXyt7AAUgTVVQpeCGJ6fAbw== X-Google-Smtp-Source: AGHT+IEw22+bGy3f6y7aIH8FP2t1VaOcMGlbcgAukCUvIFHdCuoA8yw3aU7SdE6/vGQ6iNFYYIVN X-Received: by 2002:a17:902:e892:b0:1eb:309b:6712 with SMTP id d9443c01a7336-1eefa58c068mr2461305ad.29.1715186577901; Wed, 08 May 2024 09:42:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715186577; cv=pass; d=google.com; s=arc-20160816; b=j3vpgd7grMEZxH2/73KM6ZgPYvrYo6G/sI4tARCsgDqrwk3UiuiHmuuYHBIQFSNse+ sHHVVEHeb9OHiRdUSZDsyJFjyydSafBZZkZY8wMIVDbkS05G/z0HXnVvbmAJ2k1LNOR6 P7LtYVWV+kF+fWXGLtfpyGnhiMsv8Gsgxk+kvZRGlGpfHAJUSaj4iTtWedUkNHvyeYFf G2yvQpX8zi8X4J76LSV+RxZxs8d/0Wi5sVVAdD+eAEVNnPIpG8QSQkkY/H/M6jWHxSuI 6FY4i/XLTQKZBNttXnuZId2vZrk+nBkoWaTPpfWJpaRYcnu5re6Fw0sieGfCO4c3M4D4 nHLQ== 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=eKrfwDWbn/xm6iQe+2dMhz1RZAFwtAa+kDjQTTVOfoc=; fh=vc+GMN0o8Ab0WHJZZ47oBXNSSn7YWoP1Ru2b1y9Z7t0=; b=0oUKjV+5ENoOPmealExSGPx44YjA+DoyOw7Q07/7LqqVBoY+AqlIiqLvHhFKB9naPf sBFPILDt1dPQdyqa2ElRjAAfc0ofUS5Ve88PnM7T8U9zivmHW5iwbKirM28duEf6qaOq 04469hvMazdrXUoPUVrHChK8fErR+jHboiAMkj0qcJ4joBeBNZNtM5zAXAl7HX/rFaVG 69EemGlGA9jRA/0z5kSDZu0Z3+ZmpEU4Qt7qgL1R+6HrPjaJDGV8mB0rrJF459LyjtOv K43WC1hxT3BKQCSxiwGpJkp5d0nOEkxcOUZCXCCo4H2FZq70yshh7ANlOVAor17pbuNz ec9w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Jtr4gGbw; 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-4403-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4403-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id h12-20020a170902f54c00b001eb5179b2c0si13084673plf.236.2024.05.08.09.42.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 09:42:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-4403-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Jtr4gGbw; 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-4403-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4403-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 27A1CB24619 for ; Wed, 8 May 2024 16:34:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7CF05DDB1; Wed, 8 May 2024 16:34:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Jtr4gGbw" X-Original-To: linux-bluetooth@vger.kernel.org Received: from mail-lj1-f181.google.com (mail-lj1-f181.google.com [209.85.208.181]) (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 0EC10D28D for ; Wed, 8 May 2024 16:34:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715186080; cv=none; b=Gp0iPM9eg8vSGeWrrqJ1IoJmhnzuiAdvXZsgSFkUmmyIJXtFp4yClit8brBxxcbT1am5it+AC3bkdk4OqsZEHTiJWPKWfD+CZbOJJCqpj+QSlb7D5b2WYZiQQmc9gIAfpndJBtKoj03n2otHCGi7WDEwFouFkvuiMTczejap1pM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715186080; c=relaxed/simple; bh=ffOCXFgR1ZORUzJfNVsRgVv2UX/K6eATjD8Z4hJJvxc=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=fdzRYXfgBRfWe5t/C+cJDWwWCAM3n6yLxEuItanNkTAzKPjBhMjbLEgLKBS/CAuEMRdRXPhYcJlQL/CWrF7V3gLy9+/x+hi2ilequd/lNo/bU1cjnJr/PUMx76ndLWm5cjpZ6X8qpr9bHqkxEzGbttglPj/VuuKiZMKTcgjRgJA= 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=Jtr4gGbw; arc=none smtp.client-ip=209.85.208.181 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-f181.google.com with SMTP id 38308e7fff4ca-2e1d6166521so9075791fa.1 for ; Wed, 08 May 2024 09:34:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715186077; x=1715790877; 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=eKrfwDWbn/xm6iQe+2dMhz1RZAFwtAa+kDjQTTVOfoc=; b=Jtr4gGbwKXUoZuB8mbK7Id8PN9OQdh22cL2qCqkTfDorP+24KmaaxFMjJADk9QDL2J oy9DoRNljA61bRKOJMJKMniip56A3K/wf5wS835Lyph+hooMSfrlGFpAsPhXdvKbi7AS sVZDMHriaMCE5pUBuUFsuD+O5BtLZsay0BbhqKy7O6n6enpJ5HUMcrXLO9yYzg2zP3PP huYjpb7U0EVryJhwq3RRr2dnmWWGu9Y/qS/eR/fHfE/jv0tgwY7PbeSVo7pndTeN9Abf NBZeaJBLbcewuCMaHKIog19ZFBG+AF0Ayacb5eAIOlR31CK7U5ARswmUuEJWqQdDuyDI 1ayg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715186077; x=1715790877; 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=eKrfwDWbn/xm6iQe+2dMhz1RZAFwtAa+kDjQTTVOfoc=; b=hZSyZfZQFckj3K53bOH8OdbcvreigyO0SnIAuE5YFfGoZuZ49vihq7RXtTn0d8IgJh T7DZMNn2pQahiEBY5mZVObHGwgCAEeDImgRJPe2zZun7uVNfiRPl2sISQyExioETOlvv 1IRP7PyMkK3/KLacHUJ8boeaX4O1S7soBw7raIlgH3s8mUw0nVvFwYN0NYOKjIboVugV ek2Ia0m2W5w06fz4l3015KeQCN6cylxYYxO56vPnDDrpUwSYH3bOqeb0LPhDJoKH6cd0 TKNcJUxVeaabjgkYdLutv/xPqzAhDz7A1GJmrG/iRIlK/kDoeTj4zVrWEniwFsEjf49a RAaQ== X-Gm-Message-State: AOJu0Ywy3yP4BehFT2GkCqNV4RrzVgSVu6ZINvOiamZUCn1s8u9Q08Uo WYYeARQcsshgI6dx3uFoSeSha90RUQM19JTheaSv/hOk3wmUEgYeoPZl7ZysoHLAHNECr4YfZpN HxkD1ZiRmFSkZmMxds7ovpWdtEhT5QK1w X-Received: by 2002:a2e:968d:0:b0:2e2:1b1c:7465 with SMTP id 38308e7fff4ca-2e4b1122cb8mr455821fa.10.1715186076882; Wed, 08 May 2024 09:34:36 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240508154604.276763-1-arun@asymptotic.io> <20240508154604.276763-4-arun@asymptotic.io> In-Reply-To: <20240508154604.276763-4-arun@asymptotic.io> From: Luiz Augusto von Dentz Date: Wed, 8 May 2024 12:34:24 -0400 Message-ID: Subject: Re: [PATCH BlueZ 3/5] test: Add a script to test ASHA To: Arun Raghavan Cc: linux-bluetooth@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Arun, On Wed, May 8, 2024 at 11:48=E2=80=AFAM Arun Raghavan = wrote: > > Plays out an audio file to the device. Depends on GStreamer for media > file reading and decoding (specifically, gstreamer core, > gst-plugins-base, gst-ffmpeg, and gst-python, or equivalent packages). > --- > test/simple-asha | 158 +++++++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 158 insertions(+) > create mode 100755 test/simple-asha > > diff --git a/test/simple-asha b/test/simple-asha > new file mode 100755 > index 000000000..feff9d29c > --- /dev/null > +++ b/test/simple-asha > @@ -0,0 +1,158 @@ > +#!/usr/bin/env python3 > +# SPDX-License-Identifier: LGPL-2.1-or-later > + > +import os > +import signal > +import sys > + > +import dbus > +import dbus.service > +import dbus.mainloop.glib > + > +import gi > + > +gi.require_version("Gst", "1.0") > +gi.require_version("GLib", "2.0") > +from gi.repository import GLib, Gst > + > +import bluezutils > + > +mainloop =3D None > +pipeline =3D None > +seqnum: int =3D 0 > + > + > +def signal_handler(_sig, _frame): > + print("Got interrupt") > + mainloop.quit() > + > + > +signal.signal(signal.SIGINT, signal_handler) > + > + > +def usage(): > + print(f"Usage: simple-asha