<?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>SDK7.1 keypad connect ubunt14.4 success!</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/8126/sdk7-1-keypad-connect-ubunt14-4-success</link><description>I try to use SDK8.1.1 example connect ubuntu14.4 with CSR dongle. Seems it create connection fail.
I downgrade to SDK7.1, it connection pair correctly. But it&amp;#39;ll terminate connection once finish pair. 
 Here is hcidump 
 
 HCI Event: Number of Completed</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 21 Jul 2015 12:58:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/8126/sdk7-1-keypad-connect-ubunt14-4-success" /><item><title>RE: SDK7.1 keypad connect ubunt14.4 success!</title><link>https://devzone.nordicsemi.com/thread/29177?ContentTypeID=1</link><pubDate>Tue, 21 Jul 2015 12:58:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b5af3f3-0ad1-4b66-bea0-c734c65ed75c</guid><dc:creator>Sr Huang</dc:creator><description>&lt;p&gt;Sure Stian, I try it on Android phone 4.4 also. Phone BT is onboard chip.
So problem narrow down to BLE device side. Not CSR dongle problem, not bluez problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK7.1 keypad connect ubunt14.4 success!</title><link>https://devzone.nordicsemi.com/thread/29176?ContentTypeID=1</link><pubDate>Tue, 21 Jul 2015 09:57:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:513cf28e-cde3-40ca-b4be-f5271c3a84c6</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Are you able to try this on an Android phone, or a win 8.1 PC? Then we could maybe narrow the issue down to a Linux or CSR dongle problem. I will continue to try with different BLE dongles on my Linux setup.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK7.1 keypad connect ubunt14.4 success!</title><link>https://devzone.nordicsemi.com/thread/29175?ContentTypeID=1</link><pubDate>Tue, 21 Jul 2015 01:05:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2821601c-5089-47ad-9ef0-62caff35c1c0</guid><dc:creator>Sr Huang</dc:creator><description>&lt;p&gt;I agree with your explaination. Press a lot trigger a long press, then disconnect.
But I need to notice here: if device disconnect, host can&amp;#39;t reconnect correctlly on Ubuntu &amp;amp; Android.
We expect: host pair ok, connect ok. HID function ok. Device disconnect. Host reconnect ok. Then HID function ok.
Real :   host pair ok, connect ok. HID function ok.Device disconnect. Host reconnect ok. Then HID function fail.&lt;/p&gt;
&lt;p&gt;I can easily reproduce this bug on SDK 8.1 &amp;amp; 9.0. Sounds like if no pair ok before connect, there is problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK7.1 keypad connect ubunt14.4 success!</title><link>https://devzone.nordicsemi.com/thread/29174?ContentTypeID=1</link><pubDate>Mon, 20 Jul 2015 22:42:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29adfeee-962b-4c1d-8063-130251b620e3</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;I&amp;#39;ve edited the question&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK7.1 keypad connect ubunt14.4 success!</title><link>https://devzone.nordicsemi.com/thread/29173?ContentTypeID=1</link><pubDate>Mon, 20 Jul 2015 14:39:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:281db0df-a366-4b91-b65c-52afd271af94</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Yes, I&amp;#39;m able to reproduce the error. Seems like a bug. I&amp;#39;m investigating it now&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK7.1 keypad connect ubunt14.4 success!</title><link>https://devzone.nordicsemi.com/thread/29172?ContentTypeID=1</link><pubDate>Sat, 18 Jul 2015 13:31:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c161b180-59ab-4d3f-ab55-2acc43389272</guid><dc:creator>Sr Huang</dc:creator><description>&lt;p&gt;attach hex in following answers. Can you download it ?  @Stian.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK7.1 keypad connect ubunt14.4 success!</title><link>https://devzone.nordicsemi.com/thread/29178?ContentTypeID=1</link><pubDate>Fri, 17 Jul 2015 13:43:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2a34ecb-eca8-4116-8021-1f54921cb4e6</guid><dc:creator>Sr Huang</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/8156.nrf51422_5F00_xxac_5F00_s110.hex"&gt;nrf51422_xxac_s110.hex&lt;/a&gt;
Attach ble_mouse SDK9.0 s110 8.02 hex file as request, board compatible BOARD_PCA10001 with MCU 51822xxAC.
&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/7178.nrf51422_5F00_xxac_5F00_s110.hex"&gt;nrf51422_xxac_s110.hex&lt;/a&gt;
Attach ble_keypad SDK9.0 s110 8.02 hex file as request, board compatible BOARD_PCA10001 with MCU 51822xxAC.&lt;/p&gt;
&lt;p&gt;I try latest bluez 5.32 on ubuntu 64bit 14.04. Remove default bluez4.101.
Then use cmdline tool manually connect nordics 9.0 SDK ble_mouse.
Here is report.
Detail steps reference bluez5 part in &lt;a href="https://wiki.gentoo.org/wiki/Bluetooth"&gt;wiki.gentoo.org/.../Bluetooth&lt;/a&gt;
I can pair connect mouse at first time PC power on.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;			[bluetooth]# connect EE:30:98:D1:71:21
			Attempting to connect to EE:30:98:D1:71:21
			[CHG] Device EE:30:98:D1:71:21 Connected: yes
			Connection successful
			[Nordic_Mouse]# info EE:30:98:D1:71:21
			Device EE:30:98:D1:71:21
				Name: Nordic_Mouse
				Alias: Nordic_Mouse
				Appearance: 0x03c2
				Icon: input-mouse
				Paired: yes
				Trusted: no
				Blocked: no
				Connected: yes
				LegacyPairing: no
				UUID: Generic Access Profile    (00001800-0000-1000-8000-00805f9b34fb)
				UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
				UUID: Device Information        (0000180a-0000-1000-8000-00805f9b34fb)
				UUID: Battery Service           (0000180f-0000-1000-8000-00805f9b34fb)
				UUID: Human Interface Device    (00001812-0000-1000-8000-00805f9b34fb)
				Modalias: usb:v1915pEEEEd0001
				RSSI: -69
			[CHG] Controller 00:1A:7D:DA:71:02 Discoverable: no
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Then I short press button0 , I can see cursor move at expected. Till now everything looks well.&lt;/p&gt;
&lt;blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;ACL data: handle 71 flags 0x02 dlen 10
					ATT: Handle notify (0x1b)
					  handle 0x001a
					  value 0xfb 0x0f 0x00&lt;/p&gt;
&lt;/blockquote&gt;
&lt;pre&gt;&lt;code&gt;  		&amp;gt; ACL data: handle 71 flags 0x02 dlen 10
  			ATT: Handle notify (0x1b)
  			  handle 0x001a
  			  value 0xfb 0x0f 0x00 
  		&amp;gt; ACL data: handle 71 flags 0x02 dlen 10
  			ATT: Handle notify (0x1b)
  			  handle 0x001a
  			  value 0xfb 0x0f 0x00 

  		&amp;gt; ACL data: handle 71 flags 0x02 dlen 10
  			ATT: Handle notify (0x1b)
  			  handle 0x001a
  			  value 0xfb 0x0f 0x00 

  		&amp;gt; ACL data: handle 71 flags 0x02 dlen 10
  			ATT: Handle notify (0x1b)
  			  handle 0x001a
  			  value 0xfb 0x0f 0x00 

  		&amp;gt; ACL data: handle 71 flags 0x02 dlen 10
  			ATT: Handle notify (0x1b)
  			  handle 0x001a
  			  value 0xfb 0x0f 0x00 

  		&amp;gt; ACL data: handle 71 flags 0x02 dlen 10
  			ATT: Handle notify (0x1b)
  			  handle 0x001a
  			  value 0xfb 0x0f 0x00 

  		&amp;gt; HCI Event: Disconn Complete (0x05) plen 4
  			status 0x00 handle 71 reason 0x13
  			Reason: Remote User Terminated Connection
&lt;/code&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;p&gt;But at last, after long press button0, mouse disconnect gracefully. Then even after reconnect successful, press button0 have no effect.Till reboot PC.&lt;/p&gt;
&lt;p&gt;Keypad have same issue with mouse. If long press button0 or press button0 very fast(it&amp;#39;ll treat as long press), will disconnect. Even after reconnect ok, keyboard button0 can&amp;#39;t say hello again. I can&amp;#39;t see problem on host side, but problem really happen at someplace.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK7.1 keypad connect ubunt14.4 success!</title><link>https://devzone.nordicsemi.com/thread/29171?ContentTypeID=1</link><pubDate>Fri, 17 Jul 2015 12:13:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bba515ce-9794-4c35-9ec9-f6442cfd866b</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;I&amp;#39;m using the same version of bluez. It is the &lt;strong&gt;ble_app_hids_keyboard&lt;/strong&gt; example you are using right? Can you please post the hex-file so I can try it here?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK7.1 keypad connect ubunt14.4 success!</title><link>https://devzone.nordicsemi.com/thread/29170?ContentTypeID=1</link><pubDate>Fri, 17 Jul 2015 08:58:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b1b45ad-ac8a-474f-829e-3ac66c2c0b09</guid><dc:creator>Sr Huang</dc:creator><description>&lt;p&gt;Here is clean 14.04 default bluez info. Seems which based on ver 4.101.
Do I need to upgrade to latest 5.32?&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;apt-cache show bluez
Package: bluez
Priority: optional
Section: admin
Installed-Size: 2544
Maintainer: Ubuntu Developers &amp;lt;ubuntu-devel-discuss@lists.ubuntu.com&amp;gt;
Original-Maintainer: Debian Bluetooth Maintainers &amp;lt;pkg-bluetooth-maintainers@lists.alioth.debian.org&amp;gt;
Architecture: amd64
Version: 4.101-0ubuntu13.1
Replaces: bluez-audio (&amp;lt;= 3.36-3), bluez-input, bluez-network, bluez-serial, bluez-utils (&amp;lt;= 3.36-3), udev (&amp;lt;&amp;lt; 170-1)
Depends: libc6 (&amp;gt;= 2.15), libdbus-1-3 (&amp;gt;= 1.1.1), libglib2.0-0 (&amp;gt;= 2.28.0), libreadline6 (&amp;gt;= 6.0), libudev1 (&amp;gt;= 183), libusb-0.1-4 (&amp;gt;= 2:0.1.12), sysv-rc (&amp;gt;= 2.88dsf-24) | file-rc (&amp;gt;= 0.8.16), module-init-tools, udev (&amp;gt;= 170-1), lsb-base, dbus, python3-dbus
Suggests: bluez-hcidump
Conflicts: bluez-audio (&amp;lt;= 3.36-3), bluez-utils (&amp;lt;= 3.36-3)
Breaks: udev (&amp;lt;&amp;lt; 170-1)
Filename: pool/main/b/bluez/bluez_4.101-0ubuntu13.1_amd64.deb
Size: 589688
MD5sum: ee38cc86673b88e99743f0ac1a5415e0
SHA1: d79cdb2eb482e7293c0903e813ff6cbd2b814048
SHA256: 11f07796d9ef15aeddae7aa5f2f79ecb3c043a959d0b3986dc4deac1f548acf4
Description-en: Bluetooth tools and daemons
 This package contains tools and system daemons for using Bluetooth devices.
 .
 BlueZ is the official Linux Bluetooth protocol stack. It is an Open Source
 project distributed under GNU General Public License (GPL).
Description-md5: ef25d6a9f4a57e78f32faa7b58ef4e59
Multi-Arch: foreign
Homepage: &lt;a href="http://www.bluez.org"&gt;http://www.bluez.org&lt;/a&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK7.1 keypad connect ubunt14.4 success!</title><link>https://devzone.nordicsemi.com/thread/29169?ContentTypeID=1</link><pubDate>Thu, 16 Jul 2015 11:43:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1711cc68-136f-4e48-a983-d89f2c24e3ed</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;I tried now with SDK 8.1, ubuntu 14.04, bluez 4.101-0ubuntu13.1 and the CSR dongle, and I didn&amp;#39;t have any problems connecting. Which tools and commands do you use to connect?&lt;/p&gt;
&lt;p&gt;Make sure you delete any bond info. In the terminal write:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;bluez-test-device remove xx:xx:xx:xx:xx:xx
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Then I did the following to connect and enable notifications:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;gatttool -b xx:xx:xx:xx:xx:xx -t random -I

&amp;gt; connect
&amp;gt; sec-level high
&amp;gt; char-write-req 0x0017 01
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;EDIT:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The reason why it disconnects while holding down button 0 is because &lt;code&gt;connection_buttons_configure()&lt;/code&gt; in &lt;strong&gt;bsp_btn_ble.c&lt;/strong&gt; configure a long push on button 0 to disconnect.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define BTN_ID_DISCONNECT  0;  
#define BTN_ACTION_DISCONNECT  BSP_BUTTON_ACTION_LONG_PUSH
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;code&gt;connection_buttons_configure()&lt;/code&gt; is called in the function &lt;code&gt;bsp_btn_ble_on_ble_evt()&lt;/code&gt; whenever the BLE event says &lt;code&gt;BLE_GAP_EVT_CONNECTED&lt;/code&gt;. This is a part of the bsp library, but I agree that it doesn&amp;#39;t go along well with the hids demos since you push the buttons a lot in the demos. You can simply set the &lt;code&gt;BTN_ID_DISCONNECT&lt;/code&gt; define to something else than the 4 buttons, and it will not bother you anymore.&lt;/p&gt;
&lt;p&gt;When it comes to Linux not being able to reconnect, I&amp;#39;m not sure what the problem is. I am not able to reproduce the error here. I&amp;#39;ve tried with Bluez 4 and 5, Ubuntu and Debian, as well as Android. What I noticed was that in Bluez 5, if I wrote the connect command before the pair command, I had troubles getting Linux to recognize it as a HID device. So, in &lt;em&gt;bluetoothctl&lt;/em&gt; I just wrote &lt;em&gt;pair XX:XX:XX:XX:XX:XX&lt;/em&gt; without connecting first.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>