-
Notifications
You must be signed in to change notification settings - Fork 11
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
V3 packet dropping issue #18
Comments
The following is a comparison between V2 and V3 where I am waiting for OPTXRXPEND flag to be pulled low and then sending a packet. In V2 the packets are being sent every 2 to 3 seconds which looks like the RX1+RX2 for V2 But for V3 the pending flag requires some random time as low as 6 seconds(Rx1+Rx2) to ~100 seconds. For V2 the following is the serial monitor output For V3 the following is the serial monitor output in the image you can clearly see the random time intervals between two consequent packet upload. |
Even with a simple example of sending packets continuously we can see from the previous examples that OPTXRXPEND flag is being set in V3.So instead of adding new values to stack the code below waits for this flag to be cleared indicating no pending transactions and then schedules a new packet.
Results |
Problem
While using the code from the library and adding a device on TTN V3 every other packet is not being read by the TTN console and after receiving a packet exactly after 5 or 6 seconds there is a second packet with all values zero.
![image](https://user-images.githubusercontent.com/72412852/118026064-6b992c00-b32e-11eb-98fc-0a79d1e4fb83.png)
![image](https://user-images.githubusercontent.com/72412852/118026514-df3b3900-b32e-11eb-8acf-cd7483cb5fdb.png)
![image](https://user-images.githubusercontent.com/72412852/118026686-13aef500-b32f-11eb-8910-033b7acb12a8.png)
For example with a duty cycle of 30 seconds below is the image with one packet
After 5 or 6 seconds there is another packet received with all the values as zero
Then the next packet is received after one minute (twice the duty cycle)
Power profile
In the power profile shown below for the MCU there is a transmission at every other duty cycle ,even when when the packets are not being transmitted there is a peak in current.
![image](https://user-images.githubusercontent.com/72412852/118026803-3d681c00-b32f-11eb-9e5d-a5118d01804f.png)
progress
The text was updated successfully, but these errors were encountered: