kitschpatrol / BrainGrapher

Processing-based visualizer for NeuroSky EEG brainwave data output from the Arduino Brain library.
https://frontiernerds.com/brain-hack
MIT License
206 stars 85 forks source link

Error on serial event #6

Closed paolon closed 10 months ago

paolon commented 4 years ago

Hi! I tried the sketch with a Mindwave Mobile 2 on both Mac and PC with Processing 3.5.4. The application always crashes after 4 packets received. This is part of the console log:

Received string over serial: ���A���?���$Y���$Y���%X���%X���%X���%X���%X���%X [omissis] Received string over serial: r���z���Ӫ����ͪ��ը���l���a���񌪪��Ū���Ԫ���Ī�� Received string over serial: s���z����􊪪��듪���򌪪�������x��� t���|���������[omissis] Received string over serial: s���"[���2K���8E���3J���,Q���&W���!\��� ]���!\[omissis] Received string over serial: s���j���!\���3J���<A���2K��� ]���h���j[omissis] Received string over serial: -�����Y7[$�%�+a����#Z���8E���E8���G6���D9[omissis] Received string over serial: s��� p��� p���l���f���%X���2K���:C���5H[omissis] Error, disabling serialEvent() for /dev/tty.MindWaveMobile-SerialPo null

Are the strings I receive correct? Why does an error always come after the first packets? Thank you in advance for the suggestions you can give me.

kitschpatrol commented 10 months ago

Sorry for the delay. This library is not directly compatible with the Mindwave Mobile 2, it's intended for use with data provided by the Arduino Brain Library.

Compatibility with additional protocols is not inconceivable, but would require documentation of the protocol and an additional code path in the serial-handling code. Open to PRs, but closing this issue as unsupported.