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

MSP Androide Communicate Protocol #8

Open
jingjie-li opened this issue Aug 10, 2018 · 4 comments
Open

MSP Androide Communicate Protocol #8

jingjie-li opened this issue Aug 10, 2018 · 4 comments
Assignees

Comments

@jingjie-li
Copy link
Owner

jingjie-li commented Aug 10, 2018

Android Send Command:

M - Normal Mode- Mobile receiving data (5-Lead ECG)
N - Normal Mode(3-Lead ECG)
F - AFE Only Mode - Turnoff ADS and only receive AFE PPG data. Encoding Formant not change, ADS data fills zero.
A - ADS Only Mode (5-Leads)
B - ADS Only Mode (3-Leads)
T - Stop & Wait Mode

X - Select CH I
Y - Select CH II
Z - Select CH III

Abnormal Situation:

Receiving all 0 in ECG Data: Leads off
Receiving all 0 in PPG Data: SPO2 Probe off
Receiving all 1 in PPG Data: Fingers not in.

@jingjie-li
Copy link
Owner Author

P - PROCESSING MODE

@TimothyZero
Copy link
Collaborator

TimothyZero commented Aug 12, 2018

M :start - Both (PPG + ECG)
T :stop
F :AFE only - PPG
A :ADS only - ECG
X,Y,Z: select lead
3,5 :3-lead 5-lead

@jingjie-li
Copy link
Owner Author

Defaultly, we are reading in channel 2, which is Y mode

@jingjie-li
Copy link
Owner Author

First testing on APP has been done by jl.

M mode Works well, lead selection and 3/5 lead switching functions are performing well.

The main problem I think is still the ECG waveform stability. In my opinion, only using FIFO to compute the baseline is not enough, what you might want to do, is to set a threshold when adding data into the FIFO, you can look at my processing code, there is a lot of functions like boolean isabnormal(int data)

So we'll ignore too large or small value when computing baseline, in that case, we even ignore R wave in ECG, maybe our baseline problem is due to that R wave.

The AFE only and ADS only mode works totally bad, the display is a huge mass. You might want to look at that carefully.

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

2 participants