Skip to content
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

setting spreading factor has no effect #4

Open
oschade opened this issue Jan 12, 2020 · 2 comments
Open

setting spreading factor has no effect #4

oschade opened this issue Jan 12, 2020 · 2 comments

Comments

@oschade
Copy link

oschade commented Jan 12, 2020

Hello,

I changed the spreading factor in dragino_lora_app to 10:

// Set spreading factor (SF7 - SF12)
sf_t sf = SF10;

and run "make" (of course).

But this has no effect. The server still receives SF7-messages, but not SF10-messages.

@badjoke
Copy link

badjoke commented Apr 5, 2020

Hi oschade,
I have the same problem. Were you able to solve it?

@kubelvla
Copy link

Hi, I have been debugging this board for a week and there are a few issues with the code provided. Changing the SF does nothing, because they first set the registers in the setup function, and only then in the main function, they call the opmodeLora() function. But according to the manual, those registers can be set only after changing the the chip to the LoRa mode. The way they do it here in the code, you always get the default values for the three setup registers. If you want to quick fix your issue, move the opmodeLora() call from the main function into the SetupLora() function, right after setting the SLEEP state.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants