<?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>Central HIDS example can&amp;#39;t connect with BLE HOGP mouse</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/92078/central-hids-example-can-t-connect-with-ble-hogp-mouse</link><description>Hi, I tested Central HIDS example in nRF Connect SDK 2.1.0 with NRF52840DK. The example works with my BLE keyboard, but does not work with my BLE mice. The followings are messages for the BLE mice. How can I modify the example to connect them? The first</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 11 Oct 2022 23:19:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/92078/central-hids-example-can-t-connect-with-ble-hogp-mouse" /><item><title>RE: Central HIDS example can't connect with BLE HOGP mouse</title><link>https://devzone.nordicsemi.com/thread/390338?ContentTypeID=1</link><pubDate>Tue, 11 Oct 2022 23:19:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1b6f9c1-54b9-4e51-9c25-2bc89fc55dc9</guid><dc:creator>tadakado</dc:creator><description>&lt;p&gt;Thank you for your comment. I&amp;#39;ll take a look at the GATT Discovery Manager. Hopefully, it&amp;nbsp;will&amp;nbsp;handle HID peripherals similar to other OSs in the future release.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Central HIDS example can't connect with BLE HOGP mouse</title><link>https://devzone.nordicsemi.com/thread/389641?ContentTypeID=1</link><pubDate>Thu, 06 Oct 2022 13:16:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6dc0dd6c-676b-4d84-8171-6d899af4bddc</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;The central HIDS sample use the GATT Discovery Manager which handles the whole discovery procedure. I have not got to the bottom of this, but it seems you would have to&amp;nbsp;replace the this and do discovery yourself&amp;nbsp;without the discovery manager. I do not have an implementation of that, though, unfortunately. It could also be that this can be worked around in another way that I have not thought about..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Central HIDS example can't connect with BLE HOGP mouse</title><link>https://devzone.nordicsemi.com/thread/389287?ContentTypeID=1</link><pubDate>Tue, 04 Oct 2022 22:51:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10726ce1-fc25-4e4d-b24d-d9f42c47d9d2</guid><dc:creator>tadakado</dc:creator><description>&lt;p&gt;Sure, no problem. Thank you for your time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Central HIDS example can't connect with BLE HOGP mouse</title><link>https://devzone.nordicsemi.com/thread/389233?ContentTypeID=1</link><pubDate>Tue, 04 Oct 2022 14:02:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:316dc4ed-ab1c-44f9-9ab4-caab567b041a</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am sorry for the delay. I need some more time to look into this but will get back to you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Central HIDS example can't connect with BLE HOGP mouse</title><link>https://devzone.nordicsemi.com/thread/388844?ContentTypeID=1</link><pubDate>Sat, 01 Oct 2022 07:44:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67f92254-94e7-4a91-a1e7-f7f7420cd584</guid><dc:creator>tadakado</dc:creator><description>&lt;p&gt;I found that the error comes from L417 &amp;quot;discovery_process_characteristic&amp;quot; in gatt_dm.c &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v2.1.0/subsys/bluetooth/gatt_dm.c#L417"&gt;https://github.com/nrfconnect/sdk-nrf/blob/v2.1.0/subsys/bluetooth/gatt_dm.c#L417&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, this is not the reason why the Central HIDS example does not work with ELECOM mouse. Below is&amp;nbsp;a list of attributes stored during the connection. In Logitech, all handles are stored sequentially, while ELECOM lacks some handles. This is a variation of behavior among BLE peripherals.&lt;/p&gt;
&lt;p&gt;Logitech&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;### (bt_gatt_dm_attr) Attr store, pos: 0, handle: 0x001f, uuid: 0x2800, uuid_size: 4
### (bt_gatt_dm_attr) Attr store, pos: 1, handle: 0x0020, uuid: 0x2803, uuid_size: 4
### (bt_gatt_dm_attr) Attr store, pos: 2, handle: 0x0021, uuid: 0x2a4a, uuid_size: 4
### (bt_gatt_dm_attr) Attr store, pos: 3, handle: 0x0022, uuid: 0x2803, uuid_size: 4
### (bt_gatt_dm_attr) Attr store, pos: 4, handle: 0x0023, uuid: 0x2a33, uuid_size: 4
### (bt_gatt_dm_attr) Attr store, pos: 5, handle: 0x0024, uuid: 0x2902, uuid_size: 4
### (bt_gatt_dm_attr) Attr store, pos: 6, handle: 0x0025, uuid: 0x2803, uuid_size: 4
### (bt_gatt_dm_attr) Attr store, pos: 7, handle: 0x0026, uuid: 0x2a4b, uuid_size: 4
### (bt_gatt_dm_attr) Attr store, pos: 8, handle: 0x0027, uuid: 0x2803, uuid_size: 4
### (bt_gatt_dm_attr) Attr store, pos: 9, handle: 0x0028, uuid: 0x2a4d, uuid_size: 4
### (bt_gatt_dm_attr) Attr store, pos: 10, handle: 0x0029, uuid: 0x2902, uuid_size: 4
### (bt_gatt_dm_attr) Attr store, pos: 11, handle: 0x002a, uuid: 0x2908, uuid_size: 4
### (bt_gatt_dm_attr) Attr store, pos: 12, handle: 0x002b, uuid: 0x2803, uuid_size: 4
### (bt_gatt_dm_attr) Attr store, pos: 13, handle: 0x002c, uuid: 0x2a4d, uuid_size: 4
### (bt_gatt_dm_attr) Attr store, pos: 14, handle: 0x002d, uuid: 0x2902, uuid_size: 4
### (bt_gatt_dm_attr) Attr store, pos: 15, handle: 0x002e, uuid: 0x2908, uuid_size: 4
### (bt_gatt_dm_attr) Attr store, pos: 16, handle: 0x002f, uuid: 0x2803, uuid_size: 4
### (bt_gatt_dm_attr) Attr store, pos: 17, handle: 0x0030, uuid: 0x2a4d, uuid_size: 4
### (bt_gatt_dm_attr) Attr store, pos: 18, handle: 0x0031, uuid: 0x2908, uuid_size: 4
### (bt_gatt_dm_attr) Attr store, pos: 19, handle: 0x0032, uuid: 0x2803, uuid_size: 4
### (bt_gatt_dm_attr) Attr store, pos: 20, handle: 0x0033, uuid: 0x2a4c, uuid_size: 4
### (bt_gatt_dm_attr) Attr store, pos: 21, handle: 0x0034, uuid: 0x2803, uuid_size: 4
### (bt_gatt_dm_attr) Attr store, pos: 22, handle: 0x0035, uuid: 0x2a4e, uuid_size: 4

