nxjmapcommand without bluetooth

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

Moderators: roger, imaqine, 99jonathan

Matt3o12
New User
Posts: 3
Joined: Thu May 15, 2014 9:36 pm

nxjmapcommand without bluetooth

Postby Matt3o12 » Thu May 15, 2014 9:41 pm

Hello,
I want to use the nxjmapcommand without bluetooth. Every time I try to connect to my NXT, it automatically tries to use bluetooth (instead of USB), which will end up in an error. (Bluetooth is broken on Mac OS X Mavericks. I tried several methods and I always get an error message. The current one is an invalid memory access issue).

skoehler
leJOS Team Member
Posts: 1533
Joined: Thu Oct 30, 2008 4:54 pm

Re: nxjmapcommand without bluetooth

Postby skoehler » Fri May 16, 2014 10:23 am

Sorry, the connect dialog is very simple. Can other tools connect to your NXT via USB?

Matt3o12
New User
Posts: 3
Joined: Thu May 15, 2014 9:36 pm

Re: nxjmapcommand without bluetooth

Postby Matt3o12 » Fri May 16, 2014 5:31 pm

Yes, every other tool can.

It appears to me that the nxjmapcommand doesn't try to connect via USB. It immediately tries to connect via Bluetooth. The output of the console is:

Code: Select all

$ nxjmapcommand
BlueCove version 2.1.1-SNAPSHOT on mac
Cannot find
Found: MATTEO
Invalid memory access of location 0xb0824790 eip=0x9c16f4b4
/Users/Matt3o12/Documents/lejos/native-mac/lejos/bin/nxjmapcommand: line 78: 86490 Bus error: 10           "$JAVA" -d32 "-Dnxj.home=$NXJ_HOME" "-DCOMMAND_NAME=$NXJ_COMMAND" -classpath "$NXJ_CP_PC" lejos.pc.tools.NXJMapCommand "$@"


When I run any other tool I get:

Code: Select all

$ nxjconsole
Found NXT: MATTEO 00165304F2EC
Connected to MATTEO 00165304F2EC


(For instance, nxjconsole doesn't even try to call the broken Bluetooth library since my nxt is connected via USB).

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

Re: nxjmapcommand without bluetooth

Postby gloomyandy » Fri May 16, 2014 6:12 pm

As always the source tells the story:
https://sourceforge.net/p/lejos/code/HE ... Model.java
The nxjmapcommand does indeed only try an connect via Bluetooth. Which is not unreasonable as it is expecting to talk to a mobile robot. So if you want to use USB, you will need to change the above file and rebuild things.


Return to “NXJ Software”

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest