sx127x: add several NETOPT for GNRC LoRaWAN#11736
Conversation
aabadie
left a comment
There was a problem hiding this comment.
You can try the following patch
Why not adding a commit with these changes in the test application ?
Because I thought it's too hacky for its own commit. I think it would be possible to write unit tests for these get/set options (and check values with sx127x_reg_read). I can do it at some point |
I don't get your point. |
a549b46 to
19627a7
Compare
|
@aabadie done! |
|
this is a dependency of #11022 |
c6e7cbe to
24527fa
Compare
|
forgot to add netopts to |
|
There is a problem with 24527fa: it modifies unrelated stuff... |
|
24527fa commit message is invalid: it references |
24527fa to
77f5863
Compare
77f5863 to
ef75dac
Compare
tests/driver_sx127x/main.c
Outdated
| (void)argv; | ||
|
|
||
| netdev_t *netdev = (netdev_t *)&sx127x; | ||
| netdev_t *netdev = (netdev_t*) &sx127x; |
There was a problem hiding this comment.
Uncrustify must be run again on this file.
ef75dac to
8b3d1b6
Compare
aabadie
left a comment
There was a problem hiding this comment.
I tested this PR and it works. I still have a usability issue the syncword command, see below.
8b3d1b6 to
398cf66
Compare
|
done :) |
Contribution description
This PR add the following NETOPT to the SX127x driver:
These commits were cherry-picked from #11022
Testing procedure
Compile and flash the
drivers_sx127xtest:Then:
randomcommand give random numberssyncwordcommand to get and set the syncword.register get 0x39rx_timeoutcommand to set the RX symbol timeoutrx_timeout set <dec>E.g
note ((0xC4 & 0x3) << 8) | 0x32 == 0x32 => 50 decimal
Issues/PRs references