wishlist for BricxCC

Discussion specific to NXT-G, NXC, NBC, RobotC, Lejos, and more.
afanofosc
Site Admin
Posts: 1256
Joined: 26 Sep 2010, 19:36
Location: Nashville, TN
Contact:

Re: wishlist for BricxCC

Post 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
Multi-platform LEGO MINDSTORMS programming
http://bricxcc.sourceforge.net/
HaWe
Posts: 2500
Joined: 04 Nov 2014, 19:00

Re: wishlist for BricxCC

Post 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)
mattallen37
Posts: 1818
Joined: 02 Oct 2010, 02:19
Location: Michigan USA
Contact:

Re: wishlist for BricxCC

Post 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.
Matt
http://mattallen37.wordpress.com/

I'm all for gun control... that's why I use both hands when shooting ;)
HaWe
Posts: 2500
Joined: 04 Nov 2014, 19:00

Re: wishlist for BricxCC

Post by HaWe »

sorry, I don't understand a word - stack overflow error :? :? :? :? :? :? :? :? :?
1st, I don't have a user directory on C:
2nd, all of the rest I understand is
0987768246:kjxujchbj0053637387:83449438712826:: RAW d99999995475646348393d474363525387340v. in 0= 43629akjnb .. oyjh<_: .jdhdgdg85656464848:0697878:06586756765646 nbj=000=


(too old for rock'n' roll... :cry: :cry: :cry: :cry: :cry: :cry: )
mattallen37
Posts: 1818
Joined: 02 Oct 2010, 02:19
Location: Michigan USA
Contact:

Re: wishlist for BricxCC

Post 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.
Matt
http://mattallen37.wordpress.com/

I'm all for gun control... that's why I use both hands when shooting ;)
HaWe
Posts: 2500
Joined: 04 Nov 2014, 19:00

Re: wishlist for BricxCC

Post by HaWe »

ok, the directory is called "Dokumente und Einstellungen".
I found the file nxt.dat
mattallen37
Posts: 1818
Joined: 02 Oct 2010, 02:19
Location: Michigan USA
Contact:

Re: wishlist for BricxCC

Post 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
Matt
http://mattallen37.wordpress.com/

I'm all for gun control... that's why I use both hands when shooting ;)
HaWe
Posts: 2500
Joined: 04 Nov 2014, 19:00

Re: wishlist for BricxCC

Post 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)
mattallen37
Posts: 1818
Joined: 02 Oct 2010, 02:19
Location: Michigan USA
Contact:

Re: wishlist for BricxCC

Post 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.
Matt
http://mattallen37.wordpress.com/

I'm all for gun control... that's why I use both hands when shooting ;)
HaWe
Posts: 2500
Joined: 04 Nov 2014, 19:00

Re: wishlist for BricxCC

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

Who is online

Users browsing this forum: No registered users and 6 guests