Skip to content

Commit 9103d68

Browse files
author
Jarkko Paso
committed
Fixed dwell time, clock drift and timing accuracy values
1 parent 56831ad commit 9103d68

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

source/6LoWPAN/ws/ws_bootstrap.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -516,10 +516,8 @@ static int8_t ws_fhss_discovery_configure(protocol_interface_info_entry_t *cur)
516516
memcpy(&fhss_configuration, ns_fhss_ws_configuration_get(cur->ws_info->fhss_api), sizeof(fhss_ws_configuration_t));
517517
}
518518

519-
fhss_configuration.fhss_uc_dwell_interval = 0;
520519
fhss_configuration.ws_uc_channel_function = WS_FIXED_CHANNEL;
521520
fhss_configuration.ws_bc_channel_function = WS_FIXED_CHANNEL;
522-
fhss_configuration.fhss_bc_dwell_interval = 0;
523521
fhss_configuration.fhss_broadcast_interval = 0;
524522
uint8_t tmp_uc_fixed_channel = ws_randomize_fixed_channel(cur->ws_info->fhss_uc_fixed_channel, cur->ws_info->hopping_schdule.number_of_channels);
525523
uint8_t tmp_bc_fixed_channel = ws_randomize_fixed_channel(cur->ws_info->fhss_bc_fixed_channel, cur->ws_info->hopping_schdule.number_of_channels);

source/6LoWPAN/ws/ws_common.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,10 @@ int8_t ws_common_allocate_and_init(protocol_interface_info_entry_t *cur)
298298
cur->ws_info->hopping_schdule.regulatory_domain = REG_DOMAIN_EU;
299299
cur->ws_info->hopping_schdule.operating_mode = OPERATING_MODE_3;
300300
cur->ws_info->hopping_schdule.operating_class = 2;
301+
// Clock drift value 255 indicates that information is not provided
302+
cur->ws_info->hopping_schdule.clock_drift = 255;
303+
// Timing accuracy is given from 0 to 2.55msec with 10usec resolution
304+
cur->ws_info->hopping_schdule.timing_accurancy = 100;
301305
ws_common_regulatory_domain_config(cur);
302306
cur->ws_info->network_size_config = NETWORK_SIZE_MEDIUM;
303307
cur->ws_info->rpl_parent_candidate_max = WS_RPL_PARENT_CANDIDATE_MAX;

0 commit comments

Comments
 (0)