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: CC1350 TI 15.4-Stack

Part Number: LAUNCHXL-CC1350
Other Parts Discussed in Thread: CC1350

Hello sir,

i am using CC1350 launchpad and simplelink sdk with ti154stack (collector and sensor) examples. In this example collector device is starting the network by using the keypress(BUTTON1) and sensor device is joining by keypress(BUTTON1). Now i want to start the network and joining should be done at the time of device start for this i have enabled AUTO_START and NV_RESTORE options in preprocessor options in CCS by checking in collector.opt file. even though network is not started on device startup am i missing anything or do i need to do any changes to the code.

And i need to add the some adc code at sensor side. Is there any guide which will show the complete architecture/work flow of ti154stack for collector and sensor examples. please mention

thanks and regards

  • Hi Shiva,

    Which SDK are you using? From what I can see, the AUTO_START is turned on from default in the latest SDK. Could you show what changes you do to the opt file?

  • Thankyou sir,

    I am using simplelink_cc13x0_sdk_4_10_02_04.

    these are the options and predefined symbols.

    ///////////////////Sensor opts:

    -DTEMP_SENSOR                                                 

    -DAUTO_START

    -DxASSERT_LEDS

    -DNV_RESTORE

    -DRF_MULTI_MODE

    -DxPOWER_MEAS

    -DMAX_DEVICE_TABLE_ENTRIES=3

    -DBOARD_DISPLAY_USE_UART

    -DxBOARD_DISPLAY_USE_LCD

    -DxDISPLAY_PER_STATS

    -DONE_PAGE_NV

    -DONE_PAGE_NV_FULL_HDR

    -DTI154STACK

    -DSTACK_LIBRARY

    -DOSAL_PORT2TIRTOS

    -DxFCS_TYPE16

    -DTIMAC_ROM_PATCH

    -DCCFG_FORCE_VDDR_HH=0

    -DRCN_APP_ASSERT

    -DHAL_ASSERT_SPIN

    -Dxdc_runtime_Log_DISABLE_ALL

    -Dxdc_runtime_Assert_DISABLE_ALL

    -DxPREAMBLE_COMPATIBILITY

    -DFEATURE_SYSTEM_STATS

    -DxSTATIC_MAC_SECURITY_DEFAULTS

    /////////////////////Sensor Predefined symbols

    ${COM_TI_SIMPLELINK_CC13X0_SDK_SYMBOLS}

    AUTO_START

    NV_RESTORE

    Board_EXCLUDE_NVS_EXTERNAL_FLASH

    DeviceFamily_CC13X0

    SET_CCFG_BL_CONFIG_BL_LEVEL=0x00

    SET_CCFG_BL_CONFIG_BL_ENABLE=0xC5

    SET_CCFG_BL_CONFIG_BL_PIN_NUMBER=0x0D

    SET_CCFG_BL_CONFIG_BOOTLOADER_ENABLE=0xC5

    ///////////////////////////Collector opts:

    -DAUTO_START

    -DNV_RESTORE

    -DRF_MULTI_MODE

    -DxPOWER_MEAS

    -DMAX_DEVICE_TABLE_ENTRIES=50

    -DBOARD_DISPLAY_USE_UART

    -DxBOARD_DISPLAY_USE_LCD

    -DxDISPLAY_PER_STATS

    -DONE_PAGE_NV

    -DONE_PAGE_NV_FULL_HDR

    -DTI154STACK

    -DSTACK_LIBRARY

    -DOSAL_PORT2TIRTOS

    -DxFCS_TYPE16

    -DTIMAC_ROM_PATCH

    -DCCFG_FORCE_VDDR_HH=0

    -DRCN_APP_ASSERT

    -DHAL_ASSERT_SPIN

    -Dxdc_runtime_Log_DISABLE_ALL

    -Dxdc_runtime_Assert_DISABLE_ALL

    -DxPREAMBLE_COMPATIBILITY

    -DFEATURE_SYSTEM_STATS

    -DxSTATIC_MAC_SECURITY_DEFAULTS

    //////////////////////////////////////Collector Predefined symbols

    ${COM_TI_SIMPLELINK_CC13X0_SDK_SYMBOLS}

    AUTO_START

    NV_RESTORE

    Board_EXCLUDE_NVS_EXTERNAL_FLASH

    DeviceFamily_CC13X0

    SET_CCFG_BL_CONFIG_BL_LEVEL=0x00

    SET_CCFG_BL_CONFIG_BL_ENABLE=0xC5

    SET_CCFG_BL_CONFIG_BL_PIN_NUMBER=0x0D

    SET_CCFG_BL_CONFIG_BOOTLOADER_ENABLE=0xC5

    1) i am trying to do devices(collector,sensor) has to communicate without any button press. for this i used AUTO_START is it correct?

    2) i will press only permission button on collector to join sensor devices. once all the devices has joined i will turnoff the permission for joining.

    2. a) if i press the reset button/ restart the collector device, sensor device is showing that "state changed : 5" what it means? whenever this state occurred i am resetting sensor device then only it is again able to join. how to resolve this issue?

    2. b) i have done a range test with 3 sensor devices and a collector from ground floor to first floor, collector kept in a closed room at first floor and sensor devices kept in closed at ground floor side by side with

     /////////////////////////////sesnsor side in config.h/////////////////////

    #define CONFIG_POLLING_INTERVAL      700
    #define CONFIG_PAN_ADVERT_SOLICIT_CLK_DURATION    60000
    #define CONFIG_PAN_CONFIG_SOLICIT_CLK_DURATION    60000
    #define CONFIG_REPORTING_INTERVAL  1000

    ////////////////////////////////collector sidein config.h/////////////////////

    #define CONFIG_REPORTING_INTERVAL 1000
    #define CONFIG_POLLING_INTERVAL 700
    #define TRACKING_DELAY_TIME 10000

    these time values.

    after 5-6 min interval 1 sensor device stopped sending data. so i pressed reset button it is reconnected and starts sending data.

    is this is a range issue or time intervals issue?

    3) i want to transfer ADC data of 4 sensor devices with 10 samples per minute (total 40 samples per minute). how to add adc driver to code?


    Thanks & regards

  • Hi,

    1) Auto start means the network will be started right away yes.

    2a) Look at the ssf_stateChangeUpdate() function. the enum value is that of the Jdllc_states_t type in the jdllc.c file and "5" means your device is orphan. This makes sense as you pull the plug on the collector. Once orphan it can take a while for the device to rejoin the collector again (once repowered) as you are subject to the orphan backoff interval configured in the conifg.h file: CONFIG_ORPHAN_BACKOFF_INTERVAL (this is in ms so the default is up to 5 min).

    2b) I would guess it is an interval issue unless your sensor report any state changes

    3) I suggest you start by looking at the ADC examples to understand how to operate the ADC driver. Once you know how it works you can move to integrate it into your sensor project. Exactly how you want to do this depends on your application but you should be able to understand how to configure it from the ADC examples.