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.

BLE support for PAN1326 & MSP430F5438A

Other Parts Discussed in Thread: MSP430F5438A, MSP430F5438, MSP430BT5190
Hi,
I am using MSP430F5438A with PAN1323ETU dual mode radio and have following questions for BLE mode:
  1. Which sample application to use on this eval board(MSP430F5438A & PAN1323ETU) to test it with CardioMaper on the Apple App store?
  2. Can we use any generic profile to send/receive data from application to/from LE supported phone?
  3. As we are not required to use Apple CP for BLE feature on iphone 4S, do we still require MFI support?
  4. How to Set user friendly name for BLE device.  
  5. How phone with LE support can pair with LE device? How to set up PIN for pairing?   
  6. For pairing, do we store link key same as we are doing for BR/EDR?
  7. How to Set it discoverable, pairable and connectable just like we are doing for BR/EDR?
  8. How to get connect & disconnect event when LE capable phone connects & disconnects?
  9. How to get message send by LE capable phone?
  10. How to send message to LE capable phone? Is there any size limitation for send & receive?
  11. How to delete pairing so it requires phone to pair again?
  12. How to change BT PIN?
  13. How to make BT LE module non discoverable?
  14. How to do auto connect to paired LE Phones?
  15. How to enable LPM as well as set up scan interval to 1.28 second or 2.56 second or something else?
Thanks,
- Ashok
  • Hello Ashok,

    Please find the answers below. Let us know if you have follow up questions.

    I am using MSP430F5438A with PAN1323ETU dual mode radio and have following questions for BLE mode:

    1. Which sample application to use on this eval board(MSP430F5438A & PAN1323ETU) to test it with CardioMaper on the Apple App store?

    You will have to use the Heart Rate Sample application with this application

     2. Can we use any generic profile to send/receive data from application to/from LE supported phone?

    No. Communication is profile dependent, you can write a custom service and profile but you will have to write an application on the remote side as well to communicate with it.

     3.As we are not required to use Apple CP for BLE feature on iphone 4S, do we still require MFI support?

    No you don’t need MFI support to use BLE with iPhone 4S.

     4.How to Set user friendly name for BLE device. 

    http://processors.wiki.ti.com/index.php/CC256x_MSP430_Bluetopia_Basic_HRPDemo_APP#SetLocalName


    5. How phone with LE support can pair with LE device? How to set up PIN for pairing?  

    Please refer to the Wiki here to know more about the API.

    http://processors.wiki.ti.com/index.php/CC256x_MSP430_Bluetopia_Basic_HRPDemo_APP#PairLE

    There is no PIN here. A Passkey is used. During Pairing we can set it using SetPassKey

    http://processors.wiki.ti.com/index.php/CC256x_MSP430_Bluetopia_Basic_HRPDemo_APP#SetPasskey

     

    6. For pairing, do we store link key same as we are doing for BR/EDR?

    Please take a look at the sample application code to know more about the Key exchange and how to store the keys. The sample application stores the keys in a device information structure as an example (it will not survive a power cycle). We will provide more information on this soon.

     

    7. How to Set it discoverable, pairable and connectable just like we are doing for BR/EDR?

    There are API for these. Please refer to the wiki for documentation on SetConnectabilityMode, SetDiscoverabilityMode and SetPairabilityMode.

    http://processors.wiki.ti.com/index.php/CC256x_MSP430_Bluetopia_Basic_HRPDemo_APP

     Note that you must be advertising for a remote device to see and connect to your device. 

     Please take a look at the AdvertiseLE command in the wiki to know more about the same.

    8. How to get connect & disconnect event when LE capable phone connects & disconnects?

    The application code describes in detail about connect and disconnect events when the phone connects/disconnects.

    9. How to get message send by LE capable phone?

    There is no direct message exchange like SPP over BR/EDR. We read and write Attributes which are defined by the service. You can also have custom attributes with custom profiles that the remote device knows about. SPPLE is an example of one such custom/non-standard profile. 

      

    10. How to send message to LE capable phone? Is there any size limitation for send & receive?

    You are dependent on the applications written for the phone and the profiles and services used by those applications.

      

    11. How to delete pairing so it requires phone to pair again?

    Please take a look at the sample application code to know more about the Key exchange and how to store the keys. The sample application stores the keys in a device information structure as an example (it will not survive a power cycle). We will provide more information on this soon.

     

    12. How to change BT PIN?

    There is no PIN like BR/EDR for LE. You have a passkey and the sample code shows how to use passkey in pairing process.

     

    13. How to make BT LE module non discoverable?

    Please refer to the wiki here. http://processors.wiki.ti.com/index.php/CC256x_MSP430_Bluetopia_Basic_HRPDemo_APP#SetDiscoverabilityMode

    Note that to make it completely non discoverable the device should not be advertising.

     

    14. How to do auto connect to paired LE Phones?

    Auto connect is an application level implementation. The remote device that you are reconnecting too must also be able to accept a connection from the local device. For example, a Cellphone may not  want to be a slave for a certain profile and in that case auto-reconnect will not be successful even if implemented in the application.

    15. How to enable LPM as well as set up scan interval to 1.28 second or 2.56 second or something else?

    LPM is already enabled on the device. The function to enable LPM is HAL_LowPowerMode that you can find a call to in Main.c

    To change the scan interval change the third parameter in the GAP_LE_Perform_Scan function call in the Start scan function of HRPDEMO.

    Hope this helps.

    Best Regards,

    Stonestreet One. 

  • Hi

    I am new to the BLE and just purchased a MSP430 5438  exp board and PAN1323 ETU. I installed BLUETOPIA and using CCS 5.1 compile and build demo program SPPLEDdemo and downlaoded to the MSP5438a.

    Here is the message I got from the tera term

    OpenStack().

    Stack Init Failed: -4.

    Unable to open the stack.

    I tried with SPPdemo the result is the same

    The MSP430 board works fine I can build and run User Experience Demo

    I check the hardware jumper pin settings (do I have to connect RF3 pins?)

     

    Thanks

     

     

  • Scott,

    A jumper is required on the RF3 pins to connect the UART and some other signals to the pins on the PAN1323ETU.    If you go to the link below and check out the RF3 section you will see the jumper block that is required.

    http://processors.wiki.ti.com/index.php/PAN1315EMK_User_Guide

    Regards,

    Tim 

  • THANKS IT WORKS NOW

    S

  • Hello,

    Can I use MSP430F5438 to evaluate TiWiUB2 with bluetopia stack or do I need to use MSP430BT5190?

    regards,

    Hansen

  • Hello,

              I also have bought a MSPEXP430F5438 experimenter board with TiWiUB2 module connected to it on RF1 ans RF2 connector.After installin SPPLE demo from Bluetopia i am facing the same problem on PuTTY terminal - 

    OpenStack().
    BSC_Initialize Failed: -4.
    Unable to open the stack.

    i have checked the above link http://processors.wiki.ti.com/index.php/PAN1315EMK_User_Guide.But how to connect the respective pins on the RF3 connector.I dont have any RF3 adapter provided in the kit i purchased.Can u suggest me where can i get one.

    Best Regards,

    Anirban