mcci-catena / arduino-lmic

LoraWAN-MAC-in-C library, adapted to run under the Arduino environment
https://forum.mcci.io/c/device-software/arduino-lmic/
MIT License
648 stars 212 forks source link

Asian LoraWan module #762

Open tcpipchip opened 3 years ago

tcpipchip commented 3 years ago

Describe your question or issue

I am porting the MCCI to some asian modules.

// Pin mapping const lmic_pinmap lmic_pins = { .nss = RADIO_NSS, .rxtx = LMIC_UNUSED_PIN, .rst = RADIO_RESET, .dio = {RADIO_DIO_0, RADIO_DIO_1, RADIO_DIO_2}, };

Please give a clear and concise description of the problem you're facing and what you'd like help with.

Only to know the meaning for this message, becasue the message reach the server, but...looks that MCCI is waiting for something

EV_TXCOMPLETE (includes waiting for RX windows)

image

Environment

This information is very important; it's hard to help without a complete set of answers.

tcpipchip commented 3 years ago

getting progress here! image How can i ask to make and confirmation in my uplink data payload ?

tcpipchip commented 3 years ago

is this right ? image

tcpipchip commented 3 years ago

Getting more and more progress here :)

tcpipchip commented 3 years ago

Hi, my port to Asia Module (LOM204) looks that is working! I can make uplink and downlink but...

But i have a question

Packet queued 58445192: EV_TXCOMPLETE (includes waiting for RX windows) 59386563: EV_TXSTART Temperature: 13 Humidity 55 Packet queued 59541443: EV_TXCOMPLETE (includes waiting for RX windows)

After the EV_TXCOMPLETE message, should i receive the "Received ack" message ?

if (LMIC.txrxFlags & TXRX_ACK) Serial.println(F("Received ack"));

Must i config something else ?

tcpipchip commented 3 years ago

Finally got the ACK! LMIC_setTxData2(1, mydata, sizeof(mydata)-1, true); //ask for ack (true) Running 100% on LOM204 :) Next step is to find out why consumptions is 8mA

tcpipchip commented 2 years ago

Ported now to VISUINO

https://lom204-cli-wisol.blogspot.com/2022/01/importante-opcao-nao-oficial-da-wisol.html