-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
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
Labels
No labels