From owner-freebsd-bluetooth@FreeBSD.ORG Thu Jun 16 22:11:10 2011 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 206B5106564A for ; Thu, 16 Jun 2011 22:11:10 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 90F448FC15 for ; Thu, 16 Jun 2011 22:11:09 +0000 (UTC) Received: by bwz12 with SMTP id 12so2426362bwz.13 for ; Thu, 16 Jun 2011 15:11:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=EgkZGmIM3jUbxTm7hfJyxcDPbqz/qERT8OGhdwp677Y=; b=u3fmX0ftmCPmlk6cFycZr1hoJudQmP2TA6e1BcQKE9n65gl62kCIYiycusriJkETCa x6R3vII5Ow8pT1S5zuOHRYMv2GdswMR+y3V01ac5r7om6xpr0gaUlB3oQ3395Pp9HXsW 2BIcoscT+aEsCczqN7Qg9CSJgYSFxYMhRsD5U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=M8h0gke+0x+faUHM9C1iCinOgLYHssW733vThQkr4uWN2Cb4XrBtlHMArpQJOtgVon B8TBPfqYgq1NsSSsTIElHzOA69n5Fz5HUkCt5hJtTxkTKoPDraW5l8aoMwR3JcfibCWW a9AKQYpBMiZ9LHOHaUrySU1Tib1FOWGUbyR8c= MIME-Version: 1.0 Received: by 10.204.19.18 with SMTP id y18mr1024883bka.179.1308262267978; Thu, 16 Jun 2011 15:11:07 -0700 (PDT) Received: by 10.204.36.12 with HTTP; Thu, 16 Jun 2011 15:11:07 -0700 (PDT) In-Reply-To: <4DFA7AB4.3010405@herveybayaustralia.com.au> References: <4DF46049.6080206@herveybayaustralia.com.au> <4DF53A6F.9080701@herveybayaustralia.com.au> <4DF705C9.7020606@herveybayaustralia.com.au> <4DF7F13C.6090208@herveybayaustralia.com.au> <4DF8430C.3010104@herveybayaustralia.com.au> <4DFA7AB4.3010405@herveybayaustralia.com.au> Date: Thu, 16 Jun 2011 15:11:07 -0700 Message-ID: From: Maksim Yevmenkin To: Da Rock Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: bluetooth@freebsd.org Subject: Re: Asus bluetooth device - 0x1712 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: Thu, 16 Jun 2011 22:11:10 -0000 On Thu, Jun 16, 2011 at 2:50 PM, Da Rock wrote: > On 06/17/11 03:22, Maksim Yevmenkin wrote: >> >> [...] >> >> >>>>> >>>>> Probably would if it recognised the product then. What is the correct >>>>> way >>>>> to >>>>> do this then? I know about usbdevs, and the awk script to run, but do= es >>>>> anything then need to be added to the driver to pick it up, or should >>>>> that >>>>> be all thats needed? >>>>> >>>> >>>> it does not look at the product. it looks at interface class, subclass >>>> and protocol. are you sure you are loading ng_ubt(4) from loader.conf? >>>> are there any error messages from ng_ubt(4) in /var/log/messages? >>>> >>> >>> devd.conf problem then? I haven't got it in loader.conf, but I did >>> kldload- >>> dmesg output (although the last 2 lines disappear when unloaded/loaded: >>> >>> ubt0: >>> =A0on >>> usbus5 >>> WARNING: attempt to domain_add(bluetooth) after domainfinalize() >>> WARNING: attempt to domain_add(netgraph) after domainfinalize() >>> >> >> if you get ubt0 line then device was recognized and attached. >> >> those two WARNING messages are harmless >> >> >>> >>> But ls dev shows no devices, and I can't start bluetooth services: >>> >> >> ng_ubt(4) does NOT create device nodes in /dev. this question pops up >> very often. handbook should really be updated to mention this. >> >> >>> >>> /etc/rc.d/bluetooth: ERROR: Unable to setup Bluetooth stack for device >>> ubt0 >>> >>> If it should work, then what am I doing wrong? >>> >> >> devd(8) will start/stop stack for you automatically. please check >> devd.conf (look at ubt secion). there is no need to start stack by >> hand any more. the error is because you are trying to start the stack >> when its already been started. again, handbook should be updated to >> reflect that. > > Thanks Max. Sounds like there is updating required in the handbook- but h= ow > do I test whether its actually working or not? Those are the tests to sho= w > it works. Perhaps some more decisive tests should be included? well, you could use hccontrol(8) and try to issue a couple of diagnostic commands, i.e. read_bd_addr, read_local_name, etc. to see if your device responds to those. obexapp from ports (comms/obexapp) is often used to transfer files to/from mobile phones/pdas. rfcomm_pppd(8) and rfcomm_sppd(1) in combination with ppp(8) are often used to create data link, i.e. use mobile phone data connection to connect to the internet. btpand(8) can be used to build ethernet-over-bluetooth lan. bthidd(8) can be used to connect your bluetooth keyboard/mouse to your freebsd pc etc. etc. bluetooth audio is lacking, i might get around to implementing a2dp profile and possibly avrcp profile but no promises. in other word, try to use it and if something does not work - ask and/or implement it :) thanks, max