<?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>Sample code to transfer message between connected devices and development kit.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/86178/sample-code-to-transfer-message-between-connected-devices-and-development-kit</link><description>Hi, 
 I&amp;#39;m using nrf52840 DK and android based mobile with nrf connect for mobile app installed. 
 I would like to execute a freestanding sample code to transfer message between the phone and the kit 
 So suggest me a best suitable sample code available</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 24 Mar 2022 12:33:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/86178/sample-code-to-transfer-message-between-connected-devices-and-development-kit" /><item><title>RE: Sample code to transfer message between connected devices and development kit.</title><link>https://devzone.nordicsemi.com/thread/359801?ContentTypeID=1</link><pubDate>Thu, 24 Mar 2022 12:33:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4dc648ff-e905-488d-9794-e5faf4f09e25</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Do you want to transfer arbitrary data? If so, you need some form of app on the phone, as iOS or Android does not come with any generic app that lets you exchange arbitrary data over Bluetooth LE out of the box. The simplest way to exchange data between a phone and a nRF over BLE is probably to use the Nordic UART service (NUS) on the nRF side (see &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/peripheral_uart/README.html"&gt;Bluetooth: Peripheral UART&lt;/a&gt;&amp;nbsp;sample if using the nRF Connect SDK, or &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/ble_sdk_app_nus_eval.html"&gt;UART/Serial Port Emulation over BLE&lt;/a&gt;&amp;nbsp;if using the older nRF5 SDK).&lt;/p&gt;
&lt;p&gt;Then you can use for instance nRF Connect for mobile as a phone app, or your own app on the phone side and typically make your own phone app for this purpose at some point. If you need a simple Bluetooth app for Android as starting point for making your own app, you can refer to &lt;a href="https://github.com/NordicSemiconductor/Android-nRF-Blinky"&gt;nRF BLINKY&lt;/a&gt;&amp;nbsp;(note that this does not support NUS out of the box, but it demonstrates how to build a simple app for a custom Bluetooth service&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>