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

Is Protocol Version 3 scheduled to be supported? #5

Open
msabatini-met opened this issue Jan 19, 2021 · 1 comment
Open

Is Protocol Version 3 scheduled to be supported? #5

msabatini-met opened this issue Jan 19, 2021 · 1 comment

Comments

@msabatini-met
Copy link

While trying to communicate with a medical device (glucose meter, using association protocol version 3) in a system using this library, I saw that this protocol number is currently rejected as different from PROTOCOL_VERSION1 0x80000000 (ref. \src\communication\association.c, association_accept_data_protocol_20601_in() function).
Is protocol version 3 planned to be supported in the future? If so, when?
Thank you

@msabatini-met
Copy link
Author

msabatini-met commented Jan 25, 2021

Currently I managed to pass the check and communicate with my protocol 3 device, modifying:

src\asn1\phd_types.h:
+ #define PROTOCOL_VERSION3 0x20000000

src\communication\association.c:
- if (agent_assoc_information.protocolVersion != PROTOCOL_VERSION1) {
+ if (agent_assoc_information.protocolVersion != PROTOCOL_VERSION1 && agent_assoc_information.protocolVersion != PROTOCOL_VERSION3) {

- DEBUG("associating: accepted data protocol version <%.2X>",
PROTOCOL_VERSION1);
+ DEBUG("associating: accepted data protocol version <%.2X>",
agent_assoc_information.protocolVersion);

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

1 participant