57 Commits

Author SHA1 Message Date
Matthias Ringwald
f8023fbe2c mesh: use 'acknowledged message..' term 2019-07-20 08:50:33 +02:00
Matthias Ringwald
139df7718e mesh: remove outgoing message if message with expected opcode from dest is received 2019-07-20 08:50:32 +02:00
Matthias Ringwald
b551f24da1 mesh: add fields for acknowledged access messages, register for transport sent 2019-07-20 08:50:32 +02:00
Matthias Ringwald
bc0f9682e0 mesh: introduce mesh_access_send_unacknowledged_pdu and mesh_access_send_acknowledged_pdu 2019-07-20 08:50:32 +02:00
Matthias Ringwald
b98d42d698 mesh: deliver messages addressed to ALL_X group addresses 2019-07-20 08:50:32 +02:00
Matthias Ringwald
93bb2d2c93 mesh: reset sequence numbers on transition from iv update active to normal 2019-07-20 08:50:32 +02:00
Matthias Ringwald
c520adb916 mesh: validate iv index + active flag in secure network beacon before processing 2019-07-20 08:50:32 +02:00
Matthias Ringwald
5d8695d635 mesh: transition norml -> iv update active -> normal via secure network beacons 2019-07-20 08:50:32 +02:00
Matthias Ringwald
dc9cb285dc mesh: delete old app keys on key refresh phase 3 2019-07-20 08:50:32 +02:00
Matthias Ringwald
b8e8e52c28 mesh: extract mesh_access_key_refresh_revoke_keys(subnet) 2019-07-20 08:50:32 +02:00
Matthias Ringwald
7e0d4039ec mesh: pass mesh_transport_key_t to mesh_store_app_key 2019-07-20 08:50:32 +02:00
Matthias Ringwald
82eb991862 mesh: add version field to transport keys 2019-07-20 08:50:32 +02:00
Matthias Ringwald
2951b4690d mesh: trigger key refresh transitions via secure network beacons 2019-07-20 08:50:32 +02:00
Matthias Ringwald
85f6c8a0c0 mesh: use mesh_subnet_setup_for_netkey_index only on start and for tests 2019-07-20 08:50:32 +02:00
Matthias Ringwald
2b7de14bb0 mesh: move advertisement_with_network_id from mesh_network_key_t to mesh_subnet_t 2019-07-20 08:50:32 +02:00
Matthias Ringwald
a2484a8470 mesh: update subnet based on network keys 2019-07-20 08:50:32 +02:00
Matthias Ringwald
ac7c0c0957 mesh: don't store primary network key in provisioning data 2019-07-20 08:50:32 +02:00
Matthias Ringwald
c82bae6612 mesh: add version field to mesh_network_key_t 2019-07-20 08:50:32 +02:00
Matthias Ringwald
3c33c940a7 mesh: add mesh_model_publication_stop 2019-07-20 08:50:31 +02:00
Matthias Ringwald
947da55084 mesh: implement model publication mechanism in mesh_model_publication_run 2019-07-20 08:50:31 +02:00
Matthias Ringwald
4b77c15480 mesh: add mesh_model_publication_run 2019-07-20 08:50:31 +02:00
Matthias Ringwald
0563d7ddc8 mesh: add publish_now to model_publication_t 2019-07-20 08:50:31 +02:00
Matthias Ringwald
24678bce17 mesh: add basic support for model publication (mesh_publish_state_t function define) 2019-07-20 08:50:31 +02:00
Matthias Ringwald
77ba3d3f9f mesh: move src/ble/mesh to src/mesh 2019-07-20 08:50:31 +02:00
Matthias Ringwald
d1cd978cd1 mesh: mesh_transport -> mesh_upper_transport 2019-07-20 08:50:31 +02:00
Matthias Ringwald
cbb391cd7c mesh: move mesh_transport to ble/mesh 2019-07-20 08:50:31 +02:00
Milanka Ringwald
16d1335912 mesh: implement get next transaction id, helper function mesh_access_time_gdtt2ms 2019-07-20 08:50:30 +02:00
Milanka Ringwald
f649fbc8b3 mesh: introduce transaction status 2019-07-20 08:50:30 +02:00
Milanka Ringwald
4963ec13ad mesh: generic_level_handle_set_delta and set_move messages 2019-07-20 08:50:30 +02:00
Milanka Ringwald
805c8faa82 mesh: implement generic_level_set_handler 2019-07-20 08:50:30 +02:00
Milanka Ringwald
0c9668ac37 mesh: cleanup mesh transition implementation, add transition setup to mesh_generic_on_off_server_set_value 2019-07-20 08:50:30 +02:00
Matthias Ringwald
efc82b7308 mesh: only restart timer if there are transitions active 2019-07-20 08:50:30 +02:00
Milanka Ringwald
07e07526f7 mesh: set model when adding transition 2019-07-20 08:50:30 +02:00
Milanka Ringwald
08c82f9b83 mesh: keep active transitions in list, handle transitions with one timer 2019-07-20 08:50:30 +02:00
Milanka Ringwald
2b25ccf928 mesh: move event_handler from generich on off server to model 2019-07-20 08:50:30 +02:00
Matthias Ringwald
0e9fe84441 mesh: add mesh_node_reset 2019-07-20 08:50:30 +02:00
Matthias Ringwald
5c6f2e73f8 mesh: use element_index instead of element_address in mesh_element_t 2019-07-20 08:50:30 +02:00
Milanka Ringwald
09878d7ad7 mesh: enumerate state model ids and update reasons 2019-07-20 08:50:30 +02:00
Matthias Ringwald
09de233823 mesh: persist foundation state 2019-07-20 08:50:30 +02:00
Matthias Ringwald
9162eb2998 mesh: persist network keys 2019-07-20 08:50:30 +02:00
Milanka Ringwald
acb226f8c0 mesh: add function to emit MESH_SUBEVENT_STATE_UPDATE_BOOL event 2019-07-20 08:50:29 +02:00
Matthias Ringwald
9260d3331a mesh: fix loading of app keys 2019-07-20 08:50:29 +02:00
Matthias Ringwald
cbc8da7c60 mesh: validate appkey index for access messages 2019-07-20 08:50:29 +02:00
Matthias Ringwald
170a8cd882 mesh: store model subscriptions in tlv 2019-07-20 08:50:29 +02:00
Matthias Ringwald
80ff1c7703 mesh: streamline subscription handling 2019-07-20 08:50:29 +02:00
Matthias Ringwald
7c18100b8e mesh: store AppKey List for all models 2019-07-20 08:50:29 +02:00
Matthias Ringwald
6eb2ec7108 mesh: add internal index to transport keys that is used to persist max MAX_NR_MESH_TRANSPORT_KEYS 2019-07-20 08:50:29 +02:00
Matthias Ringwald
fbd63794de mesh: inline load app key into load app keys 2019-07-20 08:50:29 +02:00
Milanka Ringwald
206ab9522f mesh: add mesh_model_get_configuration_server 2019-07-20 08:50:29 +02:00
Matthias Ringwald
a66a8cb39b mesh: store element ref in model 2019-07-20 08:50:29 +02:00