Ganglion dropped packets, using CSR dongle with Raspberry.
Hello,
I'm working on BCI python software and I'm using for this purpose ganglion board and raspberry pi 3 with csr dongle, the quality of BLE data transmission is not very good (usually on average 1 lost packets per 2 second). Because ganglion use delta compression, when 1 packet is lost, it affects data afterwards (until I receive raw packet, which contains real data, not deltas). it looks like big jump and after i get raw packet there is jump back. Did anyone work on this type of issue ? What is the best way to reconstruct lost packet ?
Thanks

Comments
thanks for your reply. Idea to use BLED112 looks interesting. I would like to try to write something with it in python.
I already tried improving bluetooth connection by testing many combinations of conn_min_interval and conn_max_interval, (it proved that 8,8 for Rasp. is best), but despite that, the results are as I wrote.
It is not so important to reconstruct lost data, but is there a way to remove these lost packets jumps ? I tried to find some patterns in data (after dropped packet), which can adjust to remove these jumps, but I didn't succeed. Any ideas ?
SOLUTION !!!
- sudo rmmod btusb which removes btusb, which is kernel module - bluetooth driver
- sudo modprobe btusb which add btusb to kernel
After these commands CSR works properly. For better quality configure connection interval:- sudo bash -c 'echo 8 > /sys/kernel/debug/bluetooth/hci0/conn_min_interval'
- sudo bash -c 'echo 8 > /sys/kernel/debug/bluetooth/hci0/conn_max_interval'
0 dropped packets in 500 sec.