322 Commits

Author SHA1 Message Date
Matthias Ringwald
5abfa38957 mesh: add mesh_pdu_ctl 2019-10-10 22:25:02 +02:00
Matthias Ringwald
cd16791d63 mesh: add basis for better control over sequence numbers in upper transport 2019-10-10 22:20:36 +02:00
Matthias Ringwald
51b20e0121 mesh: fix compile without asserts 2019-10-10 21:59:45 +02:00
Matthias Ringwald
b16fda24f6 mesh: add flags to mesh_transport, use MESH_TRANSPORT_FLAG_RESERVED for segmented access messages 2019-10-10 21:51:46 +02:00
Matthias Ringwald
ecb8f2500c mesh: unsegmented access message gets seq number in upper transport 2019-10-09 23:00:10 +02:00
Matthias Ringwald
87e3599ce2 mesh: set network pdu sequence number only in lower transport 2019-10-07 18:13:39 +02:00
Matthias Ringwald
b7cd54c5a6 mesh: add mesh_network_pdu_set_seq 2019-10-07 18:00:24 +02:00
Matthias Ringwald
b489fec06c mesh: extract mesh_lower_transport_segment_transmission_fired and call defered when outgoing segment is still queued in network layer 2019-10-07 16:48:07 +02:00
Matthias Ringwald
680fc3b5c3 mesh: track if outgoing segmente queued in network layer 2019-10-07 15:58:04 +02:00
Matthias Ringwald
e0a76043ff mesh: print pdu address in upper transport 2019-10-07 15:57:18 +02:00
Matthias Ringwald
e90005a5bb mesh: use timer_active flag in beacon 2019-10-07 14:11:43 +02:00
Matthias Ringwald
d4e23df00f mesh: fix warnings without asserts 2019-10-04 23:36:57 +02:00
Matthias Ringwald
20cc5dae5d mesh: use timer_active flag in adv_bearer, mesh_access and mesh_configuration_server 2019-10-04 23:09:09 +02:00
Matthias Ringwald
e529392ed4 mesh: assert valid pdu size in adv_bearer and mesh_network 2019-10-04 23:07:25 +02:00
Matthias Ringwald
5beab91e90 mesh/upper_transport: use queue for outgoing access messages 2019-10-04 10:56:41 +02:00
Matthias Ringwald
73aea5d931 mesh/provisioning_device: update state before sending error or complete 2019-10-04 09:56:56 +02:00
Matthias Ringwald
29aca185e8 mesh: minimal network pdu without payload and mic is 9 bytes 2019-09-18 17:28:16 +02:00
Matthias Ringwald
7a1ad92d2c mesh: use sequence number peek for encryption of segmented access messages to match sample data 2019-09-18 17:17:26 +02:00
Matthias Ringwald
b0d2aa0ba6 mesh: log LowerTransportPDU without network header 2019-09-18 17:16:21 +02:00
Matthias Ringwald
88fa182f58 mesh: don't free outgoing network pdus in mesh_network (owned by higher layer) 2019-09-18 15:38:17 +02:00
Milanka Ringwald
c3c0cd33d7 mesh_health_server: if packet handler is not defined, skip sending events to client 2019-09-12 14:42:57 +02:00
Milanka Ringwald
095ad46240 mesh: configure health server - assign mesh health server model context and operations 2019-09-12 11:21:10 +02:00
Matthias Ringwald
480ff3cb1a mesh: fix compile without ENABLE_MESH_PROVISIONER 2019-09-12 10:19:06 +02:00
Milanka Ringwald
30a044b095 mesh: rename pb_type_t to mesh_pb_type_t, fixes #249 2019-09-09 17:23:43 +02:00
Matthias Ringwald
1483c79213 mesh: fix build 2019-09-06 22:00:01 +02:00
Matthias Ringwald
5127fa8aeb mesh: use gatt/adv bearer only if enabled 2019-09-06 21:46:57 +02:00
Matthias Ringwald
5457e7085b mesh: only start single outgoing segmented message in lower transpor 2019-08-26 20:03:08 +02:00
Matthias Ringwald
ff6a8d4e70 mesh: avoid adding mesh_access_publication_timer twice to run loop 2019-08-26 19:34:10 +02:00
Matthias Ringwald
b9d8f3adef mesh: add log message for lower transport outgoing complete 2019-08-26 18:35:44 +02:00
Matthias Ringwald
a332c5a226 mesh: increment sequence number for outgoing upper transport pdus 2019-08-26 18:22:20 +02:00
Matthias Ringwald
ad7d756b84 mesh: rewrite model publication logic 2019-08-26 17:56:23 +02:00
Matthias Ringwald
520482d5e5 mesh: set retransmit count only in mesh_model_publication_setup_publication 2019-08-26 13:35:25 +02:00
Matthias Ringwald
a596f54e8f mesh: calculate publish period as num steps * period resolution 2019-08-26 11:49:32 +02:00
Matthias Ringwald
efaf68e143 mesh: correct parsing of transition / publish period 2019-08-26 11:40:11 +02:00
Matthias Ringwald
f715e57146 mesh: fix mesh_generic_on_off_status_* message definitions 2019-08-26 11:23:35 +02:00
Matthias Ringwald
e0895f5c0e mesh: persist only mesh_persistent_publication fields 2019-08-26 10:38:20 +02:00
Matthias Ringwald
1c16f5cfb2 mesh: stop all timers on rx/tx complete 2019-08-25 13:43:37 +02:00
Matthias Ringwald
5bce101501 mesh: streamline sending segmented messages 2019-08-25 13:38:00 +02:00
Matthias Ringwald
eb3826d82c mesh: split mesh_lower_transport_start_acknowledgment_timer into mesh_lower_transport_start_rx_acknowledgment_timer and mesh_lower_transport_tx_restart_segment_transmission_timer 2019-08-25 13:28:53 +02:00
Matthias Ringwald
f41d95b921 mesh: stop ack timer on outgoing complete 2019-08-23 22:39:34 +02:00
Matthias Ringwald
39317c7757 mesh: avoid 'template' as argument name 2019-08-23 22:10:25 +02:00
Matthias Ringwald
208c178460 mesh: report all processed access message segments as processed in lower transport 2019-08-23 15:47:27 +02:00
Matthias Ringwald
68d3bb6c90 mesh: extract mesh_lower_transport_process_segment_acknowledgement_message 2019-08-23 13:51:47 +02:00
Matthias Ringwald
8f6e30145b mesh: fix build 2019-08-23 12:43:40 +02:00
Matthias Ringwald
99a9e0e42f mesh: print pdu address during network validation 2019-08-23 12:40:12 +02:00
Matthias Ringwald
0ede23cc6e mesh: free relay packets after send 2019-08-23 12:28:50 +02:00
Matthias Ringwald
eac6310367 mesh: introduce mesh_network_send_complete 2019-08-23 12:28:39 +02:00
Matthias Ringwald
7b71b67d6f mesh: assert on minimal pdu len in void mesh_network_send_pdu 2019-08-22 11:07:14 +02:00
Matthias Ringwald
48321319fb mesh: assert on minimal network pdu len in mesh_lower_transport_send_pdu 2019-08-22 11:06:31 +02:00
Matthias Ringwald
6e89bc0721 mesh: fix mesh_foundation_gatt_proxy_get 2019-08-21 16:28:03 +02:00