Problem: NXT cant be connected with USB

This is where you talk about the NXJ hardware related topics such as the brick, sensors, LEGO pieces, etc.

Moderators: 99jonathan, roger, imaqine

Problem: NXT cant be connected with USB

Postby crys » Mon Feb 22, 2010 9:54 pm

Hi.
Iam trying to connect the NXT with an USB-Cable with my Eeepc100H.
What i did:
Tried the Tutorial on lejos.org and the Tutorial on ubuntuusers.
lsusb dont list any Robot or Lego Group.
The Test nxj -u Tune fails with the Message:
Code: Select all
leJOS NXJ> Linking...
leJOS NXJ> Uploading...
leJOS NXJ> Failed to find any NXTs
leJOS NXJ> Failed to connect to any NXT
an error occurred: No NXT found - is it switched on and plugged in (for USB)?

Yes it is switched on and plugged.

Any ideas?
crys
New User
 
Posts: 24
Joined: Mon Feb 22, 2010 9:42 pm

leJOS NXJ> Failed to load USB comms driver: Cannot load U

Postby aldohig » Wed Feb 24, 2010 4:14 pm

I have a similar situation I think on a Mac
Following the leJOS tutorial I'm kind of stuck at this point.
I suspect I need to add a path to the lego usb driver to .profile but can't think of what that path might be...

bash-3.2$ nxjbrowse -u
leJOS NXJ> Failed to load USB comms driver: Cannot load USB driver
leJOS NXJ> Failed to find any NXTs
No NXT found - is it switched on and plugged in (for USB)?
bash-3.2$
aldohig
New User
 
Posts: 4
Joined: Wed Feb 24, 2010 2:29 pm
Location: Ireland

Postby gloomyandy » Wed Feb 24, 2010 5:14 pm

Hi,
This thread may be of some use. Probably best to read all of it as I think there are some updates at the end...

viewtopic.php?t=1696&postdays=0&postorder=asc&start=0

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

Postby aldohig » Wed Feb 24, 2010 9:47 pm

No, getting same problem again.
Creating an nxj.properties didn't resolve it.
the path settings all work.
Driver problem?
aldohig
New User
 
Posts: 4
Joined: Wed Feb 24, 2010 2:29 pm
Location: Ireland

Postby gloomyandy » Wed Feb 24, 2010 10:33 pm

Are you sure you are running the JVM in 32bit mode? Search the forum there are a number of threads about Mac and USB issues. I don't have a Mac so I'm not that familiar with all of the details. With luck Shawn our Mac expert will be along soon to help out...

Good Luck

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

Postby antragon » Thu Feb 25, 2010 9:23 am

I don't have a mac myself, but from a SF-Project of mine I know some of the java-problems you have to take care of on a mac:

On Mac OS X 10.5 (Leopard):
- Java 6 is only 64 bit
- Java 5 is 32 and 64 bit

The problem is mainly, that many libraries and drivers are only build for 32bit java.

On the newest Mac OS X Version (I think 10.6 - Snow Leopard) Java 6 supports 32 bit as well, but still has some problems.

=> If the project does not use Java 6 functions, you should set "Java 5, 32 bit" in the Mac-Options! That helps a lot.

@andy: does lejos need java 6?

There is a way to get java 6 32bit projects running on a Leopard as well, but it has only a low chance of success as you have to recompile 32 bit drivers for 64 bit, etc. (Regarding our project, we gave up the mac-support as for Leopard)
User avatar
antragon
Novice
 
Posts: 38
Joined: Thu Jan 14, 2010 11:34 am

Postby aldohig » Thu Feb 25, 2010 8:10 pm

So I've reordered the 32 bit/64 bit priority on the Mac but no result.
Perhaps if I point my JAVA_HOME directly to the 1.5 version, let me see...
no, no go on that.
Thanks all for trying to help out.
aldohig
New User
 
Posts: 4
Joined: Wed Feb 24, 2010 2:29 pm
Location: Ireland

Postby aldohig » Thu Feb 25, 2010 8:55 pm

I think you're probably right, it's to do with Java 6.
I'll shift my comments to
http://lejos.sourceforge.net/forum/viewtopic.php?t=1696
and report my progress there.

Thanks
aldohig
New User
 
Posts: 4
Joined: Wed Feb 24, 2010 2:29 pm
Location: Ireland

Postby crys » Thu Feb 25, 2010 11:14 pm

I'am using linux(xubuntu) and the Mac Tutorial wasn't much of help.
It's still only working with Bluetooth.
crys
New User
 
Posts: 24
Joined: Mon Feb 22, 2010 9:42 pm

Postby antragon » Fri Feb 26, 2010 6:57 pm

@crys:
Did you check all the linux "basics"?
-> Especiall you should run it as root or (for longer use the better solution) add the NXT to the fstab.

You cannot access over usb without root rights or rights given by root (as when using fstab).

Here is some information for ubuntu:
http://wiki.ubuntuusers.de/LeJOS_f%C3%BCr_Lego_NXT

I's german and it's not for the newest version (but should be good enough that you can understand what I am talking about).
User avatar
antragon
Novice
 
Posts: 38
Joined: Thu Jan 14, 2010 11:34 am

Postby crys » Sun Feb 28, 2010 1:10 pm

thx antragon(iam german so i got no problem with it).

I already did that. Thats why i started this topic ;).

But i still cant "see" it with lsusb.
crys
New User
 
Posts: 24
Joined: Mon Feb 22, 2010 9:42 pm

Postby antragon » Sun Feb 28, 2010 3:00 pm

hmm... if you cannot see it with lsusb I'd recommend you to check if the cable and the usb-port at the NXT are working.

Did you try out USB with windows?
User avatar
antragon
Novice
 
Posts: 38
Joined: Thu Jan 14, 2010 11:34 am

Postby fabs » Sun Feb 28, 2010 7:02 pm

To make it work on Mac OSX snow Leopard (10.6) i needed to force java to run in 32bits with the -d32 flag.

What i did was change manually the java execution line in each one of the scripts on the NXJ_HOME/bin folder. For instance, the "nxj" application, line 61, would start like this...

java -d32 -Dnxj.home="$NXJ_HOME" -DCOMMAND_NAME="$NXJ_COMMAND"....
fabs
New User
 
Posts: 1
Joined: Sun Feb 28, 2010 6:55 pm


Return to NXJ Hardware

Who is online

Users browsing this forum: No registered users and 1 guest

more stuff