<?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>RX and TX characteristics in ble_app_uart example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/10202/rx-and-tx-characteristics-in-ble_app_uart-example</link><description>I want to transfer some data stored in nRF51822 to another BLE central device. I guess the idea is very similar to &amp;quot;ble_app_uart&amp;quot; example except that I don&amp;#39;t need the part interfacing with local hardware UART. The app seems to send out data via notifications</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 02 May 2019 07:06:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/10202/rx-and-tx-characteristics-in-ble_app_uart-example" /><item><title>RE: RX and TX characteristics in ble_app_uart example</title><link>https://devzone.nordicsemi.com/thread/184757?ContentTypeID=1</link><pubDate>Thu, 02 May 2019 07:06:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4cd62c43-94ab-49e4-89ab-a1f37c701514</guid><dc:creator>BarbaraTurner</dc:creator><description>&lt;p&gt;&lt;strong&gt;That&amp;#39;s wrong answer! The peripheral device uses TX Characteristics to send notifications and RX_Characterisctics to received data from central.&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;// Add the RX Characteristic.&lt;br /&gt; memset(&amp;amp;add_char_params, 0, sizeof(add_char_params));&lt;br /&gt; add_char_params.uuid = BLE_UUID_NUS_RX_CHARACTERISTIC;&lt;br /&gt; add_char_params.uuid_type = p_nus-&amp;gt;uuid_type;&lt;br /&gt; add_char_params.max_len = BLE_NUS_MAX_RX_CHAR_LEN;&lt;br /&gt; add_char_params.init_len = sizeof(uint8_t);&lt;br /&gt; add_char_params.is_var_len = true;&lt;br /&gt; &lt;strong&gt;add_char_params.char_props.write = 1;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt; add_char_params.char_props.write_wo_resp = 1;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;// Add the TX Characteristic.&lt;br /&gt; /**@snippet [Adding proprietary characteristic to the SoftDevice] */&lt;br /&gt; memset(&amp;amp;add_char_params, 0, sizeof(add_char_params));&lt;br /&gt; add_char_params.uuid = BLE_UUID_HAM_AUDIO_PACKET_CHARACTERISTIC;&lt;br /&gt; add_char_params.uuid_type = p_nus-&amp;gt;uuid_type;&lt;br /&gt; add_char_params.max_len = BLE_NUS_MAX_TX_CHAR_LEN;&lt;br /&gt; add_char_params.init_len = sizeof(uint8_t);&lt;br /&gt; add_char_params.is_var_len = true;&lt;br /&gt; &lt;strong&gt;add_char_params.char_props.notify = 1;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;add_char_params.read_access = SEC_OPEN;&lt;br /&gt; add_char_params.write_access = SEC_OPEN;&lt;br /&gt; add_char_params.cccd_write_access = SEC_OPEN;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have modify this example for my own use, &lt;strong&gt;removing TX characteristics&lt;/strong&gt; as I need one way link, from central to peripheral. It works.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RX and TX characteristics in ble_app_uart example</title><link>https://devzone.nordicsemi.com/thread/37865?ContentTypeID=1</link><pubDate>Mon, 13 Jun 2016 01:20:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:377f3abb-9063-419c-9a2c-ed856468f86f</guid><dc:creator>Jeffrey Haynes</dc:creator><description>&lt;p&gt;Are you sure the documentation is incorrect?  That was my first thought but I believe the characteristics are written from the standpoint of the application, not the device (peer).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RX and TX characteristics in ble_app_uart example</title><link>https://devzone.nordicsemi.com/thread/37864?ContentTypeID=1</link><pubDate>Thu, 12 Nov 2015 18:47:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49e1288c-d938-45d2-80e2-2993a187b8fa</guid><dc:creator>diode</dc:creator><description>&lt;p&gt;This makes more sense. Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RX and TX characteristics in ble_app_uart example</title><link>https://devzone.nordicsemi.com/thread/37862?ContentTypeID=1</link><pubDate>Thu, 12 Nov 2015 18:44:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa5b9904-5327-423b-8aca-d32667a66da1</guid><dc:creator>diode</dc:creator><description>&lt;p&gt;I misunderstood the concept of notification. The data written to this notification-enabled characteristic will be  pushed to the client. Thanks for the clarification.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RX and TX characteristics in ble_app_uart example</title><link>https://devzone.nordicsemi.com/thread/37861?ContentTypeID=1</link><pubDate>Thu, 12 Nov 2015 09:58:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:305e03ce-c480-4a73-8568-dbde7c09190b</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;The notifications are sent by using the RX characteristic. What do you mean by &amp;quot;when the data are already in the notification packet&amp;quot;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RX and TX characteristics in ble_app_uart example</title><link>https://devzone.nordicsemi.com/thread/37863?ContentTypeID=1</link><pubDate>Thu, 12 Nov 2015 09:55:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e34a2127-b530-4b17-b80d-aa50c514c296</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;The documentation is incorrect, it should be:&lt;/p&gt;
&lt;p&gt;TX Characteristic (UUID: 6E400002-B5A3-F393-E0A9-E50E24DCCA9E)
The peer can send data to the device by writing to the TX Characteristic of the service. ATT Write Request or ATT Write Command can be used. The received data is sent on the UART interface.&lt;/p&gt;
&lt;p&gt;RX Characteristic (UUID: 6E400003-B5A3-F393-E0A9-E50E24DCCA9E)
If the peer has enabled notifications for the RX Characteristic, the application can send data to the peer as notifications. The application will transmit all data received over UART as notifications.&lt;/p&gt;
&lt;p&gt;I have reported this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>