Recalbox Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • recalbox.com
    • Gitlab repository
    • Documentation
    • Discord

    4.1 Xiaomi controller impossible to pair in new 4.1 version

    GamePad/GPIO/USB encoder
    4.1 xiaomi pair version
    4
    13
    5897
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Substring
      Substring last edited by

      The problem with this one is mainly that ot doesn't get listed in ES for pairing. I'm really clueless on this one

      Former dev - Please reply with @substring so that i am notified when you answer me
      Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

      1 Reply Last reply Reply Quote 0
      • Substring
        Substring @marina last edited by

        @marina there is no hidd on a REAL 4.1, you should do everything through bluetoothctl

        Former dev - Please reply with @substring so that i am notified when you answer me
        Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

        1 Reply Last reply Reply Quote 0
        • pillabichos
          pillabichos last edited by

          I am trying with the most recent lastest 4.1 version and now I can see the device when I select the option " pair a controller" (before I had to unpair all the controllers) and it shows than the device is really paired but it is not true because the light is still blinking and the controller doesn't respond yet.

          I tried too with 'hcitool scan' but the result is the same.

          Substring 1 Reply Last reply Reply Quote 0
          • Substring
            Substring @pillabichos last edited by

            @pillabichos hcitool scan, as the options says, SCANS, but does not pair.

            Make sure you reset the pairing of your pad, because the autopairing process doesn't handle PIN input (I.E you need to enter a PIN to pair).

            What I'd suggest is follow https://wiki.archlinux.org/index.php/bluetooth#Bluetoothctl and dont forget to trust the paired device.

            You could also try a simpler method : run /recalbox/scripts/bluetooth/simple-agent <macaddress>. I think the mac address must be written in lower case. Try both lower and upper eventually. This is what I use for stubborn pads that don't want to pair.

            And Yes, ES still always show the pair successed, whereas it doesn't. bug 😮

            Former dev - Please reply with @substring so that i am notified when you answer me
            Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

            pillabichos 1 Reply Last reply Reply Quote 0
            • pillabichos
              pillabichos @Substring last edited by pillabichos

              @Substring I try
              /recalbox/scripts/bluetooth/simple-agent <MY_MAC_WITH_CAPITALS_&_COLON>
              But it ask me for a pin and always ends with error:
              Agent registered RequestPinCode (/org/bluez/hci0/dev_MY_MAC_WITH_CAPITALS_&_UNDERLINES)
              Enter PIN Code:
              Creating device failed: org.bluez.Error.AuthenticationFailed: Authentication Failed

              If I try with lowercase it does nothing.

              Substring 1 Reply Last reply Reply Quote 0
              • Substring
                Substring @pillabichos last edited by

                @pillabichos CHeck your documentation, it should tell you the default pin if it's ever asked

                Former dev - Please reply with @substring so that i am notified when you answer me
                Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

                pillabichos 1 Reply Last reply Reply Quote 0
                • pillabichos
                  pillabichos @Substring last edited by pillabichos

                  @Substring Recalbox 4.0 never ask me for a pin and the controller runs ok, I try to pair the controller with my android phone and it pair successfully without enter any pin.
                  In its specifications site don't say nothing about a 'default pin'.

                  Substring 1 Reply Last reply Reply Quote 0
                  • Substring
                    Substring @pillabichos last edited by Substring

                    @pillabichos recalbox 4.1 is not recalbox 4.0, the whole BT stack totally changed.

                    have you tried the other link i provided ?

                    Former dev - Please reply with @substring so that i am notified when you answer me
                    Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

                    marina 1 Reply Last reply Reply Quote 0
                    • marina
                      marina @Substring last edited by

                      @Substring i tried your method with recalbox 4.1 :
                      run /recalbox/scripts/bluetooth/simple-agent <macaddress>
                      sometimes it works without any problem, i can even connect a second xiaomi controller with the same method.
                      but when i reboot recalbox, sometimes i can't connect any controller. I keep rebooting until it works.
                      to sum up : 1) when it works i can connect two xiaomi controllers and autopair works too.
                      2) Sometimes i cant connect any controller and i have to reboot until it works.
                      I tried to run bluetoothctl to see whats going on when it can't connect. it tries to connect without success. here is what i get :
                      Attempting to connect to AC:FD:93:CB:50:16
                      Failed to connect: org.bluez.Error.NotReady
                      [CHG] Device AC:FD:93:CC:44:EF Connected: no
                      [CHG] Device AC:FD:93:CB:50:16 Connected: yes
                      [CHG] Device AC:FD:93:CB:50:16 Connected: no
                      [CHG] Device AC:FD:93:CB:50:16 Connected: yes
                      [CHG] Device AC:FD:93:CB:50:16 Connected: no
                      [CHG] Device AC:FD:93:CC:44:EF Connected: yes
                      [CHG] Device AC:FD:93:CC:44:EF Connected: no

                      1 Reply Last reply Reply Quote 0
                      • Substring
                        Substring last edited by

                        @marina @pillabichos
                        got some news : https://github.com/recalbox/recalbox-os/issues/1220#issuecomment-315129245

                        Former dev - Please reply with @substring so that i am notified when you answer me
                        Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

                        1 Reply Last reply Reply Quote -1
                        • First post
                          Last post

                        Want to support us ?

                        75
                        Online

                        99.6k
                        Users

                        28.1k
                        Topics

                        187.1k
                        Posts

                        Copyright © 2021 recalbox.com