<?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>complicated problem in sdk17.0.2 interactive command uart rx/tx output buffer</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/73328/complicated-problem-in-sdk17-0-2-interactive-command-uart-rx-tx-output-buffer</link><description>so Im tring to use interactive command to output my personal content 
 
 same as the device command which out put the device message 
 but i want to find the function which put all the character into a buffer before it output to the uart 
 
 
 
 also</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 19 Apr 2021 09:33:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/73328/complicated-problem-in-sdk17-0-2-interactive-command-uart-rx-tx-output-buffer" /><item><title>RE: complicated problem in sdk17.0.2 interactive command uart rx/tx output buffer</title><link>https://devzone.nordicsemi.com/thread/305466?ContentTypeID=1</link><pubDate>Mon, 19 Apr 2021 09:33:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2efbc8bf-2386-4ada-bc6e-26af786ae892</guid><dc:creator>yu1998</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;void nrf_cli_print_stream(void const * p_user_ctx, char const * p_data, size_t data_len)
{
    cli_write((nrf_cli_t const *)p_user_ctx,
              p_data,
              data_len,
              NULL);
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I think I just answer my question already Just rewrite this function and send 0x?? into a char[] to the buffer and send&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: complicated problem in sdk17.0.2 interactive command uart rx/tx output buffer</title><link>https://devzone.nordicsemi.com/thread/302833?ContentTypeID=1</link><pubDate>Thu, 01 Apr 2021 06:39:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d10df50e-5904-4c49-bbc7-e22804932226</guid><dc:creator>yu1998</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/vibe"&gt;Vidar Berg&lt;/a&gt; i would like to know is there a function to send message directly without readable message and in binary format in uart&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: complicated problem in sdk17.0.2 interactive command uart rx/tx output buffer</title><link>https://devzone.nordicsemi.com/thread/302526?ContentTypeID=1</link><pubDate>Tue, 30 Mar 2021 09:11:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e4ee7ee-ce6a-4816-8b83-fcd62a33f473</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;It sounds like something you can use the UART driver for. It&amp;#39;s not clear to me why you need to use this with this interactive example, and why you are trying to use the same UART HW for CLI and this custom protocol you have.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: complicated problem in sdk17.0.2 interactive command uart rx/tx output buffer</title><link>https://devzone.nordicsemi.com/thread/302475?ContentTypeID=1</link><pubDate>Tue, 30 Mar 2021 01:22:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14905b7e-e1b9-4569-a186-3aeffb5df2f9</guid><dc:creator>yu1998</dc:creator><description>&lt;p&gt;&amp;nbsp; &amp;nbsp;honestly i need to rewrite some specific protocol to connect to the device i know in some sort of&amp;nbsp; timing&amp;nbsp; the uart will send the message which is&amp;nbsp; unreadable to the target and make it readerable i was wondering which function are those&amp;nbsp; &lt;a href="https://devzone.nordicsemi.com/members/vibe"&gt;Vidar Berg&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: complicated problem in sdk17.0.2 interactive command uart rx/tx output buffer</title><link>https://devzone.nordicsemi.com/thread/302419?ContentTypeID=1</link><pubDate>Mon, 29 Mar 2021 15:04:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af227167-f700-4926-9d3e-c6f7391fff92</guid><dc:creator>Vidar Berg</dc:creator><description>[quote user=""]the reason why om doing this is because i&amp;nbsp; want to set the uart rx by myself to connect other device&amp;nbsp;[/quote]
&lt;p&gt;Do you have to use the same pins/UARTE for this, or would it be an option to use the second UARTE instance with another RX pin? You can use the &lt;span&gt;&lt;a title="UART" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/hardware_driver_uart.html?cp=7_1_2_0_19"&gt;UART&lt;/a&gt;&lt;/span&gt; driver to set it up.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: complicated problem in sdk17.0.2 interactive command uart rx/tx output buffer</title><link>https://devzone.nordicsemi.com/thread/302315?ContentTypeID=1</link><pubDate>Mon, 29 Mar 2021 08:35:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a35cf656-e2a1-487c-8f6a-0ded0b73f66a</guid><dc:creator>yu1998</dc:creator><description>&lt;p&gt;nah my ble is running&amp;nbsp; but what i want is make the uart rx output in specific devices in my company which i need the buffer and uart rx function&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: complicated problem in sdk17.0.2 interactive command uart rx/tx output buffer</title><link>https://devzone.nordicsemi.com/thread/302312?ContentTypeID=1</link><pubDate>Mon, 29 Mar 2021 08:23:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:baf22ef9-3563-4fe1-b114-fd7acd054520</guid><dc:creator>awneil</dc:creator><description>[quote userid="99836" url="~/f/nordic-q-a/73328/complicated-problem-in-sdk17-0-2-interactive-command-uart-rx-tx-output-buffer"]&lt;p&gt; i want to find the function which&amp;nbsp; put all the&amp;nbsp; character into a buffer before it output to the uart&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;also want to know when did the code call the Uart I only found&lt;/p&gt;[/quote]
&lt;p&gt;I find the easiest way to find such things is by stepping in the debugger.&lt;/p&gt;
&lt;p&gt;You should be able to set a breakpoint&amp;nbsp;on writing to the buffer.&lt;/p&gt;
&lt;p&gt;Easier to do when BLE is not running - otherwise you&amp;#39;ll need Monitor Mode Debugging:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/48647/ble-debugging-on-nrf52/193088#193088"&gt;devzone.nordicsemi.com/.../193088&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>