nxjupload hangs on Linux Mint 13

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

Moderators: 99jonathan, roger, imaqine

Re: nxjupload hangs on Linux Mint 13

Postby przmjaskier » Mon Mar 11, 2013 4:29 pm

FYI: sorry for lack of answer, I'm stuck in the system migration process. I will provide this info ASAP.

Thank you for your help!
przmjaskier
New User
 
Posts: 8
Joined: Tue Feb 19, 2013 12:05 am

Re: nxjupload hangs on Linux Mint 13

Postby przmjaskier » Mon Mar 11, 2013 11:45 pm

Hi. Here is what vanilla clean installation of my Kubuntu 12.10 shows, after apt-getting libusb-dev:

dpkg -l | grep libusb
ii libgusb2 0.1.3-5 amd64 GLib wrapper around libusb1
ii libusb-0.1-4:amd64 2:0.1.12-23 amd64 userspace USB programming library
ii libusb-1.0-0:amd64 2:1.0.12-2 amd64 userspace USB programming library
ii libusb-dev 2:0.1.12-23 amd64 userspace USB programming library development files
ii libusbmuxd2 1.0.8-1 amd64 USB multiplexor daemon for iPhone and iPod Touch devices - library


still no joy:

Linking ...
Program has been linked successfully
Uploading ...

->hangs forever and after NXT switches off due to timeout this is shown:

Found NXT: NXT 0016531B3FCF
Got exception during close: java.io.IOException: Error in write
at lejos.pc.comm.NXTCommUSB.rawWrite(NXTCommUSB.java:271)
at lejos.pc.comm.NXTCommUSB.flushBuffer(NXTCommUSB.java:212)
at lejos.pc.comm.NXTCommUSB.write(NXTCommUSB.java:556)
at lejos.pc.comm.NXTCommUSB.sendRequest(NXTCommUSB.java:496)
at lejos.nxt.remote.NXTCommand.openWrite(NXTCommand.java:175)
at lejos.nxt.remote.NXTCommand.uploadFile(NXTCommand.java:398)
at lejos.pc.tools.Upload.upload(Upload.java:46)
at lejos.pc.tools.NXJUpload.run(NXJUpload.java:93)
at lejos.pc.tools.NXJUpload.start(NXJUpload.java:36)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at lejos.pc.tools.ToolStarter.startTool(ToolStarter.java:31)
at lejos.pc.tools.NXJUpload.main(NXJUpload.java:29)
uploading the program failed with exit status 1


Now I'm thinking... Wrong libusb is used? Tutorial says that 1.0 is unsupported but I see 0.1.4 in dpkg output, too... If this is the case how to force libusb 0.1.x usage?
przmjaskier
New User
 
Posts: 8
Joined: Tue Feb 19, 2013 12:05 am

Re: nxjupload hangs on Linux Mint 13

Postby skoehler » Mon Mar 11, 2013 11:54 pm

libusb 0.1.x and libusb 1.0.x can be installed in parallel. The names of the libraries differ, the header files are in different locations, etc.
You're using the one you're supposed to use: libusb 0.1
If the wrong library would be used, libjlibnxt.so would neither have compiled nor linked successfully.

Is there any usb related output if you run dmesg?
Also, do you know somebody else which uses Linux Mint 13 so that you could try with his hardware?
Could you provide the output of "lspci" so that I see which USB hardware you're using?
skoehler
leJOS Team Member
 
Posts: 1421
Joined: Thu Oct 30, 2008 4:54 pm

Re: nxjupload hangs on Linux Mint 13

Postby przmjaskier » Mon Mar 25, 2013 7:58 pm

Hello.

Sorry for lack of prompt answer but I was away.

Still no joy. Just FYI: I'm not running Mint, but I got exactly the same problems on my vanilla clean installation of Kubuntu 12.10 x64...

~$ dmesg -T debug
(...)
[Tue Mar 19 22:17:51 2013] usb 3-1: new full-speed USB device number 2 using xhci_hcd
[Tue Mar 19 22:17:51 2013] usb 3-1: New USB device found, idVendor=0694, idProduct=0002
[Tue Mar 19 22:17:51 2013] usb 3-1: New USB device strings: Mfr=0, Product=0, SerialNumber=1
[Tue Mar 19 22:17:51 2013] usb 3-1: SerialNumber: 0016531B3FCF

