11117 Commits

Author SHA1 Message Date
Matthias Ringwald
f644c3aeeb mesh: fix access message builder for 3/4 byte values 2020-08-08 19:47:49 +02:00
Matthias Ringwald
fb68bde833 mesh: improve mesh_upper_transport_find_pdu_for_lower 2020-08-08 19:47:49 +02:00
Matthias Ringwald
b624ad1efe mesh: fix access message builder for 3/4 byte values 2020-08-08 19:47:49 +02:00
Matthias Ringwald
edf7dd0c54 mesh: dont load static app key for transport tests 2020-08-08 19:47:49 +02:00
Matthias Ringwald
03baefcc95 mesh: update pts ui to send network and access messages to test destinations 2020-08-08 19:47:49 +02:00
Matthias Ringwald
6dac9d64fd mesh: free chunks correctly, trigger segmented pdu resend 2020-08-08 19:47:49 +02:00
Matthias Ringwald
972841451c mesh: add assert for network pdu len in relay message 2020-08-08 19:47:49 +02:00
Matthias Ringwald
3bf6954eed mesh: dump received network pdus in mesh_pts 2020-08-08 19:47:49 +02:00
Matthias Ringwald
f29e499ee2 mesh: use pseudo dst for virtual address in mesh_pts 2020-08-08 19:47:49 +02:00
Matthias Ringwald
c0005391c5 mesh: use MESH_PDU_TYPE_SEGMENT_ACKNOWLEDGMENT for outgoing seg ack messages 2020-08-08 19:47:49 +02:00
Matthias Ringwald
6e7785c71c mesh: use mesh_access_send_unacknowledged_pdu to send test network packets 2020-08-08 19:47:49 +02:00
Matthias Ringwald
94d617e4bd mesh: support separate packet handlers for provisioner and device roles 2020-08-08 19:47:49 +02:00
Matthias Ringwald
18d0ae0600 mesh: send invite only in provisioner role if provisioning was started with provisioning_provisioner_start_provisioning 2020-08-08 19:47:49 +02:00
Matthias Ringwald
d76f65e8a1 mesh: select auth method in provisoner role in mesh_pts 2020-08-08 19:47:49 +02:00
Matthias Ringwald
a6ac5c38ce mesh: configure provisioner 2020-08-08 19:47:49 +02:00
Matthias Ringwald
1765fb5d34 mesh: use single timer for pb_adv 2020-08-08 19:47:49 +02:00
Matthias Ringwald
4a72aacadd mesh: timeout in device role if no incoming Provisioning PDU receive 2020-08-08 19:47:49 +02:00
Matthias Ringwald
d16ad46bc4 mesh: emit pb-adv link open failed if device does not responds 2020-08-08 19:47:49 +02:00
Matthias Ringwald
e6542936bd mesh: annotate device uuid is not copied in pb_adv_create_link 2020-08-08 19:47:49 +02:00
Matthias Ringwald
2e9a36a1d6 mesh: ignore pb link close if link is already closed 2020-08-08 19:47:49 +02:00
Matthias Ringwald
b810054019 mesh: trigger mesh upper transport run if outgoing pdus could not be processed due to missing network pdus 2020-08-08 19:47:49 +02:00
Matthias Ringwald
37225d6f59 mesh: upper transport skips over pdus for which an segmented outgoing pdu is already active 2020-08-08 19:47:49 +02:00
Matthias Ringwald
266d4c7d97 mesh:mesh publication uses mesh_upper_transport_request_to_send 2020-08-08 19:47:49 +02:00
Matthias Ringwald
132f11c078 mesh: implement mesh_upper_transport_request_to_send 2020-08-08 19:47:49 +02:00
Matthias Ringwald
643aa44b85 mesh: add mesh_upper_transport_schedule_send_requests and mesh_upper_transport_send_requests_pending 2020-08-08 19:47:48 +02:00
Matthias Ringwald
5efae9f328 mesh: wait until message builder is ready before delivering access pdu to access layer 2020-08-08 19:47:48 +02:00
Matthias Ringwald
3fa4c16cca mesh: add mesh_network_notify_on_freed_pdu 2020-08-08 19:47:48 +02:00
Matthias Ringwald
f82a583aa1 mesh: implement mesh_upper_transport_message_reserve 2020-08-08 19:47:48 +02:00
Matthias Ringwald
832a0cf57b mesh: add API docs for mesh_upper_transport API 2020-08-08 19:47:48 +02:00
Matthias Ringwald
4802c66d6b mesh: rework setup and send of upper transport control pdus 2020-08-08 19:47:48 +02:00
Matthias Ringwald
734bae6528 mesh: replace mesh_upper_transport_setup_access_pdu with message builder 2020-08-08 19:47:48 +02:00
Matthias Ringwald
96a83bdb1f mesh: add missing parentheses, track upper transport pdu len 2020-08-08 19:47:48 +02:00
Matthias Ringwald
16f259db21 mesh: remove dead code 2020-08-08 19:47:48 +02:00
Matthias Ringwald
8661c58f36 mesh: remove transmic_len from mesh_access_pdu_t 2020-08-08 19:47:48 +02:00
Matthias Ringwald
354884c7cd mesh: replace ack and incomplete timer active uint8_t with bits in mesh_segmented->flags 2020-08-08 19:47:48 +02:00
Matthias Ringwald
bd9154554d mesh: use seq & 0x1fff instead of storing seq_zero explicitly in mesh_segmented_pdu 2020-08-08 19:47:48 +02:00
Matthias Ringwald
ce3f9fef6c mesh: use MESH_TRANSPORT_FLAG_TRANSMIC_64 to store transmic_len in mesh_upper_transport_pdu 2020-08-08 19:47:48 +02:00
Matthias Ringwald
b30b4f6e7d mesh: use MESH_TRANSPORT_FLAG_TRANSMIC_64 to store transmic_len in mesh_segmented_pdu 2020-08-08 19:47:48 +02:00
Matthias Ringwald
e582866887 mesh: set trasnmic_len and aid from first segment 2020-08-08 19:47:48 +02:00
Matthias Ringwald
cd15e00373 mesh: limit number of outgoing segmented messages in parallel 2020-08-08 19:47:48 +02:00
Matthias Ringwald
a43313399c mesh: park segmented messages that wait for ack in list, allow sending of multiple segmented messages in parallel 2020-08-08 19:47:48 +02:00
Matthias Ringwald
6d21251015 mesh: pass pointer to segmented message in outgoing timer related functions 2020-08-08 19:47:48 +02:00
Matthias Ringwald
f874399c66 mesh: re-queue un-acked segmented messages instead of sending them back to back 2020-08-08 19:47:48 +02:00
Matthias Ringwald
e3f8b4e7e5 mesh: introduce mesh_lower_transport_outgoing_message_for_dst 2020-08-08 19:47:48 +02:00
Matthias Ringwald
27e8a9aad4 mesh: streamline lower transport, separate incoming and outgoing code, set timer context to segmented message 2020-08-08 19:47:48 +02:00
Matthias Ringwald
b4977f3541 mesh: set retry count for segmented messages in mesh_lower_transport_send_dpu 2020-08-08 19:47:48 +02:00
Matthias Ringwald
79eb95b0a5 mesh: sort lower transport, mesh_messge_pdu_get -> mesh_segmented_pdu_get, use bool for flags 2020-08-08 19:47:48 +02:00
Matthias Ringwald
764c8f0dbd mesh: store lower transport retry count in mesh_segment_pdu_t 2020-08-08 19:47:48 +02:00
Matthias Ringwald
16fd08f928 mesh: compact incoming segmented messages in lower + upper transport 2020-08-08 19:47:48 +02:00
Matthias Ringwald
8a12916698 mesh: segments for control messages are only 8 bytes 2020-08-08 19:47:48 +02:00