- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am using BLE with controller on CM0+ and host and profile on CM4. When I am reading RSSI value with core CM0+ in "sleep mode" received RSSI value changes with distance , but when core CM0+ is in "Deep sleep mode" , received RSSI value is -55dBm and remains constant irrespective of the change in distance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello rautinst_2245351,
Can you please try adding the below code to the CY_BLE_EVT_STACK_ON and see if that helps? I was able to get it to work with the below change.
case CY_BLE_EVT_STACK_ON:
BLE->BLELL.LL_CONFIG &= ~0x41;
Looks like the point at which the radio measures the RSSI matters and the above modification makes the RSSI measurement at the end of the packet. Our default configuration measures it at the start. We are checking with our HW team on why this matters with deep sleep. We will update the implementation in the next PDL release.
Regards,
Meenakshi Sundaram R
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Possible to attach a simple project to clarify this issue?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello rautinst_2245351,
Can you please try adding the below code to the CY_BLE_EVT_STACK_ON and see if that helps? I was able to get it to work with the below change.
case CY_BLE_EVT_STACK_ON:
BLE->BLELL.LL_CONFIG &= ~0x41;
Looks like the point at which the radio measures the RSSI matters and the above modification makes the RSSI measurement at the end of the packet. Our default configuration measures it at the start. We are checking with our HW team on why this matters with deep sleep. We will update the implementation in the next PDL release.
Regards,
Meenakshi Sundaram R
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you Madam for your response, I verified above code and it works fine in deepsleep mode. But when I use above code suggested by you in my actual project it does not advertise because device does not come out of "Cy_BLE_ProcessEvents()" function and enters infinite loop, since I am using "Unauthenticated pairing with encryption and Bonding requirement". But if I use "Unauthenticated pairing with encryption and No bonding requirement" then code in my actual project runs fine.
I have attached project to demonstrate the above issue.