<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Wireless MCUのトピックJN5189 failed to send data</title>
    <link>https://community.nxp.com/t5/Wireless-MCU/JN5189-failed-to-send-data/m-p/1212264#M10573</link>
    <description>&lt;P class="_tgt transPara grammarSection"&gt;&lt;SPAN class="transSent"&gt;The SDK version I use is SDK2.6.2_JN5189DK6, and the program I use is Zigbee_ed_ex_on. The logic of the program is as follows: when the serial port receives a byte of data, it prints the data "7", then &lt;FONT face="Arial,&amp;quot;Microsoft YaHei&amp;quot;,&amp;quot;微软雅黑&amp;quot;,&amp;quot;宋体&amp;quot;,&amp;quot;Malgun Gothic&amp;quot;,Meiryo,sans-serif" color="#001000"&gt;unicast&lt;/FONT&gt; a packet of wireless data to the coordinator , and prints the status of data transmission.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="_tgt transPara grammarSection"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="_tgt transPara grammarSection"&gt;&lt;SPAN class="transSent"&gt;The current phenomenon is that when the board is powered on and the networking is successful (confirmed by capturing the packet), a data is sent to the serial port, and the serial port will successfully print "7".&lt;/SPAN&gt;&lt;SPAN class="transSent"&gt;The abnormal situation is that the board can sometimes send the data out (visible by capturing the packet) and print the state of sending the data (0, indicating that the data is sent successfully), and sometimes can not send the data out, and the serial port has no state of printing the data to send, at this time the board can not operate normally, can only be restarted.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="_tgt transPara grammarSection"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="_tgt transPara grammarSection"&gt;&lt;SPAN class="transSent highlight"&gt;Here are the serial port interrupt handling functions and the wireless data transmission functions in the code:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="_tgt transPara grammarSection"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="_tgt transPara grammarSection"&gt;&lt;SPAN class="transSent highlight"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="send.png" style="width: 854px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/134851iE5BC0063FE06654F/image-size/large?v=v2&amp;amp;px=999" role="button" title="send.png" alt="send.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="_tgt transPara grammarSection"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="_tgt transPara grammarSection"&gt;&lt;SPAN class="transSent highlight"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="uart.png" style="width: 828px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/134852i76B10F6271E51F2F/image-size/large?v=v2&amp;amp;px=999" role="button" title="uart.png" alt="uart.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="_tgt transPara grammarSection"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="_tgt transPara grammarSection"&gt;&lt;SPAN class="transSent highlight"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/134853iD68BDCD36F86196D/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="_tgt transPara grammarSection"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="_tgt transPara grammarSection"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="_tgt transPara grammarSection"&gt;&lt;SPAN class="transSent"&gt;What causes the program to jam after calling ZPS_eAplAfUnicastAckDataReq()?&lt;/SPAN&gt;&lt;SPAN class="transSent"&gt;What's the solution?&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="_tgt transPara grammarSection"&gt;&lt;SPAN class="transSent"&gt;Thank you for your time!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Jan 2021 09:02:46 GMT</pubDate>
    <dc:creator>Viki</dc:creator>
    <dc:date>2021-01-15T09:02:46Z</dc:date>
    <item>
      <title>JN5189 failed to send data</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/JN5189-failed-to-send-data/m-p/1212264#M10573</link>
      <description>&lt;P class="_tgt transPara grammarSection"&gt;&lt;SPAN class="transSent"&gt;The SDK version I use is SDK2.6.2_JN5189DK6, and the program I use is Zigbee_ed_ex_on. The logic of the program is as follows: when the serial port receives a byte of data, it prints the data "7", then &lt;FONT face="Arial,&amp;quot;Microsoft YaHei&amp;quot;,&amp;quot;微软雅黑&amp;quot;,&amp;quot;宋体&amp;quot;,&amp;quot;Malgun Gothic&amp;quot;,Meiryo,sans-serif" color="#001000"&gt;unicast&lt;/FONT&gt; a packet of wireless data to the coordinator , and prints the status of data transmission.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="_tgt transPara grammarSection"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="_tgt transPara grammarSection"&gt;&lt;SPAN class="transSent"&gt;The current phenomenon is that when the board is powered on and the networking is successful (confirmed by capturing the packet), a data is sent to the serial port, and the serial port will successfully print "7".&lt;/SPAN&gt;&lt;SPAN class="transSent"&gt;The abnormal situation is that the board can sometimes send the data out (visible by capturing the packet) and print the state of sending the data (0, indicating that the data is sent successfully), and sometimes can not send the data out, and the serial port has no state of printing the data to send, at this time the board can not operate normally, can only be restarted.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="_tgt transPara grammarSection"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="_tgt transPara grammarSection"&gt;&lt;SPAN class="transSent highlight"&gt;Here are the serial port interrupt handling functions and the wireless data transmission functions in the code:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="_tgt transPara grammarSection"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="_tgt transPara grammarSection"&gt;&lt;SPAN class="transSent highlight"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="send.png" style="width: 854px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/134851iE5BC0063FE06654F/image-size/large?v=v2&amp;amp;px=999" role="button" title="send.png" alt="send.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="_tgt transPara grammarSection"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="_tgt transPara grammarSection"&gt;&lt;SPAN class="transSent highlight"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="uart.png" style="width: 828px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/134852i76B10F6271E51F2F/image-size/large?v=v2&amp;amp;px=999" role="button" title="uart.png" alt="uart.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="_tgt transPara grammarSection"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="_tgt transPara grammarSection"&gt;&lt;SPAN class="transSent highlight"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/134853iD68BDCD36F86196D/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="_tgt transPara grammarSection"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="_tgt transPara grammarSection"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="_tgt transPara grammarSection"&gt;&lt;SPAN class="transSent"&gt;What causes the program to jam after calling ZPS_eAplAfUnicastAckDataReq()?&lt;/SPAN&gt;&lt;SPAN class="transSent"&gt;What's the solution?&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="_tgt transPara grammarSection"&gt;&lt;SPAN class="transSent"&gt;Thank you for your time!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2021 09:02:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/JN5189-failed-to-send-data/m-p/1212264#M10573</guid>
      <dc:creator>Viki</dc:creator>
      <dc:date>2021-01-15T09:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: JN5189 failed to send data</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/JN5189-failed-to-send-data/m-p/1212490#M10576</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/181842"&gt;@Viki&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Could you please try to implement the send data routine in a different part of the code?&lt;/P&gt;
