Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

lib/lora: Fix manual add of channels 64-71 #183

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Bdanilko
Copy link

The LoRaWAN-Regional-Parameters document (1.02 and 1.1.), for AU915 and US915,
lists the channels 64 - 71 as having specific data rates which are not
zero. This change removes the check of dr_min == 0 for these channels when
they are added manually.

Also a simple sanity check is done for the dr range.

This commit is in response to issue #163

The LoRaWAN-Regional-Parameters document (1.02 and 1.1.), for AU915 and US915,
lists the channels 64 - 71 as having specific data rates which are not
zero. This change removes the check of dr_min == 0 for these channels when
they are added manually.

Also a simple sanity check is done for the dr range.
@eflorent2020
Copy link
Contributor

I have the same assumption you reported, gonna make more test and merge it soon :) thanks for the update.

@danspndl danspndl added the LoRa Issues related to LoRa label Oct 26, 2018
@Bdanilko
Copy link
Author

I have the same assumption you reported, gonna make more test and merge it soon :) thanks for the update.

Hi @emmanuel-florent -- I've been using the patch for months now with no problems.

@eflorent2020
Copy link
Contributor

Hi @Bdanilko you patch modify Semtech stack, Semtech source. Feel free to submit it on their repos but there is few chance it get accepted. For some reasons including certification we must stick to the official Semtech implementation thus it will not be merged for this reason.

@Bdanilko
Copy link
Author

Hi @emmanuel-florent

Are you sure? I've looked at the semtech sources and those files don't have the functions (which I did NOT create but have slightly modified) for manually adding and removing channels. I've assumed that Pycom modified those files themselves, adding the new manual add/remove of channel functions that pycom needs-- you're git activity doesn't show that detail so I can't say for sure. Did one of your previous employees, or a contractor, modify the semtech sources instead of separating out that functionality?

What is your plan going forward if you don't want to modify Pycom code in those files? -- the current situation is that there is a BUG in your code -- it doesn't match the documentation. At the very least, updates to the documentation are needed, listing the non-conformance.

The semtech stack doesn't have manual adds or deletes for the AU915 and US915 regions as those region plans allocate all of the channels. The reality, of course, is different as most gateways don't have 72 channel support (and the Pycom micro node only has 1 channel). Without the manual add/remove the Pycoms couldn't function with gateways that don't support all channels (all 72 of them).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
LoRa Issues related to LoRa
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants