<?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>topic Re: Q : Serial Communication between JN5168 with other Microcontroller, possible or not? how? in Wireless MCU</title>
    <link>https://community.nxp.com/t5/Wireless-MCU/Q-Serial-Communication-between-JN5168-with-other-Microcontroller/m-p/608439#M1773</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you decide to use the DBG_iGetChar(), you can just&amp;nbsp;poll it to return one byte of data (from the ATMega8).&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Feb 2017 08:51:55 GMT</pubDate>
    <dc:creator>limcb</dc:creator>
    <dc:date>2017-02-14T08:51:55Z</dc:date>
    <item>
      <title>Q : Serial Communication between JN5168 with other Microcontroller, possible or not? how?</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Q-Serial-Communication-between-JN5168-with-other-Microcontroller/m-p/608434#M1768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is it possible to do serial communication between JN5168 with other microcontroller, such as &amp;nbsp;ATmega8? &lt;BR /&gt;&lt;BR /&gt;and also, is it possible to do it in router device? (since i'm looking the sample code at home automation, every uart function is available only for coordinator)&lt;BR /&gt;&lt;BR /&gt;if there's a way, how? and which sample code i can use as base for this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2017 09:44:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Q-Serial-Communication-between-JN5168-with-other-Microcontroller/m-p/608434#M1768</guid>
      <dc:creator>fehnrirx</dc:creator>
      <dc:date>2017-02-07T09:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: Q : Serial Communication between JN5168 with other Microcontroller, possible or not? how?</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Q-Serial-Communication-between-JN5168-with-other-Microcontroller/m-p/608435#M1769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you can interface with other MCUs, just like a normal UART interface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can find the APIs to use in the Doc&amp;nbsp;JN-UG-3087 under section 22. UART Functions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;To start, just look for the API command of interest, then CTRL+H in your IDE and paste it in the search&amp;nbsp;to see where and how it is used in the AppNote.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which sample code are you looking at ? JN-AN-xxxx ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2017 09:11:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Q-Serial-Communication-between-JN5168-with-other-Microcontroller/m-p/608435#M1769</guid>
      <dc:creator>limcb</dc:creator>
      <dc:date>2017-02-08T09:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: Q : Serial Communication between JN5168 with other Microcontroller, possible or not? how?</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Q-Serial-Communication-between-JN5168-with-other-Microcontroller/m-p/608436#M1770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for reply. right now i use JN-AN-1189. because the device i'm going to use is like a switch. if i press button 1, then i want to send command&amp;nbsp;in byte to open, button 2 for close, and so on. the problem is, there's no uart.c/uart.h on JN-AN-1189, nor function to be use. can you tell me how to do it?&lt;BR /&gt;&lt;BR /&gt;by the way. by "interface" it, is it enough just put the rx tx from jn5168 chip directly to other tx rx mcu like this picture?&lt;IMG alt="" class="image-1 jive-image j-img-original" src="http://circuitdigest.com/sites/default/files/circuitdiagram_mic/AVR-UART-Circuit.gif" style="width: 620px; height: 443px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2017 02:00:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Q-Serial-Communication-between-JN5168-with-other-Microcontroller/m-p/608436#M1770</guid>
      <dc:creator>fehnrirx</dc:creator>
      <dc:date>2017-02-09T02:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: Q : Serial Communication between JN5168 with other Microcontroller, possible or not? how?</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Q-Serial-Communication-between-JN5168-with-other-Microcontroller/m-p/608437#M1771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That circuit connection will be able to RX TX&amp;nbsp;for&amp;nbsp;development purposes but make sure you &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;check voltages&lt;/STRONG&gt;&lt;/SPAN&gt;. JN is 3.3V only.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;To get started&lt;/P&gt;&lt;P&gt;If you would take a look at JN-UG-3116 under section&amp;nbsp;9. DBG API, there is a&amp;nbsp;DBG_iGetChar().&lt;/P&gt;&lt;P&gt;Find your application's main loop, then create a function like vUARTParse() and call it in the main loop.&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;PUBLIC &lt;SPAN class="keyword token"&gt;void&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;vUARTParse&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
 &lt;SPAN class="keyword token"&gt;int&lt;/SPAN&gt; temp&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
 temp &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;DBG_iGetChar&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
 &lt;SPAN class="keyword token"&gt;switch&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;temp&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="keyword token"&gt;case&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'a'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN class="comment token"&gt;// Single byte command RX&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;/* Do Stuff */&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;break&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍
&amp;nbsp; &lt;SPAN class="keyword token"&gt;case&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x01&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;// Single byte command RX&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;/* Do Stuff */&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;break&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
 &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want a more proper way, look up&amp;nbsp;JN-UG-3087 under section 22. UART Functions.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2017 06:04:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Q-Serial-Communication-between-JN5168-with-other-Microcontroller/m-p/608437#M1771</guid>
      <dc:creator>limcb</dc:creator>
      <dc:date>2017-02-10T06:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: Q : Serial Communication between JN5168 with other Microcontroller, possible or not? how?</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Q-Serial-Communication-between-JN5168-with-other-Microcontroller/m-p/608438#M1772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no need to set the OS or something like that? only call it on main program?&lt;BR /&gt;&lt;BR /&gt;Sorry, i still new to this, not quite grasp the OS and such things.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Feb 2017 04:05:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Q-Serial-Communication-between-JN5168-with-other-Microcontroller/m-p/608438#M1772</guid>
      <dc:creator>fehnrirx</dc:creator>
      <dc:date>2017-02-11T04:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: Q : Serial Communication between JN5168 with other Microcontroller, possible or not? how?</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Q-Serial-Communication-between-JN5168-with-other-Microcontroller/m-p/608439#M1773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you decide to use the DBG_iGetChar(), you can just&amp;nbsp;poll it to return one byte of data (from the ATMega8).&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2017 08:51:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Q-Serial-Communication-between-JN5168-with-other-Microcontroller/m-p/608439#M1773</guid>
      <dc:creator>limcb</dc:creator>
      <dc:date>2017-02-14T08:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: Q : Serial Communication between JN5168 with other Microcontroller, possible or not? how?</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Q-Serial-Communication-between-JN5168-with-other-Microcontroller/m-p/608440#M1774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My condition now is use JN-AN-1189 as the base code.&lt;/P&gt;&lt;P&gt;i look for some AN and find that JN-AN-1223 use uart function, but it's for coordinator, meanwhile i need to use my device as router/end device, since i need to command it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my purpose is to send 8&amp;nbsp;bytes data and receive 10 bytes data using uart. sending data is triggered either by push button or command from coordinator&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my question now,&lt;BR /&gt;1. how to use uart.c in other project (from 1223 to 1189)? it doesn't allow me to compile it&lt;BR /&gt;2. how to update the oscfg? since i need event and interupt for uart function, but again, not allowed to compile&lt;/P&gt;&lt;P&gt;3. is there any cluster that i can use to send not only command but also some string contain information?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2017 03:23:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Q-Serial-Communication-between-JN5168-with-other-Microcontroller/m-p/608440#M1774</guid>
      <dc:creator>fehnrirx</dc:creator>
      <dc:date>2017-02-17T03:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: Q : Serial Communication between JN5168 with other Microcontroller, possible or not? how?</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Q-Serial-Communication-between-JN5168-with-other-Microcontroller/m-p/608441#M1775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. Have you added APPSRC += uart.c in the Makefile ? Have you #include "uart.h" ?&lt;/P&gt;&lt;P&gt;2. Start simple, implement interrupt first, ensure that interrupts work (able to trigger ISR/callback and handle it), then make event/buffer work.&lt;/P&gt;&lt;P&gt;For the oscfg, you can probably copy &amp;amp; paste the ISR TickTimer but replace with UART, then call a new APP_isrUART. Then if you want to event/buffer, you could follow the ZBPro "folder"/"group" section by Posting a Message to a Queue, then create a Task to Poll/Read the Queue. Or you could&amp;nbsp;keep it simple and roll your own uint8 UARTBuffer[] code first to test proof of concept.&lt;/P&gt;&lt;P&gt;After editing the oscfg, you'll probably need to update some *.c files to reflect the changes made.&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. Make a custom cluster ? You can right click to New child &amp;gt; Cluster&amp;nbsp;in app.zpscfg in /Common/Source/. You'll then need to know how and where to handle the custom cluster, read &amp;amp; interpret the payload bytes manually. You could dig into their zigbee *.c files to see how they do it.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2017 04:10:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Q-Serial-Communication-between-JN5168-with-other-Microcontroller/m-p/608441#M1775</guid>
      <dc:creator>limcb</dc:creator>
      <dc:date>2017-02-17T04:10:36Z</dc:date>
    </item>
  </channel>
</rss>

