4.1 Xiaomi controller impossible to pair in new 4.1 version
-
@pillabichos i had the same problem and i found a solution to connect (sometimes) the controller using Putty. im using a raspberry 3 with xiaomi controller and recalbox 4.1.
login as: root
root@192.168.1.85's password:recalboxroot
long press the central Mi button of your controller. It should blink fast.hcitool scan
Scanning ...
XX:XX:XX:XX:XX:XX 小米蓝牙手柄XX:XX:XX:XX:XX:XX is your MAC adress (ex: 1C:96:5A:DD:BC:CE)
# **hidd --connect XX:XX:XX:XX:XX:XX** (your MAC adress ex 1C:96:5A:DD:BC:CE)
Your controller should stop blinking and connect to your raspberry.
sometimes it works and sometimes it won't... i still dont know why...
furthermore you will have to make all of this each time you need to connect your controller.
hope this helps and if someone know why sometimes it doesn't work (hidd connection refused) feel free to help.
and im still looking for a solution in order to make my raspberry remember my controller. -
The problem with this one is mainly that ot doesn't get listed in ES for pairing. I'm really clueless on this one
-
@marina there is no hidd on a REAL 4.1, you should do everything through
bluetoothctl
-
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.
-
@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
-
@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.
-
@pillabichos CHeck your documentation, it should tell you the default pin if it's ever asked
-
@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'. -
@pillabichos recalbox 4.1 is not recalbox 4.0, the whole BT stack totally changed.
have you tried the other link i provided ?
-
@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 -