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

Java PC code and streaming packet spec inconsistency? #23

Open
tjurik opened this issue Aug 14, 2019 · 4 comments
Open

Java PC code and streaming packet spec inconsistency? #23

tjurik opened this issue Aug 14, 2019 · 4 comments

Comments

@tjurik
Copy link

tjurik commented Aug 14, 2019

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
Copy link

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
Copy link

Sannity commented Aug 30, 2019

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
Copy link

Adnan950 commented Aug 30, 2019 via email

@LeoMarHor
Copy link

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

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

4 participants