<?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>Send serial commands over GPIO on nRF52832</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/45798/send-serial-commands-over-gpio-on-nrf52832</link><description>Hello, I&amp;#39;m having a trouble over here, I read some tutorials for creating custom services and characteristics for BLE, and everything is running fine, I have a service with a characteristic that hold some text in hex (uint8_t), and I set the permissions</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 15 Apr 2019 08:21:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/45798/send-serial-commands-over-gpio-on-nrf52832" /><item><title>RE: Send serial commands over GPIO on nRF52832</title><link>https://devzone.nordicsemi.com/thread/182015?ContentTypeID=1</link><pubDate>Mon, 15 Apr 2019 08:21:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5513caa8-8f88-40aa-ac80-bf7309ef7954</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Thanks for the feedback.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;A good tip when working with &lt;em&gt;&lt;strong&gt;any&lt;/strong&gt; &lt;/em&gt;device like this is to &lt;em&gt;always&lt;/em&gt; start by connecting it to a PC with a terminal program, and use that to manually send commands to it, and observe the results and the responses.&lt;/p&gt;
&lt;p&gt;That way you can work out the correct commands &amp;amp; responses &lt;em&gt;without the added complication of embedded hardware &amp;amp; software development&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;Especially useful when you&amp;#39;re not too familiar with the embedded target.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send serial commands over GPIO on nRF52832</title><link>https://devzone.nordicsemi.com/thread/181946?ContentTypeID=1</link><pubDate>Sat, 13 Apr 2019 21:01:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e0cfc8a-6272-443e-8638-9b79d658ef93</guid><dc:creator>ronpetit</dc:creator><description>&lt;p&gt;Just to let anyone know, I solved the problem and it wasn&amp;#39;t related to the nRF52 i was using the ASCII commands \r and \n for return and new line on sending the commands to the nextion and that make the screen not able to receive any further command, all I needed was to send the command clean, without anything else&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send serial commands over GPIO on nRF52832</title><link>https://devzone.nordicsemi.com/thread/181803?ContentTypeID=1</link><pubDate>Fri, 12 Apr 2019 09:20:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4799deb0-a80d-4445-a124-41e03c23b991</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Did you use the same pins, or different ones? Events will depend on which UART implementation you are using. If you use the UART peripheral example in the SDK,&amp;nbsp;uart_error_handle() will be called when events are received. Use your debugger to set a breakpoint in this function and see if it is being called.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send serial commands over GPIO on nRF52832</title><link>https://devzone.nordicsemi.com/thread/181710?ContentTypeID=1</link><pubDate>Thu, 11 Apr 2019 17:19:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:570ada6e-550b-4033-be2b-df811f9c75a9</guid><dc:creator>ronpetit</dc:creator><description>&lt;p&gt;No, I do not have a logic analyzer, however I used the pin number 6 and 8 of the nRF52 DK to test the UART example with my own computer, and I can read exactly what I need to send to the screen, that&amp;#39;s why I think the string are sent correctly, and I don&amp;#39;t know how to get events from the UART peripheral, please If you have any other clue let me know, I will keep trying&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send serial commands over GPIO on nRF52832</title><link>https://devzone.nordicsemi.com/thread/181502?ContentTypeID=1</link><pubDate>Thu, 11 Apr 2019 09:04:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b86173e-7539-4208-b644-77386e6d312e</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Have you checked the lines with a logic analyzer, to see if the expected strings are sent to the screen? Do the screen send any response back to the nRF? Do you get any events from the UART peripheral?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send serial commands over GPIO on nRF52832</title><link>https://devzone.nordicsemi.com/thread/181181?ContentTypeID=1</link><pubDate>Tue, 09 Apr 2019 20:21:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe2671f2-7527-4f15-ab06-0cdf4f0fed49</guid><dc:creator>ronpetit</dc:creator><description>&lt;p&gt;Can you check please my answer to the awneil answer?, I&amp;#39;m stuck&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send serial commands over GPIO on nRF52832</title><link>https://devzone.nordicsemi.com/thread/181177?ContentTypeID=1</link><pubDate>Tue, 09 Apr 2019 20:11:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b068371-d404-463f-bb58-a915a2478fa3</guid><dc:creator>ronpetit</dc:creator><description>&lt;p&gt;Hello, sorry for the late response, I&amp;#39;m really stuck over this, I already managed to get the uart example working over the USB cable I connect to the nRF52 DK, I can send and read the serial data, however, when trying to use my nextion screen nothing happens, you said that the MCU connect via 5V TTL serial, however over here&amp;nbsp;&lt;a href="https://www.itead.cc/wiki/NX4024T032"&gt;https://www.itead.cc/wiki/NX4024T032&lt;/a&gt;&amp;nbsp;it says that the screen can recognize the 3.3V as a high, and I&amp;#39;m powering the screen with 5V from an external source, so what might be wrong?, do the TX from the screen transmit 5V and the nRF52832 gets errors?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;About the 0xFF, those are endlines, I&amp;#39;m sending the ASCII text instruction followed by 0xFF three times, that&amp;#39;s how it worked over the Nextion Editor debugger (A debugger for the screen).&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t really know what can be wrong, I feel that the 5V TTL should not be a problem.&lt;/p&gt;
&lt;p&gt;PD: I&amp;#39;m using the pins 23 as RX and 25 as TX on the nRF52 DK&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send serial commands over GPIO on nRF52832</title><link>https://devzone.nordicsemi.com/thread/180540?ContentTypeID=1</link><pubDate>Fri, 05 Apr 2019 15:07:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ebbe84b5-1d55-4396-aeb2-ddb9e3492dd0</guid><dc:creator>awneil</dc:creator><description>[quote userid="76009" url="~/f/nordic-q-a/45798/send-serial-commands-over-gpio-on-nrf52832"] a nextion TFT screen[/quote]
&lt;p&gt;One of these:&amp;nbsp;&lt;a href="https://nextion.itead.cc/"&gt;https://nextion.itead.cc/&lt;/a&gt;&amp;nbsp;?&lt;/p&gt;
&lt;p&gt;That page says:&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;em&gt;&amp;quot;NEXTION display quickly connects to MCU via 5V TTL Serial&amp;quot;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Note that nRF52832 pins are not 5V tolerant.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="76009" url="~/f/nordic-q-a/45798/send-serial-commands-over-gpio-on-nrf52832"] I need to send ... 0xFF three times so the screen will read the commands.[/quote]
&lt;p&gt;Are you sure? The page also says:&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;em&gt;&amp;quot;utilizes simple &lt;strong&gt;ASCII text&lt;/strong&gt; based instructions&amp;quot;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;0xFF would not normally be considered &amp;quot;ASCII text&amp;quot;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send serial commands over GPIO on nRF52832</title><link>https://devzone.nordicsemi.com/thread/180527?ContentTypeID=1</link><pubDate>Fri, 05 Apr 2019 14:05:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17935a3a-2401-4b01-b9c5-e558d04232ea</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Any GPIO that is not used by other peripherals on the DK can be used. P0.05-P0.08 is used for UART, P0.13-P0.20 is used for Buttons and LEDs, P0.21 is used for RESET, P0.00 and P0.01 is use for LF crystal, and P0.09 and P0.10 is used for NFCT. See the &lt;a href="https://www.nordicsemi.com/DocLib/Content/User_Guides/nrf52832_dk/latest/UG/nrf52_DK/intro"&gt;nRF52 DK User guide&lt;/a&gt; for more details.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send serial commands over GPIO on nRF52832</title><link>https://devzone.nordicsemi.com/thread/180492?ContentTypeID=1</link><pubDate>Fri, 05 Apr 2019 12:29:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:187c2ad2-e02c-43b3-98dd-03aaa7e315bb</guid><dc:creator>ronpetit</dc:creator><description>&lt;p&gt;I think I didn&amp;#39;t get the correct hit for a good UART example, I will follow the one you linked me.&lt;/p&gt;
&lt;p&gt;If it would be better to use a different GPIO which one do you recommend?, or any GPIO will do?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send serial commands over GPIO on nRF52832</title><link>https://devzone.nordicsemi.com/thread/180477?ContentTypeID=1</link><pubDate>Fri, 05 Apr 2019 11:23:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d74516b8-42ec-41fe-a822-a76b22b741f8</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The UART example is&amp;nbsp;one of the recommended&amp;nbsp;starting points for implementing UART connections to external devices. The documentation for how to test the example can be found &lt;a href="https://www.nordicsemi.com/DocLib/Content/SDK_Doc/nRF5_SDK/v15-3-0/uart_example"&gt;here&lt;/a&gt;. Can you explain in more detail what it is you are not understanding? Note that P0.06 and P0.08 is by default connected to the on-board debug chip on the DK, to allow sending data through virtual COM port to PC. If you want to interface external device, it&amp;nbsp;would be better to use different GPIOs.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>