### (parse_characteristic) handle: 0x0020, uuid: 2a4a, properties: 0x02
### (bt_gatt_dm_attr) look for an attr with handle: 0x0020
### return: 1, handle:0x0020
===&amp;gt; It find the DM ently
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;ELECOM&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;### (bt_gatt_dm_attr) Attr store, pos: 0, handle: 0x0017, uuid: 0x2800, uuid_size: 4
### (bt_gatt_dm_attr) Attr store, pos: 1, handle: 0x0019, uuid: 0x2a4e, uuid_size: 4
### (bt_gatt_dm_attr) Attr store, pos: 2, handle: 0x001b, uuid: 0x2a4d, uuid_size: 4
### (bt_gatt_dm_attr) Attr store, pos: 3, handle: 0x001c, uuid: 0x2902, uuid_size: 4
### (bt_gatt_dm_attr) Attr store, pos: 4, handle: 0x001d, uuid: 0x2908, uuid_size: 4
### (bt_gatt_dm_attr) Attr store, pos: 5, handle: 0x001f, uuid: 0x2a4d, uuid_size: 4
### (bt_gatt_dm_attr) Attr store, pos: 6, handle: 0x0020, uuid: 0x2908, uuid_size: 4
### (bt_gatt_dm_attr) Attr store, pos: 7, handle: 0x0022, uuid: 0x2a4b, uuid_size: 4
### (bt_gatt_dm_attr) Attr store, pos: 8, handle: 0x0024, uuid: 0x2a33, uuid_size: 4
### (bt_gatt_dm_attr) Attr store, pos: 9, handle: 0x0025, uuid: 0x2902, uuid_size: 4
### (bt_gatt_dm_attr) Attr store, pos: 10, handle: 0x0027, uuid: 0x2a4a, uuid_size: 4
### (bt_gatt_dm_attr) Attr store, pos: 11, handle: 0x0029, uuid: 0x2a4c, uuid_size: 4

