# RN2903 "invalid\_data\_len" on AU915 over 24 Bytes/11 Characters

**URL:** <https://www.thethingsnetwork.org/forum/t/rn2903-invalid-data-len-on-au915-over-24-bytes-11-characters/21651>\
**Category:** End Devices (Nodes)\
**Created:** [January 21, 2019, 1:53am UTC](https://www.thethingsnetwork.org/forum/t/rn2903-invalid-data-len-on-au915-over-24-bytes-11-characters/21651 "2019-01-21T01:53:20Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![arjanvanb](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/arjanvanb/32/46626_2.png) [@arjanvanb](https://www.thethingsnetwork.org/forum/u/arjanvanb)\
**Post date:** [January 21, 2019, 8:57am UTC](https://www.thethingsnetwork.org/forum/t/rn2903-invalid-data-len-on-au915-over-24-bytes-11-characters/21651/2 "2019-01-21T08:57:09Z")

</div>

> [@ElectronicallyE](#):
>
> ```cpp
> // transmit a startup message
> //myLora.tx("Hello!");
> 
> // setting the frequency plan to AU915
> myLora.setFrequencyPlan(TTN_AU);
> 
> ```

I’d first set the frequency plan _before_ sending anything.

Beware you also still have a reference to US, despite the comment stating otherwise:

> ```cpp
> // Setting the frequency plan to AU915
> myLora.setFrequencyPlan(TTN_US);
> 
> ```

> [@ElectronicallyE](#):
>
> 24 bytes, or 11 characters

Even though most use cases should not use text, I’d not expect a library to support 16 bits characters or some UTF-encodig, if that’s what causes that difference. **How many bytes of application payload do you see in TTN Console when sending, say, 2 bytes?** Maybe the library is adding its own payload?

> [@ElectronicallyE](#):
>
> I have also tried turning the ADR on in [line 290](https://github.com/jpmeijers/RN2483-Arduino-Library/blob/6df20263c026c46ab79ef35f7c2bda335c97c190/src/rn2xx3.cpp#L290) as I am using ABP

ADR is unrelated to whether you’re using OTAA or ABP.

> [@ElectronicallyE](#):
>
> if I wanted to send a GPS coordinate, I would not have enough space

Actually, that might only need 6 bytes; see [Best practices when sending GPS location data [HowTo]](https://www.thethingsnetwork.org/forum/t/best-practices-when-sending-gps-location-data/1242).

---

_[View the full topic](https://www.thethingsnetwork.org/forum/t/rn2903-invalid-data-len-on-au915-over-24-bytes-11-characters/21651)._
