<?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>NRF52840 TCP client and server implementation</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/55175/nrf52840-tcp-client-and-server-implementation</link><description>Hi, 
 I would like to set up a wireless communication channel between two NRF52840 DK boards. I checked the Nordic SDK v16.0 and found some examples such as \examples\iot\tcp and \examples\iot\udp. Both of these examples require thrd party device (Linux</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 05 Dec 2019 16:50:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/55175/nrf52840-tcp-client-and-server-implementation" /><item><title>RE: NRF52840 TCP client and server implementation</title><link>https://devzone.nordicsemi.com/thread/224023?ContentTypeID=1</link><pubDate>Thu, 05 Dec 2019 16:50:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68efab8f-c493-4e8d-b88e-9ff475bafc3f</guid><dc:creator>zhliao</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for your response, I will try and will let you know if I has any other questions.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best,&lt;/p&gt;
&lt;p&gt;Zhonghao&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 TCP client and server implementation</title><link>https://devzone.nordicsemi.com/thread/223829?ContentTypeID=1</link><pubDate>Thu, 05 Dec 2019 10:18:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5329574e-4ecd-44b5-94d7-8567bb97ce70</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;I suggest that you check out the UART terminal called &amp;quot;Termite&amp;quot; (for Windows). It is fairly easy, and you can send messages both ways. It is also possible to send messages in putty, if you set it up as described here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v16.0.0%2Flib_cli.html&amp;amp;anchor=lib_cli_terminal_settings"&gt;https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v16.0.0%2Flib_cli.html&amp;amp;anchor=lib_cli_terminal_settings&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;But using Termite is easier in my opinion.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="zhliao"]1. Can we automate the messages that we send instead of manually input the message? 2. How to make the send and receive bi-directional?[/quote]
&lt;p&gt;&amp;nbsp;Yes. If you have one device running ble_app_uart, and one running ble_app_uart_c they can send messages both ways.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;on ble_app_uart use ble_nus_data_send() to send the message, and on ble_app_uart_c use ble_nus_c_string_send() to send the message.&lt;/p&gt;
&lt;p&gt;You can see from the examples that these are the functions used in the UART events to send the UART messages to the connected device.&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 TCP client and server implementation</title><link>https://devzone.nordicsemi.com/thread/223719?ContentTypeID=1</link><pubDate>Wed, 04 Dec 2019 21:07:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:673524b9-1442-4ba3-8230-d94153f2ac85</guid><dc:creator>zhliao</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for your response. We have checked the&amp;nbsp;&lt;span&gt;SDK\examples\ble_peripheral\ble_app_uart example and it works fine. We can send message from nRF connect to PUTTY, but&amp;nbsp;not the other way as we cannot write the message in PUTTY.&amp;nbsp; We have some follow up questions: 1. Can we automate the messages that we send instead of manually input the message? 2. How to make the send and receive bi-directional? Thank you.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Zhonghao&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 TCP client and server implementation</title><link>https://devzone.nordicsemi.com/thread/223619?ContentTypeID=1</link><pubDate>Wed, 04 Dec 2019 13:43:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93127be4-7a34-47b9-8d79-b6df0725b815</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;If you are not interrested in the 3rd party devices, perhaps you can look into some of the examples from the ble_peripheral and ble_central folders in the SDK.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If you want to send custom data between the devices, I suggest you study these two examples:&lt;/p&gt;
&lt;p&gt;SDK\examples\ble_peripheral\ble_app_uart&lt;br /&gt;SDK\examples\ble_central\ble_app_uart_c&lt;/p&gt;
&lt;p&gt;They can set up a link, and send messages back and forth.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Check out the description of each example:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v16.0.0%2Fble_sdk_app_nus_eval.html&amp;amp;anchor=project_uart_nus_eval_test" rel="noopener noreferrer" target="_blank"&gt;ble_app_uart&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v16.0.0%2Fble_sdk_app_nus_c.html&amp;amp;anchor=ble_nus_c_test" rel="noopener noreferrer" target="_blank"&gt;ble_app_uart_c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>