### (parse_characteristic) handle: 0x0018, uuid: 2a4e, properties: 0x06
### (bt_gatt_dm_attr) look for an attr with handle: 0x0018
===&amp;gt; It fails as handle 0x0018 does not exist.
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Why, this happens? I capture BLE packets (1) ELECOM + Central HIDS example (2) ELECOM + iPad. The example reads GATT database by &amp;quot;Find Information 0x04&amp;quot;, while iPad does by &amp;quot;Read by Type 0x08&amp;quot;.&amp;nbsp;(See details in the attached files. You need filter ATT packets by &amp;quot;btatt&amp;quot;.) I also found that Windows 10 also use &amp;quot;Read by Type&amp;quot;. This causes the lack of information in the Central HIDS example.&lt;/p&gt;
&lt;p&gt;So, I wan to change the method to read GATT database by not &amp;quot;Find Information&amp;quot; but &amp;quot;Read by Type&amp;quot; like iPad does. How can I do this?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/elecom2.pcapng"&gt;devzone.nordicsemi.com/.../elecom2.pcapng&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ipad_5F00_elecom.pcapng"&gt;devzone.nordicsemi.com/.../ipad_5F00_elecom.pcapng&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Central HIDS example can't connect with BLE HOGP mouse</title><link>https://devzone.nordicsemi.com/thread/388737?ContentTypeID=1</link><pubDate>Fri, 30 Sep 2022 10:48:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:641d007e-49ea-47c5-ad96-cb5ac6c3adf1</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I am not able to pinpoint the exact issue from here. Have you attempted to debug to see exactly where the error comes from? Which API call returns -ENOMEM, and how far down can you track it? That should give a good indication on what needs to be adjusted.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Central HIDS example can't connect with BLE HOGP mouse</title><link>https://devzone.nordicsemi.com/thread/388593?ContentTypeID=1</link><pubDate>Thu, 29 Sep 2022 13:43:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:651b65c4-8d7f-4abb-8f97-ace527a4fbd6</guid><dc:creator>tadakado</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This might be more detailed information for ELECOM mouse errors.&lt;/p&gt;
&lt;p&gt;(1) Sniffer trace (decrypted) (2) Call stack (3) Debug log&lt;/p&gt;
&lt;p&gt;I guess I need to set a larger buffer size somewhere as the last part of the log below says&amp;nbsp;&lt;/p&gt;
&lt;p&gt;(BT_MAX_PAIRED, BT_GATT_DM_MAX_ATTRS,&amp;nbsp;BT_HOGP_REPORTS_MAX are not the answer to resolve the problem)&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;D: Getting net_buf from queue
D: buf 0x2000ca54 type 3 len 31
D: buf 0x2000ca54
D: handle 0 len 27 flags 2
D: handle 0 ref 2 -&amp;gt; 3
D: conn 0x20001b58
D: tx 0x20003438 cb 0x1aba9 user_data 0x20003720
D: conn 0x20001b58 chan 0x20009cac
D: chan 0x20009ca8
D: chan 0x20009ca8 chan-&amp;gt;req 0x2000cd30
D: handle 0 len 27 flags 02
D: First, len 27 final 23
D: Successfully parsed 27 byte L2CAP packet
D: Packet for CID 4 len 23
D: chan 0x20009cac len 23
D: Received ATT chan 0x20009ca8 code 0x09 len 22
D:
D: chan 0x20009ca8 err 0x00 len 22: 0718000619004e2a1a00121b004d2a1e000a1f004d2a
D: req 0x2000cd30
D: err 0x00
D: handle 0x0018 uuid 2a4e properties 0x06
The discovery procedure failed with -3&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/2656.elecom.pcapng"&gt;devzone.nordicsemi.com/.../2656.elecom.pcapng&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/7041.callstack.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/elecom_5F00_log.txt"&gt;devzone.nordicsemi.com/.../elecom_5F00_log.txt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Central HIDS example can't connect with BLE HOGP mouse</title><link>https://devzone.nordicsemi.com/thread/387961?ContentTypeID=1</link><pubDate>Mon, 26 Sep 2022 13:57:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f9d4494-0535-4ef2-bb56-0a49beb0e40d</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The sniffer can both get packets in a connection and&amp;nbsp;decrypt encrypted packets (see &lt;a href="https://infocenter.nordicsemi.com/topic/ug_sniffer_ble/UG/sniffer_ble/intro.html"&gt;nRF Sniffer documentation&lt;/a&gt; for details). That is needed for it to tell us anything useful, but it may not be relevant in this case.&lt;/p&gt;
&lt;p&gt;I suggest focusing on that bt_conn_set_security() returns -ENOMEM. Did you try to increase&amp;nbsp;CONFIG_BT_MAX_PAIRED? Or can you try to dig deeper with a debugger to pinpoint&amp;nbsp; more closely where the error originates?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Central HIDS example can't connect with BLE HOGP mouse</title><link>https://devzone.nordicsemi.com/thread/387753?ContentTypeID=1</link><pubDate>Sat, 24 Sep 2022 12:41:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8879315-5c40-4f7e-b5bb-8fca2b927d89</guid><dc:creator>tadakado</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The sniffer traces with data PDU are attached. Sorry for incomplete data in the previous post.&lt;/p&gt;
&lt;p&gt;Also, below is the logs for different BT_MAX_PAIRED settings.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;### CONFIG_BT_MAX_PAIRED=1

