Skip to content
This repository was archived by the owner on May 2, 2024. It is now read-only.
This repository was archived by the owner on May 2, 2024. It is now read-only.

AU915 - more info and testing required? #19

@coratron

Description

@coratron

Hi,

I have been testing this library configured for AU915 today but I am having some issues.

Background:

  • Tested with an 8 channel gateway and loraserver/chirpstack (not TTN) - both working with other devices running a different firmware
  • Using OTAA
  • I had to select the right subband for AU915 before the join requests could start using the right frequencies.
bool TTN_esp32::begin(const Arduino_LMIC::HalPinmap_t* pPinmap)
{
    const bool success = os_init_ex(pPinmap);
    if (success)
    {
        // Reset the MAC state. Session and pending data transfers will be discarded.
        LMIC_reset();

        //select subband
        LMIC_selectSubBand(0);
        
    }
    return success;
}

What works:

  • SX1276 properly detected
  • The code runs - no crashes
  • The device is able to issue a join request - loraserver replies with a join accept
  • the lmic loop runs in the background

What does not work:

  • The device does not get the join accept reply - it just keeps waiting for the reply.

Terminal output [keys/ids changed to XX]

rstz0x1 (PO�ERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:1100
load:0x40078000,len:10900
load:0x40080400,len:6360
entry 0x400806b4
Starting
RXMODE_RSSI
[readNvsValue] Reading devEui with value XXXXXXX
[readNvsValue] Reading appEui with value XXXXXXX
[readNvsValue] Reading appKey with value XXXXXXXXXX
[checkKeys] provisioned, no session
[I][TTN_esp32.cpp:452] restoreKeys(): Dev and app EUI and app key have been restored from NVS storage
[checkKeys] provisioned, no session
[readNvsValue] Reading devEui with value XXXXXXX
[readNvsValue] Reading appEui with value XXXXXXXXX
[readNvsValue] Reading appKey with value XXXXXXXX
[I][TTN_esp32.cpp:424] saveKeys(): Dev EUI, app EUI and app key saved in NVS storage
Using stored keys to join
6029: [Event] JOINING
6145: engineUpdate, opmode=0x4
6341: [Event] TXSTART
6470: TXMODE, freq=917600000, len=23, SF=12, BW=125, CR=4/5, IH=0
Joining TTN ...........................................

Observations & Hypothesis

  • An EV_TXCOMPLETE event is not happening - any ideas?
  • Perhaps another function needs to be used to set the right RX "subband" ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions