Skip to content

[Bug]: data might be corrupted sometimes #20

@MichaelBorde

Description

@MichaelBorde

Origin

  • RD

Criticality questions

Strike the wrong answer

  • Can the patient suffer damage due to defective ventilation? (ventilation) YES/NO
  • Does this cause misinterpretation of the ventilation data? (settings/monitoring) YES/NO
  • Does this cause a lack of prevention to the patient's entourage? (alarms) YES/NO
  • Does this cause a malfunction of the product or one of its assemblies? (hardware) YES/NO

Description

What is the problem to solve?

When reading temperature, we expect a message like:

 - value: 26
 - unit: °C

During a serial communication, we receive chunks of binary data and these data may be split anywhere.
Unfortunately a character like ° needs two bytes and could be split in half during communication.
In this code we convert a chunk to a string.
Most of the time it's fine except when a character needs 2 bytes.

We should concatenate bytes and convert to string when we detect a line.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions