Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Jun 2011 15:11:07 -0700
From:      Maksim Yevmenkin <maksim.yevmenkin@gmail.com>
To:        Da Rock <freebsd-bluetooth@herveybayaustralia.com.au>
Cc:        bluetooth@freebsd.org
Subject:   Re: Asus bluetooth device - 0x1712
Message-ID:  <BANLkTimemziKeE22tAq0QH2Q7cABvYLvFA@mail.gmail.com>
In-Reply-To: <4DFA7AB4.3010405@herveybayaustralia.com.au>
References:  <4DF46049.6080206@herveybayaustralia.com.au> <alpine.NEB.2.00.1106120817050.472@galant.ukfsn.org> <4DF53A6F.9080701@herveybayaustralia.com.au> <alpine.NEB.2.00.1106130738010.14646@galant.ukfsn.org> <BANLkTikGH9nsqgj_ELOM=PakD=4_h-C4Yw@mail.gmail.com> <4DF705C9.7020606@herveybayaustralia.com.au> <alpine.NEB.2.00.1106142057270.1687@galant.ukfsn.org> <4DF7F13C.6090208@herveybayaustralia.com.au> <BANLkTi=5rhWfo38T2x-33OB2y47xQasU9A@mail.gmail.com> <4DF8430C.3010104@herveybayaustralia.com.au> <BANLkTimkagoZ3zvkRKYtDmCyDqt3dKacOA@mail.gmail.com> <4DFA7AB4.3010405@herveybayaustralia.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jun 16, 2011 at 2:50 PM, Da Rock
<freebsd-bluetooth@herveybayaustralia.com.au> 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:<vendor 0x0b05 product 0x1712, class 224/1, rev 2.00/19.15, addr 2=
>
>>> =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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BANLkTimemziKeE22tAq0QH2Q7cABvYLvFA>