From owner-freebsd-bluetooth@freebsd.org Wed Sep 30 21:30:53 2015 Return-Path: Delivered-To: freebsd-bluetooth@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4AF31A0C7CE for ; Wed, 30 Sep 2015 21:30:53 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: from mail-wi0-x22a.google.com (mail-wi0-x22a.google.com [IPv6:2a00:1450:400c:c05::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E3BBD1083 for ; Wed, 30 Sep 2015 21:30:52 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: by wiclk2 with SMTP id lk2so5997419wic.0 for ; Wed, 30 Sep 2015 14:30:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=XAkU0PfWNtSdYQdllR2wYXJs64jkjyJK+/fIv6GONV4=; b=CIg10/6ARwZtqeyuQhm7L4vn/1bU3v5mwoqsvZr3kiX81v2RA0kM0yWn6BFYaQTcan FqqvgVkoOmpvKsa2aEiws4l7C7AoOxi3A6U46vf50ojtrx6//ZNnWlWQxhXrG3h5uEFL SGmRliwKwk5mTmVG/PzAWL5CHA1TNp/m8kjP988+r27EBzYi6unGvYaS802CJbKFRC/H 1028PRXn3kfx6O8an8rlItouUfinbs2J9Vfh8Jrfmbymu1DTeKJlhv0wf9aEcnucOoaE 3RdrId8U2P55jiRKVAjJ/ITSZne9VtuzfUqsrDZ+3iVw8lAFTEM3NgF+/t5hNRMN5i9C pTSg== MIME-Version: 1.0 X-Received: by 10.180.39.175 with SMTP id q15mr35333020wik.73.1443648650125; Wed, 30 Sep 2015 14:30:50 -0700 (PDT) Received: by 10.28.146.132 with HTTP; Wed, 30 Sep 2015 14:30:50 -0700 (PDT) In-Reply-To: <5608199F.9020105@erdgeist.org> References: <56072A53.4010005@erdgeist.org> <5608199F.9020105@erdgeist.org> Date: Wed, 30 Sep 2015 14:30:50 -0700 Message-ID: Subject: Re: first shot at user friendly bluetooth-config script From: Maksim Yevmenkin To: Dirk Engling Cc: "freebsd-bluetooth@freebsd.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Sep 2015 21:30:53 -0000 hello! sorry for the delay, i was afk > > thank you for your work. can you please put it into review? > > Where would I put the script for that regard? Something like /usr/bin? > there is /usr.bin/bluetooth and /usr.sbin/bluetooth, so somewhere under one of those would be a good place, imo. > > also, what is the proposed usage scenario? can you please describe > > it? > > As I mentioned earlier, the script is supposed to tie several layers of > the bluetooth framework together to guide users with day-to-day tasks > like pairing a HID device like a keyboard and a mouse. > ok > It is intended to serve both as an interactive script, guiding a novice > user through the common pitfalls, dumping pointers to config files and > man pages along the way and also as a scriptable back-end to a yet-to-be > written GUI (e.g. a config panel in PC-BSD). > right. so, if pc-bsd is your goal, and, you can rely on graphical interface, then i would suggest to basically 1) completely reimplement hcsecd in terms of graphical ui (you can reuse parts of hcsecd) or 2) teach hcsecd to run external process to obtain a pin (with timeout) > I think I laid out my motivation for writing it in earlier emails. > Having proper documentation on a framework (which FreeBSD clearly lacks) > would be a good thing, but making it further less likely to have users > shoot themselves in the feet by implementing best practices that will > suite the need of 99% of FreeBSD's bluetooth users is even better. > agreed > In my experience the best framework is worthless if not properly exposed > to the end user. And frankly, currently it is not exposed to the end > user at all. I consider myself rather fluent in FreeBSD, I am able to > understand complex protocols and their C code implementation and yet, > standing with my PC-BSD curious buddy on his new shiny development > station =E2=80=93 combining over 50 years of IT experience =E2=80=93 we s= till struggled > for over a day, trying to figure out how the pieces fit together just to > pair a freaking mouse ;) > > Maybe I am taking it into a completely wrong direction and you have a > much simpler way to achieve the task that I just have not understood. > again, when you have graphical ui and can get attention of user it becomes much simplier. so, i think, for pc-bsd case, it would be much better to simply start writing UI controls. thanks max