Bluetooth Pairing Issues - Logitech K480

Keyboard: Logitech Bluettooth K480

 

The keyboard is seen in the bluetooth section of system settings. When I try to Pair the the device it prompts me to enter the code shown. When I type the numbers in it shows a different number than the actual button i pressed. Instead of the number I pressed it shows 1,2,3,4,5,6 in that order. Please help me pair this keyboard! 

 

 

 

btmon has the following log:

 

> HCI Event: Inquiry Result with RSSI (0x22) plen 15                                                                                                                         [hci0] 28.154984

        Num responses: 1

        Address: 00:1F:20:EC:D5:F1 (OUI 00-1F-20)

        Page scan repetition mode: R1 (0x01)

        Page period mode: P0 (0x00)

        Class: 0x002540

          Major class: Peripheral (mouse, joystick, keyboards)

          Minor class: 0x10

          Limited Discoverable Mode

        Clock offset: 0x482d

        RSSI: -61 dBm (0xc3)

@ Device Found: 00:1F:20:EC:D5:F1 (0) rssi -61 flags 0x0003

        04 0d 40 25 00                                   ..@%.          

> HCI Event: Inquiry Complete (0x01) plen 1                                                                                                                                  [hci0] 32.208557

        Status: Success (0x00)

@ Discovering: 0x00 (7)

< HCI Command: Create Connection (0x01|0x0005) plen 13                                                                                                                       [hci0] 34.630216

        Address: 00:1F:20:EC:D5:F1 (OUI 00-1F-20)

        Packet type: 0xcc18

          DM1 may be used

          DH1 may be used

          DM3 may be used

          DH3 may be used

          DM5 may be used

          DH5 may be used

        Page scan repetition mode: R1 (0x01)

        Page scan mode: Mandatory (0x00)

        Clock offset: 0xc82d

        Role switch: Allow slave (0x01)

> HCI Event: Command Status (0x0f) plen 4                                                                                                                                    [hci0] 34.631872

      Create Connection (0x01|0x0005) ncmd 1

        Status: Success (0x00)

> HCI Event: Connect Complete (0x03) plen 11                                                                                                                                 [hci0] 35.868058

        Status: Success (0x00)

        Handle: 11

        Address: 00:1F:20:EC:D5:F1 (OUI 00-1F-20)

        Link type: ACL (0x01)

        Encryption: Disabled (0x00)

< HCI Command: Read Remote Supported Features (0x01|0x001b) plen 2                                                                                                           [hci0] 35.868422

        Handle: 11

> HCI Event: Command Status (0x0f) plen 4                                                                                                                                    [hci0] 35.870066

      Read Remote Supported Features (0x01|0x001b) ncmd 1

        Status: Success (0x00)

> HCI Event: Read Remote Supported Features (0x0b) plen 11                                                                                                                   [hci0] 35.877055

        Status: Success (0x00)

        Handle: 11

        Features: 0xbc 0x04 0x82 0x78 0x00 0x06 0x59 0x83

          Encryption

          Slot offset

          Timing accuracy

          Role switch

          Sniff mode

          Channel quality driven data rate (CQDDR)

          Paging parameter negotiation

          Broadcast Encryption

          Enhanced inquiry scan

          Interlaced inquiry scan

          Interlaced page scan

          RSSI with inquiry results

          Sniff subrating

          Pause encryption

          Extended Inquiry Response

          Secure Simple Pairing

          Encapsulated PDU

          Non-flushable Packet Boundary Flag

          Link Supervision Timeout Changed Event

          Inquiry TX Power Level

          Extended features

< HCI Command: Read Remote Extended Features (0x01|0x001c) plen 3                                                                                                            [hci0] 35.877180

        Handle: 11

        Page: 1

> HCI Event: Command Status (0x0f) plen 4                                                                                                                                    [hci0] 35.879031

      Read Remote Extended Features (0x01|0x001c) ncmd 1

        Status: Success (0x00)

> HCI Event: Read Remote Extended Features (0x23) plen 13                                                                                                                    [hci0] 35.883027

        Status: Success (0x00)

        Handle: 11

        Page: 1/1

        Features: 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00

          Secure Simple Pairing (Host Support)

< HCI Command: Remote Name Request (0x01|0x0019) plen 10                                                                                                                     [hci0] 35.883106

        Address: 00:1F:20:EC:D5:F1 (OUI 00-1F-20)

        Page scan repetition mode: R2 (0x02)

        Page scan mode: Mandatory (0x00)

        Clock offset: 0x0000

> HCI Event: Command Status (0x0f) plen 4                                                                                                                                    [hci0] 35.885034

      Remote Name Request (0x01|0x0019) ncmd 1

        Status: Success (0x00)

