Communication NXT-NXT

Post your NXJ projects, project ideas, etc here!

Moderators: roger, 99jonathan, imaqine

Communication NXT-NXT

Postby Akkuschrauber6 » Fri Jan 13, 2012 4:29 pm

In this tutorial http://lejos.sourceforge.net/nxt/nxj/tutorial/Communications/Communications.htm i`ve read, that it`s possible to access the motors and sensors of a remote NXT from another one.
I`ve tried this, but the I couldn`t define the 2nd nxt as remote nxt ( nxt = new RemoteNXT("NXT", null);).
There is always an error at this stage.
How can I solve this problem?
The nxts are already paired and know eachother. Do I have to write an extra programm for the 2nd one or does it work without?

I hope anyone can help :)
Akkuschrauber6
New User
 
Posts: 2
Joined: Fri Jan 13, 2012 4:23 pm

Re: Communication NXT-NXT

Postby TechnoX » Fri Jan 13, 2012 6:44 pm

What is the error / exception message?

Are your second NXT (with the motors) called "NXT"? Otherwise change the string to the name of the NXT.
TechnoX
Novice
 
Posts: 51
Joined: Tue May 03, 2011 5:57 pm
Location: Sweden

Re: Communication NXT-NXT

Postby Akkuschrauber6 » Sat Jan 14, 2012 1:25 pm

I solved the Problem :)

Instead of "null" i changed the 2nd parameter to "Bluetooth.getConnector()", now it`s working.

The Error was Class 16, which is a null pointer exception...
anyway, thx for your help
Akkuschrauber6
New User
 
Posts: 2
Joined: Fri Jan 13, 2012 4:23 pm

Re: Communication NXT-NXT

Postby Lego-3D-drucker » Sun Dec 09, 2012 1:50 pm

Hello !

Up ! I exactly want this ! How do you do that ?

Thanks for helping.
Lego-3D-drucker
New User
 
Posts: 8
Joined: Sun Dec 09, 2012 12:47 pm


Return to NXJ Projects

Who is online

Users browsing this forum: No registered users and 0 guests

more stuff