Author Topic: connection on Linux  (Read 18043 times)

mbaroukh

  • Newbie
  • *
  • Posts: 8
connection on Linux
« on: January 17, 2013, 01:09:12 pm »
Hi.

I received my digisparks today.
I tried to connect them but in syslog I see :

Jan 17 21:46:02 zen kernel: [ 3156.642959] usb 3-3.1: new low-speed USB device number 26 using xhci_hcd
Jan 17 21:46:02 zen kernel: [ 3156.643661] usb 3-3.1: Device not responding to set address.
Jan 17 21:46:02 zen kernel: [ 3156.847182] usb 3-3.1: Device not responding to set address.
Jan 17 21:46:02 zen kernel: [ 3157.050202] usb 3-3.1: device not accepting address 26, error -71
Jan 17 21:46:02 zen kernel: [ 3157.066525] hub 3-3:1.0: unable to enumerate USB device on port 1

I added 49-micronucleus.rules in /etc/udev.d/rules.d but I think the problem is before that.

I have a Zenbook UX32VD on Linux Mint 14 (kernel 3.5.0-21 32 bits).
All USB port are USB 3.
I tried connecting via a old USB hub where I also plugged keyboard and mouse but no success.

I tried on another older computer with USB 2 with the same Linux Mint version but I also had (different) error :

[18855.400218] usb 5-1: new low-speed USB device number 3 using uhci_hcd
[18855.553374] usb 5-1: New USB device found, idVendor=16d0, idProduct=0753
[18855.553437] usb 5-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[18860.320482] usb 5-1: USB disconnect, device number 3
[18860.524035] ehci_hcd 0000:00:1d.7: port 1 reset error -110
[18860.544032] ehci_hcd 0000:00:1d.7: port 1 reset error -110
[18860.550090] ehci_hcd 0000:00:1d.7: port 1 reset error -110
[18860.560034] ehci_hcd 0000:00:1d.7: port 1 reset error -110
[18860.572043] ehci_hcd 0000:00:1d.7: port 1 reset error -110

Does it work for you on Linux ?

I'll try tomorrow on different Linux version but that's strange.
I used many different arduino compatible boards and never had any problem connecting ...

Thanks for any help.

Mike
« Last Edit: January 17, 2013, 01:09:12 pm by mbaroukh »

mbaroukh

  • Newbie
  • *
  • Posts: 8
connection on Linux
« Reply #1 on: January 17, 2013, 11:20:08 pm »
Well, I tried today on an older PC with Linux Mint 11 (2 years old) and other message, but still on error :

[511207.140019] usb 6-1: new low speed USB device using uhci_hcd and address 3
[511212.040046] usb 6-1: USB disconnect, address 3
[511213.830027] hub 2-0:1.0: unable to enumerate USB device on port 1
[511215.380028] hub 2-0:1.0: unable to enumerate USB device on port 1
[511216.930026] hub 2-0:1.0: unable to enumerate USB device on port 1
[511218.490029] hub 2-0:1.0: unable to enumerate USB device on port 1
[511220.040098] hub 2-0:1.0: unable to enumerate USB device on port 1


I\'m scared now ...

redleader36

  • Newbie
  • *
  • Posts: 3
connection on Linux
« Reply #2 on: January 18, 2013, 08:02:55 am »
I am having very similar problems on multiple Ubuntu computers and an OpenWRT router.  It must be something with the V-USB because all these linux devices can recognize an Arduino with an FTDI chip and an MSP430.

digistump

  • Administrator
  • Hero Member
  • *****
  • Posts: 1465
connection on Linux
« Reply #3 on: January 18, 2013, 01:16:48 pm »
@mabroukh - I have no experience with Linux Mint - but I know that many people have it working on plain old Ubuntu, so it isn\'t a linux thing specifically. Do you know which Ubuntu Linux Mint 14 is based on?

@redleader36 - which ubuntu version?

I agree this must be V-USB related, and I\'m guessing it is V-USB not cooperating with a certain version of USB drivers/code - I\'ll do some testing this weekend with some Ubuntu versions, so let me know the versions if you can. Also redleader if you haven\'t yet check out the other threads on here about ubuntu issues as well (and the wiki troubleshooting section if you haven\'t yet)

Thanks for your patience!



RussNelson

  • Newbie
  • *
  • Posts: 23
connection on Linux
« Reply #4 on: January 18, 2013, 10:07:30 pm »
I\'ve flashed a DigiSpark on Ubuntu 10.04 but I had to use a powered hub. None of the internal ports would work.

digistump

  • Administrator
  • Hero Member
  • *****
  • Posts: 1465