&lt;P&gt;You are sending data in the USAR handler, that could be the reason why the data is sent and sometimes not..&lt;/P&gt;
&lt;P&gt;Try to add the same function in a non-blocking routine, remember that the Zigbee stack works with FreeRTOS.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Mario&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2021 16:57:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/JN5189-failed-to-send-data/m-p/1212490#M10576</guid>
      <dc:creator>mario_castaneda</dc:creator>
      <dc:date>2021-01-15T16:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: JN5189 failed to send data</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/JN5189-failed-to-send-data/m-p/1212729#M10578</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/86938"&gt;@mario_castaneda&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;&lt;SPAN class="transSent"&gt;&lt;FONT face="Arial,&amp;quot;Microsoft YaHei&amp;quot;,&amp;quot;微软雅黑&amp;quot;,&amp;quot;宋体&amp;quot;,&amp;quot;Malgun Gothic&amp;quot;,Meiryo,sans-serif" color="#001000"&gt;&lt;BR /&gt;I am not familiar with the ZigBee protocol stack of NXP, my idea is to generate an event after receiving a serial port data, and send wireless data in this event.However, I am not clear how to achieve the serial port data to generate an event, I would like to ask how to implement this function?&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="transSent"&gt;Thank you for your time!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Jan 2021 09:03:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/JN5189-failed-to-send-data/m-p/1212729#M10578</guid>
      <dc:creator>Viki</dc:creator>
      <dc:date>2021-01-16T09:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: JN5189 failed to send data</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/JN5189-failed-to-send-data/m-p/1213539#M10587</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/181842"&gt;@Viki&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I recommend adding your send data function in the function APP_taskEndDevicNode. you will process all the information that you are getting through the UART driver. You could set a flag in the UART callback and in the ED task you could send the information that you want.&lt;/P&gt;
&lt;P&gt;However, I recommend looking at the &lt;A href="https://www.nxp.com/products/wireless/thread/jn5189-88-t-high-performance-and-ultra-low-power-mcus-for-zigbee-and-thread-with-built-in-nfc-option:JN5189_88_T?fpsp=1&amp;amp;tab=Documentation_Tab" target="_self"&gt;JN-AN-1243&lt;/A&gt; example that we provide. The example shows how is the UART interface using the coordinator.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Mario&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 17:49:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/JN5189-failed-to-send-data/m-p/1213539#M10587</guid>
      <dc:creator>mario_castaneda</dc:creator>
      <dc:date>2021-01-18T17:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: JN5189 failed to send data</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/JN5189-failed-to-send-data/m-p/1216404#M10590</link>
      <description>&lt;P&gt;Hi Mario,&lt;/P&gt;&lt;P&gt;Thank you for your reply.&amp;nbsp;&lt;FONT&gt;Your answer is very useful to me&lt;/FONT&gt;.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Viki&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 02:07:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/JN5189-failed-to-send-data/m-p/1216404#M10590</guid>
      <dc:creator>Viki</dc:creator>
      <dc:date>2021-01-19T02:07:10Z</dc:date>
    </item>
  </channel>
</rss>

