Git Product home page Git Product logo

makair-telemetry's People

Contributors

blackyoup avatar dsferruzza avatar hbs avatar jabby avatar mefl avatar pi-r-p avatar ronanm avatar valeriansaliou avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

makair-telemetry's Issues

Add settings for new ventilation modes

[WIP]
The following settings should be added to the telemetry protocol for the new ventilation modes.

Ventilation mode: u8

  • Mode 1 : PC-CMV
  • Mode 2 : PC-AC
  • Mode 3 : VC-CMV
  • Mode 4 : PC-BIPAP

Inspiratory trigger flow : u8 [ 0 ; 100 ]%
Expiratory trigger flow : u8 [ 0 ; 100 ]%

Ti min : minimal duration of inhalation : u16 [100; 3000 ] ms
Default : 200 ms

Ti max: max duration of inhalation : u16 [200; 5000] ms
Default : 1500 ms

Low inspiratory minute volume alarm threshold : u8 [0 ; 20 ] L/min
Default : 3L/min

High inspiratory minute volume alarm threshold : u8 [10 ; 40 ] L/min
Default : 20L/min

Low expiratory minute volume alarm threshold : u8 [0 ; 20 ] L/min
Default : 3L/min

High expiratory minute volume alarm threshold : u8 [10 ; 40 ] L/min
Default : 20L/min

Low respiratory rate alarm threshold : u8 [5 ; 25 ] cpm
Default : 10cpm

High respiratory rate volume alarm threshold : u8 [20 ; 35 ] cpm
Default : 30cpm

Patient modal trigger

The firmware should be able to trigger a modal on the UI asking the patient size

I think the best way to do that would be to use the serial protocol in revert mode :
1- the firmware sends a ControlAck for patient_size to the UI with value 0
2- The UI displays a modal asking for patient size
3- The user sets the patient size and click OK
4- The UI sends the patient size to the firmware

telemetry message for factory end of line test

A new type of message should be added to send messages from the firmware to the UI during the factory end of line test
The following informations should be in this message :

  • uint16_t stepNumber
  • uint8_t stepStatus : 0 = fail, 1 = success, 2 = in progress
  • String message : a string to display on the UI. No translation required because this is only a factory mode
  • some numbers should be send, but due to the fact, that the amount and type of theses numbers is different at each message, it would be easier to send the numbers as text in the String message
  • bool lastMessage : true if this is the last message

On the other direction, the UI should be able to send message to the firmware when the user clicks on the "NEXT" button

Add new settings in telemetry protocol

The following settings should be added to the telemetry protocol

Ventilation mode: u8
Rename Mode 4 : previous name was PC-BIPAP. New name is PC-VSAI
Mode 5 : VC-AC

  • target tidal Volume : u16 [50 ; 2000] mL
    Default : 500mL

  • Low tidal Volume alarm threshold : u16 [0 ; 1000] mL
    Default : 200 mL

  • High tidal Volume alarm threshold : u16 [50; 2000] mL
    Default : 1000 mL

// In volume control mode, you have to close both valve during a small duration to measure effective Plateau pressure. This is called plateau duration

  • Plateau duration : u16[100 ; 1000] ms
    Default : 200 ms

  • leak alarm threshold : u16[0; 10000] cL/min
    Default : 200 cL/min
    /!\ this settings should be displayed in mL/min on the UI

Add change settings telemetry message

We need to be able to add an immediate event (like alert) for change of settings, because right now the latency of the change of the settings is really weird

Make and publish new telemetry records

We should publish example records for both v1 and v2 protocols, with the following scenarios:

  • short: MCU boot + few stopped messages + few breathing cycles without errors
  • few_cycles_with_alarms: few breathing cycles + some alarms
  • long: a longer record (at least 10 minutes)

Existing records can be kept as they contain protocol errors which is useful.

Telemetry protocol v2 should be stabilized before doing the v2 records.

Add settings to telemetry

The following settings should be added to the telemetry protocol
language : [u8,u8]

The language is represented using 2 letters according to iso-639-1:https://en.wikipedia.org/wiki/ISO_639-1
each letter is encoded to its ascii representation in u8

Example :
france iso code is "fr"
f representation is 102
r representation is 114
the following array should be sent : [102,114]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.