Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serial Code Receiving Testing #7

Open
jingjie-li opened this issue Aug 9, 2018 · 0 comments
Open

Serial Code Receiving Testing #7

jingjie-li opened this issue Aug 9, 2018 · 0 comments
Assignees

Comments

@jingjie-li
Copy link
Owner

Now the code that receiving serial code while running has been updated,

The main idea is that I added a function read the state of the UART buffer in the UART library, and add a function to directly read content from the UART buffer without asking for UART RX state.

In the main function, for every loop, we have a loop quit flag. We asked for UART buffer state in every interruption pulse, if there is something, we quit the main loop, go to another running state based on what we read from the UART buffer.

Now what we should do is to test whether is work smoothly.

Basically, you should send a char 'M' to start the sampling, while sampling, you will see EEG and ECG wave form directly. In the running state, you will want to send a char 'T', to trigger a stage switching. You are expected to see the HRP LED flashing, and the UART will sent '0x00,0x01 to 0x07',you need to check what you received in your cellphone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants