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.

how to implement both support spple,and hfp?

Other Parts Discussed in Thread: CC2564

Dear StoneStreet:

we want  to   implement  spple and hfp profile  by the STM3240G-EVAL platform  sppledemo and hfpdemo sample.

but i found to can not  suppot both spple and hfp  profile at the same time,

if  we are used   BSC_EnableFeature() function enable to  BSC_FEATURE_WIDE_BAND_SPEECH feture,  spple profile is will not  work in nomal,

 else if we are enable to  BSC_FEATURE_BLUETOOTH_LOW_ENERGY  feture,  hfp profile is will not  work in nomal,

how to implement  support  both  BSC_FEATURE_WIDE_BAND_SPEECH and  BSC_FEATURE_BLUETOOTH_LOW_ENERGY  feture ?

 if possible , can you get the sample code to show how to do ? thanks

Regards

  • Hi,

    As per the datasheet: "The following technologies and assisted modes cannot be used simultaneously with the coprocessor: LE, ANT, assisted
    HFP 1.6 (WBS), and assisted A2DP. One and only one technology or assisted mode can be used at a time. "

    So you cannot have HFP WBS and BLE at the same time. But please note that BLE + HFP 1.5 (NB) can run simultaneously.

    Regards,
    Gigi Joseph.
  • Dear Gigi Joseph,

    we need to spple and hfp profile;
    how to get BLE + HFP 1.5 (NB) code ?
    we use the STM3240G-EVAL platform and download CC256x STM32 Bluetopia SDK v4.0.2.1 .


    thanks

    Regards,

    Justin Huang.

  • Hi Justin,

    THe HFP 1.5 (NB) is the HFPDemo code without the BSC_FEATURE_WIDE_BAND_SPEECH feature.

    Regards,
    Gigi Joseph.
  • Hi Gigi,
    we want to implement spple and hfp profile in the STM3240G-EVAL platform,
    I found if we are used BSC_EnableFeature() function enable to BSC_FEATURE_WIDE_BAND_SPEECH feture, spple profile is will not work.
    we need to spple and hfp function in the STM3240G-EVAL platform, and used HFPDemo sample,

    if we are not enable to BSC_FEATURE_WIDE_BAND_SPEECH feture, the phone Number can not display when the phone is ios system,

    because the etHFRE_Call_Line_Identification_Notification_Indication event can not be call in HFRE_Event_Callback() function.
    if possible , can you get the sample code to show how to do ? thanks

    Regards
    Justin Huang.

  • Hi Justin,

    We don't have a ready made sample code with both the HFP 1.5 & BLE.
    But as I told earlier, you cannot enable both BSC_FEATURE_WIDE_BAND_SPEECH & BSC_FEATURE_BLUETOOTH_LOW_ENERGY.

    Regarding the etHFRE_Call_Line_Identification_Notification_Indication issue, can you please share a sniiffer log (a snoop log also would be fine)?

    Regards,
    Gigi Joseph.
  • Hi Gigi,

    Now,we don't enable BSC_FEATURE_WIDE_BAND_SPEECH and we just want to control phone to answer all or hung up call,but some andriod's phone we can't hung up and ios phone with different version can't dial !
    so we want to get THe HFP 1.5 (NB) for test!
  • Hi,

    The problem that ios phones can't dial call was solved! The reason is that the phone number which gets through ANCS is wrong!  

    Now,I want to get phonenumber and phonebookname through HFP. I used HFRE_Query_Remote_Current_Calls_List to get them. but if the phonebookname is Chinese,it was wrong. How to get  chinese phonebookname?    I get that all chinese words value is 0x3f  !!!    

  • Hi,

    What character set are you selecting (+CSCS)?
    As per the spec,

    <alpha>: string type alphanumeric representation of <number> corresponding to the entry found in phonebook; used character set should be the one selected with command Select TE Character Set +CSCS.

    Please see the spec for more details.

    Regards,
    Gigi Joseph.
  • Hi,Gigi:
    You help us solve many problems! Thanks for your help very much!
    The above answer i can't understand, how i can get more detail information about the problem? I need to see which spec? I don't know +cscs. You can tell me more details to solve this problem?
  • Hi Justin,

    I believe you are talking about the "+CLCC" command. Please confirm.
    This command is defined in the 3GPP spec. There is a reference to in in the HFP Spec (you can get the link from there).

    If you're not getting Chinese characters, then I suspect this is a problem with the selected character set.
    The "+CSCS" command is also defined in the 3GPP spec (Section 5.5 "Select TE character set +CSCS" ).

    You can try the: "AT+CSCS?" command and let me know the result.

    Regards,
    Gigi Joseph.
  • Hi Gigi,
    How to send "AT+CSCS?" to cc2564? I don't know the API to send this command! Can you tell me detailed steps?
  • Hi,

    You can try using "SPP_Data_Write"

    Regards,
    Gigi Joseph.