Page 12 of 19
Re: wishlist for BricxCC
Posted: 21 Feb 2012, 16:40
by afanofosc
Each connected NXT would have a unique brick resource string which includes its bluetooth address/id/serial number.
alias0=USB0::0X0694::0X0002::001653FF0156::RAW
alias1=USB0::0X0694::0X0002::0016530A757B::RAW
alias2=USB0::0X0694::0X0002::001653FF0030::RAW
you can replace "alias0" with "001653FF0156" etc... and pick "001653FF0156" from the ports list to connect to that particular NXT. I don't recall whether I have tested this when I had multiple NXTs connected simultaneously or not.
John Hansen
Re: wishlist for BricxCC
Posted: 21 Feb 2012, 16:47
by HaWe
that sounds promising -
how can I start Bricxcc to use these IDs in detail right from the start and maybe even connect automatically to the correct NXT, e.g. using cmd line parameters? (provided they are static)
Re: wishlist for BricxCC
Posted: 21 Feb 2012, 18:00
by mattallen37
Hey, John's suggestion works perfectly for me! I had two instances of BCC open with their own NXT!
Helmut, open "C:\Users\<USER>\AppData\Roaming\JoCar Consulting\BricxCC\3.3\nxt.dat". You should see entries that look something like "alias1=USB0::0X0694::0X0002::001653049411::RAW". Change them to something like "<NAME>=USB0::0X0694::0X0002::001653049411::RAW" where NAME is the name you want to appear in the list of bricks you can connect to. Actually, I did this for the BT and the USB entries, so I use "USB <NAME>=USB0::0X0694::0X0002::001653049411::RAW", and "BTH <NAME>=BTH::NXT::00:16:53:06:A0:48::25". BTW, in case you are using BT, the number after the MAC address is the COM port number (in this example it's 25).
Edit: you can find the NXT MAC address in the NXT menu: Settings>NXT Version>ID.
Re: wishlist for BricxCC
Posted: 21 Feb 2012, 19:12
by HaWe
Re: wishlist for BricxCC
Posted: 21 Feb 2012, 19:24
by mattallen37
Well, most people running a windows computer do have a C drive that they store their programs (and other stuff) on. Find nxt.dat wherever BCC put it when installed. It should be "...\AppData\Roaming\JoCar Consulting\BricxCC\3.3". If you didn't understand what I said the first time about editing the file, then re-read it.
Re: wishlist for BricxCC
Posted: 21 Feb 2012, 19:30
by HaWe
ok, the directory is called "Dokumente und Einstellungen".
I found the file nxt.dat
Re: wishlist for BricxCC
Posted: 21 Feb 2012, 19:46
by mattallen37
That could be right.
Did you try editing it? Did it work for you?
Just as an idea, here is what mine looks like after editing it today:
Code: Select all
USB Uno=USB0::0X0694::0X0002::00165309F346::RAW
USB Deux=USB0::0X0694::0X0002::00165306A048::RAW
USB Three=USB0::0X0694::0X0002::0016530B2D5A::RAW
alias7=USB0::0X0694::0X0002::001653049411::RAW
BTH Uno=BTH::Uno::00:16:53:09:F3:46::15
BTH Three=BTH::Three::00:16:53:0B:2D:5A::14
BTH TETRIX=BTH::TETRIX::00:16:53:07:04:47::12
BTH 06:A0:48::25=BTH::NXT::00:16:53:06:A0:48::25
Re: wishlist for BricxCC
Posted: 21 Feb 2012, 19:49
by HaWe
i have on this computer:
Code: Select all
00165301C6A8=USB0::0X0694::0X0002::00165301C6A8::RAW
alias1=USB0::0X0694::0X0002::0016530EEBDF::RAW
alias2=USB0::0X0694::0X0002::0016530F4740::RAW
although 3 different NXTs have been plugged (sometimes, alternately, to the same USB port)
Re: wishlist for BricxCC
Posted: 21 Feb 2012, 20:03
by mattallen37
So change it to something like:
Code: Select all
One=USB0::0X0694::0X0002::00165301C6A8::RAW
Two=USB0::0X0694::0X0002::0016530EEBDF::RAW
Three=USB0::0X0694::0X0002::0016530F4740::RAW
The USB port doesn't seem to matter at all.
Re: wishlist for BricxCC
Posted: 21 Feb 2012, 20:15
by HaWe
actually my NXTs are called 000, 001, 002, 003.
000 is master,
001 is slave1,
a.s.o.
How do I know which is which?