# The most data lose with lora32u4 ll LMIC

**URL:** <https://www.thethingsnetwork.org/forum/t/the-most-data-lose-with-lora32u4-ll-lmic/32108>\
**Category:** LMIC\
**Created:** [November 25, 2019, 8:40pm UTC](https://www.thethingsnetwork.org/forum/t/the-most-data-lose-with-lora32u4-ll-lmic/32108 "2019-11-25T20:40:45Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![camiIoiot](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/camiioiot/32/25844_2.png) [@camiIoiot](https://www.thethingsnetwork.org/forum/u/camiIoiot)\
**Post date:** [November 25, 2019, 8:40pm UTC](https://www.thethingsnetwork.org/forum/t/the-most-data-lose-with-lora32u4-ll-lmic/32108/1 "2019-11-25T20:40:45Z")

</div>

Hello everyone, im new and excuse my english:  
I am working with the Lora 32u4ll v1.3 of BsFrance and a gateway in AU915, the 32u4ll send data but the most data lose and the RSSI is very low, around -117.  
My lora 32u4ll is very close of the antenna of Gateway´i tried to get away from the gateway and when i do that dont show data into the thinks network  
someone knows what happens?

---

<div class="post-metadata">

**Author:** ![kersing](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/kersing/32/44777_2.png) [@kersing](https://www.thethingsnetwork.org/forum/u/kersing)\
**Post date:** [November 25, 2019, 9:20pm UTC](https://www.thethingsnetwork.org/forum/t/the-most-data-lose-with-lora32u4-ll-lmic/32108/2 "2019-11-25T21:20:41Z")

</div>

What type/brand of gateway? What antennas are you using for both the gateway and the node? Could you copy and past meta data for a few packets? (Use formatting options from the forum to properly format any text you paste)

---

<div class="post-metadata">

**Author:** ![camiIoiot](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/camiioiot/32/25844_2.png) [@camiIoiot](https://www.thethingsnetwork.org/forum/u/camiIoiot)\
**Post date:** [November 25, 2019, 9:44pm UTC](https://www.thethingsnetwork.org/forum/t/the-most-data-lose-with-lora32u4-ll-lmic/32108/3 "2019-11-25T21:44:14Z")

</div>

Hello Kersing thanks for the answer I used tihs antenna for the lora 32u4 ll  
[https://www.didacticaselectronicas.com/index.php/comunicaciones/lora/antena-lora-868-915mhz-sma-ant-900mhz-3dbi-915mhz-iot-largo-alcance-ipex-inalámbrico-wireless-detail](https://www.didacticaselectronicas.com/index.php/comunicaciones/lora/antena-lora-868-915mhz-sma-ant-900mhz-3dbi-915mhz-iot-largo-alcance-ipex-inal%C3%A1mbrico-wireless-detail)  
my gateway is a kerlink and the antenna is a oa-915m06-nf

in adiccion i use this library for the conexion.

> **[matthijskooijman/arduino-lmic](https://github.com/matthijskooijman/arduino-lmic)**
>
> LoraWAN-in-C library, adapted to run under the Arduino environment - matthijskooijman/arduino-lmic

---

<div class="post-metadata">

**Author:** ![blem](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/blem/32/38998_2.png) [@blem](https://www.thethingsnetwork.org/forum/u/blem)\
**Post date:** [November 25, 2019, 10:23pm UTC](https://www.thethingsnetwork.org/forum/t/the-most-data-lose-with-lora32u4-ll-lmic/32108/4 "2019-11-25T22:23:43Z")

</div>

You have asked the same question in an issue on the _mcci-catena/arduino-lmic_ GitHub, yet here you refer to the _matthijskooijman/arduino-lmic_ GitHub. So which of these libraries are you using?

Also note that the library likely returns an invalid RSSI value. A bug has been raised in _mcci-catena/arduino-lmic_ GitHub. Most likely the same bug exists in _matthijskooijman/arduino-lmic_ as well as that code hasn’t been touched anymore for two years.

> <https://github.com/mcci-catena/arduino-lmic/issues/493>

---

<div class="post-metadata">

**Author:** ![cslorabox](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/cslorabox/32/35697_2.png) [@cslorabox](https://www.thethingsnetwork.org/forum/u/cslorabox)\
**Post date:** [November 25, 2019, 10:53pm UTC](https://www.thethingsnetwork.org/forum/t/the-most-data-lose-with-lora32u4-ll-lmic/32108/5 "2019-11-25T22:53:55Z")

</div>

> [@camiIoiot](#):
>
> I am working with the Lora 32u4ll v1.3 of BsFrance and a gateway in AU915, the 32u4ll send data but the most data lose and the RSSI is very low, around -117.

These are presumably uplink signal reports (it doesn’t sound like you have things working well enough to show downlinks)

Please post some of the actual packet reports, showing all of the details - frequency, spreading factor, signal strength, rssi and either the raw still encrypted packet (as base64 or hex) or if the packets are being parsed and decrypted then the port and sequence number.

Also please answer that question about exactly which codebase you are using, and additionally in what mode you are operating it - ie, ABP or OTAA, with or without ADR.

---

<div class="post-metadata">

**Author:** ![camiIoiot](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/camiioiot/32/25844_2.png) [@camiIoiot](https://www.thethingsnetwork.org/forum/u/camiIoiot)\
**Post date:** [November 26, 2019, 3:15pm UTC](https://www.thethingsnetwork.org/forum/t/the-most-data-lose-with-lora32u4-ll-lmic/32108/6 "2019-11-26T15:15:30Z")

</div>

Hello cslorabox, thanks for the answer  
 ![Sin%20t%C3%ADtulo](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/d/8/d877c50d4af494e5225b05b057b60e8c721aeaf0.png)  
I use ABP i tried use OTAA but dont send data

---

<div class="post-metadata">

**Author:** ![camiIoiot](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/camiioiot/32/25844_2.png) [@camiIoiot](https://www.thethingsnetwork.org/forum/u/camiIoiot)\
**Post date:** [November 26, 2019, 3:19pm UTC](https://www.thethingsnetwork.org/forum/t/the-most-data-lose-with-lora32u4-ll-lmic/32108/7 "2019-11-26T15:19:55Z")

</div>

Hello blem thanks for the answer,  
I was wrong to publish in that GitHub, the library I use the matthijskooijman-lmic library I tried to use the tiny lora library and I have the same problem some packets appear but not all and the RSSI still arround -177

---

<div class="post-metadata">

**Author:** ![cslorabox](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/cslorabox/32/35697_2.png) [@cslorabox](https://www.thethingsnetwork.org/forum/u/cslorabox)\
**Post date:** [November 26, 2019, 5:52pm UTC](https://www.thethingsnetwork.org/forum/t/the-most-data-lose-with-lora32u4-ll-lmic/32108/8 "2019-11-26T17:52:22Z")

</div>

Please paste several packets as TEXT, not pictures.

We can’t run base64 decoders on a picture…

That said, it looks like your picture is showing a success, not a failure, so it’s unclear what you are asking for help with

---

<div class="post-metadata">

**Author:** ![camiIoiot](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/camiioiot/32/25844_2.png) [@camiIoiot](https://www.thethingsnetwork.org/forum/u/camiIoiot)\
**Post date:** [November 26, 2019, 6:27pm UTC](https://www.thethingsnetwork.org/forum/t/the-most-data-lose-with-lora32u4-ll-lmic/32108/9 "2019-11-26T18:27:10Z")

</div>

Excuse me I´m new in the foros 😅  
2019-11-25 11:36:42 - [UL]: {“confirmed”:false,“cr\_used”:“4/5”,“dataFrame”:“SGVs bG8gTG9yYQA=”,“decrypted”:true,“devaddr”:11386380,“deveui”:“0004a30b0021952c”,“d evice\_redundancy”:1,“dr\_used”:“SF12BW125”,“early”:false,“fcnt”:89,“freq”:9208000 00,“gtw\_info”:[{“ant”:0,“gtw\_id”:“7076fffffe01899a”,“rssi”:-107,“snr”:-9}],“id”: 1574699801221,“live”:true,“port”:1,“rssi”:-107,“sf\_used”:12,“snr”:-9,“time\_on\_ai r\_ms”:1482.752,“timestamp”:“2019-11-25T16:36:41.221Z”}

I recive data sometimes but for example I send 30 packets and only 5 has arrive in TTN.

---

<div class="post-metadata">

**Author:** ![camiIoiot](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/camiioiot/32/25844_2.png) [@camiIoiot](https://www.thethingsnetwork.org/forum/u/camiIoiot)\
**Post date:** [November 26, 2019, 6:51pm UTC](https://www.thethingsnetwork.org/forum/t/the-most-data-lose-with-lora32u4-ll-lmic/32108/10 "2019-11-26T18:51:18Z")

</div>

Hello, Thanks for your answers, I solved the problem using the library tiny lora and change the frequencys into tynylora.cpp to the frequencys that work my gateway, thanks for all. If in the future somebody have the same problem there is the TinyLoRa library

> **[adafruit/TinyLoRa](https://github.com/adafruit/TinyLoRa)**
>
> LoRaWAN Library. Contribute to adafruit/TinyLoRa development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![cslorabox](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/cslorabox/32/35697_2.png) [@cslorabox](https://www.thethingsnetwork.org/forum/u/cslorabox)\
**Post date:** [November 26, 2019, 6:56pm UTC](https://www.thethingsnetwork.org/forum/t/the-most-data-lose-with-lora32u4-ll-lmic/32108/11 "2019-11-26T18:56:09Z")

</div>

> [@camiIoiot](#):
>
> If in the future somebody have the same problem there is the TinyLoRa library

Tiny LoRa may be an option.

But note that it is TRANSMIT ONLY.

That means that it cannot use ADR to adjust the data rate for the range from the gateway, so you will have to recompile to tune the data rate depending on where you are going to install the node.

Also, beware that if you reboot your node you will probably reset the sequence number, causing the network to start rejecting your packets since they look like a replay attack.

---

<div class="post-metadata">

**Author:** ![camiIoiot](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/camiioiot/32/25844_2.png) [@camiIoiot](https://www.thethingsnetwork.org/forum/u/camiIoiot)\
**Post date:** [November 26, 2019, 7:04pm UTC](https://www.thethingsnetwork.org/forum/t/the-most-data-lose-with-lora32u4-ll-lmic/32108/12 "2019-11-26T19:04:23Z")

</div>

thanks for the recommendation I will inquire in the LMIC library to configure the frequencies my gateaway uses.  
Do you know in which file I can search?  
Again Thanks for all.

---

<div class="post-metadata">

**Author:** ![cslorabox](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/cslorabox/32/35697_2.png) [@cslorabox](https://www.thethingsnetwork.org/forum/u/cslorabox)\
**Post date:** [November 26, 2019, 8:01pm UTC](https://www.thethingsnetwork.org/forum/t/the-most-data-lose-with-lora32u4-ll-lmic/32108/13 "2019-11-26T20:01:06Z")

</div>

> [@camiIoiot](#):
>
> hanks for the recommendation I will inquire in the LMIC library to configure the frequencies my gateaway uses.  
> Do you know in which file I can search?

You cannot simply change the frequencies. In an actual LoRaWAN stack like LMiC you have to change the logic governing their usage, too.

This is done by configuring the appropriate region.

---

<div class="post-metadata">

**Author:** ![clv](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/clv/32/46568_2.png) [@clv](https://www.thethingsnetwork.org/forum/u/clv)\
**Post date:** [November 29, 2019, 4:48pm UTC](https://www.thethingsnetwork.org/forum/t/the-most-data-lose-with-lora32u4-ll-lmic/32108/14 "2019-11-29T16:48:06Z")

</div>

Long story short: Please downgrade to TinyLoRa version 1.2.2 [https://github.com/adafruit/TinyLoRa/releases](https://github.com/adafruit/TinyLoRa/releases)

Long story:  
Probably my fault. I added to the library a setPower function. Although it worked for several days, one day after field testing I had the same behavior as you. I thought I burned some chip, because my + (hot) terminal of battery was off and I imagined I destroyed some amplifier on my adaruit feather lora.

I wanted to buy a new one, but with your message, I realize that something else is bad.

---

<div class="post-metadata">

**Author:** ![clv](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/clv/32/46568_2.png) [@clv](https://www.thethingsnetwork.org/forum/u/clv)\
**Post date:** [March 17, 2020, 11:59pm UTC](https://www.thethingsnetwork.org/forum/t/the-most-data-lose-with-lora32u4-ll-lmic/32108/15 "2020-03-17T23:59:57Z")

</div>

Wow, I can’t believe, I loose 3 months of work because of that. To rectify.

TinyLoRa.h ignores the #define EU863. I hard-coded the #define 863 like the old days in TinyLoRa.h and it’s fine.
