Skip to content

Instantly share code, notes, and snippets.

@janjongboom
Last active March 7, 2019 07:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save janjongboom/9defa62017f260ca1c4aa89708bcafec to your computer and use it in GitHub Desktop.
Save janjongboom/9defa62017f260ca1c4aa89708bcafec to your computer and use it in GitHub Desktop.
Mbed OS + The Things Network (setting frequency sub band)

You might have trouble connecting your Mbed OS device to The Things Network if you're in the US. The reason is that there are 72 channels available in the US, but your gateway is only listening to 8 channels. You can limit the channels that the Mbed OS LoRaWAN stack is using by setting the fsb-mask option. TTN is using FSB 1.

In your Mbed OS project, open mbed_app.json and add under target_overrides:

           "lora.phy": "US915",
           "lora.fsb-mask": "{0xFF00, 0x0000, 0x0000, 0x0000, 0x0002}",

And re-compile.

More information in FSB_Usage.txt in the Mbed OS repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment