From owner-freebsd-bluetooth@FreeBSD.ORG Mon Sep 9 15:57:14 2013 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 65BB4CE for ; Mon, 9 Sep 2013 15:57:14 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from shell0.rawbw.com (shell0.rawbw.com [198.144.192.45]) by mx1.freebsd.org (Postfix) with ESMTP id 51E6A206D for ; Mon, 9 Sep 2013 15:57:14 +0000 (UTC) Received: from eagle.yuri.org (stunnel@localhost [127.0.0.1]) (authenticated bits=0) by shell0.rawbw.com (8.14.4/8.14.4) with ESMTP id r89FvDMQ000532 for ; Mon, 9 Sep 2013 08:57:13 -0700 (PDT) (envelope-from yuri@rawbw.com) Message-ID: <522DEFD9.1030608@rawbw.com> Date: Mon, 09 Sep 2013 08:57:13 -0700 From: Yuri User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130822 Thunderbird/17.0.8 MIME-Version: 1.0 To: freebsd-bluetooth@freebsd.org Subject: Can ubt0 be a slave or a passive listener, and not a master? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Sep 2013 15:57:14 -0000 I am trying to do some troubleshooting of BlueTooth connectivity and wouild like to see the packets, or maybe make a simple slave (like GPS slave). I have this BlueTooth USB dongle: ubt0: on usbus1 Then I stop bluetooth (master) stack, so that ubt0 has no hooks. Then I direct all packets to ng_hole node: ngctl mkpeer ubt0: hole hook hhook Then I run DTrace script showing when some msg or data comes: #!/usr/sbin/dtrace -s fbt::ngh_rcvmsg:entry { printf("ngh_rcvmsg * "); } fbt::ngh_rcvdata:entry { printf("ngh_rcvdata * "); } Attaching the hook to ubtN causes it to start bulk and interrupt transfers (according to the code). Then I turn the cellphone (master) into discovery mode. But nothing comes to the ng_hole at all. Supposedly, master in discovery mode should announce itself to slaves. Why no messages arrive to the hole? Where is the problem? Yuri