Protocentral / protocentral-healthypi-v3

HealthyPi is the first fully open-source, full-featured vital sign monitor. Using the Raspberry Pi as its computing and display platform, the HealthyPi add-on HAT turns the Raspberry Pi into a vital sign monitoring system.
http://healthypi.protocentral.com
Other
194 stars 51 forks source link

Java PC code and streaming packet spec inconsistency? #23

Open tjurik opened 5 years ago

tjurik commented 5 years ago

I am trying to write my own code to read values from a healthyPi board (using a PC and the arduino driver)

I am interested in only the respiration rate.

When I look at the spec for the streaming packet format I see that it is offset 19 (see http://healthypi.protocentral.com/#streaming-packet-format)

When I look at the java code for the PC, it appears that the code does not follow protoxcol version 2. I note that there is a protocol version 3 here: https://github.com/Protocentral/protocentral_heartypatch/releases. However, the packet format is not really explained well.

See the two attached images.

Spec version 02 explicitly lists the sub parts of the packets Spec version 3 gives (from my perspective) ambiguous information for offsets 17-20 and 18+

protocol spec 2

protocol spec 3

raw data python

Specifically - how does one determine the respiration rate with protocol version 0x03? Protocol Version 0x02 has a specific value for it - but I can't find it in the spec for 3

Can someone explain to me which versions/where to get the latest and what the spec is for the protocol?

Alternatively, is there simple sample code to just pull the raw data from the packets (there is a page that mentions a python script)

Thanks Tim

Adnan950 commented 5 years ago

hello,

I am also trying the same to get data from the healthy pi using python. I am kinda new to this, so I was thinking if you could help me with the code or we could work on it together.

I have gone through the firmware-update.md and advanced-healthypi.md but could not find a solution yet.

Looking forward for the reply.

Thanks Adnan

Sannity commented 5 years ago

I am looking for the same information. I have somewhat of a plan for what I might do to get the data, but from what is currently in the documentation it is not 100% clear.

If anybody has some insight or has done this already, I would appreciate any recommendations

Thanks Austin

Adnan950 commented 5 years ago

Hello Austin,

I am Adnan and I was wonderinf if you could help me as you have some idea of how to extract the data from healthy Pi v3. Looking forward to hearing from you.

Thank you Adnan

On Fri, 30 Aug 2019 at 07:37, Austin Monson notifications@github.com wrote:

I am looking for the same information. I have somewhat of a plan for what I might do to get the data, but from what is currently in the documentation it is not 100% clear.

If anybody has some insight or has done this already, I would appreciate any recommendations

Thanks Austin

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Protocentral/protocentral-healthypi-v3/issues/23?email_source=notifications&email_token=AM6RM4VTS3A6V7TBYU2Z56DQHEH7RA5CNFSM4ILQ7LMKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5RQ27Q#issuecomment-526585214, or mute the thread https://github.com/notifications/unsubscribe-auth/AM6RM4TTM7TKR4XEBPZUVODQHEH7RANCNFSM4ILQ7LMA .

LeoMarHor commented 4 years ago

I am trying to write my own code to read values from a healthyPi board (using a PC and the arduino driver)

I am interested in only the respiration rate.

When I look at the spec for the streaming packet format I see that it is offset 19 (see http://healthypi.protocentral.com/#streaming-packet-format)

When I look at the java code for the PC, it appears that the code does not follow protoxcol version 2. I note that there is a protocol version 3 here: https://github.com/Protocentral/protocentral_heartypatch/releases. However, the packet format is not really explained well.

See the two attached images.

Spec version 02 explicitly lists the sub parts of the packets Spec version 3 gives (from my perspective) ambiguous information for offsets 17-20 and 18+

protocol spec 2

protocol spec 3

raw data python

Specifically - how does one determine the respiration rate with protocol version 0x03? Protocol Version 0x02 has a specific value for it - but I can't find it in the spec for 3

Can someone explain to me which versions/where to get the latest and what the spec is for the protocol?

Alternatively, is there simple sample code to just pull the raw data from the packets (there is a page that mentions a python script)

Thanks Tim

Tim, the Hearty Patch is another hardware (https://www.crowdsupply.com/protocentral/heartypatch) The latest firmware version for the Healthy Pi uses Protocol V2 and you can download it from this repo: https://github.com/Protocentral/protocentral-healthypi-v3/tree/v2.0