~$ lspci
00:00.0 Host bridge: Intel Corporation 3rd Gen Core processor DRAM Controller (rev 09)
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller (rev 04)
00:16.0 Communication controller: Intel Corporation 7 Series/C210 Series Chipset Family MEI Controller #1 (rev 04)
00:16.3 Serial controller: Intel Corporation 7 Series/C210 Series Chipset Family KT Controller (rev 04)
00:19.0 Ethernet controller: Intel Corporation 82579LM Gigabit Network Connection (rev 04)
00:1a.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 1 (rev c4)
00:1c.1 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 2 (rev c4)
00:1c.2 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 3 (rev c4)
00:1d.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation QM77 Express Chipset LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 7 Series Chipset Family 6-port SATA Controller [AHCI mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 7 Series/C210 Series Chipset Family SMBus Controller (rev 04)
02:00.0 System peripheral: Ricoh Co Ltd PCIe SDXC/MMC Host Controller (rev 07)
03:00.0 Network controller: Intel Corporation Centrino Advanced-N 6205 (rev 34
przmjaskier
New User
 
Posts: 8
Joined: Tue Feb 19, 2013 12:05 am

Re: nxjupload hangs on Linux Mint 13

Postby VincentAcid » Fri Apr 19, 2013 4:19 am

Hello,
I'm using Ubuntu 12.04 64-bit and got the same problem. I couldn't connect to NXT via USB but i think i got a solution... at least it worked for myself:

I had the NXT connected to a USB 3.0 port and it didn't connect but when i use a USB 2.0 port it works. So i guess libusb doesn't like 3.0...
Hope this helps someone because it took me hours fighting with that problem.

I have the newest version of libusb installed + libusb-compat.
VincentAcid
New User
 
Posts: 1
Joined: Fri Apr 19, 2013 4:11 am

Re: nxjupload hangs on Linux Mint 13

Postby skoehler » Sat Apr 20, 2013 2:51 pm

USB 3.0 could indeed be the cause. The lspci provided by przmjaskier shows that his computer also has USB 3.0 (xHCI). I will have to ask Andy about this. Maybe there is a problem with the leJOS firmware and USB 3.0. (The NXT hardware only support 2.0 and one would imagine that a USB 3.0 host talks to USB 2.0 devices the same way a USB 2.0 host does - but who knows?)
skoehler
leJOS Team Member
 
Posts: 1421
Joined: Thu Oct 30, 2008 4:54 pm

Re: nxjupload hangs on Linux Mint 13

Postby skoehler » Mon Apr 22, 2013 1:46 pm

I don't think that libusb has problems with USB 3.0. It could also be some kind of hardware problem. Could you try connecting a USB hub (preferably a USB 2.0 hub) to an USB 3.0 port and then connect the NXT to the hub? Does that help?
skoehler
leJOS Team Member
 
Posts: 1421
Joined: Thu Oct 30, 2008 4:54 pm

Re: nxjupload hangs on Linux Mint 13

Postby proFeD » Fri Oct 25, 2013 9:40 pm

skoehler wrote:I don't think that libusb has problems with USB 3.0. It could also be some kind of hardware problem. Could you try connecting a USB hub (preferably a USB 2.0 hub) to an USB 3.0 port and then connect the NXT to the hub? Does that help?


I have the same hardware as przmjaskier and I try to install all as Vincent, but in 2.0 or 3.0 port hangs on Linux Ubuntu 12.04 LTS. I try to change Ubuntu with 13.10 new installation but some problems still remain...

Any suggestion??
proFeD
New User
 
Posts: 3
Joined: Mon Sep 16, 2013 9:24 pm

Re: nxjupload hangs on Linux Mint 13

Postby ChristopheNS » Sat Nov 23, 2013 2:47 pm

Hello,

Same problem occurs with my NXT. Have you and idea to solve it ?

Thank for answer.
ChristopheNS
New User
 
Posts: 6
Joined: Sat Nov 23, 2013 2:43 pm

Re: nxjupload hangs on Linux Mint 13

Postby sanchezl » Sat Feb 01, 2014 8:31 pm

I am experiencing the same problems.
I am on Fedora 20, 64-bit, running leJOS_NXJ_0.9.1beta-3.
After reading this topic, I unplugged the NXT from the USB 3 port and plugged it into a USB 2 port on my laptop (I guess I'm lucky it has both).
It works fine after plugging into the USB 2.0 port.
sanchezl
New User
 
Posts: 1
Joined: Sat Feb 01, 2014 8:22 pm

Re: nxjupload hangs on Linux Mint 13

Postby gymbuntu » Mon Feb 24, 2014 4:05 pm

Same problem for me with ubuntu 12.04.3 64bit.
But plugging into usb2 port did not help

Roland
gymbuntu
New User
 
Posts: 4
Joined: Sun Feb 09, 2014 2:29 pm

Re: nxjupload hangs on Linux Mint 13

Postby gymbuntu » Tue Feb 25, 2014 8:06 am

workaround:
I just got a 2.99 $ USB Bluetooth Dongle.
It works out of the box with Ubuntu 12.04 and the conection to the NXT works as well.
For me the problem is solved.

(on top it is very handy to use bluetooth instead of a cable...)

Roland
gymbuntu
New User
 
Posts: 4
Joined: Sun Feb 09, 2014 2:29 pm

Re: nxjupload hangs on Linux Mint 13

Postby Timendainum » Sun Oct 12, 2014 3:47 am

I'm having the same problem. Did anyone else solve this problem without using bluetooth?

Running Arch Linux, 64bit
Timendainum
New User
 
Posts: 3
Joined: Sun May 18, 2014 7:42 am

Previous

Return to NXJ Software

Who is online

Users browsing this forum: No registered users and 3 guests

more stuff