<?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>Read Uart based sensor data on nrf5340 using VsCode?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/91309/read-uart-based-sensor-data-on-nrf5340-using-vscode</link><description>Hi, 
 I&amp;#39;am using the Ultrasonic Oxygen Senor with the nrf5340, the output is like this &amp;quot;photo&amp;quot; I want to calculate the concentration and the purity and with this values I had wrong results, so can you help to solve this problem? 
 I am using this code</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 15 Sep 2022 08:50:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/91309/read-uart-based-sensor-data-on-nrf5340-using-vscode" /><item><title>RE: Read Uart based sensor data on nrf5340 using VsCode?</title><link>https://devzone.nordicsemi.com/thread/386323?ContentTypeID=1</link><pubDate>Thu, 15 Sep 2022 08:50:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb495ecc-028d-4c2a-9cab-b2702cbb6c04</guid><dc:creator>Stephanie</dc:creator><description>&lt;p&gt;Hi ,&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#include &amp;lt;zephyr.h&amp;gt;
#include &amp;lt;device.h&amp;gt;
#include &amp;lt;devicetree.h&amp;gt;
#include &amp;lt;drivers/uart.h&amp;gt;
#include &amp;lt;sys/printk.h&amp;gt;
uint8_t uart_buf[12],i,j;
uint16_t o2c,o2f,o2t;
uint8_t temp;
int count;
	
 void uart_cb(const struct device *x, void *user_data)
 {
 	// uart_update(x);
     int data_length = 0;

 	if (uart_irq_rx_ready(x)) {
 		data_length = uart_fifo_read(x, uart_buf, sizeof(uart_buf));
 		// uart_buf[data_length] = 0;
 	}
     // uart_fifo_fill(x, uart_buf, data_length);
 }

void main(void)
{
    printk(&amp;quot;sensor program start!\n&amp;quot;); //output on UART0, which is default for logging
	  struct uart_config cfg ;
    cfg.baudrate = 9600 ;
    cfg.parity = UART_CFG_PARITY_NONE ;
    cfg.stop_bits = UART_CFG_STOP_BITS_1 ;
    cfg.data_bits = UART_CFG_DATA_BITS_8 ;
    cfg.flow_ctrl = UART_CFG_FLOW_CTRL_NONE ;

    const struct device *uart = device_get_binding(&amp;quot;UART_1&amp;quot;);	
  while(1){
      uart_configure(uart, &amp;amp;cfg);
    
      uart_rx_enable(uart,uart_buf,sizeof(uart_buf),500000);
       uart_callback_set(uart, uart_cb,NULL);
       printk(&amp;quot;main function!\n&amp;quot;);//output on UART0, which is default for logging
 	
     k_sleep(K_MSEC(1000));


        // for(int i=0;i&amp;lt;sizeof(uart_buf);i++){
        // printk(&amp;quot;data%i= %x \n&amp;quot;,i,uart_buf[i]);}

        printk(&amp;quot;*******************************\n&amp;quot;);
        k_sleep(K_MSEC(1000));

            o2c = uart_buf[3] * 256 + uart_buf[4];     //Oxygen concentration
            o2f = uart_buf[5] * 256 + uart_buf[6];     //Oxygen flow value
            o2t = uart_buf[7] * 256 + uart_buf[8];     //Oxygen temperature
            float o2c1;
            o2c1=(float)o2c/10;
            float o2f1;
            o2f1=(float)o2f/10;
            float o2t1;
            o2t1=(float)o2t/10;
            printf(&amp;quot;O2 : %.2f %\n&amp;quot;,o2c1);
            printf(&amp;quot;flow : %.2f L/min\n&amp;quot;,o2f1);

            printf(&amp;quot;temp: %.2f &amp;#176;C\n&amp;quot;,o2t1);

}	}
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;proj.conf&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_UART_ASYNC_API=y
CONFIG_UART_WIDE_DATA=y
CONFIG_UART_USE_RUNTIME_CONFIGURE=y
CONFIG_UART_LINE_CTRL=y
CONFIG_UART_1_ASYNC=y
CONFIG_NEWLIB_LIBC=y
CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y
CONFIG_NRFX_UARTE1=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read Uart based sensor data on nrf5340 using VsCode?</title><link>https://devzone.nordicsemi.com/thread/385018?ContentTypeID=1</link><pubDate>Wed, 07 Sep 2022 11:47:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78fc6876-89ff-42da-9523-bfdaa421d8dc</guid><dc:creator>Einarh</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Would you mind sharing what solved your issue, in case others have similar problems?&lt;/p&gt;
&lt;p&gt;And I believe Serial.read() can be exchanged with&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/hardware/peripherals/uart.html#c.uart_fifo_read"&gt;uart_fifo_read()&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read Uart based sensor data on nrf5340 using VsCode?</title><link>https://devzone.nordicsemi.com/thread/385008?ContentTypeID=1</link><pubDate>Wed, 07 Sep 2022 11:26:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37d172f8-a3a0-4500-b164-cdb609e483ed</guid><dc:creator>Stephanie</dc:creator><description>&lt;p&gt;&lt;span&gt;Hello, &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Now the code read correctly,&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1662547982474v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;just now&amp;nbsp;I need to translate this instraction to finish the code.&lt;pre class="ui-code" data-mode="text"&gt;inByte = Serial. read();&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;So could you help me to translate it with zephyr language&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read Uart based sensor data on nrf5340 using VsCode?</title><link>https://devzone.nordicsemi.com/thread/384773?ContentTypeID=1</link><pubDate>Tue, 06 Sep 2022 11:30:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88ffce6c-4288-406c-9a47-7accda3f3439</guid><dc:creator>Einarh</dc:creator><description>&lt;p&gt;Since you are getting the value 16 sometimes, which seems to be the expected beginning of a message according to the data sheet, I suspect that you are actually able to read the UART, and that the problem is related to how you process the data.&lt;/p&gt;
&lt;p&gt;For example, can you explain the purpose of these lines in your code:&lt;/p&gt;
&lt;p&gt;uart_buf[data_length] = 0;&lt;/p&gt;
&lt;p&gt;uart_fifo_fill(x, uart_buf, data_length);&lt;/p&gt;
&lt;p&gt;count=uart_fifo_read(uart,uart_buf,sizeof(uart_buf));&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t see anything similar in the Arduino code, and I&amp;#39;m not sure what these lines are supposed to do.&lt;/p&gt;
&lt;p&gt;Also, the Arduino code waits before reading, maybe you also have to do this for it to work:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;//When character arrive over the serial port ..
if (Serial.available()) {
// wait a bit for the entire message to arrive
delay(100);
// read all the available characters
while (Serial.available() &amp;gt; 0) {
  inByte = Serial.read();&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;-Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read Uart based sensor data on nrf5340 using VsCode?</title><link>https://devzone.nordicsemi.com/thread/384731?ContentTypeID=1</link><pubDate>Tue, 06 Sep 2022 08:41:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b320b92a-d5b3-4e6b-92a4-91d9c65f0e09</guid><dc:creator>Stephanie</dc:creator><description>&lt;p&gt;&lt;span class="corrected-phrase ng-star-inserted" data-end="5" data-originaltext="yes I " data-start="0" data-text="Yes, I"&gt;&lt;span class="corrected-phrase__displayed-text corrected-phrase__displayed-text_bubbled" data-group="AutoCorrected" data-suggestions="2" data-type="Punctuation"&gt;Yes, I&lt;/span&gt;&lt;/span&gt;&lt;span class="corrected-phrase ng-star-inserted" data-end="5" data-originaltext=" " data-start="5" data-text=""&gt;&lt;span class="corrected-phrase__displayed-text corrected-phrase__displayed-text_no-correction ng-star-inserted"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="corrected-phrase corrected-phrase_synonyms-mode ng-star-inserted" data-end="8" data-originaltext="use" data-start="6" data-text=""&gt;&lt;span class="corrected-phrase__displayed-text corrected-phrase__displayed-text_no-correction corrected-phrase__displayed-text_synonyms-mode ng-star-inserted"&gt;use&lt;/span&gt;&lt;/span&gt;&lt;span class="corrected-phrase ng-star-inserted" data-end="10" data-originaltext=" %" data-start="9" data-text=""&gt;&lt;span class="corrected-phrase__displayed-text corrected-phrase__displayed-text_no-correction ng-star-inserted"&gt; %&lt;/span&gt;&lt;/span&gt;&lt;span class="corrected-phrase corrected-phrase_synonyms-mode ng-star-inserted" data-end="11" data-originaltext="x" data-start="11" data-text=""&gt;&lt;span class="corrected-phrase__displayed-text corrected-phrase__displayed-text_no-correction corrected-phrase__displayed-text_synonyms-mode ng-star-inserted"&gt;x&lt;/span&gt;&lt;/span&gt;&lt;span class="corrected-phrase ng-star-inserted" data-end="12" data-originaltext=" " data-start="12" data-text=""&gt;&lt;span class="corrected-phrase__displayed-text corrected-phrase__displayed-text_no-correction ng-star-inserted"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="corrected-phrase corrected-phrase_synonyms-mode ng-star-inserted" data-end="19" data-originaltext="instead" data-start="13" data-text=""&gt;&lt;span class="corrected-phrase__displayed-text corrected-phrase__displayed-text_no-correction corrected-phrase__displayed-text_synonyms-mode ng-star-inserted"&gt;instead&lt;/span&gt;&lt;/span&gt;&lt;span class="corrected-phrase ng-star-inserted" data-end="20" data-originaltext=" " data-start="20" data-text=""&gt;&lt;span class="corrected-phrase__displayed-text corrected-phrase__displayed-text_no-correction ng-star-inserted"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="corrected-phrase corrected-phrase_synonyms-mode ng-star-inserted" data-end="22" data-originaltext="of" data-start="21" data-text=""&gt;&lt;span class="corrected-phrase__displayed-text corrected-phrase__displayed-text_no-correction corrected-phrase__displayed-text_synonyms-mode ng-star-inserted"&gt;of&lt;/span&gt;&lt;/span&gt;&lt;span class="corrected-phrase ng-star-inserted" data-end="24" data-originaltext=" %" data-start="23" data-text=""&gt;&lt;span class="corrected-phrase__displayed-text corrected-phrase__displayed-text_no-correction ng-star-inserted"&gt; %&lt;/span&gt;&lt;/span&gt;&lt;span class="corrected-phrase corrected-phrase_synonyms-mode ng-star-inserted" data-end="25" data-originaltext="i" data-start="25" data-text=""&gt;&lt;span class="corrected-phrase__displayed-text corrected-phrase__displayed-text_no-correction corrected-phrase__displayed-text_synonyms-mode ng-star-inserted"&gt;i&lt;/span&gt;&lt;/span&gt;&lt;span class="corrected-phrase ng-star-inserted" data-end="26" data-originaltext=" " data-start="26" data-text=""&gt;&lt;span class="corrected-phrase__displayed-text corrected-phrase__displayed-text_no-correction ng-star-inserted"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="corrected-phrase corrected-phrase_synonyms-mode ng-star-inserted" data-end="29" data-originaltext="but" data-start="27" data-text=""&gt;&lt;span class="corrected-phrase__displayed-text corrected-phrase__displayed-text_no-correction corrected-phrase__displayed-text_synonyms-mode ng-star-inserted"&gt;but&lt;/span&gt;&lt;/span&gt;&lt;span class="corrected-phrase ng-star-inserted" data-end="30" data-originaltext=" " data-start="30" data-text=""&gt;&lt;span class="corrected-phrase__displayed-text corrected-phrase__displayed-text_no-correction ng-star-inserted"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="corrected-phrase corrected-phrase_synonyms-mode ng-star-inserted" data-end="36" data-originaltext="always" data-start="31" data-text=""&gt;&lt;span class="corrected-phrase__displayed-text corrected-phrase__displayed-text_no-correction corrected-phrase__displayed-text_synonyms-mode ng-star-inserted"&gt;always&lt;/span&gt;&lt;/span&gt;&lt;span class="corrected-phrase ng-star-inserted" data-end="37" data-originaltext=" " data-start="37" data-text=""&gt;&lt;span class="corrected-phrase__displayed-text corrected-phrase__displayed-text_no-correction ng-star-inserted"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="corrected-phrase corrected-phrase_synonyms-mode ng-star-inserted" data-end="40" data-originaltext="the" data-start="38" data-text=""&gt;&lt;span class="corrected-phrase__displayed-text corrected-phrase__displayed-text_no-correction corrected-phrase__displayed-text_synonyms-mode ng-star-inserted"&gt;the&lt;/span&gt;&lt;/span&gt;&lt;span class="corrected-phrase ng-star-inserted" data-end="41" data-originaltext=" " data-start="41" data-text=""&gt;&lt;span class="corrected-phrase__displayed-text corrected-phrase__displayed-text_no-correction ng-star-inserted"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="corrected-phrase corrected-phrase_synonyms-mode ng-star-inserted" data-end="47" data-originaltext="result" data-start="42" data-text=""&gt;&lt;span class="corrected-phrase__displayed-text corrected-phrase__displayed-text_no-correction corrected-phrase__displayed-text_synonyms-mode ng-star-inserted"&gt;result&lt;/span&gt;&lt;/span&gt;&lt;span class="corrected-phrase ng-star-inserted" data-end="48" data-originaltext=" " data-start="48" data-text=""&gt;&lt;span class="corrected-phrase__displayed-text corrected-phrase__displayed-text_no-correction ng-star-inserted"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="corrected-phrase corrected-phrase_synonyms-mode ng-star-inserted" data-end="50" data-originaltext="is" data-start="49" data-text=""&gt;&lt;span class="corrected-phrase__displayed-text corrected-phrase__displayed-text_no-correction corrected-phrase__displayed-text_synonyms-mode ng-star-inserted"&gt;is&lt;/span&gt;&lt;/span&gt;&lt;span class="corrected-phrase ng-star-inserted" data-end="52" data-originaltext=" &amp;quot;" data-start="51" data-text=""&gt;&lt;span class="corrected-phrase__displayed-text corrected-phrase__displayed-text_no-correction ng-star-inserted"&gt; &amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;span class="corrected-phrase ng-star-inserted" data-end="53" data-originaltext="0" data-start="53" data-text=""&gt;&lt;span class="corrected-phrase__displayed-text corrected-phrase__displayed-text_no-correction ng-star-inserted"&gt;0&lt;/span&gt;&lt;/span&gt;&lt;span class="corrected-phrase ng-star-inserted" data-end="56" data-originaltext="&amp;quot;.
" data-start="54" data-text=""&gt;&lt;span class="corrected-phrase__displayed-text corrected-phrase__displayed-text_no-correction ng-star-inserted"&gt;&amp;quot;.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="corrected-phrase ng-star-inserted" data-end="56" data-originaltext="&amp;quot;.
" data-start="54" data-text=""&gt;&lt;span class="corrected-phrase__displayed-text corrected-phrase__displayed-text_no-correction ng-star-inserted"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="corrected-phrase ng-star-inserted" data-end="60" data-originaltext="the " data-start="57" data-text="The"&gt;&lt;span class="corrected-phrase__displayed-text corrected-phrase__displayed-text_bubbled" data-group="AutoCorrected" data-suggestions="1" data-type="Punctuation"&gt;The&lt;/span&gt;&lt;/span&gt;&lt;span class="corrected-phrase ng-star-inserted" data-end="60" data-originaltext=" " data-start="60" data-text=""&gt;&lt;span class="corrected-phrase__displayed-text corrected-phrase__displayed-text_no-correction ng-star-inserted"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="corrected-phrase corrected-phrase_synonyms-mode ng-star-inserted" data-end="64" data-originaltext="file" data-start="61" data-text=""&gt;&lt;span class="corrected-phrase__displayed-text corrected-phrase__displayed-text_no-correction corrected-phrase__displayed-text_synonyms-mode ng-star-inserted"&gt;file&lt;/span&gt;&lt;/span&gt;&lt;span class="corrected-phrase ng-star-inserted" data-end="65" data-originaltext=" " data-start="65" data-text=""&gt;&lt;span class="corrected-phrase__displayed-text corrected-phrase__displayed-text_no-correction ng-star-inserted"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="corrected-phrase ng-star-inserted" data-end="70" data-originaltext="proj." data-start="66" data-text="Proj"&gt;&lt;span class="corrected-phrase__displayed-text corrected-phrase__displayed-text_bubbled" data-group="AutoCorrected" data-suggestions="2" data-type="Spelling"&gt;Proj&lt;/span&gt;&lt;/span&gt;&lt;span class="corrected-phrase ng-star-inserted" data-end="71" data-originaltext=".c" data-start="70" data-text=". "&gt;&lt;span class="corrected-phrase__displayed-text corrected-phrase__displayed-text_bubbled" data-group="AutoCorrected" data-suggestions="1" data-type="Punctuation"&gt;.&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="corrected-phrase ng-star-inserted" data-end="75" data-originaltext="conf:" data-start="71" data-text="Conf"&gt;&lt;span class="corrected-phrase__displayed-text corrected-phrase__displayed-text_bubbled" data-group="AutoCorrected" data-suggestions="1" data-type="Punctuation"&gt;Conf&lt;/span&gt;&lt;/span&gt;&lt;span class="corrected-phrase ng-star-inserted" data-end="76" data-originaltext=":
" data-start="75" data-text=""&gt;&lt;span class="corrected-phrase__displayed-text corrected-phrase__displayed-text_no-correction ng-star-inserted"&gt;: &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_UART_INTERRUPT_DRIVEN=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="corrected-phrase corrected-phrase_synonyms-mode ng-star-inserted" data-end="109" data-originaltext="Is" data-start="108" data-text=""&gt;&lt;span class="corrected-phrase__displayed-text corrected-phrase__displayed-text_no-correction corrected-phrase__displayed-text_synonyms-mode ng-star-inserted"&gt;I&lt;/span&gt;&lt;/span&gt;&lt;span class="corrected-phrase corrected-phrase_synonyms-mode ng-star-inserted" data-end="109" data-originaltext="Is" data-start="108" data-text=""&gt;&lt;span class="corrected-phrase__displayed-text corrected-phrase__displayed-text_no-correction corrected-phrase__displayed-text_synonyms-mode ng-star-inserted"&gt;s&lt;/span&gt;&lt;/span&gt;&lt;span class="corrected-phrase ng-star-inserted" data-end="110" data-originaltext=" " data-start="110" data-text=""&gt;&lt;span class="corrected-phrase__displayed-text corrected-phrase__displayed-text_no-correction ng-star-inserted"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="corrected-phrase corrected-phrase_synonyms-mode ng-star-inserted" data-end="115" data-originaltext="there" data-start="111" data-text=""&gt;&lt;span class="corrected-phrase__displayed-text corrected-phrase__displayed-text_no-correction corrected-phrase__displayed-text_synonyms-mode ng-star-inserted"&gt;there&lt;/span&gt;&lt;/span&gt;&lt;span class="corrected-phrase ng-star-inserted" data-end="116" data-originaltext=" " data-start="116" data-text=""&gt;&lt;span class="corrected-phrase__displayed-text corrected-phrase__displayed-text_no-correction ng-star-inserted"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="corrected-phrase corrected-phrase_synonyms-mode ng-star-inserted" data-end="125" data-originaltext="something" data-start="117" data-text=""&gt;&lt;span class="corrected-phrase__displayed-text corrected-phrase__displayed-text_no-correction corrected-phrase__displayed-text_synonyms-mode ng-star-inserted"&gt;something&lt;/span&gt;&lt;/span&gt;&lt;span class="corrected-phrase ng-star-inserted" data-end="126" data-originaltext=" " data-start="126" data-text=""&gt;&lt;span class="corrected-phrase__displayed-text corrected-phrase__displayed-text_no-correction ng-star-inserted"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="corrected-phrase corrected-phrase_synonyms-mode ng-star-inserted" data-end="133" data-originaltext="missing" data-start="127" data-text=""&gt;&lt;span class="corrected-phrase__displayed-text corrected-phrase__displayed-text_no-correction corrected-phrase__displayed-text_synonyms-mode ng-star-inserted"&gt;missing&lt;/span&gt;&lt;/span&gt;&lt;span class="corrected-phrase ng-star-inserted" data-end="134" data-originaltext="?" data-start="134" data-text=""&gt;&lt;span class="corrected-phrase__displayed-text corrected-phrase__displayed-text_no-correction ng-star-inserted"&gt;?&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read Uart based sensor data on nrf5340 using VsCode?</title><link>https://devzone.nordicsemi.com/thread/384719?ContentTypeID=1</link><pubDate>Tue, 06 Sep 2022 08:19:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5937590-b183-4279-95ac-a1a1e554e971</guid><dc:creator>Einarh</dc:creator><description>&lt;p&gt;As I asked in my last post, have you tried using %x instead of %i in your print? It could be that your program works but just doesn&amp;#39;t display the data correctly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read Uart based sensor data on nrf5340 using VsCode?</title><link>https://devzone.nordicsemi.com/thread/384633?ContentTypeID=1</link><pubDate>Mon, 05 Sep 2022 14:55:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:12213a8b-9324-4179-a4dd-a698042e4bf6</guid><dc:creator>Stephanie</dc:creator><description>&lt;p&gt;&lt;span&gt;Yes, I did the same but the program display this value&amp;quot;0&amp;quot;, I think that i have a bug or problem in the code that i sent to you in the first discussion that i can&amp;#39;t find it. So I need a help from you because i&amp;#39;m a beginner in the programing of nrf with zephyr. Thank you&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;#include &amp;lt;zephyr.h&amp;gt;
#include &amp;lt;device.h&amp;gt;
#include &amp;lt;devicetree.h&amp;gt;
#include &amp;lt;drivers/uart.h&amp;gt;
#include &amp;lt;sys/printk.h&amp;gt;
uint8_t uart_buf[1024];
int count;
void uart_cb(const struct device *x, void *user_data)
{
	uart_update(x);
	int data_length = 0;

	if (uart_rx_ready(x)) {
		data_length = uart_fifo_read(x, uart_buf, sizeof(uart_buf));
		uart_buf[data_length] = 0;
	}
    uart_fifo_fill(x, uart_buf, data_length);
}

void main(void)
{

    printk(&amp;quot;sensor program start!\n&amp;quot;); //output on UART0, which is default for logging
		


const struct device *uart = device_get_binding(&amp;quot;UART_1&amp;quot;);
	uart_callback_set(uart, uart_cb,NULL);
	uart_rx_enable(uart,uart_buf,sizeof(uart_buf),500000);
    struct uart_config cfg ;
    cfg.baudrate = 9600 ;
    cfg.parity = UART_CFG_PARITY_NONE ;
    cfg.stop_bits = UART_CFG_STOP_BITS_1 ;
    cfg.data_bits = UART_CFG_DATA_BITS_8 ;
    cfg.flow_ctrl = UART_CFG_FLOW_CTRL_NONE ;
 uart_configure(uart, &amp;amp;cfg);

	printk(&amp;quot;main function!\n&amp;quot;); //output on UART0, which is default for logging
	while (1) {
        // uart_fifo_fill(uart, &amp;quot;UART loopback start!\r\n&amp;quot;, 22);
        count=uart_fifo_read(uart,uart_buf,sizeof(uart_buf));
        printf(&amp;quot;read  %i\n&amp;quot;,count);
        printk(&amp;quot;receiveing data! %x %i %i\n&amp;quot;,uart_buf[0],uart_buf[1],uart_buf[2]); //output on UART0, which is default for logging
	
        k_cpu_idle();
        k_sleep(K_MSEC(1000));
	}
}&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read Uart based sensor data on nrf5340 using VsCode?</title><link>https://devzone.nordicsemi.com/thread/384589?ContentTypeID=1</link><pubDate>Mon, 05 Sep 2022 12:55:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48132070-16ab-4ece-866c-487d768ea0bb</guid><dc:creator>Einarh</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I noticed now that the data sheet says &amp;quot;The sensor will send data actively by default and the sending interval is 0.5 seconds&amp;quot;, so you should be able to read data the same way the Arduino code does, without sending commands to it.&lt;/p&gt;
&lt;p&gt;So try to look at the Arduino code you have here and do the same in your program.&lt;/p&gt;
&lt;p&gt;Have you done anything more to look at the values you&amp;#39;re reading other than the prints in your original post? Any reason you print those bytes as %x %i %i and not %x %x %x ?&lt;/p&gt;
&lt;p&gt;-Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read Uart based sensor data on nrf5340 using VsCode?</title><link>https://devzone.nordicsemi.com/thread/384547?ContentTypeID=1</link><pubDate>Mon, 05 Sep 2022 11:13:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5edd2314-71ed-4fd5-a65b-9fdcfa856e95</guid><dc:creator>Stephanie</dc:creator><description>&lt;p&gt;&lt;span class="corrected-phrase corrected-phrase_synonyms-mode ng-star-inserted" data-end="3" data-originaltext="Here" data-start="0" data-text=""&gt;&lt;span class="corrected-phrase__displayed-text corrected-phrase__displayed-text_no-correction corrected-phrase__displayed-text_synonyms-mode ng-star-inserted"&gt;Here&lt;/span&gt;&lt;/span&gt;&lt;span class="corrected-phrase ng-star-inserted" data-end="4" data-originaltext=" " data-start="4" data-text=""&gt;&lt;span class="corrected-phrase__displayed-text corrected-phrase__displayed-text_no-correction ng-star-inserted"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="corrected-phrase corrected-phrase_synonyms-mode ng-star-inserted" data-end="6" data-originaltext="is" data-start="5" data-text=""&gt;&lt;span class="corrected-phrase__displayed-text corrected-phrase__displayed-text_no-correction corrected-phrase__displayed-text_synonyms-mode ng-star-inserted"&gt;is&lt;/span&gt;&lt;/span&gt;&lt;span class="corrected-phrase ng-star-inserted" data-end="7" data-originaltext=" " data-start="7" data-text=""&gt;&lt;span class="corrected-phrase__displayed-text corrected-phrase__displayed-text_no-correction ng-star-inserted"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="corrected-phrase corrected-phrase_synonyms-mode ng-star-inserted" data-end="10" data-originaltext="the" data-start="8" data-text=""&gt;&lt;span class="corrected-phrase__displayed-text corrected-phrase__displayed-text_no-correction corrected-phrase__displayed-text_synonyms-mode ng-star-inserted"&gt;the&lt;/span&gt;&lt;/span&gt;&lt;span class="corrected-phrase ng-star-inserted" data-end="11" data-originaltext=" " data-start="11" data-text=""&gt;&lt;span class="corrected-phrase__displayed-text corrected-phrase__displayed-text_no-correction ng-star-inserted"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="corrected-phrase corrected-phrase_synonyms-mode ng-star-inserted" data-end="18" data-originaltext="Arduino" data-start="12" data-text=""&gt;&lt;span class="corrected-phrase__displayed-text corrected-phrase__displayed-text_no-correction corrected-phrase__displayed-text_synonyms-mode ng-star-inserted"&gt;Arduino&lt;/span&gt;&lt;/span&gt;&lt;span class="corrected-phrase ng-star-inserted" data-end="19" data-originaltext=" " data-start="19" data-text=""&gt;&lt;span class="corrected-phrase__displayed-text corrected-phrase__displayed-text_no-correction ng-star-inserted"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="corrected-phrase corrected-phrase_synonyms-mode ng-star-inserted" data-end="23" data-originaltext="code" data-start="20" data-text=""&gt;&lt;span class="corrected-phrase__displayed-text corrected-phrase__displayed-text_no-correction corrected-phrase__displayed-text_synonyms-mode ng-star-inserted"&gt;code&lt;/span&gt;&lt;/span&gt;&lt;span class="corrected-phrase ng-star-inserted" data-end="27" data-originaltext=".
  " data-start="24" data-text=""&gt;&lt;span class="corrected-phrase__displayed-text corrected-phrase__displayed-text_no-correction ng-star-inserted"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="corrected-phrase ng-star-inserted" data-end="27" data-originaltext=".
  " data-start="24" data-text=""&gt;&lt;span class="corrected-phrase__displayed-text corrected-phrase__displayed-text_no-correction ng-star-inserted"&gt;&lt;pre class="ui-code" data-mode="text"&gt;#include &amp;lt;Wire.h&amp;gt;

void setup() {
  Serial.begin(9600);
}

void loop() {
  typedef unsigned char u8;
  typedef unsigned int u16;
  int inByte;
  u8 temp;
  u8 i, j, o2[12];
  u16 o2c, o2f, o2t; //Define oxygen concentration, flow rate and temperature

  //When character arrive over the serial port ..
  if (Serial.available()) {
  // wait a bit for the entire message to arrive
  delay(100);
    // read all the available characters
    while (Serial.available() &amp;gt; 0) {
      inByte = Serial.read();
      //---Receiving part---
      if ((o2[0] == 0x16) &amp;amp;&amp;amp; (o2[1] == 0x09) &amp;amp;&amp;amp; (o2[2] == 0x01)) //Determine if the first two bytes are received correctly, I is the global variable
      {
        o2[i] = inByte;       
        i++;
      }
      else           //If one of the first three bytes received is incorrect, the first two bytes will be judged
      {
        if ((o2[0] == 0x16) &amp;amp;&amp;amp; (o2[1] == 0x09))
        {
          if ( inByte == 0x01)   
          {
            o2[2] =  inByte;   
            i++;
          }
          else                                
          {
            i = 0;                
            for (j = 0; j &amp;lt; 12; j++)          
            {
              o2[j] = 0;
            }
          }
        }
        else     
        {
          if (o2[0] == 0x16)
          {
            if ( inByte == 0x09)
            {
              o2[1] =  inByte; 
              i++;
            }
            else        
            {
              i = 0;                
              for (j = 0; j &amp;lt; 12; j++)          
              {
                o2[j] = 0;
              }
            }
          }
          else     
          {
            if ( inByte == 0x16) 
            {
              o2[0] =  inByte; 
              i++;
            }
            else         
            {
              i = 0;                 
              for (j = 0; j &amp;lt; 12; j++)         
              {
                o2[j] = 0;
              }
            }
          }
        }
      }
     //---Receiving part---



      if (i == 12)   //Data received complete, start calibration
      {
        temp = 0;
        for (j = 0; j &amp;lt; 12; j++)
        {
          temp += o2[j];
        }
        if (temp == 0)     //Check passed, calculate oxygen concentration, flow, temperature value
        {
          o2c = o2[3] * 256 + o2[4];     //Oxygen concentration
          o2f = o2[5] * 256 + o2[6];     //Oxygen flow value
          o2t = o2[7] * 256 + o2[8];     //Oxygen temperature
        }

        

        i = 0;                             
        for (j = 0; j &amp;lt; 12; j++)           //Initialize array
        {
          o2[j] = 0;
        }
      }
    }
  }

//--O2
Serial.print(&amp;quot;O2 : &amp;quot;);
Serial.print(o2c/100);
Serial.print(o2c/10%10);
Serial.print(&amp;quot;.&amp;quot;);
Serial.print(o2c%10);
Serial.println(&amp;quot;%&amp;quot;);

//--Flow
Serial.print(&amp;quot;Flow : &amp;quot;);
Serial.print(o2f/10%10);
Serial.print(&amp;quot;.&amp;quot;);
Serial.print(o2f%10);
Serial.println(&amp;quot;L/min&amp;quot;);

//--Temperature
Serial.print(&amp;quot;Temp : &amp;quot;);
Serial.print(o2t/100);
Serial.print(o2t/10%10);
Serial.print(&amp;quot;.&amp;quot;);
Serial.print(o2t%10);
Serial.println(&amp;quot;Celcius&amp;quot;);
delay(2000);
}&lt;/pre&gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read Uart based sensor data on nrf5340 using VsCode?</title><link>https://devzone.nordicsemi.com/thread/384504?ContentTypeID=1</link><pubDate>Mon, 05 Sep 2022 08:19:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c60287b-182e-452e-86b6-1cbb2b40cbc9</guid><dc:creator>Einarh</dc:creator><description>&lt;p&gt;I haven&amp;#39;t seen the Arduino code so I can&amp;#39;t say anything about that unless you share the code. Is the Arduino code also interrupt based?&lt;/p&gt;
&lt;p&gt;Looking at your code, it looks like you&amp;#39;re disabling uart irq tx in your callback without enabling it again, any reason for this? Also you are using code in your main function that is supposed to be used in callbacks. I would recommend trying to use a UART API that is not interrupt based to test that you are able to communicate with the sensor.&lt;/p&gt;
&lt;p&gt;-Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read Uart based sensor data on nrf5340 using VsCode?</title><link>https://devzone.nordicsemi.com/thread/384304?ContentTypeID=1</link><pubDate>Thu, 01 Sep 2022 11:05:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:489b73ce-4e0c-4ee1-a5b3-967b7deec1d1</guid><dc:creator>Stephanie</dc:creator><description>&lt;p&gt;Thank you I understand and I write an example code, but no result.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#include &amp;lt;zephyr.h&amp;gt;
#include &amp;lt;device.h&amp;gt;
#include &amp;lt;devicetree.h&amp;gt;
#include &amp;lt;drivers/uart.h&amp;gt;
#include &amp;lt;sys/printk.h&amp;gt;
uint8_t uart_buf[1024];
uint8_t buf[] = {17, 1, 1, 237};//11 01 01 ED
int count;
void uart_cb(const struct device *x, void *user_data)
{
	uart_irq_update(x);
	int data_length = 0;
	if (uart_irq_tx_ready(x)) {
	(void)uart_fifo_fill(x, buf, sizeof(buf));
	uart_irq_tx_disable(x);
	}
	if (uart_irq_rx_ready(x)) {
		data_length = uart_fifo_read(x, uart_buf, sizeof(uart_buf));
		uart_buf[data_length] = 0;
	}
    uart_fifo_fill(x, uart_buf, data_length);
}

void main(void)
{

    printk(&amp;quot;sensor program start!\n&amp;quot;); //output on UART0, which is default for logging
		


const struct device *uart = device_get_binding(&amp;quot;UART_1&amp;quot;);

    struct uart_config cfg ;
    cfg.baudrate = 9600 ;
    cfg.parity = UART_CFG_PARITY_NONE ;
    cfg.stop_bits = UART_CFG_STOP_BITS_1 ;
    cfg.data_bits = UART_CFG_DATA_BITS_8 ;
    cfg.flow_ctrl = UART_CFG_FLOW_CTRL_NONE ;
 	uart_configure(uart, &amp;amp;cfg);

	uart_irq_callback_set(uart, uart_cb);
	uart_irq_rx_enable(uart);
	printk(&amp;quot;main function!\n&amp;quot;); //output on UART0, which is default for logging
	while (1) {
        uart_fifo_fill(uart,buf ,sizeof(buf) );//11 01 01 ED

        count=uart_fifo_read(uart,uart_buf,sizeof(uart_buf));
        printf(&amp;quot;read  %i\n&amp;quot;,count);

        k_cpu_idle();
        k_sleep(K_SECONDS(1));
	}
}&lt;/pre&gt;&lt;br /&gt;I have a question the Arduino code of this sensor works correctly without sending a specific command, why in the code zephyr is obliged to send a specific command to obtain the data in return?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read Uart based sensor data on nrf5340 using VsCode?</title><link>https://devzone.nordicsemi.com/thread/384056?ContentTypeID=1</link><pubDate>Wed, 31 Aug 2022 07:52:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4059cfda-a767-4221-8706-f18f77135c64</guid><dc:creator>Einarh</dc:creator><description>&lt;p&gt;Looks like you&amp;#39;re using Zephyr&amp;#39;s uart_irq API in your code, which uses uart_irq_tx_ready() and uart_fifo_fill() to send data.&lt;/p&gt;
&lt;p&gt;Read about it here:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/hardware/peripherals/uart.html#uart-interrupt-api"&gt;http://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/hardware/peripherals/uart.html#uart-interrupt-api&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The communication protocol is explained in the data sheet you linked in your original question. Please read it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read Uart based sensor data on nrf5340 using VsCode?</title><link>https://devzone.nordicsemi.com/thread/383990?ContentTypeID=1</link><pubDate>Tue, 30 Aug 2022 18:25:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:508b7c02-c106-4c86-bd8c-b1e2eafa4cb7</guid><dc:creator>Stephanie</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;No, I am not sending anything to the sensor, please help me how to send a specific command and what is this command?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read Uart based sensor data on nrf5340 using VsCode?</title><link>https://devzone.nordicsemi.com/thread/383622?ContentTypeID=1</link><pubDate>Mon, 29 Aug 2022 09:00:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5664bcfe-a312-49b9-9293-406fbf8730ff</guid><dc:creator>Einarh</dc:creator><description>&lt;p&gt;If what you are currently trying to do is simply to read data from your sensor with some basic UART sample, then I would recommend you read through the communication protocol part of the specification. It tells you in detail how you are supposed to communicate with the sensor.&lt;/p&gt;
&lt;p&gt;It looks like you have to send a specific command to the sensor to get data in return, are you doing this?&lt;/p&gt;
&lt;p&gt;-Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read Uart based sensor data on nrf5340 using VsCode?</title><link>https://devzone.nordicsemi.com/thread/383547?ContentTypeID=1</link><pubDate>Sat, 27 Aug 2022 09:13:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63bbf4dd-7e63-45ca-9e05-13a10bb86f65</guid><dc:creator>Stephanie</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I mean I used this program for nrf5340 and I added some changes in its code.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure if the program respects the communication protocol because I can&amp;#39;t find how to add the &amp;quot;gasboard 7500H&amp;quot; or &amp;quot;OCS-3F&amp;quot; sensor in the device tree or the overlay file so I find a solution that to read the sensor data from the RX&lt;/p&gt;
&lt;p&gt;The outcome shows the output reading of the RX.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/04350.Capture.PNG" /&gt;&lt;br /&gt;The sensor protocol is UART So could you help me to read the correct values from this sensor.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read Uart based sensor data on nrf5340 using VsCode?</title><link>https://devzone.nordicsemi.com/thread/383445?ContentTypeID=1</link><pubDate>Fri, 26 Aug 2022 11:09:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1699fc9a-e826-41f0-8f44-797091f272ff</guid><dc:creator>Einarh</dc:creator><description>[quote user="Stephanie"]The code found in devzone for nrf9160&lt;br /&gt;[/quote]
&lt;p&gt;Can you please be more specific?&lt;/p&gt;
&lt;p&gt;Have you made sure your program follows the communication protocol in the technical specification you linked?&lt;/p&gt;
&lt;p&gt;-Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read Uart based sensor data on nrf5340 using VsCode?</title><link>https://devzone.nordicsemi.com/thread/383417?ContentTypeID=1</link><pubDate>Fri, 26 Aug 2022 08:56:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9f2f739-cd01-4345-b9e0-45eafe625b65</guid><dc:creator>Stephanie</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;I&amp;rsquo;m sorry it&amp;rsquo;s a mistake&lt;/p&gt;
&lt;p&gt;The code found in devzone for nrf9160&lt;br /&gt;The first step, I want to read the data through the UART connection.&lt;br /&gt;The second step, I have to read the flow rate and purity of oxygen.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;There is many illogical values, &amp;quot;many zeros&amp;quot; that gives wrong results&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read Uart based sensor data on nrf5340 using VsCode?</title><link>https://devzone.nordicsemi.com/thread/383384?ContentTypeID=1</link><pubDate>Fri, 26 Aug 2022 06:20:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c1fae7b8-6217-4cd2-9926-6abfd49e4f10</guid><dc:creator>Einarh</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Please use English on this forum.&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read Uart based sensor data on nrf5340 using VsCode?</title><link>https://devzone.nordicsemi.com/thread/383338?ContentTypeID=1</link><pubDate>Thu, 25 Aug 2022 15:15:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0180086-72af-4410-b54a-8fdb0e9b6669</guid><dc:creator>Stephanie</dc:creator><description>&lt;p&gt;Hello!&lt;br /&gt;Thank you for your response&lt;br /&gt;The code found in devzone for nrf9160&lt;br /&gt;The first step, I want to read the data through the UART connection.&lt;br /&gt;The second step, I have to read the flow rate and purity of oxygen.&lt;/p&gt;
&lt;p&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;There is many illogical values, &amp;quot;many zeros&amp;quot; that gives wrong results &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;Meilleures salutations,&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read Uart based sensor data on nrf5340 using VsCode?</title><link>https://devzone.nordicsemi.com/thread/383276?ContentTypeID=1</link><pubDate>Thu, 25 Aug 2022 12:07:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b608b4bc-0c18-4f23-b586-b774350ad1d9</guid><dc:creator>Einarh</dc:creator><description>&lt;p&gt;Hello!&lt;/p&gt;
&lt;p&gt;Did you write the code you&amp;#39;re using yourself?&lt;/p&gt;
&lt;p&gt;Can you please explain what you expect your code to do and how the results differ from your expectations?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>