connection on Linux
« Reply #5 on: January 18, 2013, 10:44:56 pm »
I\'ve got a fresh copy of 12.04 installing now - I\'ll do some additional testing with it tomorrow

digistump

  • Administrator
  • Hero Member
  • *****
  • Posts: 1465
connection on Linux
« Reply #6 on: January 18, 2013, 10:52:27 pm »
@mabroukh - one more thought - have you tired more than one Digispark?

digistump

  • Administrator
  • Hero Member
  • *****
  • Posts: 1465
connection on Linux
« Reply #7 on: January 18, 2013, 10:54:59 pm »
one more thing - given @RussNelson\'s comment I looked up the error and found that many people have that error with USB hard drives that are bu powered and solve it with a powered hub, I\'m wondering if Ubuntu isn\'t allowing the device to be powered?? just throwing out ideas - the device requests 100ma

digistump

  • Administrator
  • Hero Member
  • *****
  • Posts: 1465
connection on Linux
« Reply #8 on: January 18, 2013, 10:59:12 pm »

mbaroukh

  • Newbie
  • *
  • Posts: 8
connection on Linux
« Reply #9 on: January 19, 2013, 02:09:50 am »
Hi all.

@digistump Yes, I tried more than one. And I could test on a windows machine today. It works after installing drivers. So digisparks works
And Linux Mint 14 is based on ubuntu 12.10.

I tried what asked your last proposition, but still the same error.
I don\'t really know how usb works beth the problem is not exactly the same.
For them, the error was \"... using ehci\". There it is \"... using xhci_hcd\".

I\'ll also try with a powered USB hub in case.

mbaroukh

  • Newbie
  • *
  • Posts: 8
connection on Linux
« Reply #10 on: January 19, 2013, 02:30:41 am »
Hum .. I tried on my child\'s macbook and it doesn\'t work too.
And the ide is not like the windows one : It doesn\'t ask you to plug the digispark when needed.
But I can\'t give more info : I\'m not a mac user adn don\'t know where to look.

Also, on widows I used the sample that emulate a keyboard and it works on Linux/Windows but not macosx. Well, anyway that\'s not a problem : emulating a keyboard will not be my primary usage ;)

mbaroukh

  • Newbie
  • *
  • Posts: 8
connection on Linux
« Reply #11 on: January 19, 2013, 02:46:01 am »
It seems better with a powered usb hub.
I have

[ 5950.820012] usb 3-2.3: new low-speed USB device number 20 using xhci_hcd
[ 5950.840365] usb 3-2.3: New USB device found, idVendor=16d0, idProduct=0753
[ 5950.840376] usb 3-2.3: New USB device strings: Mfr=0, Product=0, SerialNumber=0

then 5 sec later :
[ 5955.989206] usb 3-2.3: USB disconnect, device number 20

which as I understood is the normal behaviour.


I\'m now looking how to use the provided arduino ide.
It seems there are a lot of problems with rights.
Shouldn\'t you provide the archive as a .tar.gz file instead of zip ?

I\'ll try also with a windows XP on virtualbox. Now device strings are found, I should be able to mount the device on Virtualbox.

mbaroukh

  • Newbie
  • *
  • Posts: 8
connection on Linux
« Reply #12 on: January 19, 2013, 03:27:36 am »
Sorry for the bad info on MacOS : it works :)
I just forgot to select the Programer.

mbaroukh

  • Newbie
  • *
  • Posts: 8
connection on Linux
« Reply #13 on: January 19, 2013, 03:44:35 am »
Don\'t know if I can tag this thread as resolved, but using
1/ A usb powered port
2/ The archive provided by @RussNelson

It works on my Linux.

thanks a lot to everybody.

redleader36

  • Newbie
  • *
  • Posts: 3
connection on Linux
« Reply #14 on: January 19, 2013, 06:14:36 pm »
@digistump  I have tried Ubuntu 12.04, which is my main desktop.  I have also tried with my laptop running Ubuntu 9.04 and a TP-Link TL-WR703N running Attitude Adjustment OpenWrt.  The desktop still fails to communicate with the Digispark even through a powered USB hub.  This is a USB 3.0 motherboard as I have seen might cause additional problems.

I have tried two different digisparks to no avail.  At present with powered USB hub I am still getting this error in dmesg:

usb 4-5.1: new low-speed USB device number 32 using ohci_hcd
usb 4-5.1: device not accepting address 32, error -62
hub 4-5:1.0: unable to enumerate USB device on port 1

also, there are no files in /sys/bus/pci/drivers/ehci_hcd for me to unbind