I have bought a couple of these. When powered up they identify themselves as "CSR Env Sensor" and have a number of standard characteristics and some proprietary characteristics.
Is there any documentation on this software, or, preferrably, the XIDE project files? It seems the code is different from the SDK-3.1.0 env_sensor project.
Is there a corresponding Android or iOS app that interacts with these nodes?
If I bond with a device, how do I remove the bonding information from the node?
Thanks - Charles
Hi Acutetech
You must use XIDE project files and download firmware into the boards.
look at https://www.csrsupport.com/ web page for demo phone apps
You can call my Skype nissim.test
Hi Nissim
The boards arrive programmed, and advertise as "CSR Env Sensor". My questions are: what is that software, where are the project files that create this image, is there a corresponding app that runs on a phone and communicates with these nodes, and how do I remove bonding (I have bonded the board to one phone and want to unbond it)?
I have managed to build and deploy one of the sample apps into one of my boards.
Regards - Charles
one of the projects has the code.
search for 'C', from CSR Env Sensor to find who.
The "CSR Env Sensor", is defined as separate characters. separated by the comma.
It seems that in the SDK-3.x scheme, the device name is defined in user_config.h, then incorporated in the Gatt database. There is no instance of "CSR Env Sensor" in the /apps directory, so the application in the CSR1024 Bluetooth Node boards seems to be missing from the SDK.
Did you search all directory *.* for 'c' or "c"?
Search also, who use this *.h file
Yes, believe me!.
Device names are managed differently (and better!) in SDK-3.x from SDK-2.x. The device names are now defined in user_config.h for each project, like this:
/* Macro for the device name */
#define DEVICE_NAME "Env Sensor"
This ends up in the app_gatt_db.db.
I have not (yet) followed the code in detail, but it looks like there is common code for all parjects that further processes DEVICE_NAME -
there is a \common\components\advertise.c file that can be used to move the device name into the advertising packets and a \common\server\gap\gap_service.c that is responsible for processing DEVICE_NAME, like this:
static void serviceDataInit(void)
{
uint8 *p_name = g_device_name.parts.name;
g_service_data.length = StrLen(DEVICE_NAME);
g_device_name.parts.ad_type = AD_TYPE_LOCAL_NAME_COMPLETE;
MemCopy(p_name, DEVICE_NAME, g_service_data.length);
p_name[g_service_data.length] = '\0';
}