upload program to the brick cannot load USB driver

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

Moderators: 99jonathan, roger, imaqine

upload program to the brick cannot load USB driver

Postby brandt » Mon Oct 05, 2009 5:48 am

I m running vista 32 bit
i installed the nxt drivers
i installed lejos
also the java firmware flashed to the brick successfully
but no program will be uploaded to the brick

when the brick is on:
nxjbrowse give the following:

failed to load USB comms driver: cannot load USB driver
failed to find any NXTs

thank you for help
brandt
New User
 
Posts: 2
Joined: Mon Oct 05, 2009 5:27 am

Postby gloomyandy » Mon Oct 05, 2009 7:26 am

Hi,
What version of leJOS?
Does nxjbrowse work if you run it as an administrator? Start a cmd prompt using run as administrator and try it from there.
Do you have the Lego software installed?
If the version of the Lego software is not 2.0 you may want to install an updated driver from:
http://www.robotc.net/content/lego_down/lego_down.html

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

Postby brandt » Mon Oct 05, 2009 11:41 am

Hi Andy,
thank you, to update the driver is the solution
for your information:
i´m the adminstrator
lejos version is 0.8
i have only installed the NXT drivers, not the lego mindstorm software
thank you
Sebastian Brandt
brandt
New User
 
Posts: 2
Joined: Mon Oct 05, 2009 5:27 am

Same problem but on Vista 64

Postby grimep » Tue Oct 13, 2009 10:10 pm

Rather than start a new thread I hope its OK to post my issue here...

I have exactly the same problem but I'm on Vista 64....

I followed this guide http://nxtemplar.blogspot.com/2009/09/connecting-to-nxt-on-windows-7-64-bit.html and got the correct 64 bit driver installed, as well as the Mindstorms 1.0 software for XP installed on Vista 64. I also installed leJOS_NXJ_0.8.5. The driver works correctly, I was able to install the NXT Firmware via the Mindstorms software. Then I installed the leJOS NXJ firmware succesfully. I compiled the Tune.java sample, and then tried to nxj it. It links OK, but then I get
leJOS NXJ>Uploading...
leJOS NXJ>Failed to load USB comms driver: Cannot load USB driver
( it then looks for bluetooth which isn't yet available on this PC)
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)?

I trid on a 32 bit XP laptop and it was fine, no problems.

Has anyone had any success getting files to the brick from a Vista 64 machine?
grimep
New User
 
Posts: 3
Joined: Wed Jun 27, 2007 5:36 am

Postby gloomyandy » Tue Oct 13, 2009 10:54 pm

Hi,
Have you tried running the program from an admin account on Vista. Start a cmd prompt by right clicking on "command prompt" item in the start menu and choose "run as administrator". Try the download (or nxjbrowse) from this command prompt. Does this work?

I have had no problems on either 32bit Vista (non admin) or on 64bit Windows 7. However in the Windows 7 case I was using the driver supplied with the 2.0 Lego software.

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

Postby nick_193 » Wed Oct 14, 2009 10:33 am

Where can i get lego software 2.0? I have 1.1 on my cd..
nick_193
New User
 
Posts: 6
Joined: Wed Oct 14, 2009 10:31 am

Postby gloomyandy » Wed Oct 14, 2009 11:04 am

Hi,
I don't think you can get the 2.0 software without buying the 2.0 kit... You should probably ask Lego support about that...

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

Postby nick_193 » Wed Oct 14, 2009 11:31 am

Ok ill try that! thanks
nick_193
New User
 
Posts: 6
Joined: Wed Oct 14, 2009 10:31 am

Postby grimep » Wed Oct 14, 2009 6:55 pm

Hi Andy, yes, I was running as administrator anyway.

Well, that's strange. Guess I'm just unlucky. Odd that it works with the Lego software. Searching these posts some guys has a similar issue on OSX and traced it to the 64 bit version of the JVM, but I've no idea whether that could also be the case on Vista.

I guess I'll have to find an XP machine whenever I need to upload :-/
grimep
New User
 
Posts: 3
Joined: Wed Jun 27, 2007 5:36 am

Postby gloomyandy » Wed Oct 14, 2009 7:19 pm

Hi,
Are you sure you are running as an administrator? Did you try what I suggested and run a cmd prompt as administrator? You may be an administrative user but that is not always the same on Vista as running as an administrator (with full admin privs). If you were able to run the leJOS firmware download program as part of the install (which requires admin priv. to install), but you are not able to run the nxjbrowse command (as a user), then this tends to point to a priv problem as both commands use the same USB interface...

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

Postby gloomyandy » Wed Oct 14, 2009 7:36 pm

Hi,
I've just re-read your original post and from it, it would seem that you did not use the leJOS installer to install the leJOS firmware? Is this correct? You must use nxjflash to install leJOS as the installer modifiers the image as part of the download.

One further thing to check is what type of Java system you have installed. leJOS requires a 32 bit JDK not a 64 bit one. The easiest way to ensure you have the correct version is to remove any Java JDK and JRE and to then install the jdk/jre from here...
http://java.sun.com/javase/downloads/index.jsp
Make sure you select the Windows package, not the Windows X64 package...

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

Postby nick_193 » Thu Oct 15, 2009 8:56 pm

Yeah i think my jdk x64 was the problem. I have installed jdk x84 now and i doesnt say failed to load usb comm driver tough im gonna test it tomorrow on school , where my nxt brick is :)

Ill let u know!
nick_193
New User
 
Posts: 6
Joined: Wed Oct 14, 2009 10:31 am

Postby grimep » Thu Oct 22, 2009 7:18 pm

Hi Andy

Haven't been near this machine for a while so sorry for late reply.
Yes, I'm pretty sure I installed Lejos with nxjflash - it must be ok as ive got a java program over onto the NXT on an XP machine and it was fine.
Yes, I'm definitely running as an administrator as you directed.
I did have the 64-bit JRE and JDK, so I downloaded the 32bit version, but rather than uninstall the 64bit JRE/JDK I edited my Environment variables like so...

PATH=C:\Program Files (x86)\Java\jdk1.6.0_16

there was no JAVA_HOME set (I guess it was using PATH before) so Ive added that, with the same value..
JAVA_HOME=C:\Program Files (x86)\Java\jdk1.6.0_16

But still no luck. When Ive got the brick plugged in it shows up under Lego Devices in the Device Manager.

OK so I'll uninstall all Java and start again. There's a ton of stuff mainly updates which I'll remove via Programs & Features. I was a bit unhappy about doing this as no doubt my Eclipse will fail to work next time, but here goes...

Faff around with Path, Java_home with the usual "Java is not recognized as an internal or external command" headache..

and...

YES!!

We have liftoff!

Thanks a million Andy for taking time with the advice. Now all I need to do is get my Belkin Bluetooth dongle working as there are no 64 bit drivers, but I guess that's another post!
grimep
New User
 
Posts: 3
Joined: Wed Jun 27, 2007 5:36 am

Postby gloomyandy » Thu Oct 22, 2009 7:36 pm

Hi,
That's great news glad you have it working...

Yes start a new thread for the Bluetooth problem. I may be able to help I have a Belkin dongle...

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


Return to NXJ Hardware

Who is online

Users browsing this forum: No registered users and 1 guest

more stuff