From owner-freebsd-bluetooth@freebsd.org Sun Sep 27 13:19: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 A9A28A0A77A for ; Sun, 27 Sep 2015 13:19:53 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: from mail-wi0-x230.google.com (mail-wi0-x230.google.com [IPv6:2a00:1450:400c:c05::230]) (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 445A5321 for ; Sun, 27 Sep 2015 13:19:53 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: by wiclk2 with SMTP id lk2so72956663wic.0 for ; Sun, 27 Sep 2015 06:19:51 -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=qT1P7pWYWTXagwO3eD0t1MrItLXvUyHE3sfxOMTaxGM=; b=Sd+GE5xkE++bsRWPVojxqYyHpZHdhA2WjXd9vYGH20vK8VCZQ+/fZH9UybI5TgpBKs 9qlbss+WAVbJ7kboORoMRixdpaplGiAsyMOP+FI3Yd32Jb45QOjiGraPMOP93d5TSpa1 J8apmtSrVQ1tHed22/+Yk++Li0zN04Dz+rlmdVEJe9PKM4sefLKKuWEKorCR+KvH3ISS a3uHZqpky/+jwE8ebFMg857q0Ag0PnZtP2MYMQOViNAOMrP6SehpzkWgI7md/1mwiHjs naHwId6GR7jqfHXR4ps8EFlf9Abxh9SeK4CL7XgSe1ku1LOaj5B6j/R626Ra3gdkl2kB cs5A== MIME-Version: 1.0 X-Received: by 10.194.184.136 with SMTP id eu8mr18596901wjc.151.1443359991282; Sun, 27 Sep 2015 06:19:51 -0700 (PDT) Received: by 10.28.146.132 with HTTP; Sun, 27 Sep 2015 06:19:51 -0700 (PDT) In-Reply-To: <56072A53.4010005@erdgeist.org> References: <56072A53.4010005@erdgeist.org> Date: Sun, 27 Sep 2015 06:19:51 -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 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: Sun, 27 Sep 2015 13:19:53 -0000 Hello! thank you for your work. can you please put it into review? also, what is the proposed usage scenario? can you please describe it? thanks max On Sat, Sep 26, 2015 at 4:29 PM, Dirk Engling wrote: > Find attached a script that tries to tie together essential parts of the > bluetooth sub-system in a human friendly manner. > > Currently I implemented all the steps necessary to get a hid running, > and helping out the user along the way. Next up I want to implement > setting up everything necessary to get connected using the DUN profile, > if available. > > Still some questions remain about pairing: besides grepping debug.log's > output, is there a reliable way to get pairing status? Looking into > /var/db/hcsecd.keys may give me positive results, but info like whether > a PIN_Code_Negative_Reply has been sent to the device because of a wrong > pin code would be helpful. It would also be helpful to know if the > device never sent a PIN_Code_Request in the first place. And how do you > use hcsecd to actively start pairing? > > The script's style may still be a little concise, but is extensively > documented, I will factor out code blocks into functions later. I am > also trying to make it more usable from a script by adding a quiet mode > that is not interactive and tries to automatically resolve everything by > the info passed on command line. > > Now I wonder, where the code will be heading. Is it likely to go into > the bluetooth framework or should I start writing a port? Do you have > suggestions where the user might be provided additional info on how to > continue, especially if stuff breaks? > > Regards, > > erdgeist > > _______________________________________________ > freebsd-bluetooth@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth > To unsubscribe, send any mail to " > freebsd-bluetooth-unsubscribe@freebsd.org" >