# Elecom

Filters matched on UUID 0x1812.
Address: F1:C9:30:38:04:00 (random) connectable: yes
Connected: F1:C9:30:38:04:00 (random)
Failed to set security: -12
The discovery procedure failed with -3
Disconnected: F1:C9:30:38:04:00 (random) (reason 8)

# SANWA

Filters matched on UUID 0x1812.
Address: D0:F0:C8:CA:EF:30 (random) connectable: yes
Connected: D0:F0:C8:CA:EF:30 (random)
Failed to set security: -12
The service could not be found during the discovery
Disconnected: D0:F0:C8:CA:EF:30 (random) (reason 62)

# CONFIG_BT_MAX_PAIRED=2

# Elecom

Filters matched on UUID 0x1812.
Address: F1:C9:30:38:03:00 (random) connectable: yes
Connected: F1:C9:30:38:03:00 (random)
Security changed: F1:C9:30:38:03:00 (random) level 2
Pairing completed: F1:C9:30:38:03:00 (random), bonded: 1
The discovery procedure failed with -3
Disconnected: F1:C9:30:38:03:00 (random) (reason 8)

# SANWA

Filters matched on UUID 0x1812.
Address: D0:F0:C8:CA:EF:30 (random) connectable: yes
Connected: D0:F0:C8:CA:EF:30 (random)
Security failed: D0:F0:C8:CA:EF:30 (random) level 1 err 9
E: Discover failed, error: -128.
could not start the discovery procedure, error code: -128
Pairing failed conn: D0:F0:C8:CA:EF:30 (random), reason 9
Disconnected: D0:F0:C8:CA:EF:30 (random) (reason 62)

# CONFIG_BT_MAX_PAIRED=8

# Elecom

Filters matched on UUID 0x1812.
Address: F1:C9:30:38:03:00 (random) connectable: yes
Connected: F1:C9:30:38:03:00 (random)
Security changed: F1:C9:30:38:03:00 (random) level 2
Pairing completed: F1:C9:30:38:03:00 (random), bonded: 1
The discovery procedure failed with -3
Disconnected: F1:C9:30:38:03:00 (random) (reason 8)

