NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bluetooth speaker under NetBSD



Hi,

I do not know much about btsco(4) audio device.

If you want to only play music. I recommend you should try bta2dpd(8).
It supports A2DP audio playback, however it does not support microphone.
If you use Bluetooth *speaker*, I suspect microphone support may be
out of your scope.

https://blog.onodera.asia/2017/10/how-to-use-bta2dpd8-with-bluetooth.html
show you how to play music with bta2dpd(8).
It may have redundant and/or incorect steps, however I can play music
with my Bluetooth headphones with this procedure.

And if you have USB audio device or webcam, you should use it with the same
USB receptacle. In my old case, USB host controller in my machine
did not work correctly with NetBSD's USB support code.
btsco(4) uses USB isoch transfer like USB audio or webcam.
If your USB audio device and webcam does not work properly,
your steps will not be successful in many cases.
Of course recent NetBSD's USB support code is much improved.
So this may not be a problem...

Thank you.

Ramiro Aceves <ea1abz%gmail.com@localhost> writes:

> Hello,
>
> I have a bluetooth speaker lying around and was curious about making it sound under NetBSD.
>
> I followed the NetBSD Guide:
>
> https://www.netbsd.org/docs/guide/en/chap-bluetooth.html#chap-bluetooth-config
>
> /etc/rc.conf:
>
> bluetooth=no
> btconfig_ubt0="name Chicorzo"
>
> netbsd-nuc# service bluetooth onestart
> configuring Bluetooth controllers: ubt0.
> starting Bluetooth Link Key/PIN Code manager
> starting Bluetooth Service Discovery server
> netbsd-nuc# 
>
> dmesg:
>
>
> [  4021.873167] bthub0 at ubt0 local-bdaddr 04:ea:56:48:ed:3c
> [  4792.143560] bthub0: detached
> [  4952.407809] bthub0 at ubt0 local-bdaddr 04:ea:56:48:ed:3c
> netbsd-nuc# 
>
>
> netbsd-nuc# btconfig ubt0 inquiry
> Device Discovery from device: ubt0 ... 2 responses
>   1: bdaddr 41:42:24:c9:51:f7 (colacao)
>    : name "ColaCao Altavoz"
>    : class [0x240418] Headphones <Rendering> <Audio>
>    : page scan rep mode 0x02
>    : clock offset 21208
>    : rssi 0
>
>   2: bdaddr a2:07:00:00:c5:c4
>    : name "P95"
>    : class [0x280704] Wrist Watch <Capturing> <Audio>
>    : page scan rep mode 0x01
>    : clock offset 18224
>    : rssi 0
> netbsd-nuc# 
>
> netbsd-nuc# cat /etc/bluetooth/hosts 
> # $NetBSD: hosts,v 1.2 2015/11/28 07:46:33 plunky Exp $
> #
> # Bluetooth Host Database
> #
> # This file should contain the Bluetooth device addresses and
> # aliases for devices known to the system
> #
> # BD_ADDR               Name [ alias0 alias1 ... ]
>
> # 00:11:22:33:44:55	phone
> 41:42:5d:b3:f4:77 headset
> 41:42:24:c9:51:f7 colacao
> netbsd-nuc# 
>
> netbsd-nuc# btpin -d ubt0 -a colacao -p 0000
> netbsd-nuc# btdevctl -d ubt0 -a colacao -s HSET -A
> btdevctl: service HSET not found
> netbsd-nuc# 
>
> I could not make it work. I  have a pair of earphones and also could not make them work.
> I do not know if I am doing something wrong or it simply does not work. I do not know anything about this subject.
>
> I am not preocupied as it is not essential here, just curious to learn something new.
>
> Regards.
> Ramiro.
>
>

-- 
Ryo ONODERA // ryo%tetera.org@localhost
PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3



Home | Main Index | Thread Index | Old Index