<?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>Modifying lte_ble_gateway to connect with nRF52DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/78613/modifying-lte_ble_gateway-to-connect-with-nrf52dk</link><description>Hello, 
 I want to modify the lte_ble_gateway app (nRF connect SDK 1.6.0) to connect with the nRF52DK advertising through the ble_app_uart (nRF 17.0.2) application. The lte_ble_gateway typically connects with the thingy52 but I wasn&amp;#39;t able to find what</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 03 Sep 2021 02:56:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/78613/modifying-lte_ble_gateway-to-connect-with-nrf52dk" /><item><title>RE: Modifying lte_ble_gateway to connect with nRF52DK</title><link>https://devzone.nordicsemi.com/thread/327870?ContentTypeID=1</link><pubDate>Fri, 03 Sep 2021 02:56:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:217ab352-9455-4c46-a214-bb6920aa062a</guid><dc:creator>jake11212</dc:creator><description>&lt;p&gt;I&amp;#39;m not sure what happened but it doesn&amp;#39;t seem like this ticket will be replied to so I reformatted the info in a new ticket and closed this one.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modifying lte_ble_gateway to connect with nRF52DK</title><link>https://devzone.nordicsemi.com/thread/325594?ContentTypeID=1</link><pubDate>Wed, 18 Aug 2021 21:25:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e4c66ce-3e82-4bf8-8e3c-88b1bf3d5774</guid><dc:creator>jake11212</dc:creator><description>&lt;p&gt;I&amp;#39;m not sure if I&amp;#39;m understanding from that previous case but it looked like the solution was building the central_hids example to the 9160DK_9160ns target.&amp;nbsp; Does this overwrite the lte_ble_gateway?&amp;nbsp; I also didn&amp;#39;t see an overlay file in the lte_ble_gateway folder so I didn&amp;#39;t see how to implement your solution.&amp;nbsp; I also built the ble_application that I need to connect in the SDK17.0.2 and I don&amp;#39;t think it would be trivial to rebuild it on the ncs.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The lte_ble_gateway connects to the thingy 52 based on its service and characteristic UUIDs.&amp;nbsp; Could I&amp;nbsp;just change these UUID to the ble_uart service UUID and RX/TX UUID that ble_app_uart uses?&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The NUS_BASE_UUID is:&amp;nbsp;0x9E, 0xCA, 0xDC, 0x24, 0x0E, 0xE5, 0xA9, 0xE0, 0x93, 0xF3, 0xA3, 0xB5, 0x00, 0x00, 0x40, 0x6E&lt;/p&gt;
&lt;p&gt;and its characteristics are:&lt;/p&gt;
&lt;p&gt;BLE_UUID_NUS_TX_CHARACTERISTIC 0x0003&lt;br /&gt;BLE_UUID_NUS_RX_CHARACTERISTIC 0x0002&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Can I directly swap the NUS BASE UUID for the BT_UUID_THINGY in the lte_ble_gateway sample for the thingy52 to cause it to detect the nordic uart service?&amp;nbsp; &amp;nbsp;For instance by changing this code in the ble.c file for lte_ble_gateway: And is there a UUID for the nRF52DK device?&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/* Thinghy advertisement UUID */
#define BT_UUID_THINGY                                                         \
	BT_UUID_DECLARE_128(0x42, 0x00, 0x74, 0xA9, 0xFF, 0x52, 0x10, 0x9B,    \
			    0x33, 0x49, 0x35, 0x9B, 0x00, 0x01, 0x68, 0xEF)

/* Thingy service UUID */
#define BT_UUID_TMS                                                            \
	BT_UUID_DECLARE_128(0x42, 0x00, 0x74, 0xA9, 0xFF, 0x52, 0x10, 0x9B,    \
			    0x33, 0x49, 0x35, 0x9B, 0x00, 0x04, 0x68, 0xEF)

/* Thingy characteristic UUID */
#define BT_UUID_TOC                                                            \
	BT_UUID_DECLARE_128(0x42, 0x00, 0x74, 0xA9, 0xFF, 0x52, 0x10, 0x9B,    \
			    0x33, 0x49, 0x35, 0x9B, 0x03, 0x04, 0x68, 0xEF)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I also noticed that the NUS_BASE_UUID is 128 bits but the TX and RX characteristics are in a different format from the characteristics on the ble.c file.&amp;nbsp; How do I convert&amp;nbsp;the TX/RX characteristics to be compatible in this format?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And what changes need to be made on the advertising side to allow it to be detected and send data through directed advertising?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modifying lte_ble_gateway to connect with nRF52DK</title><link>https://devzone.nordicsemi.com/thread/325459?ContentTypeID=1</link><pubDate>Wed, 18 Aug 2021 10:56:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b6ac095-c4a0-470b-9c31-a55da92fc2d1</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Have a look at my answer from an &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/63976/connecting-the-nrf9160dk-to-the-nrf52833-over-bluetooth/264497#264497"&gt;earlier case here&lt;/a&gt;.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Remember, there are two devices on the nRF9160DK, one being the nRF9160 (cellular LTE device) and the other is the nRF52840 (BLE, board controller).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modifying lte_ble_gateway to connect with nRF52DK</title><link>https://devzone.nordicsemi.com/thread/325370?ContentTypeID=1</link><pubDate>Tue, 17 Aug 2021 18:23:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0141958d-2090-486b-8dcd-c4f3a8138e62</guid><dc:creator>jake11212</dc:creator><description>&lt;p&gt;Okay, so I wanted to use directed advertising on the peripheral device (nRF52DK using a modified version of the ble_app_uart example from SDK 17.0.2) to connect only to the 9160DK.&amp;nbsp; From my understanding I need to alter the GAP parameters on the ble_app_uart application to change its method of advertising to directed advertising, and I also need to give it the address of the 9160DK.&amp;nbsp; I then need to change the advertising UUID on the lte_ble_gateway_ble.c file to match the ble_app_uart application&amp;#39;s advertising UUID. Is this correct?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;How do I get the address for the 9160DK to give it to the nRF52DK running the ble_app_uart?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;How do I change the advertising mode to directed advertising?&lt;/p&gt;
&lt;p&gt;Where do I input the 9160DK&amp;#39;s address within the ble_app_uart so that it recognizes it as the client for directed advertising?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modifying lte_ble_gateway to connect with nRF52DK</title><link>https://devzone.nordicsemi.com/thread/325109?ContentTypeID=1</link><pubDate>Mon, 16 Aug 2021 12:03:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f741f5b2-2dbb-42f7-b722-743001940f69</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;The &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.6.1/nrf/samples/nrf9160/lte_ble_gateway/README.html#nrf9160-lte-sensor-gateway"&gt;nRF9160: LTE Sensor Gateway&amp;nbsp;sample&lt;/a&gt;&amp;nbsp;connects to&amp;nbsp;Thingy:52 running its original SW from the&amp;nbsp;Thingy:52-SDK. It will scan for BT_UUID_THINGY matching the Thingy:52 UUID. This is configured in &lt;em&gt;nrf\samples\nrf9160\lte_ble_gateway\src\ble.c&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>