229 Commits

Author SHA1 Message Date
Matthias Ringwald
8b9e0b6738 mesh: dump network outgoing adv pdus if log network 2019-10-12 09:28:56 +02:00
Matthias Ringwald
4abc518fab mesh: add missing call to mesh_access_message_processed in config_netkey_delete_handler 2019-10-11 23:24:08 +02:00
Matthias Ringwald
971a231fe3 mesh: start sending heartbeats 2000 ms after sending the status message 2019-10-11 16:39:53 +02:00
Matthias Ringwald
d19dd9d7ea mesh: pop upper transport pdu after testing lower transport if it can be sent 2019-10-10 23:35:45 +02:00
Matthias Ringwald
077540cfef mesh: only queue single message in lower transport 2019-10-10 23:03:29 +02:00
Matthias Ringwald
e41c00175d mesh: set sequence number / seq auth in upper transport after reserving lower transport slot 2019-10-10 22:53:03 +02:00
Matthias Ringwald
10cd83b41b mesh: check if lower transport can accept pdu for a given dest, reserve slot, queue control messages as well 2019-10-10 22:27:28 +02:00
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