Following the linux tutorial, but still cannot find the NXT

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

Moderators: roger, 99jonathan, imaqine

Following the linux tutorial, but still cannot find the NXT

Postby xpc0434 » Sun Aug 26, 2012 8:34 am

I think I had done everything on the tutorial, but still failed to connect via USB, my system is Ubuntu under the VMware. Please see the code, is there any step I had ignored?
The NXT had been already flashed under Windows, the firmware version is 0.9.1.
Environment:
Code: Select all
pengchengxu@ubuntu:~$ echo $NXJ_HOME
/home/pengchengxu/NXJ/leJOS_NXJ_0.9.1beta-3/
pengchengxu@ubuntu:~$ echo $PATH
/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/pengchengxu/NXJ/leJOS_NXJ_0.9.1beta-3/bin
pengchengxu@ubuntu:~$ echo $LEJOS_NXT_JAVA_HOME
/usr/lib/jvm/java-6-sun
pengchengxu@ubuntu:~$ echo $JAVA_HOME
/usr/lib/jvm/java-6-sun

Failed to find NXT:
Code: Select all
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 0e0f:0003 VMware, Inc. Virtual Mouse
Bus 002 Device 003: ID 0e0f:0002 VMware, Inc. Virtual USB Hub
Bus 002 Device 005: ID 0e0f:0008 VMware, Inc.
Bus 002 Device 007: ID 0694:0002 Lego Group Mindstorms NXT
pengchengxu@ubuntu:~$ nxjbrowse -u
leJOS NXJ> Failed to find any NXTs
No NXT found - is it switched on and plugged in (for USB)?
pengchengxu@ubuntu:~$ sudo chmod a+w /dev/bus/usb/002/007
pengchengxu@ubuntu:~$ nxjbrowse -u
leJOS NXJ> Failed to find any NXTs
No NXT found - is it switched on and plugged in (for USB)?


Code: Select all
pengchengxu@ubuntu:~$ nxjflash
Building firmware image.
VM file: /home/pengchengxu/NXJ/leJOS_NXJ_0.9.1beta-3/bin/lejos_nxt_rom.bin
Menu file: /home/pengchengxu/NXJ/leJOS_NXJ_0.9.1beta-3/bin/StartUpText.bin
Magic string found at offset 0x40
VM size: 55888 bytes.
Menu size: 47740 bytes.
Total image size 103804/104448 bytes.
Locating device in firmware update mode.
No devices in firmware update mode were found.
Searching for other NXT devices.
No NXT found. Please check that the device is turned on and connected.


not the permission problem, I had done these several times.
Code: Select all
pengchengxu@ubuntu:~$ cd /etc/udev/rules.d
pengchengxu@ubuntu:/etc/udev/rules.d$ sudo cp '/home/pengchengxu/Desktop/70-lego.rules' .
pengchengxu@ubuntu:/etc/udev/rules.d$ sudo groupadd lego
groupadd: group 'lego' already exists
pengchengxu@ubuntu:/etc/udev/rules.d$ sudo gpasswd -a pengchengxu lego
Adding user pengchengxu to group lego
pengchengxu@ubuntu:/etc/udev/rules.d$ sudo udevadm control --reload-rules
pengchengxu@ubuntu:/etc/udev/rules.d$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 0e0f:0003 VMware, Inc. Virtual Mouse
Bus 002 Device 003: ID 0e0f:0002 VMware, Inc. Virtual USB Hub
Bus 002 Device 005: ID 0e0f:0008 VMware, Inc.
Bus 002 Device 008: ID 0694:0002 Lego Group Mindstorms NXT
pengchengxu@ubuntu:/etc/udev/rules.d$ sudo '/home/pengchengxu/NXJ/leJOS_NXJ_0.9.1beta-3/bin/nxjflash'
Building firmware image.
VM file: /home/pengchengxu/NXJ/leJOS_NXJ_0.9.1beta-3/bin/lejos_nxt_rom.bin
Menu file: /home/pengchengxu/NXJ/leJOS_NXJ_0.9.1beta-3/bin/StartUpText.bin
Magic string found at offset 0x40
VM size: 55888 bytes.
Menu size: 47740 bytes.
Total image size 103804/104448 bytes.
Locating device in firmware update mode.
No devices in firmware update mode were found.
Searching for other NXT devices.
No NXT found. Please check that the device is turned on and connected.


In my system the libusb1.0 and 0.1 is both existing, is this the root of the problem?
How can I remove the libusb1.0?
Code: Select all
pengchengxu@ubuntu:~$ dpkg -l | grep libusb
ii  libusb-0.1-4                           2:0.1.12-20                             userspace USB programming library
ii  libusb-1.0-0                           2:1.0.9~rc3-2ubuntu1                    userspace USB programming library
ii  libusb-dev                             2:0.1.12-20                             userspace USB programming library development files
ii  libusbmuxd1                            1.0.7-2                                 USB multiplexor daemon for iPhone and iPod Touch devices - library

This problem confuse me 3days, does anyone can help?
xpc0434
New User
 
Posts: 3
Joined: Sat Aug 25, 2012 6:14 pm

Re: Following the linux tutorial, but still cannot find the

Postby xpc0434 » Sun Aug 26, 2012 8:58 am

I am trying to remove libusb1.0, but failed, because something depend on it.
Code: Select all
pengchengxu@ubuntu:~$ sudo dpkg -P libusb-1.0-0
dpkg: dependency problems prevent removal of libusb-1.0-0:
 cups depends on libusb-1.0-0 (>= 2:1.0.9~rc3).
 usbmuxd depends on libusb-1.0-0 (>= 2:1.0.9~rc3).
 upower depends on libusb-1.0-0 (>= 2:1.0.9~rc3).
 libdc1394-22 depends on libusb-1.0-0 (>= 2:1.0.9~rc3).
 usbutils depends on libusb-1.0-0 (>= 2:1.0.8).
 libmtp9 depends on libusb-1.0-0 (>= 2:1.0.9~rc3).
 libgpod-common depends on libusb-1.0-0 (>= 2:1.0.8); however:
  Package libusb-1.0-0 is to be removed.
dpkg: error processing libusb-1.0-0 (--purge):
 dependency problems - not removing
Errors were encountered while processing:
 libusb-1.0-0
pengchengxu@ubuntu:~$ dpkg -l | grep libusb
ii  libusb-0.1-4                           2:0.1.12-20                             userspace USB programming library
pi  libusb-1.0-0                           2:1.0.9~rc3-2ubuntu1                    userspace USB programming library
ii  libusb-dev                             2:0.1.12-20                             userspace USB programming library development files
ii  libusbmuxd1                            1.0.7-2                                 USB multiplexor daemon for iPhone and iPod Touch devices - library
xpc0434
New User
 
Posts: 3
Joined: Sat Aug 25, 2012 6:14 pm

Re: Following the linux tutorial, but still cannot find the

Postby xpc0434 » Sun Aug 26, 2012 9:23 pm

I found the problem is only exist on Ubuntu 32bit system, now I install a 64bit ubuntu system everything goes well.
xpc0434
New User
 
Posts: 3
Joined: Sat Aug 25, 2012 6:14 pm


Return to NXJ Software

Who is online

Users browsing this forum: No registered users and 1 guest

more stuff