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.

Sending UUID in EIR

Other Parts Discussed in Thread: MSP430BT5190

Hi All,

I am using  MSP430BT5190 with PAN1325 module, MindTree "Ethermind" Bluetooth stack available on the TI WEB. Using Stack Version “SDK_SW_VERSION” – 5.16 as reference.

I am using below API on myDevice to send LocalName and service class UUID in EIR packet.

“API_RESULT BT_hci_write_extended_inquiry_response(IN UCHAR fec_required,IN HCI_EIR_DATA * eir_data_field, IN UCHAR total_eir_fields);”

But I found that with this API, I am able to send either LocalName or UUID.

I do not know how to set both?

Can I get some example to set them?

Will you please help me to sort out this issue.

Appreciate your help.

 

Thanks & Regards,

PRC

  • Hi Prashant,

    I am looking into this issue and will get back to you.

    Regards,

    ZH

  • Hi,

    Please look at this reference for an example on how to set extended inquiry response:

     http://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=5&sqi=2&ved=0CGIQFjAE&url=http%3A%2F%2Fwww.bluetooth.org%2Fdocman%2Fhandlers%2Fdownloaddoc.ashx%3Fdoc_id%3D245130&ei=A_X9T667LseA2AXF563HDg&usg=AFQjCNE2-wSAA2lLB4KcfNQ9gjjv14bp4A&sig2=EY5lxB_vLhFqztuqQfi0dw

    BR,

    ZH

  • Hi ZH,

    Thanks ZH for looking in this issue.

    I read it.

    But in our code, the function provided for setting EIR packet, is not working as expected and that is our issue. 

    I do not know how to set both LocalName and UUID in EIR packet using this function "BT_hci_write_extended_inquiry_response()"?

    Need your help to know how to use above function?

    Thanks & Regards,

    PRC

  • Here is further information about this function:

    BT_hci_write_extended_inquiry_response (Bluetooth v2.1+EDR)

    Name

    BT_hci_write_extended_inquiry_response(): To write the Inquiry Mode configuration parameter

    Synopsis

     

    #include “BT_hci_api.h”

    API_RESULT BT_hci_read_extended_inquiry_response

               (

                   UCHAR           fec_required,

                   HCI_EIR_DATA *  eir_field,

                   UCHAR           num_eir_field

               );

    Description

    This API writes the extended inquiry response to be sent during the extended inquiry response procedure. The fec_required parameter states if FEC encoding is required.

    The extended inquiry response data is not preserved over a reset. The initial value of the inquiry response data is all zero octets. The controller does not interpret the extended inquiry response data.

    IN Parameters

     

    fec_required    States if FEC encoding is required.

    • 0x00 – FEC is not required
    • 0x01 – FEC is required

    eir_field    Array of EIR (Enhanced Inquiry Response, refer to HCI section of Bluetooth Core specification v2.1+EDR) data fields.

    eir_field    Number of EIR data fields.

    OUT Parameters

    None.

    Function Return

    API_RESULT: API_SUCCESS or one of the error codes as defined in BT_error.h or Host Controller Error Codes section.

    Notes

    None

    Let me know if you need anything else.

    BR,

    ZH

  • Hi ZH,

    Thanks for giving details about IN parameters to this function.

    I was not able to assign array of eir_data_field.

    But now it is working. I am getting what is needed.

    Appreciates your prompt help and support.

    Thanks,

    PRC

  • Hi

    I am able to send LocalBTName in EIR packet.

    But when I captured the BT packet logs by PacketLogger on remote MAC book, I found that in first packet EIR name was null, but in second it was SymphonyINC, again in third empty and fourth SymphonyINC.

    So i am getting alternate packets with proper data as EIR name.

    Example of empty packet log is as given below:

    [12:34:16.696]  [HCI EVENT]  Inquiry Result - EIR  - 1 resp(s) - 64-9C-8E-02-00-05 - Unknown

                   Inquiry Result - EIR  - 1 resp(s) - 64-9C-8E-02-00-05 - Unknown

                   Parameter Length: 255 (0xFF)

                   Num Responses: 0x01

                   Device Address: 05-00-02-8E-9C-64

                   Page Scan Repetition Mode: 0x01

                   Reserved: 0x00

                   Class Of Device: 0x040724

                   Service Class: 0x0020

                       Rendering

                   Major Class: 0x0007

                       Unknown

                   Minor Class: 0x0009

                   Clock Offset: 0x4542

                   RSSI: 0xD7 (215) (-41 dBm)

                   EIR Name: (null)

    and proper data packet is as below:

    [12:34:16.696]  [HCI EVENT]  Inquiry Result - EIR  - 1 resp(s) - 64-9C-8E-02-00-05 - Unknown

                   Inquiry Result - EIR  - 1 resp(s) - 64-9C-8E-02-00-05 - Unknown

                   Parameter Length: 255 (0xFF)

                   Num Responses: 0x01

                   Device Address: 05-00-02-8E-9C-64

                   Page Scan Repetition Mode: 0x01

                   Reserved: 0x00

                   Class Of Device: 0x040724

                   Service Class: 0x0020

                       Rendering

                   Major Class: 0x0007

                       Unknown

                   Minor Class: 0x0009

                   Clock Offset: 0x4542

                   RSSI: 0xD7 (215) (-41 dBm)

                   EIR Name: SymphonyINC

    I am not able to understand this behavior.

    Appreciates your help to overcome the issue.

    Thanks & Regards,

    PRC

  • Hi,

    Still struggling to solve this issue.

    Need your valuable response to come out of this issue.

    Thanks & Regards,

    PRC.

  • Hello Prashant and Zahidul,
    I am writing to you to get some help in resolving an issue related to Bluetooth connectivity as we are also using the Mindtree BT Stack with MSP430. We are currently trying to establish connectivity between the PAN1325 BT module and an iPhone, but have not had any success to date. Below are further details:

    1. We are using the PAN1325A module with Bluetooth stack (MSP430BT5190 + mindtree stack ), 

    2. We have done the MFi registration and have incorporated the MFi chip on the hardware, MFi chip is up and running we can send and receive the data form MFi chip with controller BT5190.

    3. Our system can discover, send and receive data on other Bluetooth devices over serial protocol (SPP profile)

    4. The Macbook and Android phone are able to discover the device (module) and communicate with it.

    5. However, iPhone or iTab are unable to find the PAN1325A module over SPP profile.

    6. In device list of iPhone no modules are shown.

    We will really appreciate if you could provide some steps to make module visible to Apple devices (iPhone) at the earliest. Please let us know if you want to know more about the issue that will help you and your team troubleshoot it. I'd really appreciate if you share your phone no. and find sometime for a call to discuss these matters so that we can come to a solution asap. It has been over two months struggling with this issue and has been a serious setback to our success.  We appreciate your help and look forward to your quick reply.

    Thanks & Regards,

    Swapnil

  • HI,

    In file "sdk_bluetooth_common_config.h" change COD to "#define SDK_CONFIG_COD               BT_MSC_NETWORKING|BT_MDC_TOY|BT_TMC_GAME"

    It will be visible to iPOD.

    But for iPhone change it to "#define SDK_CONFIG_COD               BT_MSC_AUDIO|BT_MSC_RENDERING|BT_MDC_WEARABLE|BT_CMC_DESKTOP_WORKSTATION"

    Try this.

    Thanks,

    PRC.

  • Hi,

    Thanks PRC, we are now able to visible the BT module on iPOD and iPhone.

    We have incorporated the mfi chip on the hardware it is up and running.

    but while debugging, we are not receiving any mfi related query at SPP level.

    At HCI level request while paring we can can't debug for request parsing or cant sent any mfi specific data.

    Is there any mfi BT stack to be incorporated for mfi requests processing? iy yes from where we can get it?

    or is there any other procedure to pair with iPhone?

    Thanks and regards,

    Amol

  • Hi Prashant,

    Thanks a ton! Really appreciate your reply! Amol (who replied to your message as well) and I are able to make the module visible now, however, as Amol mentioned need further help in establishing the communication, so request you to reply as soon as possible.

    In addition, could you tell us where did you get this information? Any document or link to such resource will be highly appreciated!

    I am based out of the Dallas, USA. Where are you based out of?

    Thanks in advance for your help again! 

    Best Regards,

    Swapnil

  • Hello All,

    Any response will be highly appreciated!

    Thanks,

    Swapnil

  • Hi,

    This stack is no more supported by TI.

    You need to ask your TI contact for a new BT stack.

    This stack is not for iOS devices.

    SPP is not supported by iOS.

    Thanks,

    PRC.