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.
Hi all,
i am trying to develop my own application based on TIDA 00374 project (both hardware and firmware)
Initially I had to send to a central device some data, i.e. battery level, temperature and one pin status. I put the data in dinamically changing non connectable advertising packets: 1 packet/sec for 10 seconds, so 10 packets in a cycle. Then the microcontroller is turned off for about 1 minute.
I have modified a bit the tida00374 firmware and it works.
Now i have to implement this task: the central (i'm using BTOOL) can decide to connect to my board when it needs to modify the status of one particular pin of the microcontroller.
So the board now shoud behave as a peripheral. The original TIDA is a simple broadcaster, so peripheral task isnt implemented, and in general the firmware structure is a lot different compared to project zero or simplebleperipheral firmware, so i'm a bit confused about how to continue.
Can anyone give me some advice on what application i have to follow?
Thank you
Vito
Hi Rachel,
thanks for your reply.
First of all i have to say i am new to ble. I'm learning step by step :)
I think the ble sdk used in TIDA-00374 is different compared, for instance, to the one used in project zero.
I've searched the functions/commands in the tida firmware to implement scan response, connection, services etc, but i'am a bit confused. There is the rfdriver folder
but i cant understand if the files and the funtions implemented there are useful for my case and how to use it.
Maybe it's better to modify project zero and customize it cause i think it's much more commented and i can find help here.
Yes, i'm developing the firmware with CC2650 LP indeed.
Thanks for the link.
Vito
I modified the declaration below in peripheral.c and it works.
static uint8_t gapRole_AdvertData[B_MAX_ADV_LEN] =
{
0x02, // length of this data
GAP_ADTYPE_FLAGS, // AD Type = Flags
// Limited Discoverable & BR/EDR not supported
0x01/* (GAP_ADTYPE_FLAGS_GENERAL | GAP_ADTYPE_FLAGS_BREDR_NOT_SUPPORTED)*/,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
};