<?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>Identification of connected APP in NRF52840 devices.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/81173/identification-of-connected-app-in-nrf52840-devices</link><description>Hello Everyone, 
 
 I am a beginner for working on Nordic devices. I have one query. I have to build a firmware in NRF52840. Now 2 different apps will be connecting to this NRF52840. I will be configuring NRF52840 as a peripheral device. Now there are</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 25 Nov 2021 08:30:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/81173/identification-of-connected-app-in-nrf52840-devices" /><item><title>RE: Identification of connected APP in NRF52840 devices.</title><link>https://devzone.nordicsemi.com/thread/340657?ContentTypeID=1</link><pubDate>Thu, 25 Nov 2021 08:30:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85d5c4f7-acd4-4659-aa7f-b167dbcc4159</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;If you are trying to advertise two 128 bit UUID&amp;#39;s in the advertisement packet you are probably overflowing the maximum allowed size of the packet. Try moving one of them to the scan response packet. In addition you should look at the error message you are getting to see what is failing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Identification of connected APP in NRF52840 devices.</title><link>https://devzone.nordicsemi.com/thread/340533?ContentTypeID=1</link><pubDate>Wed, 24 Nov 2021 12:10:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d6d8e58-4bde-4785-8d64-b29c7152e212</guid><dc:creator>sne_333</dc:creator><description>&lt;p&gt;I am going step by step. I created 2 services: -&lt;/p&gt;
