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.

LAUNCHXL-CC1350: How to disable BLE in contiki 3.0 (cc26xx-web-demo)?

Part Number: LAUNCHXL-CC1350
Other Parts Discussed in Thread: CC1350, FLASH-PROGRAMMER

Dear all,

I did a communication between two devices:

1. radio node

2.slip radio

3.beaglebone

I am using Contiki 3.0 web-demo and slip-radio. How can I disable the BLE in Contiki 3.0 ?

Any suggestions?

Thanks in advance

  • Set RF_BLE_CONF_ENABLED to 0 in project-conf.h
  • thanks for your fast answer.But in project-conf.h it's already this instruction.
    #define RF_BLE_CONF_ENABLED 0
    How can i do?
    thanks
  • This means you already disable BLE in this project. You only need to rebuild binary and download to your CC1350 to test.
  • I did all this proof(that is the rebuild of project),but nothing. How can I do?

    Thanks

  • What do you mean nothing?
  • I mean that BLE is still enabled if i put this instruction:
    #define RF_BLE_CONF_ENABLED 0
    and if i rebuild the project.
    How can I do?
  • How do you know BLE still enable?
  • well. If I put this instructions

    #define RF_BLE_CONF_ENABLED 0

    in project-conf.h of cc26xx-web-demo and i put the web demo in radio node through flash-programmer.

    After if I open the PuTTY to see in the radio node there is following line:

    IEEE 802.15.4:Yes , Sub-GHz:Yes, BLE:Yes , Prop:Yes.

    BLE:Yes  means that the BLE is enabled,right?

    How can I do to disable?

    thanks

  • Do you rebuild CC26xx-web-Demo?
  • Yes I did many times . How can I do to resolve this problem?
    Thanks
  • I don’t know why you couldn’t make it disable. I had do it many times and all work fine. I will test it again when I can access to my desktop.
  • When I rebuild again I noticed this:

    .

    As you see there is:

    #define RF_BLE_CONF_ENABLED            1

    despite I setted this #define to 0.

    How can I do?

    Thanks

  • Can you attach your project-conf.h?

  • I found the error that was an instruction not commented but despite rebuild it the putty there is still BLE: YES.
    However it s my project-conf.h

    #ifndef PROJECT_CONF_H_
    #define PROJECT_CONF_H_
    /*---------------------------------------------------------------------------*/
    /* Change to match your configuration */
    #define IEEE802154_CONF_PANID 0xABCD
    #define RF_CORE_CONF_CHANNEL 26
    #define RF_BLE_CONF_ENABLED 0
    /*---------------------------------------------------------------------------*/
    /* Enable/Disable Components of this Demo */
    #define CC26XX_WEB_DEMO_CONF_MQTT_CLIENT 1
    #define CC26XX_WEB_DEMO_CONF_6LBR_CLIENT 1
    #define CC26XX_WEB_DEMO_CONF_COAP_SERVER 1
    #define CC26XX_WEB_DEMO_CONF_NET_UART 1

    /*
    * ADC sensor functionality. To test this, an external voltage source should be
    * connected to DIO23
    * Enable/Disable DIO23 ADC reading by setting CC26XX_WEB_DEMO_CONF_ADC_DEMO
    */
    #define CC26XX_WEB_DEMO_CONF_ADC_DEMO 0
    /*---------------------------------------------------------------------------*/
    /* Enable the ROM bootloader */
    #define ROM_BOOTLOADER_ENABLE 1
    /*---------------------------------------------------------------------------*/
    /*
    * Shrink the size of the uIP buffer, routing table and ND cache.
    * Set the TCP MSS
    */
    #define UIP_CONF_BUFFER_SIZE 900
    #define NBR_TABLE_CONF_MAX_NEIGHBORS 5
    #define UIP_CONF_MAX_ROUTES 5
    #define UIP_CONF_TCP_MSS 128
    //ciccio
    /*#undef NETSTACK_CONF_RDC
    #define NETSTACK_CONF_RDC nullrdc_noframer_driver
    #ifndef RF_BLE_CONF_ENABLED
    #define RF_BLE_CONF_ENABLED 1 */ /**< 0 to disable BLE support */
    //#endif
    //forum texas Instruments
    #undef NETSTACK_CONF_RDC
    #define NETSTACK_CONF_RDC nullrdc_driver
    //mociccio
    //#define RF_BLE_CONF_ENABLED 0
    /*---------------------------------------------------------------------------*/
    #endif /* PROJECT_CONF_H_ */
    /*---------------------------------------------------------------------------*/
    How can I do?
  • Change

    #ifndef RF_BLE_CONF_ENABLED
    #define RF_BLE_CONF_ENABLED 1

    to

    #ifndef RF_BLE_CONF_ENABLED
    #define RF_BLE_CONF_ENABLED 0
  • I changed how you told me and I rebuild but BLE:Yes.

    #ifndef PROJECT_CONF_H_
    #define PROJECT_CONF_H_
    /*---------------------------------------------------------------------------*/
    /* Change to match your configuration */
    #define IEEE802154_CONF_PANID 0xABCD
    #define RF_CORE_CONF_CHANNEL 26
    #define RF_BLE_CONF_ENABLED 0//0 prima
    /*---------------------------------------------------------------------------*/
    /* Enable/Disable Components of this Demo */
    #define CC26XX_WEB_DEMO_CONF_MQTT_CLIENT 1//1
    #define CC26XX_WEB_DEMO_CONF_6LBR_CLIENT 1//1
    #define CC26XX_WEB_DEMO_CONF_COAP_SERVER 1//1
    #define CC26XX_WEB_DEMO_CONF_NET_UART 1//1

    /*
    * ADC sensor functionality. To test this, an external voltage source should be
    * connected to DIO23
    * Enable/Disable DIO23 ADC reading by setting CC26XX_WEB_DEMO_CONF_ADC_DEMO
    */
    #define CC26XX_WEB_DEMO_CONF_ADC_DEMO 0
    /*---------------------------------------------------------------------------*/
    /* Enable the ROM bootloader */
    #define ROM_BOOTLOADER_ENABLE 1
    /*---------------------------------------------------------------------------*/
    /*
    * Shrink the size of the uIP buffer, routing table and ND cache.
    * Set the TCP MSS
    */
    #define UIP_CONF_BUFFER_SIZE 900
    #define NBR_TABLE_CONF_MAX_NEIGHBORS 5
    #define UIP_CONF_MAX_ROUTES 5
    #define UIP_CONF_TCP_MSS 128
    //ciccio
    /*#undef NETSTACK_CONF_RDC
    #define NETSTACK_CONF_RDC nullrdc_noframer_driver
    #ifndef RF_BLE_CONF_ENABLED
    #define RF_BLE_CONF_ENABLED 0 */ /**< 0 to disable BLE support */
    //#endif
    //forum texas Instruments
    #undef NETSTACK_CONF_RDC
    #define NETSTACK_CONF_RDC nullrdc_driver
    //mociccio
    //#define RF_BLE_CONF_ENABLED 0
    /*---------------------------------------------------------------------------*/
    #endif /* PROJECT_CONF_H_ */
    /*---------------------------------------------------------------------------*/




    PS: However this changes were comments not instructions.
    How can I do??

    Thanks in advance
  • After checking source code, the output "IEEE 802.15.4: Yes, Sub-GHz: Yes, BLE: Yes, Prop: Yes" specifies the capability of chip. It doen't mean you enable BLE. Actually, BLE will be disable after you define RF_BLE_CONF_ENABLED as 0 in project-conf.h.