<?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>Sending commands to nRF52840 via React Native mobile application</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/41715/sending-commands-to-nrf52840-via-react-native-mobile-application</link><description>Hi, I&amp;#39;ve been tasked with sending commands to an nRF52840 Board via a React Native mobile application I&amp;#39;ve developed, but have no idea how to do so. Our company uses: 
 
 SEGGER Embedded Studio 
 nRF5 SDK v15.2.0 
 nRF5 SDK for Mesh v 3.0.0 
 S140 and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 03 Jan 2019 16:29:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/41715/sending-commands-to-nrf52840-via-react-native-mobile-application" /><item><title>RE: Sending commands to nRF52840 via React Native mobile application</title><link>https://devzone.nordicsemi.com/thread/163823?ContentTypeID=1</link><pubDate>Thu, 03 Jan 2019 16:29:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f450af4c-0e52-432d-8e65-c82dc3df0c3f</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Please test with our example with no modification first.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Then please follow&lt;a href="https://devzone.nordicsemi.com/question/60125/my-device-is-freezing-and-restarting/#60126"&gt; this guide&lt;/a&gt; to debug.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending commands to nRF52840 via React Native mobile application</title><link>https://devzone.nordicsemi.com/thread/163526?ContentTypeID=1</link><pubDate>Wed, 02 Jan 2019 16:15:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93d83858-3660-408e-9e2a-617e1e499544</guid><dc:creator>qmorrison</dc:creator><description>&lt;p&gt;Hi Hung, sorry for the delay, I was on holiday/vacation. I&amp;#39;ve tried this with the nRF Connect Mobile app and the device connects and then disconnects immediately. I used the ble_app_template_pca10056 as my base. I&amp;#39;m also flashing my custom service program to an nRF52840 via SEGGER studio&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending commands to nRF52840 via React Native mobile application</title><link>https://devzone.nordicsemi.com/thread/163116?ContentTypeID=1</link><pubDate>Fri, 28 Dec 2018 07:09:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85d952cf-213d-4bb0-a7b5-db61195e69b8</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Morrison,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Could you try again with the nRFConnect app on the phone ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Which firmware did you base on to add your vendor specific services ? I would suggest you to test with the ble_app_uart example in our SDK.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending commands to nRF52840 via React Native mobile application</title><link>https://devzone.nordicsemi.com/thread/162757?ContentTypeID=1</link><pubDate>Fri, 21 Dec 2018 01:21:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78a41c88-6313-41ab-a57a-0c8541013216</guid><dc:creator>qmorrison</dc:creator><description>&lt;p&gt;Update: I&amp;#39;ve created a custom service and characteristic for the nRF52840 board with S140. The program compiles and I&amp;#39;m able to download the program to my nRF52840 board. When I download the program to my board, it begins advertising as indicated by LED1 blinking. I&amp;#39;m also able to scan and see the device in the list of discovered devices, with my custom name and 128 bit Vendor Specific UUID.&lt;/p&gt;
