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.

CC2640R2F: Code for "Alias : CC2640R2 " in Simple Peripheral LAUNCHXL

Part Number: CC2640R2F
Other Parts Discussed in Thread: LAUNCHXL-CC2640R2, CC2640

Hi YK Chen,

Thank you very much.

The application is D:\ti\simplelink_cc2640r2_sdk_1_00_00_22\examples\rtos\CC2640R2_LAUNCHXL\blestack\simple_peripheral

Above is the link, simple_peripheral for Bluetooth 5, use launch pad :LAUNCHXL-CC2640R2.

Please help.

Cheers,
KF

  • Part Number: CC2640R2F

    Hi Sir / Madam,

    May I know where can I change the Alias name advertise by development board : LAUNCHXL-CC2640R2 Rev: 1.0 ?

    The Alias name advertise is CC2640R2.  The program used is an example : Simple_Peripheral.

    Your help is very much appreciated.

    Thank you very much.

    Cheers,

    kf

  • You can change it from attDeviceName[] and scanRspData[]. However, if you run Simple_Peripheral example on LAUNCHXL-CC2640R2, you should see "Simple BLE Peripheral" instead of "CC2640R2"
  • Hi YK Chen,

    Thank you very much.

    The board does not advertise "Simple BLE Peripheral" instead of "CC2640R2".

    The advertising I scan is as follow:
    SimpleBLEPeripheral
    Alias:CC2640R2
    LaunchPad
    98:07:2D:AA:4F:47
    NOT Bonded

    // GAP - SCAN RSP data (max size = 31 bytes)
    static uint8_t scanRspData[] =
    {
    // complete name
    0x14, // length of this data
    GAP_ADTYPE_LOCAL_NAME_COMPLETE,
    'S',
    'i',
    'm',
    'p',
    'l',
    'e',
    'B',
    'L',
    'E',
    'P',
    'e',
    'r',
    'i',
    'p',
    'h',
    'e',
    'r',
    'a',
    'l',

    // connection interval range
    0x05, // length of this data
    GAP_ADTYPE_SLAVE_CONN_INTERVAL_RANGE,
    LO_UINT16(DEFAULT_DESIRED_MIN_CONN_INTERVAL), // 100ms
    HI_UINT16(DEFAULT_DESIRED_MIN_CONN_INTERVAL),
    LO_UINT16(DEFAULT_DESIRED_MAX_CONN_INTERVAL), // 1s
    HI_UINT16(DEFAULT_DESIRED_MAX_CONN_INTERVAL),

    // Tx power level
    0x02, // length of this data
    GAP_ADTYPE_POWER_LEVEL,
    0 // 0dBm
    };



    // GAP - Advertisement data (max size = 31 bytes, though this is
    // best kept short to conserve power while advertisting)
    static uint8_t advertData[] =
    {
    // Flags; this sets the device to use limited discoverable
    // mode (advertises for 30 seconds at a time) instead of general
    // discoverable mode (advertises indefinitely)
    0x02, // length of this data
    GAP_ADTYPE_FLAGS,
    DEFAULT_DISCOVERABLE_MODE | GAP_ADTYPE_FLAGS_BREDR_NOT_SUPPORTED,

    // service UUID, to notify central devices what services are included
    // in this peripheral
    #if !defined(FEATURE_OAD) || defined(FEATURE_OAD_ONCHIP)
    0x03, // length of this data
    #else //OAD for external flash
    0x05, // lenght of this data
    #endif //FEATURE_OAD
    GAP_ADTYPE_16BIT_MORE, // some of the UUID's, but not all
    #ifdef FEATURE_OAD
    LO_UINT16(OAD_SERVICE_UUID),
    HI_UINT16(OAD_SERVICE_UUID),
    #endif //FEATURE_OAD
    #ifndef FEATURE_OAD_ONCHIP
    LO_UINT16(SIMPLEPROFILE_SERV_UUID),
    HI_UINT16(SIMPLEPROFILE_SERV_UUID)
    #endif //FEATURE_OAD_ONCHIP
    };


    // GAP GATT Attributes
    static uint8_t attDeviceName[GAP_DEVICE_NAME_LEN] = "Simple BLE Peripheral";


    Please advice.
    Thank you for your help.
    May I have your Skype number?

    Cheers,
    KF Choong
  • Which application do you get the following information?

    The advertising I scan is as follow:
    SimpleBLEPeripheral
    Alias:CC2640R2
    LaunchPad
    98:07:2D:AA:4F:47
    NOT Bonded
  • Thank you.

    The application is D:\ti\simplelink_cc2640r2_sdk_1_00_00_22\examples\rtos\CC2640R2_LAUNCHXL\blestack\simple_peripheral

    Above is the link, simple_peripheral for Bluetooth 5, use launch pad :LAUNCHXL-CC2640R2.

    Please help.

    Cheers,
    KF
  • Where do you see the following information? UART output from CC2640R2 LaunchPad?

    SimpleBLEPeripheral
    Alias:CC2640R2
    LaunchPad
    98:07:2D:AA:4F:47
    NOT Bonded
  • Hi YK Chen,


    Many thanks for your answer.

    I flash in Simple_Peripheral in to LAUNCHXL_CC2640R2 evaluation board.
    Then scan it using hand phone apps : BLE Scanner ( Free download from playstore , keyword nRF master panel).


    Please write soon.

    Thank you very much.

    Cheers,
    KF
  • It's seems the APP uses data in BT Cache. Try to clear BT cache and test again. In iOS, switch Bluetooth off then on in the Settings or Control Center menu. If the device was previously bonded, tap the device name and select Forget this Device. On Android, the procedure can vary by make and model, but most recent versions can choose Settings > Apps > Scroll over to All > Choose Bluetooth Share and tap on Clear Cache. Just as with iOS, un-pair the device if it was previously bonded.
  • Hi YK Chen,

    Many thanks for your great help.
    Finally, from your idea, I have successfully check it.
    It actually from handphone, nothing related to firmware program.
    By double tap on the item, a query pop up, asking for logical name.
    User can modify this name and it finally appear in Alias query.
    Millions of thanks YK Chen. You are right.

    Besides this, I need your help for another issue.
    I am developing a device which has multiple service.
    I have study and search for multiple time the function and meaning of semaphore in TI system.
    But still do not understand it. So far, I understand it means interrupt in microcontroller.
    Am I right ? How actually TI-RTOS work ? I step through TI example program but get lost when come to MACROS.

    Please advice.
    Your help is very much appreciated.

    Millions of thanks to you.


    Cheers,
    KF
  • You can refer to section 3.2 Semaphores in SWRU393_CC2640_BLE_Software_Developer's_Guide.pdf.
  • Millions thanks YK Chen.

    Cheers,
    KF
  • You are welcome.