<?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>Communication between nRF52832DK and nRF9160DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/73191/communication-between-nrf52832dk-and-nrf9160dk</link><description>Hello, I have a nRF52832 DK and a nRF9160 DK and I would like to establish a Bluetooth connection between them and also send data to each other. How can I do that?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 04 May 2021 11:18:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/73191/communication-between-nrf52832dk-and-nrf9160dk" /><item><title>RE: Communication between nRF52832DK and nRF9160DK</title><link>https://devzone.nordicsemi.com/thread/308145?ContentTypeID=1</link><pubDate>Tue, 04 May 2021 11:18:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc59eab9-7cff-4e71-9401-b1b3bc52b854</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;I don&amp;#39;t think you need those. The sample uses &lt;span&gt;BT_UUID_THINGY&lt;/span&gt; by default when scanning and connecting to the thingy:91 device, which it seems you are able to do already. &lt;span&gt;BT_UUID_TMS and&amp;nbsp;BT_UUID_TOC&lt;/span&gt; are specific to the thingy service.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Communication between nRF52832DK and nRF9160DK</title><link>https://devzone.nordicsemi.com/thread/307078?ContentTypeID=1</link><pubDate>Tue, 27 Apr 2021 14:47:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc4028ee-92d2-4505-9bad-7fef14d8b8ac</guid><dc:creator>Siang</dc:creator><description>[quote userid="73166" url="~/f/nordic-q-a/73191/communication-between-nrf52832dk-and-nrf9160dk/307075#307075"]Are you talking about &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v1.4-branch/samples/nrf9160/lte_ble_gateway/src/ble.c#L27"&gt;these&lt;/a&gt;?[/quote]
&lt;p&gt;Yes, exactly. I changed the&amp;nbsp;&lt;span class="pl-en"&gt;BT_UUID_THINGY to the UUID of my nRF52832 but didn&amp;#39;t know how to change the&amp;nbsp;&lt;span&gt;BT_UUID_TMS and&amp;nbsp;BT_UUID_TOC. I actually gave them all the same UUID, which I doubt is the right way to do so.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Communication between nRF52832DK and nRF9160DK</title><link>https://devzone.nordicsemi.com/thread/307075?ContentTypeID=1</link><pubDate>Tue, 27 Apr 2021 14:39:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fbe56b2b-145b-48de-9009-348bc9bd8d3d</guid><dc:creator>Hakon</dc:creator><description>[quote user="Siang"]Can you please tell me where I can find the correct UUID?[/quote]
&lt;p&gt;&amp;nbsp;Are you talking about &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v1.4-branch/samples/nrf9160/lte_ble_gateway/src/ble.c#L27"&gt;these&lt;/a&gt;?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="Siang"]&lt;div style="padding-left:30px;"&gt;Device found: DA:C9:F7:DC:94:26 (random)&lt;/div&gt;
&lt;div style="padding-left:30px;"&gt;Connected: DA:C9:F7:DC:94:26 (random)&lt;/div&gt;[/quote]
&lt;p&gt;&amp;nbsp;It looks like the device is getting connected. I don&amp;#39;t see any reason why it shouldn&amp;#39;t be able to receive data from the nrf52832 device.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Communication between nRF52832DK and nRF9160DK</title><link>https://devzone.nordicsemi.com/thread/306638?ContentTypeID=1</link><pubDate>Sat, 24 Apr 2021 19:21:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:551c9526-fd7e-41da-a59d-79143b2bc7a6</guid><dc:creator>Siang</dc:creator><description>&lt;pre&gt;&lt;/pre&gt;
&lt;pre class="ctrl-char CR"&gt;&lt;/pre&gt;
&lt;pre class="ctrl-char LF"&gt;&lt;/pre&gt;
&lt;div&gt;This is what I got from LTE Link Monitor:&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div style="padding-left:30px;"&gt;&lt;/div&gt;
&lt;div style="padding-left:30px;"&gt;*** Booting Zephyr OS build v2.4.99-ncs2 ***&lt;/div&gt;
&lt;div style="padding-left:30px;"&gt;LTE Sensor Gateway sample started&lt;/div&gt;
&lt;div style="padding-left:30px;"&gt;Initializing Bluetooth..&lt;/div&gt;
&lt;div style="padding-left:30px;"&gt;Establishing LTE link (this may take some time) ...&lt;/div&gt;
&lt;div style="padding-left:30px;"&gt;Bluetooth ready&lt;/div&gt;
&lt;div style="padding-left:30px;"&gt;Scanning...&lt;/div&gt;
&lt;div style="padding-left:30px;"&gt;Device found: DA:C9:F7:DC:94:26 (random)&lt;/div&gt;
&lt;div style="padding-left:30px;"&gt;Connected: DA:C9:F7:DC:94:26 (random)&lt;/div&gt;
&lt;div style="padding-left:30px;"&gt;+CEREG: 2,&amp;quot;B876&amp;quot;,&amp;quot;01243F03&amp;quot;,7,0,0,&amp;quot;11100000&amp;quot;,&amp;quot;11100000&amp;quot;&lt;/div&gt;
&lt;div style="padding-left:30px;"&gt;+CSCON: 1&lt;/div&gt;
&lt;div style="padding-left:30px;"&gt;Missing Thingy orientation characteristic&lt;/div&gt;
&lt;div style="padding-left:30px;"&gt;+CEREG: 5,&amp;quot;B876&amp;quot;,&amp;quot;01243F03&amp;quot;,7,,,&amp;quot;11100000&amp;quot;,&amp;quot;11100000&amp;quot;&lt;/div&gt;
&lt;div style="padding-left:30px;"&gt;AT+COPS=3,2&lt;/div&gt;
&lt;div style="padding-left:30px;"&gt;OK&lt;/div&gt;
&lt;div style="padding-left:30px;"&gt;AT+COPS?&lt;/div&gt;
&lt;div style="padding-left:30px;"&gt;+COPS: 0,2,&amp;quot;26202&amp;quot;,7&lt;/div&gt;
&lt;div style="padding-left:30px;"&gt;OK&lt;/div&gt;
&lt;div style="padding-left:30px;"&gt;AT%XCBAND&lt;/div&gt;
&lt;div style="padding-left:30px;"&gt;%XCBAND: 20&lt;/div&gt;
&lt;div style="padding-left:30px;"&gt;OK&lt;/div&gt;
&lt;div style="padding-left:30px;"&gt;AT+CGDCONT?&lt;/div&gt;
&lt;div style="padding-left:30px;"&gt;+CGDCONT: 0,&amp;quot;IP&amp;quot;,&amp;quot;ibasis.iot&amp;quot;,&amp;quot;10.160.70.48&amp;quot;,0,0&lt;/div&gt;
&lt;div style="padding-left:30px;"&gt;OK&lt;/div&gt;
&lt;div style="padding-left:30px;"&gt;AT+CGACT?&lt;/div&gt;
&lt;div style="padding-left:30px;"&gt;+CGACT: 0,1&lt;/div&gt;
&lt;div style="padding-left:30px;"&gt;OK&lt;/div&gt;
&lt;p style="padding-left:30px;"&gt;&lt;/p&gt;
&lt;p&gt;I think I&amp;#39;ve defined the BT_UUID_TMS and BT_UUID_TOC wrongly because I don&amp;#39;t know where to find them. Can you please tell me where I can find the correct UUID?&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1619292009960v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Communication between nRF52832DK and nRF9160DK</title><link>https://devzone.nordicsemi.com/thread/306395?ContentTypeID=1</link><pubDate>Thu, 22 Apr 2021 14:53:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:333b95a9-d428-45d0-8bed-0fb1552a3bcd</guid><dc:creator>Hakon</dc:creator><description>[quote user="Siang"]I also tried to keep the scan filter and changed the UUID to the UUID of the nrf52832. It seemed to react and the nrf52832 DK showed: LED 1 flashing and LED 2 ON.&amp;nbsp; &amp;nbsp;[/quote]
&lt;p&gt;&amp;nbsp;Do you have any log output from this? Do you get the connected callback?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Communication between nRF52832DK and nRF9160DK</title><link>https://devzone.nordicsemi.com/thread/305953?ContentTypeID=1</link><pubDate>Tue, 20 Apr 2021 19:58:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09931730-992d-4b80-aca2-e959d335c2ce</guid><dc:creator>Siang</dc:creator><description>&lt;p&gt;So you&amp;#39;re saying that&amp;nbsp;&lt;em&gt;hci_lpuart&amp;nbsp;&lt;/em&gt;is the better option for the nrf52840 to communicate with nrf9160 so that I can then send the data to the cloud right? If that is the case then I will go with hci_lpuart.&lt;/p&gt;
&lt;p&gt;How can I get both of the DKs connected via BLE? What I have done were:&lt;/p&gt;
&lt;p&gt;1. Flashed lte_sensor_gateway on nrf9160 and removed the scan filter.&lt;/p&gt;
&lt;p&gt;2. Flashed hci_lpuart on nrf9160_52840.&lt;/p&gt;
&lt;p&gt;3. Flashed peripheral_uart on nrf52832 DK.&lt;/p&gt;
&lt;p&gt;The nrf9160 just won&amp;#39;t connect with the nrf52832. I also tried to keep the scan filter and changed the UUID to the UUID of the nrf52832. It seemed to react and the nrf52832 DK showed: LED 1 flashing and LED 2 ON.&amp;nbsp; &amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Communication between nRF52832DK and nRF9160DK</title><link>https://devzone.nordicsemi.com/thread/305891?ContentTypeID=1</link><pubDate>Tue, 20 Apr 2021 13:52:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:376df0c2-efd7-4bb8-8848-6a3ac22fcf8a</guid><dc:creator>Hakon</dc:creator><description>[quote user="Siang"]Is it possible for me to use&amp;nbsp;&lt;em&gt;central_uart&amp;nbsp;&lt;/em&gt;instead of the&amp;nbsp;&lt;em&gt;hci_lpuart&lt;/em&gt; on the nRF52840 on the nRF9160 DK for the BLE connection and data transferring?[/quote]
&lt;p&gt;&amp;nbsp;I don&amp;#39;t think it&amp;#39;s possible, or it&amp;#39;s at least impractical to make it work with central_uart. You need to be able to communicate with the nRF9160 application.&lt;/p&gt;
&lt;p&gt;If you want I can make the case private so you can send me the projects.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Communication between nRF52832DK and nRF9160DK</title><link>https://devzone.nordicsemi.com/thread/305371?ContentTypeID=1</link><pubDate>Sat, 17 Apr 2021 14:15:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ffdd5e5-dee3-4cb8-a709-c1c70d8008a4</guid><dc:creator>Siang</dc:creator><description>&lt;p&gt;No, I have removed the scan filter as you said and also tried to flash both&amp;nbsp;&lt;em&gt;hci_lpuart&amp;nbsp;&lt;/em&gt;and&amp;nbsp;&lt;em&gt;peripheral_uart&amp;nbsp;&lt;/em&gt;on the nRF52832 DK but it didn&amp;#39;t work because they couldn&amp;#39;t connect to the nRF9160 DK. I am using NCS to do all the flashing.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Previously, I have also tried to flash (NCS)&amp;nbsp;&lt;em&gt;central_uart&amp;nbsp;&lt;/em&gt;and&amp;nbsp;&lt;em&gt;peripheral_uart&amp;nbsp;&lt;/em&gt;on nRF52832 DK and nRF9160 DK respectively and it worked well. I could send data through the BLE connection using HTerm. Is it possible for me to use&amp;nbsp;&lt;em&gt;central_uart&amp;nbsp;&lt;/em&gt;instead of the&amp;nbsp;&lt;em&gt;hci_lpuart&lt;/em&gt; on the nRF52840 on the nRF9160 DK for the BLE connection and data transferring? I will also need to send the data to the cloud as I am planning to build a cloud gateway for my sensors.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Communication between nRF52832DK and nRF9160DK</title><link>https://devzone.nordicsemi.com/thread/305312?ContentTypeID=1</link><pubDate>Fri, 16 Apr 2021 13:49:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34079c5b-6215-4db5-be6b-4de5ad2bb1d2</guid><dc:creator>Hakon</dc:creator><description>[quote user="Siang"]So how exactly can I send messages/data from an nRF52832 DK to nRF9160DK?[/quote]
&lt;p&gt;Are you able to get a BLE connection to an nRF52832 DK? The LTE BLE gateway sample scans for thingy:52 peripherals by default, so you would need to change or remove the &lt;a href="https://github.com/Rallare/fw-nrfconnect-nrf/blob/nrf9160_samples/samples/nrf9160/lte_ble_gateway/src/ble.c#L188"&gt;scan filter&lt;/a&gt; so it will find your device. The sample code should demonstrate quite well how to receive BLE data on the central device. In order to advise you on how to send the data from the nRF52832 I would need to know if you are using NCS or the nRF5 SDK for that device.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Communication between nRF52832DK and nRF9160DK</title><link>https://devzone.nordicsemi.com/thread/304559?ContentTypeID=1</link><pubDate>Tue, 13 Apr 2021 13:15:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:015ebc37-f29d-402b-ac66-4b8b3112ee32</guid><dc:creator>Siang</dc:creator><description>&lt;p&gt;Hello Hakon, thank you for the reply. I have been testing the LTE sensor gateway sample that you suggested. I could use the cloud stuff so I just left it there. I have flashed &lt;em&gt;hci_lpuart&lt;/em&gt;&amp;nbsp;on the nRF52840 board controller and also flashed &lt;em&gt;lte_ble_gateway &lt;/em&gt;on the nRF9160 main controller. Everything seems to work fine. So how exactly can I send messages/data from an nRF52832 DK to nRF9160DK?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Communication between nRF52832DK and nRF9160DK</title><link>https://devzone.nordicsemi.com/thread/302701?ContentTypeID=1</link><pubDate>Wed, 31 Mar 2021 10:51:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df0c3162-6b8d-4f03-a0b4-2eee5a565f84</guid><dc:creator>Hakon</dc:creator><description>[quote user="Siang"]Do you mean ble_app_uart_c and ble_app_uart? I have flashed them into the boards and not sure if they&amp;#39;re working.[/quote]
&lt;p&gt;&amp;nbsp;None of these samples are supported on nrf9160 according to documentation. You can try with the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/nrf9160/lte_ble_gateway/README.html#nrf9160-lte-sensor-gateway"&gt;LTE sensor gateway sample&lt;/a&gt;, and remove the cloud stuff if you don&amp;#39;t need it. Remember to flash the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/hci_lpuart/README.html"&gt;HCI uart&lt;/a&gt; on the nrf52840 board controller.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Communication between nRF52832DK and nRF9160DK</title><link>https://devzone.nordicsemi.com/thread/302537?ContentTypeID=1</link><pubDate>Tue, 30 Mar 2021 10:11:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f310c723-04c6-46cf-8591-23d9a6add5d8</guid><dc:creator>Siang</dc:creator><description>&lt;p&gt;I have tested with the nRF Connect app. Basically, the UART works on the nRF52832 DK but not on the nRF9160 DK. Can I know which code should I flash on them in order to connect them together via Bluetooth?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Communication between nRF52832DK and nRF9160DK</title><link>https://devzone.nordicsemi.com/thread/301854?ContentTypeID=1</link><pubDate>Thu, 25 Mar 2021 10:36:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40147e0d-c4c2-41ee-8d08-a5a123a9fe8a</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;&lt;a href="https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Connect-for-desktop"&gt;www.nordicsemi.com/.../nRF-Connect-for-desktop&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Connect-for-mobile"&gt;https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Connect-for-mobile&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1616668559846v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Communication between nRF52832DK and nRF9160DK</title><link>https://devzone.nordicsemi.com/thread/301754?ContentTypeID=1</link><pubDate>Wed, 24 Mar 2021 15:56:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:309330e8-f9b7-4444-8be3-c3dcced45a0f</guid><dc:creator>Siang</dc:creator><description>&lt;p&gt;Sorry I&amp;#39;m not sure how to check that using nRF Connect app. Could you please explain more?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Communication between nRF52832DK and nRF9160DK</title><link>https://devzone.nordicsemi.com/thread/301734?ContentTypeID=1</link><pubDate>Wed, 24 Mar 2021 15:18:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18f45160-58d7-4089-b32b-8ea1fe766b51</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;The key thing with this kind of stuff is not to try to do both ends at once - otherwise, when you get problems, you don&amp;#39;t know which end has the problem. Or it could be both.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.avrfreaks.net/comment/3104576#comment-3104576"&gt;www.avrfreaks.net/.../3104576&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This is why people like Nordic provide things like the nRF Connect app - it gives you a known-good platform to check against.&lt;/p&gt;
&lt;p&gt;So check each end with&amp;nbsp;&lt;span&gt;the nRF Connect app first - to verify that each end is working on its own.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Communication between nRF52832DK and nRF9160DK</title><link>https://devzone.nordicsemi.com/thread/301727?ContentTypeID=1</link><pubDate>Wed, 24 Mar 2021 15:03:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57c7a73a-1fe8-4504-95af-dbdb7cb3ba10</guid><dc:creator>Siang</dc:creator><description>&lt;p&gt;Do you mean ble_app_uart_c and ble_app_uart? I have flashed them into the boards and not sure if they&amp;#39;re working.&lt;/p&gt;
&lt;p&gt;I have tried previously with ble_app_blinky_c on 52832 DK and ble_app_blinky on 9160 DK. I can see that the LED 2 on the 52832 DK turned on when it is connecting to the 9160 DK but LED 3 never turned on. Does it mean that the connection wasn&amp;#39;t complete?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Communication between nRF52832DK and nRF9160DK</title><link>https://devzone.nordicsemi.com/thread/301714?ContentTypeID=1</link><pubDate>Wed, 24 Mar 2021 14:32:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e292b4f7-7bc7-4132-bd15-3d15c8d443c5</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;One of them will have to be a Central, and one will have to be a Peripheral.&lt;/p&gt;
&lt;p&gt;Check the SDKs for examples.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>