SensorTag 2 CC2650 - Anonymous Firmware

I want to use SensorTag 2 so that it sits there, transmitting its data (and critically connected via Bluetooth) when it turns on, when \ if I ever turn it off. Out of the box, the tag is configured only for advertising via Bluetooth for several minutes, which means that when the connection ultimately fails or when the device connected to the tag boots up, etc. Etc., you cannot connect again without physically visiting the tag and resetting it.

I see that there is firmware created by myWeatherCenter people that allows the tag to work as a weather station, basically setting it up for anonymous advertising ... is disappointing, although their firmware is only sensortag 1 version :-(

I studied and continued for months and months, and nothing came back. Offering that no one else wants this, is there a really simple solution that everyone knows about or ...? I don’t even see anyone else asking this question really ... which is troubling. Does anyone have a firmware file that sets this parameter for sensor 2, or knows how to change the firmware to set this parameter?

+6
source share
2 answers

It is definitely possible to modify the SensorTag 2 / CC2650 platform so that its behavior matches your use case. I - for example, a special firmware is currently being used, which does preliminary processing of sensor readings to the SensorTag and sends the data directly in the advertising message unlimitedly (of course, you need to adjust the intervals and payload in order to get decent battery life ).

I assume you have CCS and sources (SensorTagApp and SensorTagStack) on hand?

I recommend first flashing the current SensorTagStack first, if not already done (although I haven't been to 2.2 yet).

In the SensorTagApp project in the Application section, you will find SensorTag.c . There you should change:

 #define DEFAULT_DISCOVERABLE_MODE GAP_ADTYPE_FLAGS_LIMITED 

to

 #define DEFAULT_DISCOVERABLE_MODE GAP_ADTYPE_FLAGS_GENERAL 

This is a common tip and may already do the trick.

In my firmware, I also changed (in SensorTag.c , in the SensorTag_init function):

 uint16_t advertOffTime = 0; 

to

 uint16_t advertOffTime = 1; 

Please try these changes and return to me. If this was not enough, I will make a more thorough comparison of the stock firmware and my own firmware. I also recommend a more specific ti bluetooth low energy forum .

+2
source

You can find the workflow for a complete solution and firmware for continuous advertising that I created recently in Sensortag CC2650STK Modifying custom firmware and loading workflow (Continuous Advertising) using Code Composer Studio, Debugger DevPack and Flash Programmer 2

0
source

All Articles