Part Number: CC2652RB
Other Parts Discussed in Thread: CC2650
My problem relates to the Simple Serial Socket example that I luckily found on Github. I would be very grateful to get some help here.
Since it is important for me to get a useful answer, here is a brief description of my situation and what it is about:
I have accepted a project assignment that involves a sensor that is activated from time to time and communicates with a mobile phone via BLE. After a measurement is completed, the sensor is supposed to connect to a mobile phone. If no connection can be established, the BLE module is switched off after a timeout and the sensor processor also goes to sleep again. The data is stored in the sensor processor for later transmission.
Originally, it was planned to use a TI processor for the sensor evaluation and the query of a touch surface. A ready-to-use BLE module should be connected to the processor via UART interface. The BLE module would only have to be configured accordingly and otherwise no BLE-specific tasks would have had to be done. A nice little project for in between without major difficulties. Unfortunately, due to the component crisis, no corresponding modules are available within a reasonable period of time. Therefore, the customer decided to use a CC6650 module and to use it for the sensor part as well, since it was available in sufficient quantities. The modules were ordered immediately.
At that time, I was still working on another project and was not able to take a closer look at TI's software support. However, I saw that there were plenty of tutorials and examples on BLE. I therefore assumed that I would quickly find something that would enable BLE communication via a simple interface with a few functions and some configuration, similar to the external module, but only in software.
I first implemented the sensor functionalities. This was relatively easy after I chose a CC2652RB board for development, as the CC2650 is no longer supported in Resource Explorer. Porting to the CC2650 is planned after development is complete.
All was well until I turned to the BLE side of the project. I found out that TI does not have something similar to the external BLE module, but as a pure software component. Instead, in order to use the BLE stack together with TI-RTOS, it is necessary to have quite a lot of BLE knowledge and also to know TI-RTOS. The only connection I have had to BLE so far was to connect my head set to my cell phone. Besides, I usually work on bare-matel projects without an operating system. I then also tried to build up the necessary knowledge as quickly as possible via the SimpleLink Academy. However, I quickly realised that this knowledge is too great for either BLE or TI-RTOS to be absorbed and applied in a short time. This simply requires a certain period of practice, which cannot be shortened.
I have therefore tried to find something that I could quickly adapt without in-depth knowledge. Unfortunately, I did not find what I was looking for in the SimpleLink examples in the Resource Explorer. What I had to find out after a few futile attempts.
After a lot of searching I found the Simple Serial Socket example on Github through a link in a forum post. It's a great useful BLE example and I'm wondering why it's not listed in the SimpleLink examples in the Resource Explorer. It's just the application that many developers might need, coming from projects that haven't used BLE before and just need a quick simple connection to a PC or mobile phone.
I transferred that CC26X2R1_LAUNCHXL project to the CC2652RB board, which worked quite easily. I also integrated my sensor application and everything is working fine so far.
The only problem that remains now is to selectively set up and tear down the BLE communication and send the ARM core to sleep the rest of the time. (The sensor controller should then only be woken up at 5s intervals to query the touch sensor and start the measurement if applicable, in order to then wake up the arm core again for BLE communication. And so on ...)
I urgently need advice on where I can begin to specifically set up and shut down the BLE communication and how this can best be combined with the sleep mode.
Unfortunately, I lost a lot of time trying to reach my goal quickly via the SimpleLink Academy until I found the well-hidden serial socket example. In the meantime I am running out of time. It was only supposed to be a short project without deep BLE knowledge. The dead line is getting closer. Although I'm sure there's not much left, I'm not making enough progress because I don't have enough experience with BLE and the TI-RTOS.
I would therefore be extremely grateful for quick and fitting help.
Regards
Rainer