<?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>ble central and peripheral + hid ble problem</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/56170/ble-central-and-peripheral-hid-ble-problem</link><description>Hello Nordic Team, 
 Currently i&amp;#39;m trying to join my custom HID (a joystick) with the ble_app_hrs_rscs_relay example (SDK 16) for a personal project which consist in: a nrf52832 working as slave and another working as “my custom relay”. In the slave device</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 26 Feb 2020 09:35:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/56170/ble-central-and-peripheral-hid-ble-problem" /><item><title>RE: ble central and peripheral + hid ble problem</title><link>https://devzone.nordicsemi.com/thread/236462?ContentTypeID=1</link><pubDate>Wed, 26 Feb 2020 09:35:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7fa6debd-5adb-455c-b877-ece39230ff44</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;The connection handle used by the HID peripheral connection is never assigned to the&amp;nbsp;m_conn_handle variable you&amp;#39;re passing to&amp;nbsp;ble_hids_inp_rep_send(). That is why you are getting the invalid state error.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble central and peripheral + hid ble problem</title><link>https://devzone.nordicsemi.com/thread/236089?ContentTypeID=1</link><pubDate>Mon, 24 Feb 2020 19:45:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7aec4fbf-a2e4-4388-bd84-a3833364cf43</guid><dc:creator>JuanCV</dc:creator><description>&lt;p&gt;Hello Vidar,&lt;/p&gt;
&lt;p&gt;This is my project.&amp;nbsp; there is no neccesary to make the ticket private, I&amp;#39;m using the nRF52 DK. &lt;span lang="en"&gt;I will be attentive to any news, thanks for your help. Regards.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/7167.ble_5F00_app_5F00_relay_5F00_hid.7z"&gt;devzone.nordicsemi.com/.../7167.ble_5F00_app_5F00_relay_5F00_hid.7z&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble central and peripheral + hid ble problem</title><link>https://devzone.nordicsemi.com/thread/231237?ContentTypeID=1</link><pubDate>Mon, 27 Jan 2020 16:14:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0eb602b3-92fb-4c90-a46a-0b5663ad47bf</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Are you able to upload your project so I can try to debug it here (assuming it will run on a nordic DK)? I can make this support ticket private if necessary.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble central and peripheral + hid ble problem</title><link>https://devzone.nordicsemi.com/thread/230722?ContentTypeID=1</link><pubDate>Thu, 23 Jan 2020 17:44:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30ece0fa-d863-4d0f-928d-42976bb5bb15</guid><dc:creator>JuanCV</dc:creator><description>&lt;p&gt;Hello Vidar,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;When this happen, i having two actives connection:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Between one nrf52832 slave, that it is running heart rate and battery service; and the main nrf52832 (in central role). The notifications slave &amp;ndash; main device are working fine.&lt;/li&gt;
&lt;li&gt;Between the main device (peripheral role), that it is running heart rate, battery, device information and HID service (joystick); and one Notebook, Smartphone or Tablet (central). The notifications main device &amp;ndash; central device of heart rate and battery service&amp;nbsp; are working fine. Also, i can read the device information characteristic... i only have the error with the HID service.&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble central and peripheral + hid ble problem</title><link>https://devzone.nordicsemi.com/thread/230591?ContentTypeID=1</link><pubDate>Thu, 23 Jan 2020 12:21:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3c2fe4a-e389-4024-a7f2-80a461e379d2</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Thanks for confirming. So it&amp;#39;s not caused by an ongoing MTU exchange then. Is it possible that you may be&amp;nbsp;passing&amp;nbsp;a connection handle for the other link, or do you only have one active connection when this happens?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble central and peripheral + hid ble problem</title><link>https://devzone.nordicsemi.com/thread/230140?ContentTypeID=1</link><pubDate>Tue, 21 Jan 2020 16:25:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b8bb6175-ebc6-402c-9213-7aef394cb293</guid><dc:creator>JuanCV</dc:creator><description>&lt;p&gt;Hello Vidar,&lt;/p&gt;
&lt;p&gt;I try to call the send function between 100ms, 500ms, 1s, 5s and 10s after the&amp;nbsp; connection was established, but im getting the same error&amp;hellip;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble central and peripheral + hid ble problem</title><link>https://devzone.nordicsemi.com/thread/230070?ContentTypeID=1</link><pubDate>Tue, 21 Jan 2020 12:41:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:651253b9-27ad-4963-bfaf-4bdebda18d7d</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;It may return invalid state for one of the following reasons:&lt;/p&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td colspan="1" rowspan="1"&gt;&lt;a title="Invalid state, operation disallowed in this state." href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v7.0.1/group__nrf__error.html#gaf0aff2ba7864b34a36b4a96986e1851e"&gt;&lt;/a&gt;&lt;/td&gt;
&lt;td colspan="1" rowspan="1"&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Invalid Connection State&lt;/li&gt;
&lt;li&gt;Notifications and/or indications not enabled in the CCCD&lt;/li&gt;
&lt;li&gt;An ATT_MTU exchange is ongoing&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;I could be the latter. MTU exchange is usually initiated as soon as the connection is established. Have you tried to repeat this send function a while after the connection is established to see if you get the same error?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble central and peripheral + hid ble problem</title><link>https://devzone.nordicsemi.com/thread/229487?ContentTypeID=1</link><pubDate>Thu, 16 Jan 2020 20:17:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f95db8e1-aa65-49f1-9fcb-ec019340a4d9</guid><dc:creator>JuanCV</dc:creator><description>&lt;p&gt;Hello Vidar,&lt;/p&gt;
&lt;p&gt;TodaThe ble_hids_inp_rep_send is returning ERROR 8 [NRF_ERROR_INVALID_STATE], maybe i configuring something wrong. In debug mode, i can see the notification are enable before calling ble_hids_inp_rep_send&amp;nbsp; (SS attached)&amp;hellip; if&amp;nbsp; notificaction are truly enabled, what else may cause this error?&lt;/p&gt;
&lt;p&gt;Also:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Im using the battery service in this project, and his notification are working fine.&lt;/li&gt;
&lt;li&gt;In other project im implement the same HID profile and i don&amp;rsquo;t have any problema with ble_hids_inp_rep_send and the nrf52832 work as joystick.&lt;/li&gt;
&lt;li&gt;Maybe the &amp;ldquo;Relay example&amp;rdquo; aren&amp;acute;t compatible with BLE HID in peripheral mode?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Your help will be greatly appreciable.&lt;/p&gt;
&lt;p&gt;Thanks in advance for your support.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;***I apologize for my delayed reply, i was busy with pcb design in this last week.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/720x1280/__key/communityserver-discussions-components-files/4/1680.BLE-HIDS-EVT-NOTIF-ENABLE-_2D00_--ERROR-8.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble central and peripheral + hid ble problem</title><link>https://devzone.nordicsemi.com/thread/227914?ContentTypeID=1</link><pubDate>Tue, 07 Jan 2020 13:51:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7b9314e-27a4-4b0f-8a67-223688c75d90</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The client needs to enable notifications first, so that may a possible explanation as to why the data is not being sent.&amp;nbsp; Have you checked what the returned error code from ble_hids_inp_rep_send()-&amp;gt;&lt;span&gt;&lt;a title="sd_ble_gatts_hvx" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v7.0.1/group___b_l_e___g_a_t_t_s___f_u_n_c_t_i_o_n_s.html?cp=4_5_2_1_2_4_2_4#ga313fe43c2e93267da668572e885945db"&gt;sd_ble_gatts_hvx&lt;/a&gt;&lt;/span&gt;() is?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>