Android Bluetooth SPP connection to embedded Linux board - PIN request

I have a Nexus One running Android 2.2 as a client. I want to make a socket connection to the embedded Linux board (server). I was able to establish a connection using the SPU UUID. My question is about pairing, in fact, why does the PIN request continue to appear every time I try to connect a socket when the devices are already paired? Looking at logcat in DDMS, it looks like the Linux board (Bluez 2.24) is requesting a PIN.

08-27 14: 58: 12.567: INFO / BluetoothEventLoop.cpp (11816): agent_event_filter: received method org.bluez.Agent: RequestPinCode

I tried reconfiguring hcid.conf in several ways, but I'm still getting a pairing request on the Nexus One. Any ideas? I saw another message in which there are no responses to the attempted programmatic pairing request. Is that the way?

Any help on this would be greatly appreciated!

+3
source share

Source: https://habr.com/ru/post/1761985/


All Articles