- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
We are developing a prototype a game controller with the PSoC 4 BLE, but we experience a lot of lag or improper input state.
Actually this started already at the first days of experimenting with the dev kit about 3/4 month's ago.
We are trying to make a simple game controller, but so far it has issues with communication. From 1 out of 15 states it has a delay in going from a state to no-state. Like user is making a several combinations and suddenly stops doing anything the last input sometimes 'hangs' for 3-5 seconds (lag).
The point here is 'sometimes', but it happens too often to make a product out of it.
We tried several BT stacks on MacOS, Windows using different manufactures of BT hardware, but it all has the same lag.
Our input analysis software shows this lag happening.
We have experienced this with all development PSoC creator versions since 4 month's ago. And also tried several devkits and modules.
Also the Day040_BLE_Game_Controller example provided by Cypress via Github has these issues.
We wonder what other people experience regarding lag? And how do we fix this?
Solved! Go to Solution.
- Labels:
-
BLE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I think the lag might be due to one of the following:
1. BLE connection interval being too high
2. Over the air interference
3. Delay loops in firmware
Can you check these and if possible attach a sniffer log (if you have one).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I think the lag might be due to one of the following:
1. BLE connection interval being too high
2. Over the air interference
3. Delay loops in firmware
Can you check these and if possible attach a sniffer log (if you have one).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Undesh, thanks for the feedback.
Regarding BLE connection interval.
Do you or anyone else have optimal settings for real time communication (best practices)?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Almost all hope was gone, but we came to a solution finally....
It was indeed the timings in the BLE properties tab that solved the issue. And I can say it is a 'Day and Night' difference!!
Fast advertising min and max from 20ms to 100ms...
Show advertising timeout from 150 to 120 ms
Slave latency from 25 to 20 ms
Connection supervision from 2000 to 30000 ms