<?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>Want to communicate between two devices using customised commands</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/63368/want-to-communicate-between-two-devices-using-customised-commands</link><description>Hi 
 I have 2 customised board with nrf52832, I wanted to communicate between 2 devices. Like to send commands like turn on/off LED from my one board to on/off LED on my second board. If I press button on one device it should be notified at other device</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 07 Jul 2020 08:40:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/63368/want-to-communicate-between-two-devices-using-customised-commands" /><item><title>RE: Want to communicate between two devices using customised commands</title><link>https://devzone.nordicsemi.com/thread/258749?ContentTypeID=1</link><pubDate>Tue, 07 Jul 2020 08:40:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a590a1e6-f4b3-4d79-b7e8-a5568aa05689</guid><dc:creator>KRA</dc:creator><description>&lt;p&gt;Great. Thank you so much Karl.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Want to communicate between two devices using customised commands</title><link>https://devzone.nordicsemi.com/thread/258730?ContentTypeID=1</link><pubDate>Tue, 07 Jul 2020 07:43:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:733ba1de-39de-4dbc-b7e0-dcb516677581</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello KRA,&lt;/p&gt;
[quote user="Kruti Parikh"]Thank you Karl. it seems like UART will work for me.[/quote]
&lt;p&gt;Great! I am happy to hear that you found the examples useful.&lt;/p&gt;
&lt;p&gt;[quote user="Kruti Parikh"][/quote]&lt;/p&gt;
&lt;p&gt;I can use UART communication even if I don&amp;#39;t want to use COM port on central side right?&lt;/p&gt;
&lt;p&gt;I am not sure if I can do this or not but in my application I dont want to use COM port for sending string/ data to my peripheral device.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You may replace the input source of the central with any source that you would like, that is fine.&lt;br /&gt;The important part for you is to see how the data inputted to the COM port is processed and sent to the peripheral - then you may do the exact same procedure with any other data, as long as it is compliant with the Nordic UART service.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Want to communicate between two devices using customised commands</title><link>https://devzone.nordicsemi.com/thread/258724?ContentTypeID=1</link><pubDate>Tue, 07 Jul 2020 06:58:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f17d910f-9a59-4c8f-853b-430671dfdfa0</guid><dc:creator>KRA</dc:creator><description>&lt;p&gt;Thank you Karl. it seems like UART will work for me.&lt;/p&gt;
&lt;p&gt;I can use UART communication even if I don&amp;#39;t want to use COM port on central side right?&lt;/p&gt;
&lt;p&gt;I am not sure if I can do this or not but in my application I dont want to use COM port for sending string/ data to my peripheral device.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;KRA&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Want to communicate between two devices using customised commands</title><link>https://devzone.nordicsemi.com/thread/258715?ContentTypeID=1</link><pubDate>Tue, 07 Jul 2020 06:26:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1acdd2cd-3950-4968-a044-f9cd2139c981</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello KRA,&lt;/p&gt;
[quote user="Kruti Parikh"]I have gone through these examples from sdk. That will serve my purpose in few cases.[/quote]
&lt;p&gt;I am glad to hear that you found the examples useful!&lt;br /&gt;&lt;br /&gt;[quote user="Kruti Parikh"][/quote]&lt;/p&gt;
&lt;p&gt;But in few commands I wanted to read data like string from other device.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Which functionality is suitable for communicating these kind of data between two devices??&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;For sending a string between devices, I would recommend seeing the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.0/ble_sdk_app_nus_c.html"&gt;BLE Nordic UART central&lt;/a&gt; and &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.0/ble_sdk_app_nus_eval.html"&gt;peripheral examples&lt;/a&gt;.&lt;br /&gt;They emulate UART communication over BLE - i.e if something is written on the COM port of device 1, it will transfer it to device 2 over BLE, and device 2 will write the contents out on its own COM port - and visa versa.&lt;br /&gt;You may of course instead do something else with the received UART commands - such as toggling a LED - that is up to you. I will suggest that the easiest way to implement this would be to merge the relevant BLE Blinky example functionality you are already familiar with into the BLE Nordic UART examples.&lt;br /&gt;&lt;br /&gt;Using the Nordic UART service you may send strings / data between your devices, with minimal work required to get it up and running.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Want to communicate between two devices using customised commands</title><link>https://devzone.nordicsemi.com/thread/258449?ContentTypeID=1</link><pubDate>Sun, 05 Jul 2020 03:40:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4f4ccaa-d64b-4fef-b44c-5f6db906bd8c</guid><dc:creator>KRA</dc:creator><description>&lt;p&gt;Hi Karl,&lt;/p&gt;
&lt;p&gt;I have gone through these examples from sdk. That will serve my purpose in few cases. But in few commands I wanted to read data like string from other device.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Which functionality is suitable for communicating these kind of data between two devices??&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;KRA&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Want to communicate between two devices using customised commands</title><link>https://devzone.nordicsemi.com/thread/258433?ContentTypeID=1</link><pubDate>Sat, 04 Jul 2020 10:46:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b33edbd6-054b-4221-8e57-45fe2015bcc1</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello KRA,&lt;br /&gt;&lt;br /&gt;You might&amp;nbsp;be looking for&amp;nbsp;the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.0/ble_sdk_app_blinky_c.html"&gt;BLE Blinky central&lt;/a&gt; and &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.0/ble_sdk_app_blinky.html"&gt;peripheral examples from the SDK&lt;/a&gt;&amp;nbsp;- they implement exactly the functionality you describe.&lt;br /&gt;In essence, the central connects to a device that is advertising with a given name, and which has the LED button service ( lbs ). After establishing connection between the two devices and clicking a button, the LED on both boards will light up.&lt;br /&gt;The examples will probably not work on your custom boards - since they are made for the nRF52 Development Kit - but the general approach used in the code will be identical for your nRF52832 SoC.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>