# SANWA

Filters matched on UUID 0x1812.
Address: D0:F0:C8:CA:EF:30 (random) connectable: yes
Connected: D0:F0:C8:CA:EF:30 (random)
Security failed: D0:F0:C8:CA:EF:30 (random) level 1 err 9
E: Discover failed, error: -128.
could not start the discovery procedure, error code: -128
Pairing failed conn: D0:F0:C8:CA:EF:30 (random), reason 9
Disconnected: D0:F0:C8:CA:EF:30 (random) (reason 62)&lt;/pre&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/logitech_5F00_2.pcapng"&gt;devzone.nordicsemi.com/.../logitech_5F00_2.pcapng&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/sanwa_5F00_2.pcapng"&gt;devzone.nordicsemi.com/.../sanwa_5F00_2.pcapng&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/elecom_5F00_2.pcapng"&gt;devzone.nordicsemi.com/.../elecom_5F00_2.pcapng&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Central HIDS example can't connect with BLE HOGP mouse</title><link>https://devzone.nordicsemi.com/thread/387681?ContentTypeID=1</link><pubDate>Fri, 23 Sep 2022 11:53:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb208925-530b-4fdd-8a78-3cf484a93bf1</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The sniffer traces only shows advertising and nothing of the connection, so there is not much that can be seen from those.&lt;/p&gt;
&lt;p&gt;Without sniffer traces we can still look at the errors though, and the first error for both devices is &amp;quot;Failed to set security: -12&amp;quot;, which is -ENOMEM. As this happens for peripheral 2 and 3 this makes me wonder if the issue here is that you have a configuration issue where you do not support enough bonds. Can you try to add&amp;nbsp;CONFIG_BT_MAX_PAIRED=4 to your prj.conf (or another number, which is at least as high as the number of bonds you need)? The default value here is 1.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Central HIDS example can't connect with BLE HOGP mouse</title><link>https://devzone.nordicsemi.com/thread/387648?ContentTypeID=1</link><pubDate>Fri, 23 Sep 2022 10:11:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b68d3830-3d71-44a8-8164-dc547d5c34ff</guid><dc:creator>tadakado</dc:creator><description>&lt;p&gt;Now, Logitech M650 works with the Central HIDS example! I just recompile it with the default settings, and it works.&lt;/p&gt;
&lt;p&gt;I have attached the files for Logitech (success), Elecom (fail) and SANWA (fail). Below are the outputs from the console.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;# Logitech =&amp;gt; Success

Filters matched on UUID 0x1812.
Address: D7:A8:39:0D:F2:C8 (random) connectable: yes
Connected: D7:A8:39:0D:F2:C8 (random)
Security changed: D7:A8:39:0D:F2:C8 (random) level 2
The discovery procedure succeeded
HIDS is ready to work
Subscribe to report id: 2
Subscribe to report id: 17
Subscribe to boot mouse report
Notification, id: 2, size: 7, data: 0x0 0x0 0x0 0xf0 0xff 0x0 0x0
Notification, id: 2, size: 7, data: 0x0 0x0 0x3 0xe0 0xff 0x0 0x0
Notification, id: 2, size: 7, data: 0x0 0x0 0x8 0xa0 0xff 0x0 0x0
Notification, id: 2, size: 7, data: 0x0 0x0 0x8 0xa0 0xff 0x0 0x0
Disconnected: D7:A8:39:0D:F2:C8 (random) (reason 19)
HIDS client active - releasing

# Elecom =&amp;gt; Fail

Filters matched on UUID 0x1812.
Address: F1:C9:30:38:03:00 (random) connectable: yes
Connected: F1:C9:30:38:03:00 (random)
Failed to set security: -12
The discovery procedure failed with -3

# SANWA =&amp;gt; Fail

