Working with WT32i is getting more interesting and fun, so here comes another one.
There is mic connected to internal codec of Bluetooth, and it can be used in HFP, AVRCP and other profiles while receiving call. (here we can say WT32i is connected to phone). You speak to mic and voice data goes through BT and received by phone.
Is it possible to send voice data from WT32i devkit to phone in normal data mode using any profile(HFP/HSP, AVRCP...) when there is no any phone call? If it is YES, could anyone give hint or instructions, please.
The audio interfaces (both analog and digital) are only used when there is a real audio stream active, either A2DP or SCO. It is not possible to access any audio signal data inside the module for transmission across an RFCOMM-based data connection like SPP or IAP.
However, it is possible to open a basic audio connection using HSP (headset profile) and the SCO OPEN command, or the BUTTON command, as documented in the latest iWRAP HFP/HSP Application Note.
iWRAP further supports A2DP streaming when operating as an A2DP SOURCE device, but modern smartphones do not implement the A2DP SINK side of that profile, so you cannot connect and send unidirectional audio this way. Only HSP/HFP + SCO audio is supported for sending audio to smartphones, because of the limitations imposed by the smartphone operating systems.
Mister@jrowberg, Thank you for your help.
I am facing some difficulties (maybe lack of my knowledge about DKWT32i).
I attempted several times to open audio connection, and there were several results
( NO CARRIER 0 ERROR 10d HCI_ERROR_REJ_BY_REMOTE_NO_RES,
HSP 4 OK and others). Maybe I am doing something wrong.
I need your help. Scenario as follows:
1. There is DKWT32i board and it is connected smartphone (OS Android)
2. We want to sent audio data from board to smartphone using mic of board when there is no any phone call.
It would be great if you could give some detailed example settings or approach. And also any way to check if data is received or not by phone. Thank you!!!