# What is the difference between mac and radio commands in RN2483?

**URL:** <https://www.thethingsnetwork.org/forum/t/what-is-the-difference-between-mac-and-radio-commands-in-rn2483/36220>\
**Category:** End Devices (Nodes)\
**Created:** [April 17, 2020, 8:03am UTC](https://www.thethingsnetwork.org/forum/t/what-is-the-difference-between-mac-and-radio-commands-in-rn2483/36220 "2020-04-17T08:03:57Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![sumitsirmewar](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/sumitsirmewar/32/39462_2.png) [@sumitsirmewar](https://www.thethingsnetwork.org/forum/u/sumitsirmewar)\
**Post date:** [April 17, 2020, 8:03am UTC](https://www.thethingsnetwork.org/forum/t/what-is-the-difference-between-mac-and-radio-commands-in-rn2483/36220/1 "2020-04-17T08:03:57Z")

</div>

I am trying to send a message to my application using OTAA encryption mechanism through RN2483 LoRaWAN microchip and STM32 microcontroller. However, [command line reference](http://ww1.microchip.com/downloads/en/DeviceDoc/RN2483-LoRa-Technology-Module-Command-Reference-User-Guide-DS40001784G.pdf) mentioned that how to transmit command which include both **mac** and **radio** command

mac tx \<hex\_data\>

radio tx \<hex\_data\>

# Question:

1. Does _ **mac** _ and _ **radio** _ commands are used for the same purpose?
2. Do I need to have a gateway here?
3. What is radio command use here? and how it will work?

---

<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:** [April 17, 2020, 9:13am UTC](https://www.thethingsnetwork.org/forum/t/what-is-the-difference-between-mac-and-radio-commands-in-rn2483/36220/2 "2020-04-17T09:13:10Z")

</div>

> [@sumitsirmewar](#):
>
> Does _ **mac** _ and _ **radio** _ commands are used for the same purpose?

No, mac sends LoRaWAN packets. Radio sends Lora data.

> [@sumitsirmewar](#):
>
> Do I need to have a gateway here?

To use TTN you need to be within range of a gateway connected to TTN.

---

<div class="post-metadata">

**Author:** ![sumitsirmewar](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/sumitsirmewar/32/39462_2.png) [@sumitsirmewar](https://www.thethingsnetwork.org/forum/u/sumitsirmewar)\
**Post date:** [April 17, 2020, 9:34am UTC](https://www.thethingsnetwork.org/forum/t/what-is-the-difference-between-mac-and-radio-commands-in-rn2483/36220/3 "2020-04-17T09:34:49Z")

</div>

> [@kersing](#):
>
> Radio sends Lora data.

to the server from gateway?

---

<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:** [April 17, 2020, 10:45am UTC](https://www.thethingsnetwork.org/forum/t/what-is-the-difference-between-mac-and-radio-commands-in-rn2483/36220/4 "2020-04-17T10:45:46Z")

</div>

> [@sumitsirmewar](#):
>
> to the server from gateway?

No. Radio sends plain Lora. Plain Lora does not know a concept like server and gateway. Plain Lora is just a radio modulation that allows sending bytes from one Lora device to another Lora device.  
LoRaWAN adds concepts like a standard packet format, standard settings for spreading factor, bandwidth etc and concepts like nodes, gateways and back-end infra structure.

---

<div class="post-metadata">

**Author:** ![sumitsirmewar](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/sumitsirmewar/32/39462_2.png) [@sumitsirmewar](https://www.thethingsnetwork.org/forum/u/sumitsirmewar)\
**Post date:** [April 17, 2020, 11:02am UTC](https://www.thethingsnetwork.org/forum/t/what-is-the-difference-between-mac-and-radio-commands-in-rn2483/36220/5 "2020-04-17T11:02:32Z")

</div>

ok for this method, i need to register 2 lora devices to gateway?

---

<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:** [April 17, 2020, 11:32am UTC](https://www.thethingsnetwork.org/forum/t/what-is-the-difference-between-mac-and-radio-commands-in-rn2483/36220/6 "2020-04-17T11:32:54Z")

</div>

No. If you use radio commands you do not require a gateway.

Have you read a basic introduction to Lora and LoRaWAN? If not, please search for it and read up on the difference and on what is involved in LoRaWAN so you are familiar with the concepts.

---

<div class="post-metadata">

**Author:** ![sumitsirmewar](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/sumitsirmewar/32/39462_2.png) [@sumitsirmewar](https://www.thethingsnetwork.org/forum/u/sumitsirmewar)\
**Post date:** [April 17, 2020, 11:36am UTC](https://www.thethingsnetwork.org/forum/t/what-is-the-difference-between-mac-and-radio-commands-in-rn2483/36220/7 "2020-04-17T11:36:31Z")

</div>

ok thank u @kersing
