79 Commits

Author SHA1 Message Date
Matthias Ringwald
936cc64e19 mesh: mesh_access_setup_without_provisiong_data gets device uuid from mesh_node 2019-07-20 08:50:34 +02:00
Matthias Ringwald
a87e78cf94 mesh: store provisioning data in mesh_node_store_provisioning_data 2019-07-20 08:50:34 +02:00
Matthias Ringwald
2d97f8bb25 mesh: add network key to provisioning data 2019-07-20 08:50:34 +02:00
Matthias Ringwald
6c38b88869 mesh: add iv_index to provisioning data 2019-07-20 08:50:34 +02:00
Matthias Ringwald
001c65e028 mesh: prefix mesh_node functions 2019-07-20 08:50:33 +02:00
Matthias Ringwald
e8625ff1d4 mesh: move node->element management to mesh_node 2019-07-20 08:50:33 +02:00
Matthias Ringwald
683cf298e3 mesh: move mesh_node into src/mesh 2019-07-20 08:50:33 +02:00
Matthias Ringwald
a6fcac7c46 mesh: only use mesh_node_primary_element_address_get 2019-07-20 08:50:33 +02:00
Matthias Ringwald
0e329b411b mesh: add mesh_node to collect node state 2019-07-20 08:50:33 +02:00
Matthias Ringwald
f46a0f51ed mesh: extract mesh_node_startup_from_tlv from test app 2019-07-20 08:50:33 +02:00
Matthias Ringwald
bc9a9795bb mesh: extract mesh_access_setup_from_provisioning_data, mesh_access_setup_without_provisiong_data from test app 2019-07-20 08:50:33 +02:00
Matthias Ringwald
bef5591bee mesh: fix load/store iv index + seq number 2019-07-20 08:50:33 +02:00
Matthias Ringwald
bbcc1f8674 mesh: store sequence number every MESH_SEQUENCE_NUMBER_STORAGE_INTERVAL 2019-07-20 08:50:33 +02:00
Matthias Ringwald
84b8c4a9e4 mesh: add hook to track seq number updates 2019-07-20 08:50:33 +02:00
Matthias Ringwald
5639acaf77 mesh: mesh_restore_iv_index_and_sequence_number() loads and bumps sequence number 2019-07-20 08:50:33 +02:00
Matthias Ringwald
6e131f4b89 mesh: rename sequence number functions mesh_sequence_number_x 2019-07-20 08:50:33 +02:00
Matthias Ringwald
2e60b5d9a3 mesh: store iv + sequence number together 2019-07-20 08:50:33 +02:00
Matthias Ringwald
7f01082ee5 mesh: persist iv updates to TLV 2019-07-20 08:50:33 +02:00
Matthias Ringwald
a37c5519bb mesh: add load/store iv index 2019-07-20 08:50:33 +02:00
Matthias Ringwald
0882d02cd2 mesh: implement IV Index Recovery procedure 2019-07-20 08:50:33 +02:00
Matthias Ringwald
d0c07177da mesh: emit MESH_SUBEVENT_MESSAGE_NOT_ACKNOWLEDGED if expected reply was not received 2019-07-20 08:50:33 +02:00
Matthias Ringwald
9ca0fe87d6 mesh: implement mesh_access_acknowledged_run 2019-07-20 08:50:33 +02:00
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