&lt;p&gt;Service 1&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;#define BLE_UUID_RCBR_SERVICE 0xD6E2 /**&amp;lt; The UUID of the R3charge Borrower Service. */&lt;/p&gt;
&lt;p&gt;#define RCBR_SERVICE_UUID_TYPE BLE_UUID_TYPE_VENDOR_BEGIN /**&amp;lt; UUID type for the RCBR Service (vendor specific). */&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;#define BLE_UUID_RCBR_NOTIF_CHARACTERISTIC 0xD7E2 //0xD7E2 /**&amp;lt; The UUID of the Notification Characteristic. */&lt;br /&gt;#define BLE_UUID_RCBR_SETTING_CHARACTERISTIC 0xD7E4 //0xD7E4 /**&amp;lt; The UUID of the Setting Characteristic. */&lt;/p&gt;
&lt;p&gt;#define BLE_RCBR_MAX_NOTIF_CHAR_LEN BLE_RCBR_MAX_DATA_LEN /**&amp;lt; Maximum length of the RX Characteristic (in bytes). */&lt;br /&gt;#define BLE_RCBR_MAX_SETTING_CHAR_LEN BLE_RCBR_MAX_DATA_LEN /**&amp;lt; Maximum length of the TX Characteristic (in bytes). */&lt;/p&gt;
&lt;p&gt;#define RCBR_BASE_UUID {{0x77, 0x9a, 0x0c, 0x20, 0x00, 0x08, 0x6e, 0xaa, 0xe3, 0x11, 0x76, 0x34, 0xe1, 0xd6, 0x48, 0x75}} /**&amp;lt; Used vendor specific UUID. */&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;#define OPCODE_LENGTH 1&lt;br /&gt;#define HANDLE_LENGTH 2&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;service 2:&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;#define BLE_UUID_RCLR_SERVICE 0xD6E3 /**&amp;lt; The UUID of the R3charge Lender Service. */&lt;/p&gt;
&lt;p&gt;#define RCLR_SERVICE_UUID_TYPE BLE_UUID_TYPE_VENDOR_BEGIN /**&amp;lt; UUID type for the RCLR Service (vendor specific). */&lt;/p&gt;
&lt;p&gt;#define BLE_UUID_RCLR_NOTIF_CHARACTERISTIC 0xD7E3 /**&amp;lt; The UUID of the Notification Characteristic. */&lt;br /&gt;#define BLE_UUID_RCLR_SETTING_CHARACTERISTIC 0xD7E5 /**&amp;lt; The UUID of the Setting Characteristic. */&lt;/p&gt;
&lt;p&gt;#define BLE_RCLR_MAX_NOTIF_CHAR_LEN BLE_RCLR_MAX_DATA_LEN /**&amp;lt; Maximum length of the RX Characteristic (in bytes). */&lt;br /&gt;#define BLE_RCLR_MAX_SETTING_CHAR_LEN BLE_RCLR_MAX_DATA_LEN /**&amp;lt; Maximum length of the TX Characteristic (in bytes). */&lt;/p&gt;
&lt;p&gt;#define RCLR_BASE_UUID {{0x66, 0x9a, 0x0c, 0x20, 0x00, 0x08, 0x6e, 0xaa, 0xe3, 0x11, 0x76, 0x34, 0xe1, 0xd6, 0x48, 0x75}} /**&amp;lt; Used vendor specific UUID. */&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;#define OPCODE_LENGTH 1&lt;br /&gt;#define HANDLE_LENGTH 2&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;MY memory settings are as follows:-&amp;nbsp;&lt;/p&gt;
&lt;p&gt;FLASH_PH_START=0x0&lt;/p&gt;
&lt;p&gt;FLASH_PH_SIZE=0x100000&lt;/p&gt;
&lt;p&gt;RAM_PH_START=0x20000000&lt;/p&gt;
&lt;p&gt;RAM_PH_SIZE=0x40000&lt;/p&gt;
&lt;p&gt;FLASH_START=0x27000&lt;/p&gt;
&lt;p&gt;FLASH_SIZE=0xd9000&lt;/p&gt;
&lt;p&gt;RAM_START=0x200059A4&lt;/p&gt;
&lt;p&gt;RAM_SIZE=0x3a65C&lt;/p&gt;
&lt;p&gt;===========================&lt;/p&gt;
&lt;p&gt;FLASH RX 0x0 0x100000;RAM1 RWX 0x20000000 0x40000&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am getting error at&amp;nbsp;ble_advertising_init function. I have set&amp;nbsp;NRF_SDH_BLE_VS_UUID_COUNT = 2 but still i am getting error. What might be the issue?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Identification of connected APP in NRF52840 devices.</title><link>https://devzone.nordicsemi.com/thread/339773?ContentTypeID=1</link><pubDate>Fri, 19 Nov 2021 09:15:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7fd5c6d-5970-436c-8b0c-88861e59398b</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;You can configure different security levels for different services. So it can be possible to require Authentication for only one service. But if you are planning to require bonding for the other service as well, you need to remember that the security level is &amp;quot;negotiated&amp;quot; between the devices, so after they exchange capabilities they will use the highest possible security level based on those capabilities. If you control both ends of the link I guess you could have an open characteristic that you use to tell the peer which capabilities it should use during bonding, but not sure why you would want that...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Identification of connected APP in NRF52840 devices.</title><link>https://devzone.nordicsemi.com/thread/339737?ContentTypeID=1</link><pubDate>Fri, 19 Nov 2021 06:26:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb72c5d6-6a6f-4174-b844-259696638504</guid><dc:creator>sne_333</dc:creator><description>&lt;p&gt;Yes Thank you so much. I was able to test the Glucose application in sdk15. Sdk 17 I got compilation errors. I understand how the authentication works. I have 2 services for 2 respective apps in my project. So can I add the authentication only for one service in the code?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Identification of connected APP in NRF52840 devices.</title><link>https://devzone.nordicsemi.com/thread/339267?ContentTypeID=1</link><pubDate>Tue, 16 Nov 2021 14:42:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f855f68c-0ae0-4a02-8840-113a9de32626</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Since our DK doesn&amp;#39;t have a display or keyboard most example does not enable the Authentication feature. but you could look at the nRF5_SDK_17.1.0_ddde560\examples\ble_peripheral\ble_app_gls example. and remember to connect to the comport to see the passkey. See &lt;span&gt;&lt;a title="Glucose Application" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/ble_sdk_app_gls.html?cp=8_1_4_2_2_11"&gt;Glucose Application&lt;/a&gt; for additional details.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Identification of connected APP in NRF52840 devices.</title><link>https://devzone.nordicsemi.com/thread/339120?ContentTypeID=1</link><pubDate>Tue, 16 Nov 2021 05:50:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58b50f9b-7b8b-4e44-a1f3-911ddd63a520</guid><dc:creator>sne_333</dc:creator><description>&lt;p&gt;Hi I tried to test the example you shared. The NRF connect app still gets connected without any authentication. Please help me on this.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I was not able to compile the sdk17 version ble_app_hrs. It gave me some errors.&lt;/p&gt;
&lt;p&gt;tried testing with sdk15 version code. Still no authentication.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Identification of connected APP in NRF52840 devices.</title><link>https://devzone.nordicsemi.com/thread/336508?ContentTypeID=1</link><pubDate>Thu, 28 Oct 2021 13:35:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7dea41e3-886e-466f-b7c1-9daa3fa95cee</guid><dc:creator>fhfs</dc:creator><description>&lt;p&gt;The hrs example has multiple services enabled and uses bonding and encryption.&lt;br /&gt;nRF5_SDK_17.0.2_d674dde\examples\ble_peripheral\ble_app_hrs&lt;br /&gt;&lt;br /&gt;So lets say App A Connects to the device without bonding and encryption and reads/writes from an unprotected service/characteristic.&lt;/p&gt;
&lt;p&gt;App B connects and bonds to the device and reads/writes to a protected service/characteristic.&lt;/p&gt;
&lt;p&gt;App B bonding to the device will cause a &amp;quot;BLE_GAP_EVT_AUTH_STATUS&amp;quot; event with status success. Here you will know that App B is connected and bonded.&lt;/p&gt;
&lt;p&gt;Maybe it might be better to actually tell the device what App is connecting to the device, through writing to a characteristic. To avoid the confusion if App A also bonds.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Identification of connected APP in NRF52840 devices.</title><link>https://devzone.nordicsemi.com/thread/336411?ContentTypeID=1</link><pubDate>Thu, 28 Oct 2021 10:41:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a7cecb5-ba98-4091-811d-3a1acac2dfb7</guid><dc:creator>sne_333</dc:creator><description>&lt;p&gt;okay.. Thanks..&lt;/p&gt;
&lt;p&gt;for ble authentication can you suggest me some code examples to see?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Identification of connected APP in NRF52840 devices.</title><link>https://devzone.nordicsemi.com/thread/336407?ContentTypeID=1</link><pubDate>Thu, 28 Oct 2021 10:26:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06657124-c5d4-405f-af65-7530b5909722</guid><dc:creator>fhfs</dc:creator><description>&lt;p&gt;Ofcourse&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Identification of connected APP in NRF52840 devices.</title><link>https://devzone.nordicsemi.com/thread/336401?ContentTypeID=1</link><pubDate>Thu, 28 Oct 2021 10:09:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:174933fc-9a82-453b-bd17-2b30c38501eb</guid><dc:creator>sne_333</dc:creator><description>&lt;p&gt;Okay but can a peripheral device connect to two apps at a time?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Identification of connected APP in NRF52840 devices.</title><link>https://devzone.nordicsemi.com/thread/336344?ContentTypeID=1</link><pubDate>Thu, 28 Oct 2021 08:05:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c41faa1-f173-4ce6-96a9-cb19f582dac7</guid><dc:creator>fhfs</dc:creator><description>&lt;p&gt;You kind of already answered your own question.&lt;/p&gt;
&lt;p&gt;Identify by BLE authentication or identify by service. Both solutions seem ok&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>