2025-05-16 6:53 AM
I am using the STM32MP257F-DK with a WiFi-BT module. WiFi is connected via SDIO pins and Bluetooth is connected using UART6 pins through the 40-pin header.
I am testing the HFP profile on the BT module. When I run the dial-number script from the ofono test script, the call is placed successfully, but there is no audio during the call.
PipeWire, WirePlumber, and oFono are all running successfully, but when dialing a number, I get the following log:
root@stm32mp2-e3-d2-9e:/usr/lib/ofono/test# ./dial-number xxxxxxxxxx
ofonod[1675]: src/modem.c:get_modem_property() modem 0xd3664a0 property SystemPath
Using modem /hfp/org/bluez/hci1/dev_5C_ED_F4_5A_72_AE
ofonod[1675]: src/voicecall.c:synthesize_outgoing_call() Registering new call: 1
/hfp/org/bluez/hci1/dev_5C_ED_F4_5A_72_AE/voicecall01
ofonod[1675]: src/voicecall.c:ofono_voicecall_notify() Got a voicecall event, status: dialing (2), id: 1, number: 9651273221 called_number: , called_name
ofonod[1675]: src/voicecall.c:ofono_voicecall_notify() Found call with id: 1
ofonod[1675]: src/voicecall.c:ofono_voicecall_mpty_hint() ids: 0
root@stm32mp2-e3-d2-9e:/usr/lib/ofono/test# ofonod[1675]: Reject SCO: Agent not registered
ofonod[1675]: Reject SCO: Agent not registered
ofonod[1675]: src/voicecall.c:ofono_voicecall_disconnected() Got disconnection event for id: 1, reason: 2
I can also answer and hang up the call, but there is no audio. I have already enabled the sco_bt module.
How do I register SCO? Where should I make changes?