Skip to content

[IOTCELL] Setting up channels for AU915 #6600

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 13, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions features/lorawan/lorastack/phy/LoRaPHYAU915.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -263,15 +263,22 @@ LoRaPHYAU915::LoRaPHYAU915(LoRaWANTimeHandler &lora_time)
// transmission on the same channel
copy_channel_mask(current_channel_mask, channel_mask, AU915_CHANNEL_MASK_SIZE);

// set bands for EU868 spectrum
// set default channels
phy_params.channels.channel_list = channels;
phy_params.channels.channel_list_size = AU915_MAX_NB_CHANNELS;
phy_params.channels.mask = channel_mask;
phy_params.channels.default_mask = default_channel_mask;
phy_params.channels.mask_size = AU915_CHANNEL_MASK_SIZE;

// set bands for AU915 spectrum
phy_params.bands.table = (void *) bands;
phy_params.bands.size = AU915_MAX_NB_BANDS;

// set bandwidths available in EU868 spectrum
// set bandwidths available in AU915 spectrum
phy_params.bandwidths.table = (void *) bandwidths_AU915;
phy_params.bandwidths.size = 16;

// set data rates available in EU868 spectrum
// set data rates available in AU915 spectrum
phy_params.datarates.table = (void *) datarates_AU915;
phy_params.datarates.size = 16;

Expand Down