Links2004 / x6100-armbian

tools and scripts to build armbian for the x6100
84 stars 11 forks source link

bluetooth modules in pulseaudio config #3

Open djbr1 opened 2 years ago

djbr1 commented 2 years ago

bluetooth modules were missing in Pulseaudio config:

added below mentioned modules root@x6100:~# /etc/pulse/system.pa ... load-module module-bluetooth-policy load-module module-bluetooth-discover

Now bluetooth headset can be connected using bluetoothctl command line utility. Connecting from GUI widget not reliable

Sound from command line ("speaker test") is audible (this was also possible using original buildroot linux, some command line juggling)

unfortunately there is no sound from X6100 QT GUI app :(

Links2004 commented 2 years ago

for getting sound from the APP / RF it is most likely needed to build a loop back / sound monitoring from the internal mixer. thanks to the crappy 2.4Ghz antenna working on bluetooth and WiFi makes no fun atm, always having disconnects there. will need to replace the Antenna at some point to get a connector for external antennas like on a router.

but currently working on getting wsjtx working on the device directly.

djbr1 commented 2 years ago

Hi Markus, for wifi issues please try reducing MTU, this may help.
It works on 2.4 G consequently it is prone to interference. I have configured AirPort to serve as 2.4G repeater in same room

Sound "loopback": please look how WSPR daemon is made in python https://github.com/sstjohn/x6100-wspr ( this command line wspr daemon can be easily adapted to receive FT8 signals.....)

it uses "arecord" res = os.system(f"arecord -D mixcapture -d 114 -f S16_LE -r 12000 {fname}")

once you have bluetooth with audio capabilities connected, it is possible to play audio from QT GUI APP (from buildroot, original x6100)

pacat test works

[root@XIEGU-x6100:/usr/share/sounds/alsa]# pacat < /dev/urandom

play radio (qt gui app) through bluetooth

[root@XIEGU-x6100:/root]# arecord -D mixcapture | paplay Recording WAVE 'stdin' : Unsigned 8 bit, Rate 8000 Hz, Mono

Armbian is also able to play audio to connected bluetooth headset (tested with speaker-test)

73 hb9txb

Links2004 commented 2 years ago

I removed the bluetooth pulseaudio support and build in the bluez-alsa support which the APP normally uses. this is currently untested but may give it a go via the APP. (currently uploading version 0.0.2-alpha)