Skip to content

Questions about class C and down windows #11

@finrut

Description

@finrut

Hi Matthijs,

I've seen downlinks are fine (in original LMIC-Arduino I couldn't receive pkts > 51 bytes)
and I'm trying the Class C (I haven't found documentation or example on it)
and I have 2 question :

  • how to use LMIC_setClassC func? (I would change from Class A to C and back)
  • is it possible to put a (class C) node in listening to receive downlinks without send any uplink?

for the second one questione I was thinking something like this from the raw.ino example:

void rx(osjobcb_t func) {
  LMIC.osjob.func = func;
  LMIC.rxtime = os_getTime(); // RX _now_
  // Enable "continuous" RX (e.g. without a timeout, still stops after
  // receiving a packet)
  os_radio(RADIO_RXON);
  Serial.println("RX");
}

static void rx_func (osjob_t* job) {
  // next RX
  os_setCallback(&rxjob, rx_func);

if (LMIC.dataLen != 0 )
{
  Serial.print("Got ");
  Serial.print(LMIC.dataLen);
  Serial.println(" bytes");
  Serial.write(LMIC.frame, LMIC.dataLen);
  Serial.println();
}
  // Restart RX
  rx(rx_func);
}

but I'm not sure because the dutycycle in LoRaWAN, so I'm wondering if I can simple RX directly through Basicmac (or LMIC ) API.

Do you have any suggestions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions