Bluetooth FriendlyName

This is where you talk about the NXJ software itself, installation issues, and programming talk.

Moderators: 99jonathan, roger, imaqine

Bluetooth FriendlyName

Postby bovetg » Sat Nov 10, 2007 2:20 pm

Hello,

I'm actually trying to change the Bluetooth name of my NXT brick.
I tried the Bluetooth.setFriendlyName() method at the begining of my program without succes. The brick always has NXT as name.

Can somebody tell me how to do this please.
bovetg
New User
 
Posts: 2
Joined: Sat Nov 10, 2007 2:16 pm

Re: Bluetooth FriendlyName

Postby CoBB » Sat Nov 10, 2007 3:32 pm

bovetg wrote:Hello,

I'm actually trying to change the Bluetooth name of my NXT brick.
I tried the Bluetooth.setFriendlyName() method at the begining of my program without succes. The brick always has NXT as name.

Can somebody tell me how to do this please.

Maybe you need to call Bluetooth.btSetCmdMode(1) first.
User avatar
CoBB
Novice
 
Posts: 73
Joined: Tue Apr 24, 2007 12:24 pm

Postby bovetg » Sat Nov 10, 2007 4:34 pm

Even I set Bluetooth on at first, the name doesn't change.

Here is a small part of my code...

private static final byte[] name = new byte[16];

name[0] = 'N';
name[1] = 'X';
name[2] = 'T';
name[3] = '1';
Bluetooth.setStatus((byte) 1);// Make bluetooth active
Bluetooth.setFriendlyName(name);
bovetg
New User
 
Posts: 2
Joined: Sat Nov 10, 2007 2:16 pm

Postby roger » Sat Nov 10, 2007 5:09 pm

The easy to change the BT friendly name is to use nxjbrowse, in lejos_ncj.com\bin.
Roger
roger
Moderator
 
Posts: 363
Joined: Fri Jun 01, 2007 4:31 am
Location: Berkeley, CA

change the name

Postby esmetaman » Mon Nov 12, 2007 9:32 pm

Hi, check this URL:

viewtopic.php?t=458

and see the class: BTUtilities

Un abrazo
Juan Antonio Breña Moral
http://www.juanantonio.info/lejos-ebook/
http://www.iloveneutrinos.com/
User avatar
esmetaman
Advanced Member
 
Posts: 290
Joined: Wed Sep 13, 2006 12:16 am
Location: Madrid, Spain


Return to NXJ Software

Who is online

Users browsing this forum: No registered users and 2 guests

more stuff