Part Number: LAUNCHXL-CC2650
Other Parts Discussed in Thread: BLE-STACK
Tool/software: TI-RTOS
Hi everyone.
I need your help with the following scenario:
I'm running a ProjectZero-based application, which communicates via BLE with another device. When the application receives some data for bluetooth I have to wake up another task that collects data through the I2C protocol (call it the 'display' task), processes them and returns the result to the BLE task so that it sends it to the linked BLE device . Currently, each task meets its purpose well. My problem is to link them properly.
My doubts are:
1. How should I make the 'display' task remain in the locked state until no data has been entered by BLE, then run only once and then lock again?
2. What should be the priorities between the BLE task and the display?
3. How should I pass the information from one task to the other, considering it is a char array of 50 elements?
I have considered using a global variable, whose access is controlled by a binary semaphore, but it does not work for me.
Any ideas or suggestions are welcome.
Thank you very much.