All of lore.kernel.org
 help / color / mirror / Atom feed
From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
To: Johan Hedberg <johan.hedberg@gmail.com>
Cc: "Gix, Brian" <brian.gix@intel.com>,
	"Stotland, Inga" <inga.stotland@intel.com>,
	"linux-bluetooth@vger.kernel.org"
	<linux-bluetooth@vger.kernel.org>
Subject: Re: [PATCH BlueZ] test: Enable test-mesh to send raw vendor commands
Date: Sun, 24 Mar 2019 11:00:50 +0200	[thread overview]
Message-ID: <CABBYNZLAau4paWF9yoLXzUzmJnVawDiZWaVZUnwZfGqhRsQnMw@mail.gmail.com> (raw)
In-Reply-To: <E232C390-8571-40A5-9E72-2499E9973959@gmail.com>

Hi Johan, Brian,

On Sat, Mar 23, 2019 at 12:08 PM Johan Hedberg <johan.hedberg@gmail.com> wrote:
>
> Hi Brian
>
> On 22 Mar 2019, at 16.00, Gix, Brian <brian.gix@intel.com> wrote:
> >>> On 22 Mar 2019, at 5.49, Inga Stotland <inga.stotland@intel.com> wrote:
> >>> +#       5 - on/off model client menu
> >>> +#       6 - send raw message
> >>> +#       7 - exit
> >>
> >> Please don’t use numeric identifiers for commands in interactive tools. Use intuitive, human readable strings like we do in the other interactive tools in the tree. Numbers might be convenient for computers, but they’re not particularly human friendly :)
> >
> > We do plan on making better tools, but this is mostly intended as a tester script to quickly allow us to test stuff, particularly the d-bus APIs, and demonstrate the way the methods are called from python.
>
> Understood, however what I proposed
>
>  - Doesn’t take really any extra effort
>  - Is friendlier to the user
>  - Is friendlier to the reader of the code (no need to do number lookups to understand the purpose of a branch)
>  - Is consistent with the rest of the code base
>
> … so I don’t understand why you wouldn’t want that, even if it’s a quick test tool :)

+1

> I suppose the long-term idea is to provide the same kind of interactive command-line interface as meshctl has provided for provisioner and configuration client role? In fact, would it make sense to keep using meshctl for that and hide the detail whether stuff is going via meshd or not?

There is actually a lot in common to meshctl so I wonder why not
extend it to work with meshd instead, or we do intend to abandon it? I
thought its code would be assimilated by meshd and then reworked...
Anyway our python scripts are just small samples currently and Id say
we should keep it like that and not have full blow clients since there
are better tools for it, for instance there exists python bindings for
BlueZ which might be extended to work with meshd:

https://pypi.org/project/bluezero/



> Johan



-- 
Luiz Augusto von Dentz

  reply	other threads:[~2019-03-24  9:01 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-22  3:49 [PATCH BlueZ] test: Enable test-mesh to send raw vendor commands Inga Stotland
2019-03-22  7:01 ` Johan Hedberg
2019-03-22 14:00   ` Gix, Brian
2019-03-23 10:08     ` Johan Hedberg
2019-03-24  9:00       ` Luiz Augusto von Dentz [this message]
2019-03-25  7:02         ` Stotland, Inga

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CABBYNZLAau4paWF9yoLXzUzmJnVawDiZWaVZUnwZfGqhRsQnMw@mail.gmail.com \
    --to=luiz.dentz@gmail.com \
    --cc=brian.gix@intel.com \
    --cc=inga.stotland@intel.com \
    --cc=johan.hedberg@gmail.com \
    --cc=linux-bluetooth@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.