new receive code works a little better

This commit is contained in:
geeksville
2020-04-30 13:50:40 -07:00
parent 22720e9f63
commit a2ba9d3c44
6 changed files with 49 additions and 21 deletions

View File

@@ -9,7 +9,10 @@ Minimum items needed to make sure hardware is good.
- DONE basic test of BLE
- DONE get a debug 'serial' console working via the ICE passthrough feature
- add a hard fault handler
- switch to RadioLab? test it with current radio. https://github.com/jgromes/RadioLib
- DONE switch to RadioLab? test it with current radio. https://github.com/jgromes/RadioLib
- change rx95 to radiolib
- track rxbad, rxgood, txgood
- neg 7 error code from receive
- at boot we are starting our message IDs at 1, rather we should start them at a random number. also, seed random based on timer. this could be the cause of our first message not seen bug
- use SX126x::startReceiveDutyCycleAuto to save power by sleeping and briefly waking to check for preamble bits. Change xmit rules to have more preamble bits.
- use "variants" to get all gpio bindings
@@ -51,6 +54,7 @@ Needed to be fully functional at least at the same level of the ESP32 boards. At
## Items to be 'feature complete'
- remove the MeshRadio wrapper - we don't need it anymore, just do everythin in RadioInterface subclasses.
- figure out what the correct current limit should be for the sx1262, currently we just use the default 100
- put sx1262 in sleepmode when processor gets shutdown (or rebooted), ideally even for critical faults (to keep power draw low). repurpose deepsleep state for this.
- good power management tips: https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/optimizing-power-on-nrf52-designs