Skip to content

Implement Realtime read of PPG/pleth waveform - #3

Open
z3ugma wants to merge 1 commit into
MackeyStingray:masterfrom
z3ugma:master
Open

Implement Realtime read of PPG/pleth waveform#3
z3ugma wants to merge 1 commit into
MackeyStingray:masterfrom
z3ugma:master

Conversation

@z3ugma

@z3ugma z3ugma commented Dec 27, 2022

Copy link
Copy Markdown

Resolves issue #2
Adds BLE command CMD_RT_DATA = 27 # 0x1B and corresponding response in the format of

137 bytes, a struct of the form <2BxBx2B5x125s which is interpreted as:

  • 1 byte SpO2
  • 1 byte Heart Rate
  • null byte
  • 1 byte Battery
  • null byte
  • 1 byte Activity/Motion
  • 6 bytes ignore/null
  • 125 bytes of PPG/pleth samples @ 125Hz, so 1 second of samples

Adds BLE command CMD_RT_DATA = 27  # 0x1B and corresponding response in the format of

137 bytes, a `struct` of the form `<2BxBx2B5x125s` which is interpreted as:
 - 1 byte SpO2
 - 1 byte Heart Rate
 - null byte
 - 1 byte Battery
 - null byte
 - 1 byte Activity/Motion
 - 6 bytes ignore/null
 - 125 bytes of PPG/pleth samples @ 125Hz, so 1 second of samples
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

Successfully merging this pull request may close these issues.

1 participant