Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bluetooth modules in pulseaudio config #3

Open
djbr1 opened this issue Apr 8, 2022 · 3 comments
Open

bluetooth modules in pulseaudio config #3

djbr1 opened this issue Apr 8, 2022 · 3 comments

Comments

@djbr1
Copy link

djbr1 commented Apr 8, 2022

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
Copy link
Owner

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
Copy link
Author

djbr1 commented Apr 9, 2022

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
Copy link
Owner

Links2004 commented Apr 14, 2022

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants