OpenBCI: Brainflow update instructions


OpenBCI_Wifi Shield: Brainflow configuration in the Mac environment
after I just finished writing the above tutorial shortly author on Github API and decided to update the previous version is not compatible with the (storm crying), little changed simply, I am here again after re-reading the complete documentation and error several times, it ran smoothly through the code, the first time recorded.
Changes .png version

No new environment configuration changes, before the configured virtual environment can then continue to use


Change parameter passing

Document changes .png

And now you can see the communication board, need to pass four parameters, but only two before

  • board_id: 5

  • ip_address: 192.168.4.1

  • ip_protocol : 2

  • ip_port : xxxx

The first two arguments have nothing to say, you can directly use the default values, the third parameter is described in the User API years, TCP is 3, Let us focus fourth argument, because I did not find out about the port, Baidu to find circle did not understand where to find this parameter, and finally found the answer in the Mac's official website.

First, the need Mac official website to find the TCP and UDP ports used by Apple, and then find a which do not apply during data transfer port (seemingly to avoid a conflict), to use the TCP, UDP seemingly can not. I'm here just chose a push notifications, you can choose any other unused.
Port number.png

Run the code

Add parameters in Pycharm

A basis for comparison of operations, but in order to avoid classmates and I did not know, like, briefly explain
Add parameters .png
Add parameters .png
here we have just finished adding parameters to find Click Apply -> OK
switched on after the power supply board, even on the radio, run code that is can
Operating results .png

Done, in the same directory, you can see the saved the EEG data
Data processing .png

Released three original articles · won praise 5 · Views 301

Guess you like

Origin blog.csdn.net/qq_43580646/article/details/102983918