> HCI Event: Remote Name Req Complete (0x07) plen 255                                                                                                                        [hci0] 35.909033

        Status: Success (0x00)

        Address: 00:1F:20:EC:D5:F1 (OUI 00-1F-20)

        Name: Logitech Keyboard K480

< HCI Command: Authentication Requested (0x01|0x0011) plen 2                                                                                                                 [hci0] 35.909191

        Handle: 11

> HCI Event: Command Status (0x0f) plen 4                                                                                                                                    [hci0] 35.911088

      Authentication Requested (0x01|0x0011) ncmd 1

        Status: Success (0x00)

> HCI Event: Link Key Request (0x17) plen 6                                                                                                                                  [hci0] 35.912036

        Address: 00:1F:20:EC:D5:F1 (OUI 00-1F-20)

< HCI Command: Link Key Request Negative Reply (0x01|0x000c) plen 6                                                                                                          [hci0] 35.912109

        Address: 00:1F:20:EC:D5:F1 (OUI 00-1F-20)

> HCI Event: Command Complete (0x0e) plen 10                                                                                                                                 [hci0] 35.914035

      Link Key Request Negative Reply (0x01|0x000c) ncmd 1

        Status: Success (0x00)

        Address: 00:1F:20:EC:D5:F1 (OUI 00-1F-20)

> HCI Event: IO Capability Request (0x31) plen 6                                                                                                                             [hci0] 35.915048

        Address: 00:1F:20:EC:D5:F1 (OUI 00-1F-20)

< HCI Command: IO Capability Request Reply (0x01|0x002b) plen 9                                                                                                              [hci0] 35.915177

        Address: 00:1F:20:EC:D5:F1 (OUI 00-1F-20)

        IO capability: DisplayYesNo (0x01)

        OOB data: Authentication data not present (0x00)

        Authentication: Dedicated Bonding - MITM required (0x03)

> HCI Event: Command Complete (0x0e) plen 10                                                                                                                                 [hci0] 35.917049

      IO Capability Request Reply (0x01|0x002b) ncmd 1

        Status: Success (0x00)

        Address: 00:1F:20:EC:D5:F1 (OUI 00-1F-20)

> HCI Event: IO Capability Response (0x32) plen 9                                                                                                                            [hci0] 35.923043

        Address: 00:1F:20:EC:D5:F1 (OUI 00-1F-20)

        IO capability: KeyboardOnly (0x02)

        OOB data: Authentication data not present (0x00)

        Authentication: General Bonding - MITM not required (0x04)

@ Device Connected: 00:1F:20:EC:D5:F1 (0) flags 0x0000

        17 09 4c 6f 67 69 74 65 63 68 20 4b 65 79 62 6f  ..Logitech Keybo

        61 72 64 20 4b 34 38 30 04 0d 40 25 00           ard K480..@%.  

> HCI Event: User Passkey Notification (0x3b) plen 10                                                                                                                        [hci0] 36.211090

        Address: 00:1F:20:EC:D5:F1 (OUI 00-1F-20)

        Passkey: 198799

@ Passkey Notify: 00:1F:20:EC:D5:F1 (0) passkey 198799 entered 0

> HCI Event: Keypress Notification (0x3c) plen 7                                                                                                                             [hci0] 36.219075

        Address: 00:1F:20:EC:D5:F1 (OUI 00-1F-20)

        Notification type: Passkey entry started (0x00)

> HCI Event: Keypress Notification (0x3c) plen 7                                                                                                                             [hci0] 47.000536

        Address: 00:1F:20:EC:D5:F1 (OUI 00-1F-20)

        Notification type: Passkey digit entered (0x01)

@ Passkey Notify: 00:1F:20:EC:D5:F1 (0) passkey 198799 entered 1

> HCI Event: Keypress Notification (0x3c) plen 7                                                                                                                             [hci0] 49.249846

        Address: 00:1F:20:EC:D5:F1 (OUI 00-1F-20)

        Notification type: Passkey digit entered (0x01)

@ Passkey Notify: 00:1F:20:EC:D5:F1 (0) passkey 198799 entered 2

> HCI Event: Keypress Notification (0x3c) plen 7                                                                                                                             [hci0] 51.965192

        Address: 00:1F:20:EC:D5:F1 (OUI 00-1F-20)

        Notification type: Passkey digit entered (0x01)

@ Passkey Notify: 00:1F:20:EC:D5:F1 (0) passkey 198799 entered 3

> HCI Event: Keypress Notification (0x3c) plen 7                                                                                                                             [hci0] 53.148348

        Address: 00:1F:20:EC:D5:F1 (OUI 00-1F-20)

        Notification type: Passkey digit entered (0x01)

@ Passkey Notify: 00:1F:20:EC:D5:F1 (0) passkey 198799 entered 4

> HCI Event: Keypress Notification (0x3c) plen 7                                                                                                 &nbs