[BRLTTY] Repeated Bluetooth pairing request on Android

Dave Mielke dave at mielke.cc
Mon Mar 5 13:41:24 EST 2018


[quoted lines by Robert Pösel on 2018/03/05 at 18:20 +0100]

>And during writing of this e-mail I've found the issue and solution.

Excellent!

>Problem was indeed in BRLTTY code, namely in the BluetoothConnection.open() 
>method. There is check "if (channel == 0)" based on which it uses either 
>direct call on device object, or it uses reflection to call some hidden method 
>on the device object. I don't understand the purpose of this channel argument 
>and whole condition, could you clarify why it was written this way?

Some braille devices (by now, usually older ones) don't support SDP 
(Bluetooth's Service Discovery Protocol). Some drivers, therefore, supply a 
hard-coded channel number to try if SDP isn't working.

I just checked the HumanWare driver. It specifies to fall back to RFCOMM 
channel 1, and doesn't request that SDP be tried. This was the problem, and has 
now been fixed.

-- 
I believe the Bible to be the very Word of God: http://Mielke.cc/bible/
Dave Mielke           | 2213 Fox Crescent | WebHome: http://Mielke.cc/
EMail: Dave at Mielke.cc | Ottawa, Ontario   | Twitter: @Dave_Mielke
Phone: 1-613-726-0014 | Canada  K2A 1H7   |


More information about the BRLTTY mailing list