openbci-archive / OpenBCI_Python

The Python software library designed to work with OpenBCI hardware.
MIT License
506 stars 207 forks source link

Wrong data in high speed wifi transmission with daisy #104

Open JoJorge opened 5 years ago

JoJorge commented 5 years ago

https://github.com/OpenBCI/OpenBCI_Python/blob/dc990b6e78ae81cbe325e6da1838afdf43f79f9b/openbci/wifi.py#L610-L624 In the above lines in the function WiFiShieldHandler.handle_read(), the data is expected to have consecutive sample number to parse and combine correctly. However, we found that the received data are the pairs in which two samples share the same sample number ( correspond to the main board and daisy board data respectively) . If my thought is right, this will cause the program getting the wrong data. Can somebody check this part to confirm my thought or give some opinions? Thanks