Skip to content

Commit

Permalink
updated channel plan settings
Browse files Browse the repository at this point in the history
Fixed Japan channel count
added 250kHZ channel spacing
  • Loading branch information
Mika Tervonen committed Sep 11, 2018
1 parent 4a1d595 commit b46eacc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions nanostack/ws_management_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ extern "C" {
#define CHANNEL_SPACING_400 0x01 // 400 khz
#define CHANNEL_SPACING_600 0x02 // 600 khz
#define CHANNEL_SPACING_100 0x03 // 100 khz
#define CHANNEL_SPACING_250 0x04 // 250 khz

/**
* Initialize Wi-SUN stack.
Expand Down
6 changes: 3 additions & 3 deletions source/6LoWPAN/ws/ws_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,15 +101,15 @@ int8_t ws_common_regulatory_domain_config(protocol_interface_info_entry_t *cur)
if(cur->ws_info->hopping_schdule.operating_class == 1) {
cur->ws_info->hopping_schdule.ch0_freq = 9206;
cur->ws_info->hopping_schdule.channel_spacing = CHANNEL_SPACING_200;
cur->ws_info->hopping_schdule.number_of_channels = 129;
cur->ws_info->hopping_schdule.number_of_channels = 38;
} else if(cur->ws_info->hopping_schdule.operating_class == 2) {
cur->ws_info->hopping_schdule.ch0_freq = 9209;
cur->ws_info->hopping_schdule.channel_spacing = CHANNEL_SPACING_400;
cur->ws_info->hopping_schdule.number_of_channels = 64;
cur->ws_info->hopping_schdule.number_of_channels = 18;
} else if(cur->ws_info->hopping_schdule.operating_class == 3) {
cur->ws_info->hopping_schdule.ch0_freq = 9208;
cur->ws_info->hopping_schdule.channel_spacing = CHANNEL_SPACING_600;
cur->ws_info->hopping_schdule.number_of_channels = 42;
cur->ws_info->hopping_schdule.number_of_channels = 12;
} else {
return -1;
}
Expand Down

0 comments on commit b46eacc

Please sign in to comment.