Skip to content

Commit dbb09b1

Browse files
author
Jarkko Paso
authored
MAC/WS: Min possible Tack to 1ms and CCA interval to 2ms (ARMmbed#2434)
1 parent 43b2ae2 commit dbb09b1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

source/6LoWPAN/ws/ws_common_defines.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ typedef struct ws_bs_ie {
345345
// With FHSS we need to check CCA twice on TX channel
346346
#define WS_NUMBER_OF_CSMA_PERIODS 2
347347
// Interval between two CCA checks
348-
#define WS_CSMA_MULTI_CCA_INTERVAL 1000
348+
#define WS_CSMA_MULTI_CCA_INTERVAL 2000
349349

350350
/* Default FHSS timing information
351351
*

source/MAC/IEEE802_15_4/mac_mcps_sap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1941,7 +1941,7 @@ int8_t mcps_generic_ack_build(protocol_interface_rf_mac_setup_s *rf_ptr, bool in
19411941

19421942
tx_buf->ack_len = frame_length;
19431943
uint8_t *mhr_start = ptr;
1944-
buffer->tx_time = mac_mcps_sap_get_phy_timestamp(rf_ptr) + 300; //Send 300 us later
1944+
buffer->tx_time = mac_mcps_sap_get_phy_timestamp(rf_ptr) + 1000; // 1ms delay before Ack
19451945

19461946
ptr = mac_generic_packet_write(rf_ptr, ptr, buffer);
19471947

0 commit comments

Comments
 (0)