2 of 2 people found this helpful
Could you please clarify your query?
Are you asking how to read the RTC time when BTM_BLE_CONNECTION_PARAM_UPDATE event triggers?
If the query is about how to use rtc block, You may refer to ex13_rtc ( CypressAcademy_WBT101_Files/Projects/wbt101key/ch02 at master · cypresssemiconductorco/CypressAcademy_WBT101_Files · Git… ) from the gitHub for rtc usage
sorry for the late response.
in the for loop at the end of the indicated code, I want to get the real time or the "current" time of each loop
so I am placing: Time[j] = rtcClock1.reg32map.rtc32;
but when put this expression, then I can't detect the services of the BLE and the device gets disconnected.
My question is: what am I doing wrong? and how should I proceed?
I've checked the ex13_rtc and although it is very informative but my problem is not solved for many reasons:
1) the time in the example goes down to seconds but what I want is in microseconds since I want to acquire data each 200 microseconds and know the exact time of that acquisition. I was able to do this when I wasn't using the Bluetooth with the function "rtcClock1.reg32map.rtc32;". now I am not able to trigger the notification nor see the services I've created.
2)the same error occurred when I tried to add the current time function of the ex13_rtc
Do you have any suggestions?
regards and thank you
1 of 1 people found this helpful
Please note RTC of our chip doesn't have microseconds accuracy. Also please use the current time function , not rtcClock1.reg32map.rtc32 .
We are not sure how you are implementing the application .
1. Which chip are you using?
2. Could you please share the project and steps to reproduce the issue? So that we can suggest accordingly.
3. Without RTC BLE is working properly?
Thank you for your response an time:
1. I am currently using the evaluation kit CYW920719Q40EVB-01
2.It started working once I reduced the number of iterations
3.Yes it was working properly without the RTC BLE
I am still working on the project code, found some new issues that are causing problem:
1) Regarding the time accuracy; if I use the current time function, will it be more accurate than the RTC? I am acquiring 4 ADC values and I need an accurate time of this acquisition.
2) I have a problem when I am sending more than 20 numbers simultaneously
Please check in the file accelerometer_app.c and on line 268, if I increase the number of I to greater than 20, the BLE isn't sending all values.
II have a strategy that I want to adapt and I think that I may see some improvements and that is if I separate my acquisition class from my sending class and then iterate the entire sending class to send all values rather than a loop inside it. will it be better and would it solve my problem?
BLE_TEST6.rar 18.5 K