6

We have a fully-working java programme which can connect to another computer and can send messages from this(both sides run java and we used SPP Server and Client), however when trying to connect to the NXT Brick and send a message via bluetooth we are able to pair with the brick and we can send a message but we have no idea if the NXT receives it.

When we tried to use Java SPPClient on the computer(we provide the ServerURL of NXT to java programme) to send the message to NXT Brick running the RobotC, it does't work. On java side, the error is given:

"Failed to connect; [10064] A socket operation failed because the destination host was down." Is the error we receive on Java.

Using robotc the brick is waiting for a message to be sent and it is awaiting 3 integers to help the robot move.

  • that sounds like a firewall problem. Is the java program trying to access the internet? – tuskiomi Jul 20 '16 at 15:21
0

Have you updated the firmware? That may be a problem but it also may be that there is an error connecting using Bluetooth. “Destination host was down” means that the coding platform could not connect to the NXT.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.