<?xml-stylesheet type="text/xsl" href="https://community.element14.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/"><channel><title>Conclusion</title><link>/challenges-projects/design-challenges/vertical-farming/b/blog/posts/conclusion</link><description>So I suppose this blog post is very belated; however, I wished to sum up the events of the past few weeks and the total sum of the programming completed. Basically, I got stuck on the programming of the EZR32WG MCU. I tried to look through James&amp;#39;s co</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Conclusion</title><link>https://community.element14.com/challenges-projects/design-challenges/vertical-farming/b/blog/posts/conclusion</link><pubDate>Wed, 02 Dec 2015 02:37:12 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:f2f466eb-6f70-4297-a1ec-c3adf13a8b95</guid><dc:creator>jamesod</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;If you look at the txrx sample code provided in the simplicity studio examples, you have to put the data you want to transfer into the radioTxPkt array. This array contains the length of the data as the first element and then (i think) 8 bytes for data by default. In my code I then assign the data using this loop:&lt;/p&gt;&lt;p&gt;[embed:dc8ab71f-3b98-42d9-b0f6-e21e02a0f8e2:3ef06e6b-9b7d-4651-b12d-db8be7f5e991:type=c_cpp&amp;amp;text=z+%3D+0%3B%0A++++++%2F%2FGet+serial+data+for+radio+xfer+from+serial+rxBuffer%0A++++++while+%28SerialReady%28%29%29%7B%0A++++if%28z+%3D%3D+0%29%7B%0A++++appTxPktCntr%2B%2B%3B%0A++++printf%28%22%3C-Data+TX%3A+%22%29%3B%0A++++%7D%0A++++serial_data+%3D+SerialRadioData%28%29%3B%0A++++*%28uint8_t+*%29%28radioTxPkt+%2B+APP_PKT_DATA_START+%2B+z%29+%3D+serial_data%3B%0A++++printf%28%22%25c%22%2C+serial_data%29%3B%0A++++z%2B%2B%3B%0A%0A%0A++++++%7D%0A++++++if+%28z+%3E+0%29%7B%0A+++++*%28uint8_t+*%29%28radioTxPkt+%2B+APP_PKT_DATA_START+%2B+z%29+%3D+126%3B%0A+++++printf%28%22%5Cn%22%29%3B%0A++++++%7D]&lt;/p&gt;&lt;div&gt;&lt;/div&gt;&lt;p&gt; This transfers the serial data byte by byte into the radioTxPkt array. You can do this with any byte (uint8_t) or array of bytes. &lt;/p&gt;&lt;p&gt;If you look at my arduino code and the serialcomms files in my project you can see an example of using the UART (tx/rx) connection between the Arduino and the EZR32WG.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=863&amp;AppID=120&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>