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.

RTOS/CC2640R2F: RC voice_hogp_remote

Part Number: CC2640R2F
Other Parts Discussed in Thread: BLE-STACK, , CC2650, CC2650RC

Tool/software: TI-RTOS

Hi all,

I am trying to use the new BLE-Stack (sdk1.40) for the CC2640R2F starting with the voice_hogp_remote. I use a custom CC2640R2 remote  but I am not able to get the audio output using the voice.py script as I am supposed to!

I think it comes from the remote as I start the stream just fine but it seems that I do not succeed to send the stop command so the LED stays ON and the stream continues. Does anyone as an idea why the stop command would not be received?

Here's what I get when running the python voice.py script 

I eventually receive the INFO -Closed event but only long after I released the MIC key and it seems to happen only when the Bluetooth connection drops.

Even though do you think the wav file is created anyway? If so where is it ?

Any help would be appreciated.

Sylvain

  • Hello Sylvain,

    Do you see the same behaviour when using the TI CC2650RC reference platform, substituting the CC2640R2F for the CC2650? It would be good if you can try this platform since it matches our internal setup.

    Best wishes
  • Hi Sylvain,

    what version of Windows are you using? I've tested this using Win 10. Do the HID keys work?
    Would you be able to provide a sniffer capture? I'd like to see if the RC is sending out the Voice HID reports or not.

    The script is waiting for HID voice reports to be received via Window's HoGP profile. The fact that it's sitting in "Start" means that the script (1) found an HID device that has HID report IDs 10 (start/stop) and 11 (voice data) and (2) it received the start command on report ID 10. It is waiting to receive voice data reports now (when the LED turns off...).

    Are you running the VoHoGP example with any modifications? CCS or IAR?

    You can throw the "--transport_validation" argument to let the script do some sanity checking on the data it receives. (This mode will also generate .bin files that show you the voice data in ascii form).

    Like you mentioned, the script will terminate when the RC disconnects from Windows. You'll only get a .wav file if the if voice script received a stop command (within the same directory you ran the script).

  • I Tom,

    I've switched projects and I now use the hidadvremote for now. I will answer your as sonn as I have some time to test it.

    Thanks for your answers,

    Sylvain
  • Hi Tom,

    So I came back a bit to this project, and I'll try to answer all of your questions.

    I did not try yet with the CC2640R2 remote, but I have one here and I'll test ASAP.

    Concerning my remote, I test it on a windows device and I do receive the HID keys.

    By using the --transport_validation I do have the raw values so it really seems that the voice is sent throgh the HID Service (see below aw file).

    From what I'm seeing in debug mode, I think that everything goes fine until the Stop command. It seems that the stop commands is not sent correctly and I get stuck in the voiceHogpRemote_sendStopCmd() loop because  HidDev_VoiceReport(HID_RPT_ID_VOICE_START_IN, HID_REPORT_TYPE_INPUT, 5,hidVoiceStartReport) does not return success. What could be the reason of it?

    I did some changes on the project but nothing on the microphone part and the HidDev file.I use IAR.

    So to summarize I would say that the only issue I have is that the stop command is not send which leads the python script not to stop and create the .wav file.

    Thanks in advance for your support,

    Sylvain

    Raw File :

    ST 04 [0, 0, 0, 0]
    D0 9 0x88, 0x88, 0x88, 0x88, 0x88, 0x88, 0x88, 0xF8, 0xFF, 0xFF, 0xFF, 0xFF, 0x0F, 0x08, 0x00, 0x08
    D1 0x00, 0x00, 0x08, 0x00, 0x00, 0x01, 0x00, 0x10, 0x00, 0x01, 0x11, 0x10, 0x11, 0x12, 0x21, 0x21, 0x22, 0x23, 0x33, 0x43
    D2 0x32, 0x43, 0x32, 0x43, 0x32, 0x33, 0x43, 0x33, 0x43, 0x33, 0x43, 0x32, 0x24, 0x33, 0x33, 0x43, 0x33, 0x34, 0x33, 0x43
    D3 0x33, 0x43, 0x33, 0x33, 0x34, 0x43, 0x32, 0x24, 0x23, 0x43, 0x32, 0x33, 0x34, 0x23, 0x34, 0x42, 0x32, 0x23, 0x24, 0x33
    D4 0x43, 0x33, 0x33, 0x34, 0x33, 0x43, 0x43, 0x32, 0x33, 0x53, 0x32, 0x32, 0x43, 0x23, 0x43, 0x31, 0x24, 0x23, 0x33, 0x25
    D0 17 0x31, 0x31, 0x43, 0x21, 0x13, 0x14, 0x12, 0x32, 0x41, 0x10, 0x13, 0x13, 0x13, 0x22, 0x31, 0x11
    D1 0x03, 0x12, 0x12, 0x11, 0x31, 0x11, 0x11, 0x02, 0x21, 0x10, 0x11, 0x11, 0x11, 0x11, 0x10, 0x01, 0x11, 0x11, 0x10, 0x01
    D2 0x11, 0x11, 0x10, 0x00, 0x01, 0x11, 0x10, 0x19, 0x19, 0x91, 0x01, 0x01, 0x00, 0x01, 0x10, 0x19, 0x19, 0x19, 0x90, 0x91
    D3 0x91, 0x01, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00
    D4 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19
    D0 25 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00
    D1 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19
    D2 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00
    D3 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90
    D4 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01
    D0 41 0x90, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00
    D1 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90
    D2 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01
    D3 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00
    D4 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19
    D0 65 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90
    D1 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01
    D2 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00
    D3 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19
    D4 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00
    D0 73 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19
    D1 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00
    D2 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91
    D3 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00
    D4 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19
    D0 81 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00
    D1 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19
    D2 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00
    D3 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90
    D4 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01
    D0 89 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90
    D1 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01
    D2 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00
    D3 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19
    D4 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00
    D0 97 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19
    D1 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00
    D2 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91
    D3 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00
    D4 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19
    D0 105 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00
    D1 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19
    D2 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00
    D3 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90
    D4 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01
    D0 113 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90
    D1 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01
    D2 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00
    D3 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19
    D4 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00
    D0 121 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19
    D1 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00
    D2 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91
    D3 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00
    D4 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19
    D0 129 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00
    D1 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19
    D2 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00
    D3 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90, 0x91, 0x01, 0x00, 0x00, 0x19, 0x19, 0x00, 0x00, 0x90

  • I've tested with the original code a CC2640RC and I get the exact same result, the Stop command is not sent.
    It's with the 1.40 stack, I saw that you just released the v1.50, I will test with it tomorrow.

    Sylvain
  • Hi Tom,

    I couldn't build the vohogp project on the 1.50 stack.

    When running the 1.40 either the remote seems to just fail during the stream either the stop command is not sent successfully.

    Any ideas?

    Thanks

    Sylvain

  • Hi Tom,

    I think I solved it (at least it works way better now, the stram continues and the stop command is sent, still no .wav file but I think that's more on my PC side.

    I only changed the compiler optimizations from HIGH Size to HIGH Speed.

    I'll now try to have a wav file and I'll keep you updated.

    Best regards,

    Sylvain
  • Hi Tom,

    Sorry to bother you again but I really need the voice to work in my project.
    So with the speed optimization it does work better but I still have some issues.

    When I leave the stream running a bit long (more than ten seconds) it fails, I think the stream is not sent anymore. And then even the keys are not sent anymore. I need to unpair the remote and pair it again to make it work again!
    What could be the issue? A Buffer Size?

    Thanks in advance for your support!

    Sylvain
  • I just found it also, by switching the connection interval from 8 to 6 and it solved it