Skip to content

Conversation

@acassis
Copy link
Contributor

@acassis acassis commented Jan 4, 2026

Summary

The current SX127x has some issues when used for long time communication, although the chip has a resource called AFC (Automatic Frequency Correction) it is not enough to fix frequency drift.
This PR also adds option to use different bitrates.

Impact

This PR will make SX127x more stable for long time communication.

Testing

Board 1:

NuttShell (NSH) NuttX-12.12.0                                                    
nsh> sx127x -m 1 -t                                                             
Start sx127x_demo                                                               
FSK modulation                                                                  
Set frequency to 868000000                                                      
Set power to 14

Board 2:

nsh> sx127x -m 1
Start sx127x_demo
FSK modulation
Set frequency to 868000000
Set power to 14
Waiting for data
 
Received:
SNR  = 0
RSSI = -66
len  = 5
0x00 0x01 0x02 0x03 0x04 
 
wait 5 sec ...

This commit moves sx127x Kconfig to lpwan/sx127x/ to follow the
same logic used by sx126x and adds the configuration to support
different bitrate (the default 4800 is fine tuned for LORA).

Signed-off-by: Alan C. Assis <acassis@gmail.com>
@github-actions github-actions bot added Area: Drivers Drivers issues Size: M The size of the change in this PR is medium labels Jan 4, 2026
@acassis acassis force-pushed the improve_sx127x branch 2 times, most recently from ca904a7 to d524c31 Compare January 4, 2026 19:11
This commit adds support to fix RX timeout for SX127x, it is done
leaving the RX mode, entering in stanby mode and returning to RX
mode. It is enough to fix the AFC and get communication working
again.

Signed-off-by: Alan C. Assis <acassis@gmail.com>
This is a small fix just to true the github getting the new commits
after running git push -f

Signed-off-by: Alan C. Assis <acassis@gmail.com>
@acassis acassis requested a review from cederom January 5, 2026 15:44
Copy link
Contributor

@cederom cederom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @acassis :-)

@acassis acassis merged commit 76903ea into apache:master Jan 5, 2026
40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: Drivers Drivers issues Size: M The size of the change in this PR is medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants