From owner-freebsd-bluetooth@FreeBSD.ORG Mon Nov 16 17:08:53 2009 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6F2A71065672 for ; Mon, 16 Nov 2009 17:08:53 +0000 (UTC) (envelope-from mad@madpilot.net) Received: from megatron.madpilot.net (megatron.madpilot.net [88.149.173.206]) by mx1.freebsd.org (Postfix) with ESMTP id 43B858FC20 for ; Mon, 16 Nov 2009 17:08:51 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by megatron.madpilot.net (Postfix) with ESMTP id E83E51877 for ; Mon, 16 Nov 2009 17:50:09 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=madpilot.net; h= user-agent:content-disposition:content-type:content-type :mime-version:message-id:subject:subject:from:from:date:date :received:received; s=mail; t=1258390207; x=1260204607; bh=HC2Ml PTEsC4qiODU8SdHjAcrtMI8BusYfzilqSmlcDY=; b=IPLDcA5E8CqSXa8DAC/ik ezRHzBluI8GaRVEvYr/3pr9AoVbNFlrqWCHo6RWaq9zqbrA4LFZaPThWrciZzgva B1dr+1aiV/XIbFTpASbUiAeFJocNVNv/VBgs2c6lNT3i58Lumj+k/LfeCpKoRqWp e46yeyYCOAPkDf8ZPJL9rA= X-Virus-Scanned: amavisd-new at madpilot.net Received: from megatron.madpilot.net ([127.0.0.1]) by localhost (megatron.madpilot.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 5E6fPCrcPJvO for ; Mon, 16 Nov 2009 17:50:07 +0100 (CET) Received: by megatron.madpilot.net (Postfix, from userid 1000) id 684291870; Mon, 16 Nov 2009 17:50:07 +0100 (CET) Date: Mon, 16 Nov 2009 17:50:07 +0100 From: Guido Falsi To: freebsd-bluetooth@freebsd.org Message-ID: <20091116165007.GC13298@megatron.madpilot.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Operating-System: FreeBSD 8.0-RC2 User-Agent: Mutt/1.5.20 (2009-06-14) Subject: Visibility X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Nov 2009 17:08:53 -0000 Today I was playing around a little with bluetooth and I had the fancy to just make my FreeBSD system not visible via bluetooth by default. I could not find any configuration to do this, nor any instruction in the manual. Is there a simple way to do this? is this supported(no problem in writing small scripts or code snippets...) or simply impossibile without major tinkering with the stack? Thanks in advance, this is just an idea I had, nothing urgent! -- Guido Falsi From owner-freebsd-bluetooth@FreeBSD.ORG Mon Nov 16 17:27:50 2009 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 113A91065672 for ; Mon, 16 Nov 2009 17:27:50 +0000 (UTC) (envelope-from plunky@rya-online.net) Received: from smtp6.freeserve.com (smtp6.freeserve.com [193.252.22.192]) by mx1.freebsd.org (Postfix) with ESMTP id C74208FC16 for ; Mon, 16 Nov 2009 17:27:49 +0000 (UTC) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3627.me.freeserve.com (SMTP Server) with ESMTP id 6D65D7000089; Mon, 16 Nov 2009 18:27:48 +0100 (CET) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3627.me.freeserve.com (SMTP Server) with ESMTP id 5D28C700008A; Mon, 16 Nov 2009 18:27:48 +0100 (CET) Received: from rya-online.net (unknown [89.194.134.91]) by mwinf3627.me.freeserve.com (SMTP Server) with SMTP id ACFE07000089; Mon, 16 Nov 2009 18:27:47 +0100 (CET) X-ME-UUID: 20091116172747708.ACFE07000089@mwinf3627.me.freeserve.com Received: (nullmailer pid 9008 invoked by uid 1000); Mon, 16 Nov 2009 17:28:01 -0000 Date: Mon, 16 Nov 2009 17:28:01 +0000 (GMT) To: Guido Falsi In-Reply-To: <20091116165007.GC13298@megatron.madpilot.net> References: <20091116165007.GC13298@megatron.madpilot.net> User-Agent: Alpine 2.00 (NEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Message-Id: <1258392481.445966.18874.nullmailer@galant.ukfsn.org> From: Iain Hibbert Cc: freebsd-bluetooth@freebsd.org Subject: Re: Visibility X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Nov 2009 17:27:50 -0000 On Mon, 16 Nov 2009, Guido Falsi wrote: > Today I was playing around a little with bluetooth and I had the fancy > to just make my FreeBSD system not visible via bluetooth by default. > > I could not find any configuration to do this, nor any instruction in > the manual. > > Is there a simple way to do this? is this supported(no problem in > writing small scripts or code snippets...) or simply impossibile without > major tinkering with the stack? > > Thanks in advance, this is just an idea I had, nothing urgent! You need to have "Inquiry Scan" off. You can switch this manually with hccontrol(8) but I don't know how to make it so that it isn't turned on, perhaps using bluetooth_device_discoverable=NO in your /etc/rc.conf? iain From owner-freebsd-bluetooth@FreeBSD.ORG Mon Nov 16 17:52:02 2009 Return-Path: Delivered-To: bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5B0AE1065670 for ; Mon, 16 Nov 2009 17:52:02 +0000 (UTC) (envelope-from plunky@rya-online.net) Received: from smtp5.freeserve.com (smtp5.freeserve.com [193.252.22.159]) by mx1.freebsd.org (Postfix) with ESMTP id 1C4968FC0C for ; Mon, 16 Nov 2009 17:52:02 +0000 (UTC) Received: from smtp5.freeserve.com (mwinf3412 [10.232.11.40]) by mwinf3405.me.freeserve.com (SMTP Server) with ESMTP id 198DA1C029DD for ; Mon, 16 Nov 2009 18:37:17 +0100 (CET) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3412.me.freeserve.com (SMTP Server) with ESMTP id 41E421C00086 for ; Mon, 16 Nov 2009 18:37:15 +0100 (CET) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3412.me.freeserve.com (SMTP Server) with ESMTP id 33A971C00085 for ; Mon, 16 Nov 2009 18:37:15 +0100 (CET) Received: from rya-online.net (unknown [89.194.134.91]) by mwinf3412.me.freeserve.com (SMTP Server) with SMTP id A2ECA1C00086 for ; Mon, 16 Nov 2009 18:37:14 +0100 (CET) X-ME-UUID: 20091116173714667.A2ECA1C00086@mwinf3412.me.freeserve.com Received: (nullmailer pid 9650 invoked by uid 1000); Mon, 16 Nov 2009 17:37:26 -0000 Date: Mon, 16 Nov 2009 17:37:26 +0000 (GMT) To: bluetooth@freebsd.org User-Agent: Alpine 2.00 (NEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Message-Id: <1258393046.949215.22427.nullmailer@galant.ukfsn.org> From: Iain Hibbert Cc: Subject: iPhone and bcm-2045b X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Nov 2009 17:52:02 -0000 Hi, A friend of mine just got an iPhone 3G, he was here the other day and I tried to probe the device using my laptop (Thinkpad T60 with NetBSD) which has bluetooth built in (a Broadcom BCM2045B connected via internal USB) I managed to discover it ok, but when I opened a connection to the device, my controller detached from the USB bus! I can't see that its NetBSD specifically (at least, not the Bluetooth part) but I don't have any other OS installed to test. Next time he comes around I'll sniff with hcidump to see how far the connection gets, and also try it with an external 2.1 CSR dongle that I have. In the meantime, I wonder if anybody else has had any issues connecting to an iPhone 3G? iain From owner-freebsd-bluetooth@FreeBSD.ORG Mon Nov 16 20:33:12 2009 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4B7911065679 for ; Mon, 16 Nov 2009 20:33:12 +0000 (UTC) (envelope-from mad@madpilot.net) Received: from megatron.madpilot.net (megatron.madpilot.net [88.149.173.206]) by mx1.freebsd.org (Postfix) with ESMTP id D743C8FC1A for ; Mon, 16 Nov 2009 20:33:11 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by megatron.madpilot.net (Postfix) with ESMTP id B07A3195A; Mon, 16 Nov 2009 21:33:10 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=madpilot.net; h= content-transfer-encoding:content-type:content-type:in-reply-to :references:subject:subject:mime-version:user-agent:from:from :date:date:message-id:received:received; s=mail; t=1258403587; x=1260217987; bh=BD0NaamdBiZ0wkpuTSZ+hWFT4KhOX1Yso2Ov4LmeOIo=; b= S/sTCTMUoJIvhvmvtYJTvTHuyw0J97APVZKwFT19gxHESJ/1/Ivdc/52I3u2vY8W 9wmReO5j592HVG54kGoGLLRr+h46HyDEy+MqGaOgrPXvCK8rznpFiYo+EvK3KAbf NOFfky+o+WGB4tCumr7WqdEOoJy+V1uIdQe0aXq+9LA= X-Virus-Scanned: amavisd-new at madpilot.net Received: from megatron.madpilot.net ([127.0.0.1]) by localhost (megatron.madpilot.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mv+Hkpuuxejy; Mon, 16 Nov 2009 21:33:07 +0100 (CET) Received: from anakin.madpilot.net (localhost [127.0.0.1]) by megatron.madpilot.net (Postfix) with ESMTP; Mon, 16 Nov 2009 21:33:07 +0100 (CET) Message-ID: <4B01B703.408@madpilot.net> Date: Mon, 16 Nov 2009 21:33:07 +0100 From: Guido Falsi User-Agent: Thunderbird 2.0.0.23 (X11/20090823) MIME-Version: 1.0 To: Helge Oldach References: <200911161715.nAGHFe33071406@sep.oldach.net> In-Reply-To: <200911161715.nAGHFe33071406@sep.oldach.net> Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-bluetooth@freebsd.org Subject: Re: Visibility X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Nov 2009 20:33:12 -0000 Helge Oldach wrote: > Guido Falsi wrote on Mon, 16 Nov 2009 17:50:07 +0100 (CET): >> Today I was playing around a little with bluetooth and I had the fancy >> to just make my FreeBSD system not visible via bluetooth by default. >> >> I could not find any configuration to do this, nor any instruction in >> the manual. > > Is this what you want? > > toor@sep / # cat /etc/bluetooth/ubt0.conf > discoverable="NO" > toor@sep / # Thanks! This is exactly what I was looking for. Checking the defaults directory did not occur to me :) Thanks also to Iain, His suggestion showed me how to enable visibility on request, which can be quite useful! Thanks again, sorry for the obvious question. -- Guido Falsi From owner-freebsd-bluetooth@FreeBSD.ORG Sat Nov 21 19:07:29 2009 Return-Path: Delivered-To: bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DD789106566C for ; Sat, 21 Nov 2009 19:07:29 +0000 (UTC) (envelope-from comp.john@googlemail.com) Received: from mail-ew0-f226.google.com (mail-ew0-f226.google.com [209.85.219.226]) by mx1.freebsd.org (Postfix) with ESMTP id 675928FC13 for ; Sat, 21 Nov 2009 19:07:29 +0000 (UTC) Received: by ewy26 with SMTP id 26so697702ewy.3 for ; Sat, 21 Nov 2009 11:07:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:mime-version:content-type:content-disposition:user-agent; bh=81MOG9NHFbhZSxCfKW/9Itv+36IjNbxzVqW55kqVc/0=; b=dvpaudF9mliWu3lz23zgsp072NkwG/31ZjkmtQAdLDUVbo0gZXeQmxv+v2dI+cJ0V0 pujeH8fhOMTbAMTHAaR5i5kNL9ghIWyrO6eUfo1orqWPKIUFPm6ypgmjmzOdl2HGjUZM LtqIL3CJUAb5zvaGctN4TZ3VyShesGWwZE/yY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:subject:message-id:mime-version:content-type :content-disposition:user-agent; b=cCAgzF5rkZkzgh2RkGpoZt3eFGv0g8Lipp4omi/8pmu04/enTVtXqhGabfmhl+Kfdl j7o2BNnRJYoUD7EsSu7VHmPECQhIGh9dkSUTmdQpLE6VtgwwH6Ia/yBLBKnvN1tzgXIE AES+sozVUGv98G01dNyMLLiIYC0rsppUdFSYI= Received: by 10.213.0.139 with SMTP id 11mr1651082ebb.36.1258829019550; Sat, 21 Nov 2009 10:43:39 -0800 (PST) Received: from potato (potato.growveg.org [62.49.247.163]) by mx.google.com with ESMTPS id 5sm275503eyf.0.2009.11.21.10.43.38 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 21 Nov 2009 10:43:38 -0800 (PST) Date: Sat, 21 Nov 2009 18:43:36 +0000 From: John To: bluetooth@freebsd.org Message-ID: <20091121184335.GA2008@potato> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) Cc: Subject: Problems getting the bluetooth stack to start X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Nov 2009 19:07:29 -0000 Hello list, my system: 7.2-RELEASE-p4 FreeBSD 7.2-RELEASE-p4 #1: Sat Nov 21 16:55:14 GMT 2009 root@potato:/usr/src/sys/amd64/compile/POTATO amd64 The kernel is generic apart from ehci being commented out. Sources cvsupped earlier today from cvsup.uk.freebsd.org I'm trying to get my sony erikson T610 to work with a nexus bluemicro pro dongle on 7.2-R. The galling thing is, I got it to work once, but it was late and I forgot how. I can't get the bluetooth stack to start, and I'm following the instructins as per the handbook Firstly, the small size of the device means that it is very awkward to pull the dongle out once it's pushed in. When restarting the computer, is it sufficient to reboot(8) then power the machine off, wait a few seconds then power it back up? I mean does this properly reset the dongle, or does it truly have to be pulled out and pushed back in for the system to re-read it? I've tried various suggestions while googling trying to find the answer. One suggestion (with a different device) was to disable ehci and recompile the kernel, which I've done. No difference. Another was to stop the bluetooth script before starting it: potato# /etc/rc.d/bluetooth start ubt0 /etc/rc.d/bluetooth: ERROR: Unable to setup Bluetooth stack for device ubt0 potato# /etc/rc.d/bluetooth stop ubt0 potato# /etc/rc.d/bluetooth start ubt0 /etc/rc.d/bluetooth: ERROR: Unable to setup Bluetooth stack for device ubt0 I find that when the system boots up, only one bluetooth-related kernel module is loaded: potato# kldstat Id Refs Address Size Name 1 9 0xffffffff80100000 768b98 kernel 2 1 0xffffffff80869000 7128 geom_concat.ko 3 1 0xffffffff80871000 9808 ng_ubt.ko 4 2 0xffffffff8087b000 14e08 netgraph.ko 5 1 0xffffffff80a22000 978 pflog.ko 6 1 0xffffffff80a23000 2ae8c pf.ko 7 1 0xffffffff80a4e000 aa7a fuse.ko 8 1 0xffffffff80a59000 82e accf_http.ko potato# ngctl li There are 1 total nodes: Name: ngctl1196 Type: socket ID: 00000001 Num hooks:0 When I try to start the stack, this happens: potato# /etc/rc.d/bluetooth start ubt0 /etc/rc.d/bluetooth: ERROR: Unable to setup Bluetooth stack for device ubt0 potato# /etc/rc.d/bluetooth stop ubt0 potato# /etc/rc.d/bluetooth start ubt0 /etc/rc.d/bluetooth: ERROR: Unable to setup Bluetooth stack for device ubt0 let's do a kldstat again: potato# kldstat Id Refs Address Size Name 1 14 0xffffffff80100000 768b98 kernel 2 1 0xffffffff80869000 7128 geom_concat.ko 3 1 0xffffffff80871000 9808 ng_ubt.ko 4 6 0xffffffff8087b000 14e08 netgraph.ko 5 1 0xffffffff80a22000 978 pflog.ko 6 1 0xffffffff80a23000 2ae8c pf.ko 7 1 0xffffffff80a4e000 aa7a fuse.ko 8 1 0xffffffff80a59000 82e accf_http.ko 9 1 0xffffffff80a5a000 19ba ng_socket.ko 10 4 0xffffffff80a5c000 89a ng_bluetooth.ko 11 1 0xffffffff80a5d000 8b1a ng_hci.ko 12 1 0xffffffff80a66000 b498 ng_l2cap.ko 13 1 0xffffffff80a72000 12c9e ng_btsocket.ko loads of stuff now. potato# ngctl li There are 4 total nodes: Name: btsock_l2c_raw Type: btsock_l2c_raw ID: 00000003 Num hooks: 0 Name: btsock_hci_raw Type: btsock_hci_raw ID: 00000002 Num hooks: 0 Name: btsock_l2c Type: btsock_l2c ID: 00000004 Num hooks: 0 Name: ngctl1781 Type: socket ID: 00000012 Num hooks: 0 but still I cannot get the stack to work! I have also tried commenting out the ubt* stuff in devd.conf and rebooting, no difference. The little light on the dongle flashes merrily, but if the stack won't start I won't be able to do anything. Can anyone help please? -- John - comp dot john at googlemail dot com OpenBSD firewall | FreeBSD desktop | Ubuntu Karmic laptop GPG: 0xF08A33C5