Skip to content

Commit b46eacc

Browse files
author
Mika Tervonen
committed
updated channel plan settings
Fixed Japan channel count added 250kHZ channel spacing
1 parent 4a1d595 commit b46eacc

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

nanostack/ws_management_api.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ extern "C" {
7878
#define CHANNEL_SPACING_400 0x01 // 400 khz
7979
#define CHANNEL_SPACING_600 0x02 // 600 khz
8080
#define CHANNEL_SPACING_100 0x03 // 100 khz
81+
#define CHANNEL_SPACING_250 0x04 // 250 khz
8182

8283
/**
8384
* Initialize Wi-SUN stack.

source/6LoWPAN/ws/ws_common.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,15 +101,15 @@ int8_t ws_common_regulatory_domain_config(protocol_interface_info_entry_t *cur)
101101
if(cur->ws_info->hopping_schdule.operating_class == 1) {
102102
cur->ws_info->hopping_schdule.ch0_freq = 9206;
103103
cur->ws_info->hopping_schdule.channel_spacing = CHANNEL_SPACING_200;
104-
cur->ws_info->hopping_schdule.number_of_channels = 129;
104+
cur->ws_info->hopping_schdule.number_of_channels = 38;
105105
} else if(cur->ws_info->hopping_schdule.operating_class == 2) {
106106
cur->ws_info->hopping_schdule.ch0_freq = 9209;
107107
cur->ws_info->hopping_schdule.channel_spacing = CHANNEL_SPACING_400;
108-
cur->ws_info->hopping_schdule.number_of_channels = 64;
108+
cur->ws_info->hopping_schdule.number_of_channels = 18;
109109
} else if(cur->ws_info->hopping_schdule.operating_class == 3) {
110110
cur->ws_info->hopping_schdule.ch0_freq = 9208;
111111
cur->ws_info->hopping_schdule.channel_spacing = CHANNEL_SPACING_600;
112-
cur->ws_info->hopping_schdule.number_of_channels = 42;
112+
cur->ws_info->hopping_schdule.number_of_channels = 12;
113113
} else {
114114
return -1;
115115
}

0 commit comments

Comments
 (0)