SensorTag 2 CC2650 advertising indefinately firmware

怎甘沉沦 提交于 2019-12-05 06:19:08

It is definitely possible to change the SensorTag 2/CC2650 platform so that its behavior suits your use case. I - for example - currently use a custom firmware doing pre-processing of sensor readings on the SensorTag and sending data directly in the advertisement message indefinitely (of course you have to tweak intervals and payload to get a decent battery life).

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

I recommend flashing the current SensorTagStack first, if not done yet (though I'm not yet on 2.2 myself).

In the SensorTagApp project under Application you find SensorTag.c. In there you should change:

#define DEFAULT_DISCOVERABLE_MODE             GAP_ADTYPE_FLAGS_LIMITED

to

#define DEFAULT_DISCOVERABLE_MODE             GAP_ADTYPE_FLAGS_GENERAL

This is the usual advise and might 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 get back to me. If that wasn't enough I will do a more thorough comparison of the stock firmware and my custom firmware. I also recommend the more specific ti Bluetooth low energy forum.

You could find the workflow for a complete solution and the firmware for continuous advertising which I created recently, at Sensortag CC2650STK Custom Firmware Modification&Download Workflow (Continuous Advertising) using Code Composer Studio, Debugger DevPack and Flash Programmer 2 software

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!