> For the complete documentation index, see [llms.txt](https://docs.yobiiq.com/welcome/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yobiiq.com/welcome/lorawan-stack/generic-data/readme/lorawan-data-registers.md).

# LoRaWAN Data Registers

## Data Registers

The following registers contain information with regards to the LoRaWAN Communication.

<table><thead><tr><th width="228.6651611328125">Descriptive Name</th><th width="84">Address</th><th width="107.8333740234375">R/W</th><th width="121">Default</th><th width="234">Comment</th></tr></thead><tbody><tr><td>Reset</td><td>0x95</td><td>W</td><td></td><td>Resets the LoRa Stack.<br>Write 0x01 to rejoin the network</td></tr><tr><td>Status</td><td>0x96</td><td>R</td><td> </td><td>Current join status of the device</td></tr><tr><td>LoRa Radio Module</td><td>0x97 </td><td>R</td><td>SX126x</td><td>Semtech Module (SXxxx)</td></tr><tr><td><a href="#lorawan-region">LoRaWAN Region</a></td><td>0x98 </td><td>R </td><td>EU868</td><td>Region Selected</td></tr><tr><td>LoRaWAN Protocol Version</td><td>0x99 </td><td>R </td><td>1.0.4</td><td>3 bytes<br>The LoRaWAN Protocol Version used</td></tr><tr><td>Device EUI</td><td>0x9A</td><td>R/W</td><td></td><td>The Device EUI</td></tr><tr><td>App EUI</td><td>0x9B</td><td>R/W</td><td> </td><td>The APP EUI</td></tr><tr><td>App Key</td><td>0x9C</td><td>R/W</td><td> </td><td>The Application Key</td></tr><tr><td></td><td></td><td></td><td></td><td></td></tr><tr><td>LoRaWAN CSMA (Carrier Sense Multiple Access)</td><td>0x9E</td><td>R/W</td><td>0x00</td><td>0x00: Disabled<br>0x01: Enabled</td></tr><tr><td>LoRaWAN Device Class</td><td>0x9F</td><td>R/W</td><td> </td><td>0x00: Class A<br>0x01: Class B<br>0x02: Class C</td></tr><tr><td>ADR Mode</td><td>0XA0</td><td>R/W</td><td> 0x01</td><td>The ADR Mode<br>0x00: Disabled<br>0x01: Enabled</td></tr><tr><td><a href="#spread-factor">Spread Factor</a></td><td>0xA1</td><td>R/W</td><td>0x00</td><td>SF to be used if ADR is disabled. (Fixed DR)</td></tr><tr><td><a href="#adr-profile">ADR Profile</a></td><td>0xA2</td><td>R/W</td><td> 0x00</td><td>DR Strategy when ADR is enabled</td></tr><tr><td><a href="#radio-mode">Radio Mode</a></td><td>0xA3</td><td>R/W</td><td> 0x00</td><td>Choose the Radio Operating Mode.</td></tr><tr><td>Number of Join Attempts</td><td>0xA4</td><td>R/W</td><td>2</td><td>1 byte, Uint8<br>n = 0 : disabled (infinite)<br>n > 0 :  number of join attempts in the LinkCheckReq timeframe</td></tr><tr><td>Timeframe for LinkCheckReq</td><td>0xA5</td><td>R/W</td><td>96</td><td>2 bytes, Uint16<br>amount of hours in which the LinkCheckReq will take place.</td></tr><tr><td>Data Retransmission</td><td>0xA6</td><td>R/W</td><td>0x00</td><td>0x00: Disabled<br>0x01: Enabled</td></tr><tr><td>LoRa Communication Watchdog Alarm</td><td>0xA7 </td><td>R</td><td> </td><td><p>Returns the current alarm state of the LoRaWAN watchdog.</p><p>0 = No Alarm</p><p>1 = Alarm</p></td></tr></tbody></table>

## LoRaWAN Region

The LoRaWAN Region the device is configured to work in, make sure it matches you network as LoRaWAN regions/bands are country dependent.

Do note that you only select the region which is known to be supported and mentioned in the Device’s Manual.

| Value | Description |
| ----- | ----------- |
| 0x00  | EU863-870   |
| 0x01  | AU915-928   |
| 0x02  | US902-928   |
| 0x03  | AS923-925   |
| 0x04  | 2.4GHz      |

## Spread Factor

The Spread Factor is the fixed DR used by the device when the ADR is disabled.

| Value | Description                       |
| ----- | --------------------------------- |
| 0x00  | DR0 (SF12 BW125 in EU868 region)  |
| 0x01  | DR1 (SF11 BW125  in EU868 region) |
| 0x02  | DR2 (SF10 BW125  in EU868 region) |
| 0x03  | DR3 (SF9 BW125  in EU868 region)  |
| 0x04  | DR4 (SF8 BW125  in EU868 region)  |
| 0x05  | DR5 (SF7 BW125  in EU868 region)  |
| 0x06  | DR6 ((SF7 BW250  in EU868 region) |

## ADR Profile

The ADR (Adaptive Data Rate) can be set to ON or OFF. More specifically this result in:

ADR ON:  the device uses a so called ADR profile to decide how to adapt the data rate. \
By default, the profile is set to ***ADR by network*** : actually means that DR is network controlled, i.e. the LoRaWAN network is responsible for telling the device how to adjust the data rate (spreading factor)

ADR OFF: the device uses the DR set to spread factor register. (Fixed Data Rate)

The ADR profile that the device uses when ADR is set to ON can be changed through a downlink.<br>

| Name           | Value | Description                                                                                                                   |
| -------------- | ----- | ----------------------------------------------------------------------------------------------------------------------------- |
| ADR by network | 0x00  | DR controlled by the network                                                                                                  |
| Low Power      | 0x01  | The used SF is distributed as: 30% SF7, 30% SF8, 30% SF9, 10% SF10. It's a tradeoff that favours low power above long range   |
| Long Range     | 0x02  | The used SF is distributed as: 30% SF9, 30% SF10, 20% SF11, 20% SF12. It's a tradeoff that favours long range above low power |

## Radio Mode

The Radio Mode can be set to the desired radio mode for the device.\
Please refer to the iQ D2D manual for more information.

| Value | Description      |
| ----- | ---------------- |
| 0x00  | LoRaWAN          |
| 0x01  | iQ D2D           |
| 0x02  | iQ D2D + LoRaWAN |

<br>
