Bluetooth pairing - filling passkey automatically

Discussion specific to NXT-G, NXC, NBC, RobotC, Lejos, and more.
Post Reply
ricardocrl
Posts: 117
Joined: 27 Dec 2010, 19:27

Bluetooth pairing - filling passkey automatically

Post 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?
HaWe
Posts: 2500
Joined: 04 Nov 2014, 19:00

Re: Bluetooth pairing - filling passkey automatically

Post 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!
hassenplug
Posts: 346
Joined: 27 Sep 2010, 03:05
Contact:

Re: Bluetooth pairing - filling passkey automatically

Post 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
---> Link to lots of MINDSTORMS stuff under my picture --->
ricardocrl
Posts: 117
Joined: 27 Dec 2010, 19:27

Re: Bluetooth pairing - filling passkey automatically

Post 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?
gloomyandy
Posts: 323
Joined: 29 Sep 2010, 05:03

Re: Bluetooth pairing - filling passkey automatically

Post 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
HaWe
Posts: 2500
Joined: 04 Nov 2014, 19:00

Re: Bluetooth pairing - filling passkey automatically

Post by HaWe »

cool :)
a new dimension for NXT-hijacking progs :P
ricardocrl
Posts: 117
Joined: 27 Dec 2010, 19:27

Re: Bluetooth pairing - filling passkey automatically

Post 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
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest