This repo exists to test out the LoRa radio that we currently use. This is so that we have a place where we can easily change settings and try out a lot of different things with the radio and
This thing sets up the radio using the setup() function then it does a one second test: if the program receives any packet inside that one second interval it becomes the "receiver" otherwise it becomes the "sender". We do this so that we only need to edit one program to test the radio
The receiver listens in "windows". During each window, it counts the number of bytes it receives from the radio. At the end of the window, it prints out stats about that current window then clears all counters and starts the window over again
The sender spams some set number of bytes out, that is all it does
Download the code to both boards then follow this procedure:
- turn off both boards
- ensure only one board is connected to your computer
- turn on the board not connected to your computer
- wait for a second for its init to finish (when you hear the two short beeps, it is ready)
- turn on the board connected to your computer
- turn on the platformio serial monitor and see the data coming in from the board
what is the current byte rate of the board?
what byte rate can we get it up to?
what is necessary to get that max byte rate?