Filters matched on UUID 0x1812.
Address: D0:F0:C8:CA:EF:30 (random) connectable: yes
Connected: D0:F0:C8:CA:EF:30 (random)
Failed to set security: -12
The service could not be found during the discovery
Disconnected: D0:F0:C8:CA:EF:30 (random) (reason 62)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I want to connect keyboard and mouse to nRF52. My problem is that some mice can&amp;#39;t connect with the Central HIDS example. I want to support various BLE mice to connect. (I can use Logitech but I want to use other mouse.)&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/logitech.pcapng"&gt;devzone.nordicsemi.com/.../logitech.pcapng&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/elecom.pcapng"&gt;devzone.nordicsemi.com/.../elecom.pcapng&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/sanwa.pcapng"&gt;devzone.nordicsemi.com/.../sanwa.pcapng&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Central HIDS example can't connect with BLE HOGP mouse</title><link>https://devzone.nordicsemi.com/thread/387526?ContentTypeID=1</link><pubDate>Thu, 22 Sep 2022 13:49:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4196320e-fbdb-4030-a179-ad498e99c8cb</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Can you upload the full sniffer trace instead (the pcap file)?&lt;/p&gt;
&lt;p&gt;Also, it could be interesting to see a trace with both the working and failing mouse to compare. And just to be sure, the problem here is&amp;nbsp;different behavior with the two mouses right? And not the order of which mouse you try to connect? (Reading the initial question again I was a bit unsure). If you can elaborate that would be good.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Central HIDS example can't connect with BLE HOGP mouse</title><link>https://devzone.nordicsemi.com/thread/387338?ContentTypeID=1</link><pubDate>Wed, 21 Sep 2022 14:43:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0301afc7-f271-4ba1-8f47-6c89faacb484</guid><dc:creator>tadakado</dc:creator><description>&lt;p&gt;Hi, thanks for the replay. I have attached a sniffer capture data for another mouse (Logitech M650). It seems not much information. Is this the data for the next step? I used nrf_sniffer_for_bluetooth_le_4.1.0 with nrf52840 dongle and Wireshark 3.6.8. The connection information is as follows:&lt;/p&gt;
&lt;p&gt;# Logitech M650&lt;/p&gt;
&lt;p&gt;Filters matched on UUID 0x1812.&lt;br /&gt;Address: D7:A8:39:0D:F2:C8 (random) connectable: yes&lt;br /&gt;Connected: D7:A8:39:0D:F2:C8 (random)&lt;br /&gt;Failed to set security: -12&lt;br /&gt;The discovery procedure succeeded&lt;br /&gt;E: HID information read error&lt;br /&gt;ERROR: HIDS client preparation failed!&lt;br /&gt;Disconnected: D7:A8:39:0D:F2:C8 (random) (reason 19)&lt;br /&gt;HIDS client active - releasing&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/central_5F00_hids_5F00_packet.txt"&gt;devzone.nordicsemi.com/.../central_5F00_hids_5F00_packet.txt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Central HIDS example can't connect with BLE HOGP mouse</title><link>https://devzone.nordicsemi.com/thread/386845?ContentTypeID=1</link><pubDate>Mon, 19 Sep 2022 12:00:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6bf84b27-9165-4872-ba72-9c3f5ffac636</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;With the first mouse you get &amp;quot;The discovery procedure failed with -3&amp;quot;. 3 is -ESRCH, and lookin gat the implementation of gatt_dm.c this is only used in one case:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;	cur_attr = attr_find_by_handle(dm, attr-&amp;gt;handle);
	if (!cur_attr) {
		/* We should never be here is the server is working properly */
		discovery_complete_error(dm, -ESRCH);
		return BT_GATT_ITER_STOP;
	}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;which is when the attribute handle is not found. I cannot see from the log which attribute this is though, but it would seem that the mouse GATT server does not have it.&lt;/p&gt;
&lt;p&gt;With the second mouse you get &amp;quot;Failed to set security: -12&amp;quot; (BT_HCI_ERR_CMD_DISALLOWED), which is the same as in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/83206/ble-remote-connect-to-hid-central-ncs-sample-always-disconnect"&gt;this thread&lt;/a&gt;. We cannot say more about the cause from the error, so a sniffer trace would be the natural next step.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>