<?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>How to send string message from nrf52840 to raspberry pi?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/51463/how-to-send-string-message-from-nrf52840-to-raspberry-pi</link><description>Hi. 
 I just wonder how can I send string message through ble. 
 
 I will use raspberrypi as server. You can check whole code below. 
 It works well with computer bluetooth comunication based on windows. 
 but I don&amp;#39;t know which example I should use when</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 29 Aug 2019 08:57:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/51463/how-to-send-string-message-from-nrf52840-to-raspberry-pi" /><item><title>RE: How to send string message from nrf52840 to raspberry pi?</title><link>https://devzone.nordicsemi.com/thread/206799?ContentTypeID=1</link><pubDate>Thu, 29 Aug 2019 08:57:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6effa7b3-6e7a-49ad-aed2-ebe3799ec244</guid><dc:creator>Duy</dc:creator><description>&lt;p&gt;Glad to hear that. If you don&amp;#39;t mind posting the solutions hear and mark it as the answer for others to refer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to send string message from nrf52840 to raspberry pi?</title><link>https://devzone.nordicsemi.com/thread/206796?ContentTypeID=1</link><pubDate>Thu, 29 Aug 2019 08:56:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4fae3cc9-1851-40d3-9e63-d96da1220f64</guid><dc:creator>Duy</dc:creator><description>&lt;p&gt;Happy to hear you have solved it. Normally we have to read the document carefully. Even I still have some mistakes for not reading the document carefully.&lt;/p&gt;
&lt;p&gt;This page contains lots of things you need:&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/index.jsp"&gt;https://infocenter.nordicsemi.com/index.jsp&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Also this:&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/"&gt;https://developer.nordicsemi.com/&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to send string message from nrf52840 to raspberry pi?</title><link>https://devzone.nordicsemi.com/thread/206711?ContentTypeID=1</link><pubDate>Wed, 28 Aug 2019 17:35:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51fd35ef-2dd5-4ef8-acd7-ae7a320c99c4</guid><dc:creator>awneil</dc:creator><description>[quote userid="82871" url="~/f/nordic-q-a/51463/how-to-send-string-message-from-nrf52840-to-raspberry-pi/206701"] I solved it[/quote]
&lt;p&gt;For the benefit of others who may come here with similar problems, please explain what was the problem, and how you solved it.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/6327._5F00_Insert-Code-_2D00_-Nordic-2.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to send string message from nrf52840 to raspberry pi?</title><link>https://devzone.nordicsemi.com/thread/206701?ContentTypeID=1</link><pubDate>Wed, 28 Aug 2019 15:52:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7cad719b-5708-43e0-ad50-0fd7e389bc9f</guid><dc:creator>zester926</dc:creator><description>&lt;p&gt;Sorry!! I solved it!&lt;/p&gt;
&lt;p&gt;Very thank you for helping me!!!!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to send string message from nrf52840 to raspberry pi?</title><link>https://devzone.nordicsemi.com/thread/206618?ContentTypeID=1</link><pubDate>Wed, 28 Aug 2019 12:16:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ca29bea-01a5-46ff-8b17-7967d0f42c2c</guid><dc:creator>zester926</dc:creator><description>&lt;p&gt;Hello Duy, thank you for replying!&lt;/p&gt;
&lt;p&gt;As you mentioned, I used ble_peripheral\ble_app_uart.&lt;/p&gt;
&lt;p&gt;It is built and run very well, but there was one problem.&lt;/p&gt;
&lt;p&gt;To put the message via UART, I run the putty and toggle the keyboard but, I can&amp;#39;t type anything.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know why I can&amp;#39;t put any message. Is there any problems in the code?&lt;/p&gt;
&lt;p&gt;Like, the absence of the code which can enable putting the message.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to send string message from nrf52840 to raspberry pi?</title><link>https://devzone.nordicsemi.com/thread/206449?ContentTypeID=1</link><pubDate>Tue, 27 Aug 2019 16:40:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de3f1b0a-5468-4f66-8723-7448fc8bb06d</guid><dc:creator>Duy</dc:creator><description>&lt;p&gt;Hello zester926,&lt;/p&gt;
&lt;p&gt;You can try this example to send a string from nRF52840 to Raspberry Pi:&amp;nbsp;&lt;strong&gt;examples\ble_peripheral\ble_app_uart&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;However, if you want to send more than 23 bytes, you should edit this in file&amp;nbsp;&lt;strong&gt;ble_gatt.h&lt;/strong&gt;:&lt;/p&gt;
&lt;p&gt;#define BLE_GATT_ATT_MTU_DEFAULT&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 23&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /* Change this to 247 */&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This is one of many ways, you can spend more time researching.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; Duy&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>