Health model

Hi,

We need to refer detailed documentation & implementation for health model struct bt_mesh_health_srv_cb

we referred to this document - https://docs.zephyrproject.org/latest/connectivity/bluetooth/api/mesh/health_srv.html, need some more information & implementation for fault functions  - fault_get_cur, fault_get_reg, fault_clear, fault_test

we could just find handler for attn_on & attn_off in sample implementation, can you please help in getting more information and handler implementation for above mentioned 4 callback for fault 

Thank you,

Regards,

Hitesh

  • Hi again.

    I think all the samples in NCS contain th health server. So you should be able to use that as a reference for the server.

    The provisioner sample in upstream zephyr has the health client implemented, so you can look at the implementation there.
    Also, the shell.c in upstream provides serial cmds for the health client.

    Br,
    Joakim

  • Hi,

    We went through shell and could understand the infrastructure of message transaction between health src & cli model,

    but we want to know more about the sample application which demonstrates mapping these registered faults with handlers towards respective faults,

    Thank you,

    Regards,

    Hitesh  

  • Hi Team,

    We are waiting for an direction for any sample application which demonstrates current fault array filled with faults and same are triggered and communicated to client,

    currently in shell we are just able to register these faults, clear this registered fault array

    we want sample towards application checking these faults listed and current fault array getting updating and published.

    Since more than a month we have been waiting for this information, can you please help

    Thank you,

    Regards,

    Hitesh 

  • Hi.

    I've linked to the samples and documentation we have availabl. This should demostrate the use of the healt model well.

    I can ask our developers if we have time to create a more spesific example just for you.

    Br,
    Joakim

  • Hi Joakim,

    Thank you very much for update 

    We're looking for an sample which demonstrates towards fault being raised and simultaneously they're published 

    We have referred to shell,

    But in shell example it just fills the very same faults which are added using mesh add-fault <fault_code>

    We are looking application which is more realistic towards like checking memory of device and if memory is full it'll add to current fault and bt_mesh_fault_update kind of example faults mentioned in fault list

    Thank you,

    Regards,

    Hitesh

Related