# Class C end device downlinks

**URL:** <https://www.thethingsnetwork.org/forum/t/class-c-end-device-downlinks/62496>\
**Category:** End Devices (Nodes)\
**Tags:** end-devices\
**Created:** [April 12, 2023, 7:23am UTC](https://www.thethingsnetwork.org/forum/t/class-c-end-device-downlinks/62496 "2023-04-12T07:23:12Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![aursueguia](https://www.thethingsnetwork.org/forum/letter_avatar_proxy/v4/letter/a/58956e/32.png) [@aursueguia](https://www.thethingsnetwork.org/forum/u/aursueguia)\
**Post date:** [April 12, 2023, 7:23am UTC](https://www.thethingsnetwork.org/forum/t/class-c-end-device-downlinks/62496/1 "2023-04-12T07:23:13Z")

</div>

Dear Sirs,

I am starting a new project that needs some centralization diagnostics, and LoraWan fits, or I think so, our needs.

We are now in the Proof Of Concept stage, with a purchased GATEWAY that has been registered in TTN Community, and a end device of class C (own design), that has been registerd also as class c.

It is based on a ASR6501 LoraWanModule.

The end devices are going to send few uplinks per day (justa few bytes indicating they are working ok).

The question is that we need to send aldo some downlinks to the end device (maybe one per month, and also a few bytes, or perhaps some splitted frames if the are bigger than say for example 50 bytes).

We have registered our gateway and our end device in TTN and all works like a charm.

The only doubt I have is that if I schedule a downlink (only for testing now), I do not receive it until the end device uplinks some message, and as far i have understood this is not the expected behaviour for a class c device, that can recevice the message in any time.

The end device has been joined and sent some uplink messages prior to schedule the downlink.

I am missing somethings, or is it a TTN limitation?

Is important for us to explore all the possibilities because if the project goes on the fleet of end devices will be for more than 8000 units.

Thanks in advance for your help.

---

<div class="post-metadata">

**Author:** ![descartes](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/descartes/32/47220_2.png) [@descartes](https://www.thethingsnetwork.org/forum/u/descartes)\
**Post date:** [April 12, 2023, 9:10am UTC](https://www.thethingsnetwork.org/forum/t/class-c-end-device-downlinks/62496/2 "2023-04-12T09:10:32Z")

</div>

> [@aursueguia](#):
>
> It is based on a ASR6501 LoraWanModule.

Ouch! What firmware / LoRaWAN stack / code base are you using for this?

> [@aursueguia](#):
>
> The end device has been joined and sent some uplink messages prior to schedule the downlink.

But has it switched over to Class C mode once it has joined? The answer to what firmware you are using will clarify a great deal.

> [@aursueguia](#):
>
> Is important for us to explore all the possibilities because if the project goes on the fleet of end devices will be for more than 8000 units.

Then TTN is most definitely not the platform for you as you will be exceeding the notional limits on devices with your testing very quickly - you should look to using a TTI Discovery instance so you can seamlessly upgrade to a full commercial supported instance with an SLA - paging @rish1

---

<div class="post-metadata">

**Author:** ![aursueguia](https://www.thethingsnetwork.org/forum/letter_avatar_proxy/v4/letter/a/58956e/32.png) [@aursueguia](https://www.thethingsnetwork.org/forum/u/aursueguia)\
**Post date:** [April 12, 2023, 11:47am UTC](https://www.thethingsnetwork.org/forum/t/class-c-end-device-downlinks/62496/3 "2023-04-12T11:47:29Z")

</div>

The stack version is 1.0.2.  
It has switched to C class before Joining.  
 ![image](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/1/6/16429076d8470304a8164b02b0070cc3394aa56c.png)

Thanks for your help.

And yes we are going to test in in TTI, but at this moment we get some undefined error on the web page when registering

---

<div class="post-metadata">

**Author:** ![Jeff-UK](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/jeff-uk/32/35697_2.png) [@Jeff-UK](https://www.thethingsnetwork.org/forum/u/Jeff-UK)\
**Post date:** [April 12, 2023, 1:05pm UTC](https://www.thethingsnetwork.org/forum/t/class-c-end-device-downlinks/62496/4 "2023-04-12T13:05:33Z")

</div>

Stack version is not specification version. A (software) stack may support a specific specification version - possibly several. Here I think Nick is looking for the firmware version/library (source please)

---

<div class="post-metadata">

**Author:** ![aursueguia](https://www.thethingsnetwork.org/forum/letter_avatar_proxy/v4/letter/a/58956e/32.png) [@aursueguia](https://www.thethingsnetwork.org/forum/u/aursueguia)\
**Post date:** [April 12, 2023, 1:43pm UTC](https://www.thethingsnetwork.org/forum/t/class-c-end-device-downlinks/62496/5 "2023-04-12T13:43:43Z")

</div>

The ASR6501 is running

AT+CGMR?  
+CGMR=v4.3  
software version V1.2.0

(Retrieved with the AT+CGMR command)

For trying to get the DOWNLINK we are using  
AT+DRX?

---

<div class="post-metadata">

**Author:** ![descartes](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/descartes/32/47220_2.png) [@descartes](https://www.thethingsnetwork.org/forum/u/descartes)\
**Post date:** [April 12, 2023, 2:13pm UTC](https://www.thethingsnetwork.org/forum/t/class-c-end-device-downlinks/62496/6 "2023-04-12T14:13:41Z")

</div>

> [@aursueguia](#):
>
> software version V1.2.0

Version of what - where did you get the code that you compiled for your device from - GitHub, vendor, Father Christmas? What is the name of the folder/directory that it came in.

> [@aursueguia](#):
>
> It has switched to C class before Joining.

Where in what code?

AFAIK, you join then switch to Class C …

> [@aursueguia](#):
>
> but at this moment we get some undefined error on the web page when registering

“The web page” - which web page? TTS errors are very specific so not seen an undefined one …

---

<div class="post-metadata">

**Author:** ![aursueguia](https://www.thethingsnetwork.org/forum/letter_avatar_proxy/v4/letter/a/58956e/32.png) [@aursueguia](https://www.thethingsnetwork.org/forum/u/aursueguia)\
**Post date:** [April 12, 2023, 2:31pm UTC](https://www.thethingsnetwork.org/forum/t/class-c-end-device-downlinks/62496/7 "2023-04-12T14:31:45Z")

</div>

Sorry if I have not explained me.

The software version is the version that the ASR601 Lorawan Module reports when you inquiry it with the GCGMR command.

The firmware that runs the end device is our OWN FIRMWARE and OWN HARDWARE, sending the AT COMMANDS to the ASR6501 MODULE.

The web page for registering in the things industries is giving us an error, so we are using the things community.

I will try to first JOIN and then swith to C class, but i dont see any sense on doing it.

![image](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/2/0/201c645f371e7b0c5c811be871c8d2b617fe9619.png)

---

<div class="post-metadata">

**Author:** ![descartes](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/descartes/32/47220_2.png) [@descartes](https://www.thethingsnetwork.org/forum/u/descartes)\
**Post date:** [April 12, 2023, 2:38pm UTC](https://www.thethingsnetwork.org/forum/t/class-c-end-device-downlinks/62496/8 "2023-04-12T14:38:46Z")

</div>

> [@aursueguia](#):
>
> I will try to first JOIN and then swith to C class, but i dont see any sense on doing it.

Maybe because that’s how it works???

> [@aursueguia](#):
>
> The firmware that runs the end device is our OWN FIRMWARE and OWN HARDWARE, sending the AT COMMANDS to the ASR6501 MODULE.

So you aren’t running a LoRaWAN MAC on your MCU but you are using the ASR6501 module.

So if your firmware has a name, like Zebedee, because that’s what you call it in the office, what is the name of the code that is running on the ASR6501. Or if you don’t know, where did you get the ASR6501 - like a web link, so we can see what LoRaWAN MAC you are running.

> [@aursueguia](#):
>
> The stack version is 1.0.2.

That’s a really really old version to be using for a new product. v1.0.3 is considered old but current. v1.0.4 is ‘up to date’ - we are on the cusp of using v1.1 in the next year or so …

As to the error message, contact the TTI office direct as that’s the onboarding site, not TTS.

---

<div class="post-metadata">

**Author:** ![aursueguia](https://www.thethingsnetwork.org/forum/letter_avatar_proxy/v4/letter/a/58956e/32.png) [@aursueguia](https://www.thethingsnetwork.org/forum/u/aursueguia)\
**Post date:** [April 12, 2023, 3:25pm UTC](https://www.thethingsnetwork.org/forum/t/class-c-end-device-downlinks/62496/9 "2023-04-12T15:25:14Z")

</div>

As per definition, ASR6501 has all the STACK of LORAWAN inside.  
No we are not running any LoraMAC in our CPU.  
We are just running the firmware that drives the AT COMMANDS to the ASr6501.  
Purchased here.

> **[LoRaWAN UNIT 868MHz (ASR6501) with Antenna](https://shop.m5stack.com/products/lorawan-unit-868mhz-asr6501-with-antenna)**
>
> Unit LoRaWAN868 SKU:U117 Description Unit LoRaWAN868 is a LoRaWAN communication module suitable for 868MHz frequency launched by M5Stack. The module adopts the ASR6501 scheme, which supports long-distance communication and has both ultra-low power...

As per JOINING and then switching to class C because you say that it because it how works, I paste from the DOCUMENTATION of setting class device from ASR :  
_5.2.16 Set/Read Class +CCLASS_  
_It need be set before the “Join” procedure, the default class is ClassA._

you can find it here, page 16

> **[ASR650X%20AT%20Command%20Introduction-20190605.pdf](https://www.hoperf.com/data/upload/back/20190605/ASR650X%20AT%20Command%20Introduction-20190605.pdf)**
>
> 1368.82 KB

Also tried with v1.0.4

SAme Behaviour.

1. JOIN.
2. Send a first UPLINK.
3. Schedule a DOWNLINK.  
The Class C Device only gets a downlink iwhen you send a new UPLINK.

---

<div class="post-metadata">

**Author:** ![descartes](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/descartes/32/47220_2.png) [@descartes](https://www.thethingsnetwork.org/forum/u/descartes)\
**Post date:** [April 12, 2023, 5:01pm UTC](https://www.thethingsnetwork.org/forum/t/class-c-end-device-downlinks/62496/10 "2023-04-12T17:01:51Z")

</div>

As per your responses, nice to finally have enough information.

As per M5 Stack link, LoRaWAN version is stated to be v1.0.1

As per comments above, you’ll need to ascertain how the firmware is working.

Perhaps the vendor, M5, could supply you with the firmware that runs on the ASR6501 so you can see how the Class switch is implemented. Or even the how they go about keeping the receive window open.

But overall, using such an old version of LoRaWAN when there are other less expensive more up to date AT command modules around seems to be a dead-end.

---

<div class="post-metadata">

**Author:** ![aursueguia](https://www.thethingsnetwork.org/forum/letter_avatar_proxy/v4/letter/a/58956e/32.png) [@aursueguia](https://www.thethingsnetwork.org/forum/u/aursueguia)\
**Post date:** [April 12, 2023, 5:08pm UTC](https://www.thethingsnetwork.org/forum/t/class-c-end-device-downlinks/62496/11 "2023-04-12T17:08:34Z")

</div>

Thanks.  
This is not the final product, just a proof of concept.  
So ASR6501 has not to be the final ChipSet we are going to use.  
I will switch to TTI when the registering error disappears.  
We have many others LoraWan Modules as final candidates, but if you can recommend one it will be much appreciated.

Others seen are AI\_RA07, AI\_RA08, Murata CMWX1ZZABZ, MURATA 1SJ, RFM6501, SEEEDUINO LoRa-E5.

---

<div class="post-metadata">

**Author:** ![descartes](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/descartes/32/47220_2.png) [@descartes](https://www.thethingsnetwork.org/forum/u/descartes)\
**Post date:** [April 12, 2023, 10:00pm UTC](https://www.thethingsnetwork.org/forum/t/class-c-end-device-downlinks/62496/12 "2023-04-12T22:00:42Z")

</div>

AI\_RA07 = Not correct frequency, you’d need the H version, older module  
AI\_RA08 = Ditto, has potential, is a rebadged RFM6601W  
Murata CMWX1ZZABZ = the original gold standard of professional devices, now outdated  
MURATA 1SJ = it’s replacement, with newer radio chipset  
RFM6501 = Older version of RFM6601, ironically probably has better support  
SEEEDUINO LoRa-E5. = Uses latest STM32WL chipset so well supported by ST, has it’s foibles.

There are plenty more modules around with varying levels of quality & support at various price points - both for NRE &/or unit cost. Without knowing what your application is & what risk levels for hardware you are prepared to accept, it’s a bit hard to know what to suggest.

---

<div class="post-metadata">

**Author:** ![jreiss](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/jreiss/32/46529_2.png) [@jreiss](https://www.thethingsnetwork.org/forum/u/jreiss)\
**Post date:** [April 12, 2023, 11:32pm UTC](https://www.thethingsnetwork.org/forum/t/class-c-end-device-downlinks/62496/13 "2023-04-12T23:32:51Z")

</div>

If the downlink is still available for a class A window, I would check that the device is registered correctly.  
A class c device that has joined and sent at least one uplink would not have a packet waiting in the queue.

[https://www.thethingsindustries.com/docs/devices/class-c/](https://www.thethingsindustries.com/docs/devices/class-c/)

Gateway logs and UI traces would show when downlinks are sent to the GW.
