fleebag

Forum Replies Created

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • in reply to: ABP mDot downlink issues? #20584
    fleebag
    Participant

    Ok thanks!

    Also, I just reset my Downlink frame counter to zero, even though loraserver’s uplink counter reset when I reset the mDot with an iteration of my firmware.
    I also set the Datarate in the backend to 8 (SF12BW500). (I’ve switched between 8 and zero several times already)

    And it’s finally switched over to sending txpks at 12/500 to my gateway.

    So maybe Robert Rodriguez should look into resetting the back end’s downlink counter?

    Jason, thank you so much for your attention to this thread!

    in reply to: ABP mDot downlink issues? #20582
    fleebag
    Participant

    I’ve gotten Arduino Nano with LMiC to read my downlinks… so I’m back to wrestling with the mDot.

    Currently the mDot’s rx2 is SF12 while the Loraserver is sending out RX2 at SF10.

    Anyone know how to change RX2’s expected spread factor?

    in reply to: ABP mDot downlink issues? #20509
    fleebag
    Participant

    I’m also going to post a link to an mbed forum post. It didn’t solve my problem, but it’s where I first learned about using recv().

    The linked code at the end applies to OTAA and apparently an older version of mbed OS, so it didn’t really plug straight into my example code.

    • This reply was modified 6 years, 9 months ago by fleebag. Reason: Text after the href disappeared. Moved to make it visible
    • This reply was modified 6 years, 9 months ago by fleebag. Reason: Link disappeared, rearranging to try to get everything to show
    • This reply was modified 6 years, 9 months ago by fleebag. Reason: closing the anchor
    in reply to: ABP mDot downlink issues? #20350
    fleebag
    Participant

    Ah ok. I changed to TRACE_LEVEL.

    [INFO] Configure radio for TX
    [DEBUG] Session pwr: 20 ant: 3 max: 30
    [DEBUG] Radio Power index: 20 output: 19 total: 22
    [DEBUG] TX PWR: 20 DR: 0 SF: 10 BW: 0 CR: 1 PL: 8 CRC: 1 IQ: 0
    [INFO] Configure radio for TX
    [DEBUG] Session pwr: 20 ant: 3 max: 30
    [DEBUG] Radio Power index: 20 output: 19 total: 22
    [DEBUG] TX PWR: 20 DR: 0 SF: 10 BW: 0 CR: 1 PL: 8 CRC: 1 IQ: 0
    [DEBUG] mDotEvent – TxDone
    [TRACE] Event: OK
    [TRACE] Flags Tx: 1 Rx: 0 RxData: 0 RxSlot: 0 LinkCheck: 0 JoinAccept: 0
    [TRACE] Info: Status: 0 ACK: 0 Retries: 0 TxDR: 0 RxPort: 0 RxSize: 0 RSSI: 0 SNR:0
    [TRACE] RX1 on freq: 924500000
    [TRACE] RX DR: 10 SF: 10 BW: 2 CR: 1 PL: 8 STO: 12 CRC: 1 IQ: 1
    [TRACE] Stats: Up: 296 Down: 0 DupTx: 0 CRC Errors: 0
    [INFO] Rx Window 1
    [DEBUG] mDotEvent – MissedAck : retries 0
    [TRACE] Event: RX_TIMEOUT
    [TRACE] Flags Tx: 0 Rx: 0 RxData: 0 RxSlot: 1 LinkCheck: 0 JoinAccept: 0
    [TRACE] Info: Status: 3 ACK: 0 Retries: 0 TxDR: 0 RxPort: 0 RxSize: 0 RSSI: 0 SNR:0
    [TRACE] RX2 on freq: 923300000
    [TRACE] RX DR: 8 SF: 12 BW: 2 CR: 1 PL: 8 STO: 12 CRC: 1 IQ: 1
    [TRACE] Stats: Up: 296 Down: 0 DupTx: 0 CRC Errors: 0
    [INFO] Rx Window 2
    [DEBUG] mDotEvent – MissedAck : retries 0
    [TRACE] Event: RX_TIMEOUT
    [TRACE] Flags Tx: 0 Rx: 0 RxData: 0 RxSlot: 2 LinkCheck: 0 JoinAccept: 0
    [TRACE] Info: Status: 3 ACK: 0 Retries: 0 TxDR: 0 RxPort: 0 RxSize: 0 RSSI: 0 SNR:0
    [ERROR] ACK not received
    [ERROR] failed to send data to gateway [-5][Operation Timed Out]
    [INFO] Uplink frame counter: 296
    [ERROR] No packet received
    [ERROR] failed to recv: [-5][Operation Timed Out]
    [INFO] Downlink frame counter: 0
    [INFO] sleeping 10s or until interrupt on DIO7 pin
    [INFO] application will resume after waking up�[INFO] light: 36525 [0x8EAD]
    [DEBUG] Send with tx timeout 5000
    [INFO] Preparing frame

    So I bumped the DR for RX2 back up to 8.
    Above is what showed up during the time in which my downlink data de-queued from the server… I’m unfortunately still getting the Operation Timed Out errors for both downlinks and acks…argh.

    in reply to: ABP mDot downlink issues? #20346
    fleebag
    Participant

    I tried it just now. Funny because it goes from public to private to back to public (when I call the function)…

    [INFO] Initialize channels…
    [INFO] Initialize datarates…
    [INFO] Set radio to Public Mode
    [INFO] mDot Ready
    [INFO] mbed-os library version: 139
    [INFO] defaulting Dot configuration
    [INFO] changing network join mode to MANUAL
    [INFO] Initialize channels…
    [INFO] Initialize datarates…
    [INFO] Set radio to Private Mode
    [INFO] Set radio to Public Mode
    [INFO] Initialize channels…
    [INFO] Initialize datarates…

    Unfortunately the ACKs/downlinks are still not being received. :-/

    in reply to: ABP mDot downlink issues? #20344
    fleebag
    Participant

    Okay, looking at Lora.h the default for RX2 is 0, but I’m still having issues with ACKs and Downlinks. 🙁

    in reply to: ABP mDot downlink issues? #20336
    fleebag
    Participant

    Hi Jason! Thanks for the response!

    I changed that recently from 0 to 10 because I interpreted a TTN documented data rates for US915 up-to-downlink was pretty much read as ten… but I misread it, and found the actual datarate offsets you mentioned in the Regional Parameters. I’ll change it back! 🙂

    Unfortunately, the thing is that before I changed it to 10, it still had an “Operation Timed out” with the offset of zero..? (And I just tested it now, and I’m still not receiving ACKs or downlinks in either RX1 or RX2)

    I’m assuming that the rx2 rate of 8 is correct, according to section 2.2.7 of the LoraWan Regional Parameters (ver1.0-20161012)? (btw, the rx2 datarate was the same… I tried it at 0 for a while, and then recently changed it to 8 and the mDot didn’t receive ACKs or data in either datarate…)

    Thanks!

    • This reply was modified 6 years, 9 months ago by fleebag. Reason: clarity
    • This reply was modified 6 years, 9 months ago by fleebag. Reason: added explanation of rx2 DR
Viewing 7 posts - 1 through 7 (of 7 total)