Strange Error During Bluetooth Connection

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

Moderators: roger, imaqine, 99jonathan

New User
Posts: 1
Joined: Thu Jul 10, 2014 1:52 pm

Strange Error During Bluetooth Connection

Postby pineapplemango64 » Thu Jul 10, 2014 1:56 pm

Hey all,

Recently, I wrote a program to allow one NXT to control another using the lejos.nxt.remote.* library. After pairing the two bricks, and running the program, the program stops with "Exception: 74 Failed to connect at: 224:54 at: 47:10" Any and all help would be greatly appreciated.

My program:

Code: Select all


import lejos.nxt.comm.Bluetooth;
import lejos.nxt.remote.*;
import lejos.nxt.Motor;
import lejos.nxt.Button;
import lejos.nxt.SensorPort;
import lejos.nxt.TouchSensor;

public class RemoteNxt {
   public static void main(String[] args) throws IOException{
      RemoteNXT RemoteNXT1 = new RemoteNXT("NXT ", Bluetooth.getConnector());
      TouchSensor ballShoot = new TouchSensor(SensorPort.S1);
      while (true){
         while (ballShoot.isPressed()){

User avatar
leJOS Team Member
Posts: 4927
Joined: Fri Sep 28, 2007 2:06 pm
Location: UK

Re: Strange Error During Bluetooth Connection

Postby gloomyandy » Sat Jul 12, 2014 3:21 pm

The name of your nxt seems to include a space character, is this correct?

Return to “NXJ Software”

Who is online

Users browsing this forum: No registered users and 3 guests