Hi,
To give some background, I'm working with the DA14681 Wearable Development Kit and version 1.0.8 of the wearable SDK. I am using the "target_apps\wrbl" project from the software dev kit as a template.
I am adding a new sensor via I2C and have built a working driver for the new device. I have been able to successfully read from (via printf statements to the UART) and write to registers on the sensor with a set of simple dummy functions that I run in main.c at boot.
I would like to activate the sensor and read from it on a timer, so I'm trying to add my sensor functions into the wrbl_task. I haven't been able to find where the existing sensors (ex. BME280, BMM150, etc.) perform their data read loops in the default wrbl project. Referencing revision 2.1 of the "DA14681 Wearable Development Kit Software Manual" shows where I can configure those devices, but no information on how they perform their data read in the wrbl_task heirarchy.
Are there any examples of adding sensors and other hardware to the wrbl template project? If not, where might I find the task implementation for the on-board peripherals such as the temp/hum/press sensor, gyro, etc?
Thanks very much!
Hi mrdobson,
Many thanks for your question online.
//www.xmece.com/products/connectivity/bluetooth-low-energy/smartbond-da14682-and-da14683
Secure boot is supported in DA14682/3 as well…
Thanks, PM_Dialog
Hi PM_Dialog,
Thank you very much for your response and suggestions. I've gone ahead and ported my project over to the newer 1.0.14 SDK.
I did have a follow-up question to your response (3) if possible. In the "DA14681 Wearable Development Kit Software Manual" the Health Toolbox Task is described as a FreeRTOS-task-based framework that can coordinate control and data flow over included sensors.
The Health Care Service (HCS) is described as the primary service for controlling, configuring and reading output data from health care services, but also mentioned that only Health Toolbox compatible devices (the default devices) can be interfaced with through this. Where are the control and data loops for the Wearable Dev Kit sensors located within this framework? (for reading data, writing to registers, etc).
And just as a general question, is the Wearable Dev Kit intended to be modified through the inclusion of new sensors? Or is it primarily intended to be used as-is with the default hardware?
Thanks again
Hi mrdobson,
Generally, the Wearable software is a reference design and my recommendation is to be used as-is with the default hardware. Could you please clarify your first question?
Thanks, PM_Dialog