Digistump Forums
The Digispark => Digispark (Original) Support => Topic started by: mbaroukh 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
-
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 ...
-
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.
-
@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!
-
I\'ve flashed a DigiSpark on Ubuntu 10.04 but I had to use a powered hub. None of the internal ports would work.
-
I\'ve got a fresh copy of 12.04 installing now - I\'ll do some additional testing with it tomorrow
-
@mabroukh - one more thought - have you tired more than one Digispark?
-
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
-
Also worth a read: http://uucode.com/blog/2011/01/18/solved-unable-to-enumerate-usb-device-on-port-1/
-
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.
-
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 ;)
-
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.
-
Sorry for the bad info on MacOS : it works :)
I just forgot to select the Programer.
-
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.
-
@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
-
I am going to dig out a windows xp laptop just to make sure these things work
Edit: 2 of my digisparks work from Windows XP. I just have the minor annoyance of having to unplug them before I upload the sketch and plug them in after I press the upload button.
-
@redleader -
I tested 12.04 with a USB 3.0 motherboard and it is working for me using http://digistump.com/board/index.php?p=/discussion/177#Item_2
that binary and the udev rules from the troubleshooting section.
Nothing plugged into the Digispark, Digispark unplugged, I hit upload and then plug in when instructed.
This is a fresh install of 12.04
If that info doesn\'t help - can you try programming it with the DigiUSB sketch on your windows laptop and then see if the linux machine/router will see it - after 5 seconds of being plugged in it will disconnect and reconnect (going form programming mode to running) and then stay connected - I\'m curious if part of the issue is the 5 second programming timeout is causing an issue (since when DigiUSB or another USB sketch isn\'t loaded it disconnects after the 5 seconds and does not reconnect).
The unplugging and then plugging in to program is how the Digispark is able to be programmed by USB but allow the use of those pins in a project after programming. While certainly a design compromise to allow the attiny85 to do all of this - it has been that way since the very first video.
Let me know if any of this helps and I\'ll keep trying to replicate it or come up with any ideas.
Thanks,
Erik
-
I am using Fedora 17, and one of the sparks (the other two register fine) I plug in doesn\'t actually register on the system. I see nothing in /var/log/messages and lsusb contains no change. I do see the power led turn on and then the second green led blinks. Any thoughts as to why this is happening? I am wondering if the usb chip on the board is just bad, but I don\'t want to jump to conclusions.
-
I am using Fedora 17, and one of the sparks (the other two register fine) I plug in doesn\'t actually register on the system. I see nothing in /var/log/messages and lsusb contains no change. I do see the power led turn on and then the second green led blinks. Any thoughts as to why this is happening? I am wondering if the usb chip on the board is just bad, but I don\'t want to jump to conclusions.
If you've given it several tries and the one is still a no go send me an email support at digistump dot com and we'll get you taken care of.
Thanks,
Erik
-
I did a test again, they all register and then disconnect. Here is the log messages for each one:
Jan 22 18:39:39 platinum kernel: [40001.922549] usb 1-1.1: new low-speed USB device number 5 using ehci_hcd
Jan 22 18:39:40 platinum kernel: [40002.015547] usb 1-1.1: New USB device found, idVendor=16d0, idProduct=0753
Jan 22 18:39:40 platinum kernel: [40002.015550] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
Jan 22 18:39:40 platinum mtp-probe: checking bus 1, device 5: "/sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1"
Jan 22 18:39:40 platinum mtp-probe: bus: 1, device: 5 was not an MTP device
Jan 22 18:39:45 platinum kernel: [40007.113862] usb 1-1.1: USB disconnect, device number 5
Jan 22 18:40:10 platinum kernel: [40032.850304] usb 1-1.1: new low-speed USB device number 6 using ehci_hcd
Jan 22 18:40:11 platinum kernel: [40032.944191] usb 1-1.1: New USB device found, idVendor=16d0, idProduct=0753
Jan 22 18:40:11 platinum kernel: [40032.944194] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
Jan 22 18:40:11 platinum mtp-probe: checking bus 1, device 6: "/sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1"
Jan 22 18:40:11 platinum mtp-probe: bus: 1, device: 6 was not an MTP device
Jan 22 18:40:16 platinum kernel: [40038.041447] usb 1-1.1: USB disconnect, device number 6
Jan 22 18:40:27 platinum kernel: [40049.720523] usb 1-1.1: new low-speed USB device number 7 using ehci_hcd
Jan 22 18:40:27 platinum kernel: [40049.812000] usb 1-1.1: New USB device found, idVendor=16d0, idProduct=0753
Jan 22 18:40:27 platinum kernel: [40049.812004] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
Jan 22 18:40:27 platinum mtp-probe: checking bus 1, device 7: "/sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1"
Jan 22 18:40:27 platinum mtp-probe: bus: 1, device: 7 was not an MTP device
Jan 22 18:40:32 platinum kernel: [40054.655565] usb 1-1.1: USB disconnect, device number 7
-
@sparticvs - so all three appear to work correctly, disconnecting after 5 seconds is the designed behavior.
To be clear: It seems the third one does work.
Are you still experiencing linux issues then?
If so can you explain the steps you have taken, things you have tried, etc? Have you downloaded the linux package or compiled your own? Have you tried the items in the troubleshooting guides?
Thanks,
Erik
-
I guess I am not seeing issues right now. I am just getting weird behavior depending which USB port I plug it into...but I think that might be due to me breaking ports. So I will just say it all works for now, and I will get the IDE installed and give it a run through.
-
As a fellow Linux Mint 14 user I thought I would throw my experience into the mix as well. Mint 14 (64bit) is based on Ubuntu 12.10 so the results should be similar.
Are tarballs on the wiki the same as the one stickied in this section? I downloaded the linux tarball from the wiki, and initially the gui wouldn't even load due to rxtx problems, i solved this by replacing the bundled RXTXcomm with one I downloaded. Then it still wouldn't work so I changed librxtxSerial64.so (I'm using a 64bit OS) to just be librxtxSerial.so (and renamed the original to backup). This finally allowed me to get the gui to open. Did anybody else have these issues?
Mine also did not work at all until I found this thread and tried it with a powered hub. Initially the hub had to plugged into USB2.0 but now it's working on my USB3 ports as well. Not sure why but I couldn't get it to work at all jus plugging into USB ports. Not sure if this has something to do with it but it is a laptop. Let me know if you want more details.
-
chut - thanks for the info!
the tar files should be the same - that said the top of our list as soon as we finish shipping in the next several days is to setup a full linux build system to alleviate these issues
regarding the powered hub - I'm stumped on this, it seems some versions of linux won't allow the device enough power (it requests 100ma) or something like that, since it will work fine on windows/osx on a computer without a powered hub and then need one on certain distros on the same computer. I'll of course continue to investigate it as soon as I have more time.
-
Erik (I'm assuming that's you),
Thanks for the quick reply. The hub is stumping to me too, I was completely stumped about why it wouldn't work until I found this thread and tried the hub. The only other relevant piece of info I can think of is I'm on the 64bit version of Mint 14.
Ubuntu (I only recently switched to mint) has always had serious issues with my laptop's USB3.0 ports, they were causing suspend/resume issues for me. I wonder if it has something to do with the way Ubuntu now handles USB3 connections. But I don't really know enough to know why that would cause problems.
-
chut - good to know about the suspend/resume issues that makes me wonder if the digispark isn't able to wake up the usb port on linux or something like that....
While I have tested on 20+ computers and never needed a powered hub - it is obvious that some machines/OSes might - here is my favorite for anyone looking: http://www.ebay.com/itm/New-7-Port-USB-2-0-High-Speed-HUB-AC-Power-Adapter-Black-/390520019648?pt=US_USB_Cables_Hubs_Adapters&hash=item5aecce9ac0
Cheap, it works, and it protects me from breaking my computer when I stupidly build circuits on the Digispark while it is plugged in - Digispark still gets fried, but computer doesn't...