Skip to content
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

Downlink testing: TX interval #1

Closed
Praneethsvch opened this issue Oct 19, 2020 · 3 comments · Fixed by #3
Closed

Downlink testing: TX interval #1

Praneethsvch opened this issue Oct 19, 2020 · 3 comments · Fixed by #3
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed testing Issue raised when a testing procedure is carried out/due

Comments

@Praneethsvch
Copy link
Collaborator

Praneethsvch commented Oct 19, 2020

Changing duty cycle using TX_INTERVAL as a variable:

  • testing different duty cycles
  • does accidental downlink of large numbers have a danger of sleeping the mcu indefinetly?
  • downlink is only changed after an uplink. The following code will print out the downlink received in one of the RX windows.
if (LMIC.dataLen) 
{
      // data received in rx slot after tx
      Serial.print(F("Received "));
      Serial.print(LMIC.dataLen);
      Serial.print(F(" bytes of payload: 0x"));
      for (int i = 0; i < LMIC.dataLen; i++) {
         if (LMIC.frame[LMIC.dataBeg + i] < 0x10) {
              Serial.print(F("0"));
           }
         Serial.print(LMIC.frame[LMIC.dataBeg + i], HEX);
       }
      Serial.println();
      receive_downlink();
}
  • using node red to send the downlinks
@Praneethsvch Praneethsvch added the testing Issue raised when a testing procedure is carried out/due label Oct 19, 2020
@Praneethsvch Praneethsvch self-assigned this Oct 19, 2020
@Praneethsvch Praneethsvch added the help wanted Extra attention is needed label Oct 21, 2020
@Praneethsvch
Copy link
Collaborator Author

Queuing Multiple downlinks issue can be solved by using 'replace' option. The downlink will replace the currently scheduled downlink, if any. It is also possible to schedule the downlink as the first or last item in a the downlink queue : reference

@Praneethsvch
Copy link
Collaborator Author

Using node-red to inject custom downlinks:

Sample Flow:
downlink node-red flow

The Inject blocks are manual switches to change the downlink payload message. Using String option and sending bytes in Hexadecimal format.
Inject block:
editing inject nodes

Using 'replace' as scheduling option to prevent Multiple downlinks Queuing issue
downlink node:
editing downlink node

@Praneethsvch
Copy link
Collaborator Author

TTN fair access policy allows a maximum of 10 downlinks, including the ACKs for confirmed uplinks. Exceeding this limit: Can I avoid Fair Access Policy by implementing a private TTN network?

@Praneethsvch Praneethsvch added the enhancement New feature or request label Oct 26, 2020
@Praneethsvch Praneethsvch linked a pull request Oct 26, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed testing Issue raised when a testing procedure is carried out/due
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant