This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

SDK7.1 keypad connect ubunt14.4 success!

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'll terminate connection once finish pair.

Here is hcidump

HCI Event: Number of Completed Packets (0x13) plen 5 handle 63 packets 1 ACL data: handle 63 flags 0x02 dlen 10 ATT: Read By Type resp (0x09) length: 4 handle 0x0005, value 0xc1 0x03 < HCI Command: Disconnect (0x01|0x0006) plen 3 handle 63 reason 0x13 Reason: Remote User Terminated Connection HCI Event: Command Status (0x0f) plen 4 Disconnect (0x01|0x0006) status 0x00 ncmd 1 HCI Event: Disconn Complete (0x05) plen 4 status 0x00 handle 63 reason 0x16 Reason: Connection Terminated by Local Host

WireShark have same result. It also indicate Host terminate connect reason 0x13.

Parents
  • nrf51422_xxac_s110.hex Attach ble_mouse SDK9.0 s110 8.02 hex file as request, board compatible BOARD_PCA10001 with MCU 51822xxAC. nrf51422_xxac_s110.hex Attach ble_keypad SDK9.0 s110 8.02 hex file as request, board compatible BOARD_PCA10001 with MCU 51822xxAC.

    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 wiki.gentoo.org/.../Bluetooth I can pair connect mouse at first time PC power on.

    			[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
    

    Then I short press button0 , I can see cursor move at expected. Till now everything looks well.

    ACL data: handle 71 flags 0x02 dlen 10 ATT: Handle notify (0x1b) handle 0x001a value 0xfb 0x0f 0x00

      		> ACL data: handle 71 flags 0x02 dlen 10
      			ATT: Handle notify (0x1b)
      			  handle 0x001a
      			  value 0xfb 0x0f 0x00 
      		> ACL data: handle 71 flags 0x02 dlen 10
      			ATT: Handle notify (0x1b)
      			  handle 0x001a
      			  value 0xfb 0x0f 0x00 
    
      		> ACL data: handle 71 flags 0x02 dlen 10
      			ATT: Handle notify (0x1b)
      			  handle 0x001a
      			  value 0xfb 0x0f 0x00 
    
      		> ACL data: handle 71 flags 0x02 dlen 10
      			ATT: Handle notify (0x1b)
      			  handle 0x001a
      			  value 0xfb 0x0f 0x00 
    
      		> ACL data: handle 71 flags 0x02 dlen 10
      			ATT: Handle notify (0x1b)
      			  handle 0x001a
      			  value 0xfb 0x0f 0x00 
    
      		> ACL data: handle 71 flags 0x02 dlen 10
      			ATT: Handle notify (0x1b)
      			  handle 0x001a
      			  value 0xfb 0x0f 0x00 
    
      		> HCI Event: Disconn Complete (0x05) plen 4
      			status 0x00 handle 71 reason 0x13
      			Reason: Remote User Terminated Connection
    

    But at last, after long press button0, mouse disconnect gracefully. Then even after reconnect successful, press button0 have no effect.Till reboot PC.

    Keypad have same issue with mouse. If long press button0 or press button0 very fast(it'll treat as long press), will disconnect. Even after reconnect ok, keyboard button0 can't say hello again. I can't see problem on host side, but problem really happen at someplace.

Reply
  • nrf51422_xxac_s110.hex Attach ble_mouse SDK9.0 s110 8.02 hex file as request, board compatible BOARD_PCA10001 with MCU 51822xxAC. nrf51422_xxac_s110.hex Attach ble_keypad SDK9.0 s110 8.02 hex file as request, board compatible BOARD_PCA10001 with MCU 51822xxAC.

    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 wiki.gentoo.org/.../Bluetooth I can pair connect mouse at first time PC power on.

    			[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
    

    Then I short press button0 , I can see cursor move at expected. Till now everything looks well.

    ACL data: handle 71 flags 0x02 dlen 10 ATT: Handle notify (0x1b) handle 0x001a value 0xfb 0x0f 0x00

      		> ACL data: handle 71 flags 0x02 dlen 10
      			ATT: Handle notify (0x1b)
      			  handle 0x001a
      			  value 0xfb 0x0f 0x00 
      		> ACL data: handle 71 flags 0x02 dlen 10
      			ATT: Handle notify (0x1b)
      			  handle 0x001a
      			  value 0xfb 0x0f 0x00 
    
      		> ACL data: handle 71 flags 0x02 dlen 10
      			ATT: Handle notify (0x1b)
      			  handle 0x001a
      			  value 0xfb 0x0f 0x00 
    
      		> ACL data: handle 71 flags 0x02 dlen 10
      			ATT: Handle notify (0x1b)
      			  handle 0x001a
      			  value 0xfb 0x0f 0x00 
    
      		> ACL data: handle 71 flags 0x02 dlen 10
      			ATT: Handle notify (0x1b)
      			  handle 0x001a
      			  value 0xfb 0x0f 0x00 
    
      		> ACL data: handle 71 flags 0x02 dlen 10
      			ATT: Handle notify (0x1b)
      			  handle 0x001a
      			  value 0xfb 0x0f 0x00 
    
      		> HCI Event: Disconn Complete (0x05) plen 4
      			status 0x00 handle 71 reason 0x13
      			Reason: Remote User Terminated Connection
    

    But at last, after long press button0, mouse disconnect gracefully. Then even after reconnect successful, press button0 have no effect.Till reboot PC.

    Keypad have same issue with mouse. If long press button0 or press button0 very fast(it'll treat as long press), will disconnect. Even after reconnect ok, keyboard button0 can't say hello again. I can't see problem on host side, but problem really happen at someplace.

Children
No Data
Related