Page 1 of 1
Bluetooth pairing - filling passkey automatically
Posted: 03 Mar 2011, 12:34
by ricardocrl
Hello all,
I would like to stablish a Bluetooth connection without typing the pass key. The idea is that the passkey would be automatically set so that I don't have to press any button on the NXT to pair it with a device.
How can I accomplish this? Through the firmware only, I guess...?
Has anyone tryied that?
Re: Bluetooth pairing - filling passkey automatically
Posted: 03 Mar 2011, 17:31
by HaWe
hi,
as far as I observed, you once have to pair the NXT devices manually and confirm once by typing the passkey. You can pair up to 3 different NXT's as slaves to 1 master.
Once established, you now may pair the devices automatically by starting appropriate NXC programs on the master and the slaves. If you wish to know a source code I can show you how.
HTH!
Re: Bluetooth pairing - filling passkey automatically
Posted: 03 Mar 2011, 17:41
by hassenplug
Just to clarify, you may want to distinguish between "pairing" and "connecting".
I'm pretty sure the bluetooth standard requires user input for two devices to pair.
After that process is completed once, the software can connect and disconnect, without user intervention. As Doc suggested, the NXT can only connect with three devices at the same time, however, I'm pretty sure it can pair (and remember) up to 16 devices.
Steve
Re: Bluetooth pairing - filling passkey automatically
Posted: 03 Mar 2011, 18:00
by ricardocrl
I really meant pairing. I know that we can connect and disconnect automatically, but I also want to pair automatically.
Basically I want to skip the manual "OK" pressed button on the NXT when choosing the passkey. Somehow I would like the NXT to set a default passkey without asking me to confirm.
What do you think? Is it possible?
Re: Bluetooth pairing - filling passkey automatically
Posted: 03 Mar 2011, 23:22
by gloomyandy
It is certainly possible, but perhaps not with the standard firmware. With leJOS you can supply the pin key as a parameter when connecting to a device for the first time, thus avoiding having to have any user interaction...
Andy
Re: Bluetooth pairing - filling passkey automatically
Posted: 04 Mar 2011, 07:55
by HaWe
cool :)
a new dimension for NXT-hijacking progs :P
Re: Bluetooth pairing - filling passkey automatically
Posted: 07 Mar 2011, 09:42
by ricardocrl
Thanks Andy! That's what I thought.
Maybe it's not too hard to modify the standard firmware to handle the passkey in an automatic way.
Ricardo