For CYW89373, repeater support NBS mode . Both phone and Handset must be in NBS.
And using following commands and sequence for controlling.
#1 params in HCI vendor command, 0xfcce: only one byte flag to turn on/off repeater
exp:
[CE FC 01]: 01
opcode = 0xFCCE (64718, "Enable_Repeater_Functionality")
Repeater Functionality = 0x1 (1, "Enable Repeater Functionality"
#2 HCI sequence, VSC of Enable_Repeater_Functionality: it should be sent prior to SCO setup
a. VSC of Enable_Repeater_Functionality to enable repeater
b. setup 1st SCO
c. setup 2nd SCO
And following is the flow for this repeater usage:
(a) Issue VSC Enable_Repeater_Functionality to enable repeater function
(b) setup carkit esco
(c) setup headset esco <-- then repeater function should be running here
(d) headset disconnect <-- carkit should still no voice here
(e) carkit issue Enable_Repeater_Functionality to disable repeater function
and Write_Dynamic_SCO_Routing_Change to route path back to carkit <--- I guess customer call this two function set audio path back to carkit
(f) headset connect back
(g) setup headet esco, enable repeater function again, sequence doesn't matter
(h) call Write_Dynamic_SCO_Routing_Change << repeater function running
|