<?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>Problem sending chars</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/60084/problem-sending-chars</link><description>Hi team, 
 I have to create a program which sends messages from one dongle to another. Now I have ported radio transmit and receive + USB CDC ACM programs for two 52840 dongles. Also each of them can be seen as USB serial devices and can output messages</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 14 Apr 2020 17:24:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/60084/problem-sending-chars" /><item><title>RE: Problem sending chars</title><link>https://devzone.nordicsemi.com/thread/244535?ContentTypeID=1</link><pubDate>Tue, 14 Apr 2020 17:24:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:170b12bf-ec28-40a1-8cf9-1523525e71b3</guid><dc:creator>ryerye120</dc:creator><description>&lt;p&gt;That may have something to do with how the CDC ACM example processes received chars from the keyboard. So depending on when you print you may only get one character at a time.&amp;nbsp;How are you triggering the transmissions? Do you have an example that&amp;nbsp;allows for typing in one terminal and transmitting that to another?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem sending chars</title><link>https://devzone.nordicsemi.com/thread/244501?ContentTypeID=1</link><pubDate>Tue, 14 Apr 2020 15:15:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9613ca8-ae22-46e3-9d60-6b2dfa244da8</guid><dc:creator>Pinout_1</dc:creator><description>&lt;p&gt;Thanks &lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/ryerye120"&gt;ryerye120&lt;/a&gt;, according to your suggestion, I made&amp;nbsp;a few changes in my code, now I&amp;#39;m able to see strings. But now I have other problem - I can see only one string. For example when I&amp;nbsp;declare&lt;span&gt;&amp;nbsp;a string in the Tx side, I get H word in the Rx side. Maybe it is CDC ACM problem?&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem sending chars</title><link>https://devzone.nordicsemi.com/thread/244227?ContentTypeID=1</link><pubDate>Fri, 10 Apr 2020 16:26:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5fd32e4b-d8c8-455a-86ba-21da71b3e220</guid><dc:creator>ryerye120</dc:creator><description>&lt;p&gt;In the end, you&amp;#39;re just sending and receiving bits. So what are you sending and how are you casting on the RX side? It looks like you&amp;#39;re printing them as &amp;#39;unsigned longs&amp;#39;. Try sending a string and printing it with %s.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;On the Tx side you can make a test string like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define TEST_STRING &amp;quot;comes_from_tx&amp;quot;
static uint8_t       m_tx_buf[] = TEST_STRING;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;and then on the rx side you can debug with NRF log:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;NRF_LOG_INFO(&amp;quot; Transfer completed. Received: %s&amp;quot;,(uint32_t)m_rx_buf);&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>