Issue : Monitor sco packets between master and slave bluetooth.
Description of problem. I have small in-house Bluetooth device( developed in
Linux fedora OS) and is configured as slave device.
I am interested in following things and any help will be truely benifical to me as I think I have hit the dead end.
1) Master to connect to our in-built device and establish an sco link. how would I verify link is established?
2) master to send sco packets to slave and slave send back( loopback) the same packets to master. .. Absolutely no idea how to do that?
What I did so far:
1) Well I have configured our in-built device to slave and successfully connected to windows laptop via bluetooth.
2) I have enabled headset profile in my in-house BT device and I can see headset icon on windows.
3) on linux side via c++ code I have modified /etc/asound.conf to include mac-address of connected device( in my case windows laptop) .
sample is shown below
PHP Code:
pcm.btheadset {
type plug
slave {
pcm {
type bluetooth
device DC:A9:71:8D:2D:C6
profile "auto"
}
}
4) then play the sound on my in-house BT via command aplay -D btheadset " path of audio_file"
And I can successfully hear sound on my windows laptop.
SO far so good.
Now when i do
hciconfig -a
acl packets have increase but
sco remain at 0
RX bytes:1041 acl:456 sco:0 events:36 errors:0
TX bytes:1347 acl:567 sco:0 commands:34 errors:0
1)Will this proof that audio is working but not via sco ?
2) I have found that I don't have btsco driver or hcid.conf file . Do you thinks that could be an issue?
3) if my audio is working via sco could someone provide me an example of how to test via hcidump?
4) how to loop back it to master?
Any help or criticism will be beneficial to me.
Thanks a lot