&lt;p&gt;The problem is, when I try to connect to it, it disconnects everytime, and I get the following error:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1545355303835v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Any help is greatly appreciated, it seems I am very close to where I need to be I just cannot for the life of me figure out why this is happening. Will gladly share my custom service&amp;#39;s .c and .h files, as well as my main.c&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending commands to nRF52840 via React Native mobile application</title><link>https://devzone.nordicsemi.com/thread/162726?ContentTypeID=1</link><pubDate>Thu, 20 Dec 2018 17:02:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03eac2a3-3142-4b3c-ba62-df9ca1d69279</guid><dc:creator>qmorrison</dc:creator><description>&lt;p&gt;Yes I&amp;#39;m very new to Embedded Development. I&amp;#39;ve tested the examples in the nRF5 SDK, but creating my own examples is another matter. I guess my question is, how do I create custom services and characteristics, which I found a tutorial on yesterday.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;When I successfully wrote to the boards, the process was as follows:&lt;/p&gt;
&lt;p&gt;1. Plug nRF52840 or nRF52832 or nRF52840 Dongle into my PC via USB.&lt;/p&gt;
&lt;p&gt;2. Open nRF Connect BLE App. Select the connected board from the dropdown. I&amp;#39;m presented with a prompt saying &amp;quot;Device must be programmed. Do you want to proceed?&amp;quot;. I assume this loads some type of firmware onto the board? Not sure which firmware though.&lt;/p&gt;
&lt;p&gt;3. Click on Server Setup in the top navigation bar, then add a new Service with custom 16 bit UUID and a characteristic with custom 16 bit UUID. Click Apply to Device.&lt;/p&gt;
&lt;p&gt;4. Click on the COG icon next to the device in nRF Connect and then click Start Advertising. Once the device is advertising, I&amp;#39;m able to scan for it via my React Native app and write to that custom service and characteristic via react-native-ble-manager write() function, which takes the device ID, service UUID, characteristic UUID and the data.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;When I tried these steps with the Dongle, I would complete steps 1-3, but then when I advertise from the Dongle it doesn&amp;#39;t show up in scans. The other two boards do.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Also, I&amp;#39;m not sure where you got Mesh SDK proxy example from, as I haven&amp;#39;t mentioned that here.&lt;/p&gt;
&lt;p&gt;In any case, I&amp;#39;ve run through the tutorial on&amp;nbsp;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://devzone.nordicsemi.com/tutorials/b/bluetooth-low-energy/posts/ble-services-a-beginners-tutorial"&gt;https://devzone.nordicsemi.com/tutorials/b/bluetooth-low-energy/posts/ble-services-a-beginners-tutorial&lt;/a&gt;&amp;nbsp;and successfully created a custom service but that is for SDK v15.0.0, while we&amp;#39;re on the latest SDK version (15.2.0). I attempted to run the same tutorial with v15.2.0 but it seems entire directories have been renamed from v15.0.0 to v15.2.0 and I&amp;#39;m not sure of all the locations those directories are referenced. I would get a file or directory doesnt exist error, which referenced header files found in&amp;nbsp;&lt;em&gt;SDK_Root/components/libraries/experimental_log.&amp;nbsp;&lt;/em&gt;This directory seems to have been renamed in v15.2.0, but I&amp;#39;m not sure where in the ble app template these files are referenced in order to run the same tutorial on v15.2.0.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending commands to nRF52840 via React Native mobile application</title><link>https://devzone.nordicsemi.com/thread/162584?ContentTypeID=1</link><pubDate>Thu, 20 Dec 2018 05:09:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f93a1220-782c-4b8e-806b-38075eaf49a8</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Morrison,&lt;/p&gt;
&lt;p&gt;Please clarify which firmware you run on the nRF5 devices ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When you mentioned &amp;quot;unsuccessfully on the Dongle&amp;quot; what happened ? How did you prepare and program the dongle, which dongle ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;My understanding is that you want to connect to a nRF5 from the phone and send some data/commands to the nRF5 ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you are new to the app development, I would strongly suggest you to get started with the examples in the nRF5 SDK first before you try with the mesh SDK proxy example.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending commands to nRF52840 via React Native mobile application</title><link>https://devzone.nordicsemi.com/thread/162547?ContentTypeID=1</link><pubDate>Wed, 19 Dec 2018 16:44:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58899a3f-a678-48ff-9a89-ce016d9fb982</guid><dc:creator>qmorrison</dc:creator><description>&lt;p&gt;Update: I&amp;#39;ve successfully written the data I need to a custom characteristic on both an nRF52832 and nRF52840 board, but unsuccessfully on the Dongle. I connected the two boards via USB and opened nRF Connect, then did a Server Setup and defined custom services and characteristics. Once that was done I advertised from the board and was able to connect and write to the board&amp;#39;s characteristic. My question now is, how do I build an application that does this? Are there any good examples on creating custom services and characteristics via code in an IDE and not via the GUI in nRF Connect?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>