This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Problem with host controlled - bidirectional communication

Hi All,

this is my problem: I have a master with the firmware "Audio Input Bi-directional Master", and a slave host controlled (Headset Kit). Setting the NWM_ACH_SET_USAGE {0x00 0x01 0xFF..}, the slave receive the audio from the master and there's no trasmission from slave to master.

Setting 0x01 on position "Microphone 1"  there's no trasmission from slave to master again.

Where is the error?

(Firmware - Audio streaming of the slave device:

master to slave: AD1 left 0, AD1 right 1

slave to master:AD0 Left 0)

Thanks!

Francesco

  • Ok, my mistake was banal:

    with 0x00 on position  "Microphone 1" there are the bidirectional communication butonly one speaker works on the slave device.

    How should I set the first two byte (par) of the NWM_ACH_SET_USAGE ? ù

    Thanks

    Francesco

  • I haven't used the headset kit, but on the other kit I have to use channel 10 (INPUT_LEFT) for some configurations.  I can't remember which is which but for one (I think the single mic) it has to be INPUT_LEFT, and for the multi-channel (like 4 slaves) then you have to use MIC0, which is sort of annoying.  My code looks at the achSupported to see which one the master is providing, but if you're only going to use one, then just pick the right one.

  • Hi Francesco,

    In the bi directional demo the default audio channels are:

    Master to slave:

    Front/primary left

    Front/primary right

    Slave to master:

    Microphone 0

    When selecting host controlled operation on the slave the default indexes should be:

    Master to slave:

    Front/primary left - index 0

    Front/primary right - index 1

    Slave to master:

    Microphone 0 - index 0

    So the correct ach_set_usage parameters should be:

    0x00,0x01,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x00,0xFF,0xFF,0xFF

    Regards

    Kristoffer

  • Hi,

    Thank you for the indication: the problem is solved.

    Best Regards

    Francesco