<?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>nRF24L01 leaves out certain characters during transmission</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/44828/nrf24l01-leaves-out-certain-characters-during-transmission</link><description>Hi, I am using nRF24L01 as a part of a larger project that involves communication between two such transceivers sending and receiving data. I am trying to get a similar but simpler code working with the module. So far, I have established communication</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 25 Mar 2019 11:47:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/44828/nrf24l01-leaves-out-certain-characters-during-transmission" /><item><title>RE: nRF24L01 leaves out certain characters during transmission</title><link>https://devzone.nordicsemi.com/thread/178082?ContentTypeID=1</link><pubDate>Mon, 25 Mar 2019 11:47:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f1944ae-f268-4e23-9ae8-120cdef35547</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The original &amp;quot;RF24&amp;quot; project has not been updated since 2013. The optimized fork that I linked to is actively being developed on, so it&amp;#39;s recommended that you use that one, and see if the issue is still present.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user="Kishore"]Also, I have another question. I test my nRF modules in a place that is swarmed with a lot of wifi and many people use wireless mice for their laptops which also operate in the 2.4Ghz frequency.[/quote]
&lt;p&gt;That should not matter.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF24L01 leaves out certain characters during transmission</title><link>https://devzone.nordicsemi.com/thread/178011?ContentTypeID=1</link><pubDate>Mon, 25 Mar 2019 08:33:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08eb2368-fed4-4816-bcf3-394aa3df9fd3</guid><dc:creator>Kishore</dc:creator><description>&lt;p&gt;&lt;a title="Library" href="https://github.com/maniacbug/RF24/"&gt;https://github.com/maniacbug/RF24/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;That is the library that I am using. And what do you mean by optimized fork of the original project. Sorry, if this sounds so basic, I am a beginner actually.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Also, I have another question. I test my nRF modules in a place that is swarmed with a lot of wifi and many people use wireless mice for their laptops which also operate in the 2.4Ghz frequency. Is there any chance that this maybe contributes to the problem that I&amp;#39;ve been encountering.?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF24L01 leaves out certain characters during transmission</title><link>https://devzone.nordicsemi.com/thread/177764?ContentTypeID=1</link><pubDate>Fri, 22 Mar 2019 09:20:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ddb23bd-5a5e-462d-a249-4f88e448fef3</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is this the library that you are using? It seems that this one is the optimized fork of the original project:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nRF24/RF24"&gt;https://github.com/nRF24/RF24&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;d recommend that you check the &amp;quot;issues&amp;quot; part of the github project, in case any of the known issues matches yours.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF24L01 leaves out certain characters during transmission</title><link>https://devzone.nordicsemi.com/thread/177052?ContentTypeID=1</link><pubDate>Tue, 19 Mar 2019 13:40:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf1eed8e-0e55-4133-b5ea-a5a0549ec54c</guid><dc:creator>Kishore</dc:creator><description>&lt;p&gt;No. That didn&amp;#39;t improve anything. I changed this&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;void read() {
  p = &amp;amp;text[0];
  for (i = 0; Serial.available(); p++, i++) {
    *p = Serial.read();
  }
  text[i + 1] = &amp;#39;\0&amp;#39;;
  flag = 1;
}&lt;/pre&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;to this.&amp;nbsp;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;void read() {
  p = &amp;amp;text[0];
  if(Serial.available()){
  for (i = 0; Serial.available(); p++, i++) {
    *p = Serial.read();
  }
  text[i + 1] = &amp;#39;\0&amp;#39;;
  flag = 1;
}

}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Still nothing has improved.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF24L01 leaves out certain characters during transmission</title><link>https://devzone.nordicsemi.com/thread/176551?ContentTypeID=1</link><pubDate>Sat, 16 Mar 2019 12:29:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28bc0782-4f7b-402d-9743-30d3864f3e1e</guid><dc:creator>Kishore</dc:creator><description>&lt;p&gt;I will surely try this out and update you if it worked better tomorrow.! Thanks for the help&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF24L01 leaves out certain characters during transmission</title><link>https://devzone.nordicsemi.com/thread/176438?ContentTypeID=1</link><pubDate>Fri, 15 Mar 2019 13:57:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8098c2f2-8b5e-4e04-8b0a-5c47cf39faa4</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You will set the flag even if no chars are available here:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;void read() {
  p = &amp;amp;text[0];
  for (i = 0; Serial.available(); p++, i++) {
    *p = Serial.read();
  }
  text[i + 1] = &amp;#39;\0&amp;#39;;
  flag = 1;
}
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I would recommend that you re-write this function to something like&lt;/p&gt;
&lt;p&gt;if (Serial.available()) {&lt;/p&gt;
&lt;p&gt;&amp;nbsp; /* insert for loop for Read out data and set last byte \0 */&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; flag = 1;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you try this and see if it works better?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>