<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Lora send example on nRF52DK NRF52840 development board</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/104532/lora-send-example-on-nrf52dk-nrf52840-development-board</link><description>Hello. I am trying to set up a basic Lora send example on my nRF52DK NRF52840 development board: https://www.nordicsemi.com/Products/Development-hardware/nrf52840-dk The issue that I am getting: 
 
 You can access my example project that I used here:</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 12 Oct 2023 05:57:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/104532/lora-send-example-on-nrf52dk-nrf52840-development-board" /><item><title>RE: Lora send example on nRF52DK NRF52840 development board</title><link>https://devzone.nordicsemi.com/thread/449949?ContentTypeID=1</link><pubDate>Thu, 12 Oct 2023 05:57:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f479eef-c2d9-4acd-81cc-e40ee6bfc446</guid><dc:creator>zazas321</dc:creator><description>&lt;p&gt;I understand. Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Lora send example on nRF52DK NRF52840 development board</title><link>https://devzone.nordicsemi.com/thread/449834?ContentTypeID=1</link><pubDate>Wed, 11 Oct 2023 13:00:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f07889c-17cd-4bab-bc59-8d1aacd71e3a</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The LORA sample is part of Zephyr but not made by Nordic, so unfortunately we are not able to say much about it. I suggest you ask Semtech questions related to how to use the&amp;nbsp;LoRa radio.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Lora send example on nRF52DK NRF52840 development board</title><link>https://devzone.nordicsemi.com/thread/449690?ContentTypeID=1</link><pubDate>Wed, 11 Oct 2023 05:10:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0ff0d9a-3fbf-42de-a184-686157036129</guid><dc:creator>zazas321</dc:creator><description>&lt;p&gt;&lt;span style="font-size:200%;"&gt;Update:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I think the issue was with my dio-gpios&lt;/p&gt;
&lt;p&gt;I initially had the following in board overlay:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;spi1 {
	compatible = &amp;quot;nordic,nrf-spi&amp;quot;;
	status = &amp;quot;okay&amp;quot;;
	cs-gpios = &amp;lt;&amp;amp;gpio0 15 GPIO_ACTIVE_LOW&amp;gt;;
	pinctrl-0 = &amp;lt;&amp;amp;spi1_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;spi1_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
	lora0: sx1276@0 {
		compatible = &amp;quot;semtech,sx1276&amp;quot;;
		reg = &amp;lt;0&amp;gt;;
		reset-gpios = &amp;lt;&amp;amp;gpio0 13 GPIO_ACTIVE_LOW&amp;gt;;
		dio-gpios = &amp;lt;&amp;amp;gpio0 24 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)&amp;gt;,
					&amp;lt;&amp;amp;gpio0 22 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)&amp;gt;,
					&amp;lt;&amp;amp;gpio0 17 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)&amp;gt;;
		power-amplifier-output = &amp;quot;pa-boost&amp;quot;;
		spi-max-frequency = &amp;lt;125000&amp;gt;;
	};
};

/ {
     aliases {
             lora0 = &amp;amp;lora0;
     };
};
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;and now I have replaced it with:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;spi1 {
	compatible = &amp;quot;nordic,nrf-spi&amp;quot;;
	status = &amp;quot;okay&amp;quot;;
	cs-gpios = &amp;lt;&amp;amp;gpio1 6 (GPIO_ACTIVE_LOW)&amp;gt;;
	pinctrl-0 = &amp;lt;&amp;amp;spi1_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;spi1_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
	lora0: sx1276@0 {
		compatible = &amp;quot;semtech,sx1276&amp;quot;;
		reg = &amp;lt;0&amp;gt;;
		reset-gpios = &amp;lt;&amp;amp;gpio1 7 GPIO_ACTIVE_LOW&amp;gt;;
		dio-gpios = &amp;lt;&amp;amp;gpio1 5 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)&amp;gt;;
		power-amplifier-output = &amp;quot;pa-boost&amp;quot;;
		spi-max-frequency = &amp;lt;125000&amp;gt;;
	};
};

/ {
     aliases {
             lora0 = &amp;amp;lora0;
     };
};
&lt;/pre&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;As you can see form above, I have changed the dio-gpios and I have made a HW connection betweion DIO0 on LoRa modem and nRF52DK. Now I am able to send the data:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;[00:00:00.564,636] [1B][0m&amp;lt;inf&amp;gt; sx127x: SX127x version 0x12 found[1B][0m
*** Booting Zephyr OS build v3.3.99-ncs1 ***
[00:00:00.934,387] [1B][0m&amp;lt;inf&amp;gt; lora_send: Data sent![1B][0m
[00:00:02.229,797] [1B][0m&amp;lt;inf&amp;gt; lora_send: Data sent![1B][0m
[00:00:03.524,810] [1B][0m&amp;lt;inf&amp;gt; lora_send: Data sent![1B][0m
[00:00:04.819,824] [1B][0m&amp;lt;inf&amp;gt; lora_send: Data sent![1B][0m
[00:00:06.114,837] [1B][0m&amp;lt;inf&amp;gt; lora_send: Data sent![1B][0m
[00:00:07.409,851] [1B][0m&amp;lt;inf&amp;gt; lora_send: Data sent![1B][0m
[00:00:08.704,864] [1B][0m&amp;lt;inf&amp;gt; lora_send: Data sent![1B][0m
[00:00:09.999,877] [1B][0m&amp;lt;inf&amp;gt; lora_send: Data sent![1B][0m
[00:00:11.294,891] [1B][0m&amp;lt;inf&amp;gt; lora_send: Data sent![1B][0m
[00:00:12.589,904] [1B][0m&amp;lt;inf&amp;gt; lora_send: Data sent![1B][0m
[00:00:13.884,918] [1B][0m&amp;lt;inf&amp;gt; lora_send: Data sent![1B][0m
[00:00:15.179,931] [1B][0m&amp;lt;inf&amp;gt; lora_send: Data sent![1B][0m
[00:00:16.474,945] [1B][0m&amp;lt;inf&amp;gt; lora_send: Data sent![1B][0m
[00:00:17.769,958] [1B][0m&amp;lt;inf&amp;gt; lora_send: Data sent![1B][0m
[00:00:19.064,971] [1B][0m&amp;lt;inf&amp;gt; lora_send: Data sent![1B][0m
[00:00:20.359,985] [1B][0m&amp;lt;inf&amp;gt; lora_send: Data sent![1B][0m&lt;/pre&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;I think the my issue was that I did not connect the DIO0 pin initially, and the example is probably using this pin for DIO0 TX complete callback. Is there any documentation about the sample LoRa project that I can find with explanations on how it works?&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#000000;"&gt;I also want to know what DIO&amp;#39;s I need to use for this particular sample project. I have already figured out that I need to use DIO0 for TX complete callback, maybe there are other DIO&amp;#39;s that are configured by this project by default? Is it documented somewhere or the only way to figure this out is to dig deep into the source code?&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#ff6600;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>