This forum is now read only and kept for historical purposes. We'd love you to stay in the loop, and if you'd like to as well, you can sign up for our new forum here

Post Reply 
 
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
USB randomly disconnects
07-11-2012, 09:51 PM (This post was last modified: 07-11-2012 10:37 PM by Diaoul.)
Post: #1
USB randomly disconnects
Hi,

I got my USB keyboard / mouse / whatever disconnecting randomly from my Pi with this in /var/log/kern.log :
Code:
pi@raspbmc:~$ sudo tail -f -n 20 /var/log/kern.log
Jul 11 20:43:17 raspbmc kernel: [  642.143332] logitech 0003:046D:C71F.0006: input,hiddev0: USB HID v1.11 Mouse [Logitech Logitech BT Mini-Receiver] on usb-bcm2708_usb-1.2.3/input0
Jul 11 20:44:16 raspbmc kernel: [  701.132176] usb 1-1.2.2: USB disconnect, device number 9
Jul 11 20:44:16 raspbmc kernel: [  701.152950] usb 1-1.2.3: USB disconnect, device number 10
Jul 11 20:44:16 raspbmc kernel: [  701.259780] usb 1-1.2: reset full speed USB device number 4 using dwc_otg
Jul 11 20:44:17 raspbmc kernel: [  701.659961] usb 1-1.2.2: new full speed USB device number 11 using dwc_otg
Jul 11 20:44:17 raspbmc kernel: [  701.769274] usb 1-1.2.2: New USB device found, idVendor=046d, idProduct=c71e
Jul 11 20:44:17 raspbmc kernel: [  701.769472] usb 1-1.2.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jul 11 20:44:17 raspbmc kernel: [  701.769497] usb 1-1.2.2: Product: Logitech BT Mini-Receiver
Jul 11 20:44:17 raspbmc kernel: [  701.769514] usb 1-1.2.2: Manufacturer: Logitech
Jul 11 20:44:17 raspbmc kernel: [  701.769530] usb 1-1.2.2: SerialNumber: 001F201367B4
Jul 11 20:44:17 raspbmc kernel: [  701.822358] input: Logitech Logitech BT Mini-Receiver as /devices/platform/bcm2708_usb/usb1/1-1/1-1.2/1-1.2.2/1-1.2.2:1.0/input/input6
Jul 11 20:44:17 raspbmc kernel: [  701.831940] generic-usb 0003:046D:C71E.0007: input: USB HID v1.11 Keyboard [Logitech Logitech BT Mini-Receiver] on usb-bcm2708_usb-1.2.2/input0
Jul 11 20:44:17 raspbmc kernel: [  701.909797] usb 1-1.2.3: new full speed USB device number 12 using dwc_otg
Jul 11 20:44:17 raspbmc kernel: [  702.019798] usb 1-1.2.3: New USB device found, idVendor=046d, idProduct=c71f
Jul 11 20:44:17 raspbmc kernel: [  702.019846] usb 1-1.2.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jul 11 20:44:17 raspbmc kernel: [  702.019867] usb 1-1.2.3: Product: Logitech BT Mini-Receiver
Jul 11 20:44:17 raspbmc kernel: [  702.019883] usb 1-1.2.3: Manufacturer: Logitech
Jul 11 20:44:17 raspbmc kernel: [  702.019897] usb 1-1.2.3: SerialNumber: 001F201367B4
Jul 11 20:44:17 raspbmc kernel: [  702.109504] input: Logitech Logitech BT Mini-Receiver as /devices/platform/bcm2708_usb/usb1/1-1/1-1.2/1-1.2.3/1-1.2.3:1.0/input/input7
Jul 11 20:44:17 raspbmc kernel: [  702.121355] logitech 0003:046D:C71F.0008: input,hiddev0: USB HID v1.11 Mouse [Logitech Logitech BT Mini-Receiver] on usb-bcm2708_usb-1.2.3/input0

I tried two different power supplies of the same brand (HTC) 5V 1A.
Using Raspbmc RC3 with XBMC release on a fresh install.
I cannot reproduce this with OpenElec so I'm guessing the power supply isn't the issue here.

Any clue?



Seems to duplicate with http://forum.stmlabs.com/showthread.php?tid=360&page=3
It's running fine with OpenElec... and is still unresolved
Find all posts by this user
Quote this message in a reply
07-11-2012, 11:11 PM
Post: #2
RE: USB randomly disconnects
Probably fixed in rc4
Visit this user's website Find all posts by this user
Quote this message in a reply
07-11-2012, 11:16 PM
Post: #3
RE: USB randomly disconnects
How can I try a pre-rc4 build to get rid of that "probably" and test it for you? Smile
Find all posts by this user
Quote this message in a reply
07-11-2012, 11:19 PM
Post: #4
RE: USB randomly disconnects
Build it from SVN Smile
Visit this user's website Find all posts by this user
Quote this message in a reply
07-11-2012, 11:29 PM
Post: #5
RE: USB randomly disconnects
Thanks, I'll clone checkout the repo and eventually submit a pull request patch if I change something in there.
Find all posts by this user
Quote this message in a reply
07-11-2012, 11:31 PM
Post: #6
RE: USB randomly disconnects
That will need SVN 1.7 on your part as we have it behind a firewall
Visit this user's website Find all posts by this user
Quote this message in a reply
07-12-2012, 07:14 AM
Post: #7
RE: USB randomly disconnects
A bit off-topic but what do you use as virtual environment to build raspbmc? SVN 1.7 is available on Debian sid only :/
Also I'm guessing I should use svn://svn.stmlabs.com/ to checkout right? Couldn't find documentation about how to build raspbmc from the svn repo, if you can point me some that'd be great.
What about setting up a jenkins to automatically build raspbmc images from the repo? I believe a post commit hook could be used to start the build process
Find all posts by this user
Quote this message in a reply
07-12-2012, 08:55 AM
Post: #8
RE: USB randomly disconnects
I could reproduce this with OpenElec, it disconnected during the night.

Next steps :
* Yet another power supply
* Build from svn
* Other simple USB device (keyboard / mouse)
Find all posts by this user
Quote this message in a reply
07-12-2012, 08:08 PM
Post: #9
RE: USB randomly disconnects
As power supply is the common root cause of such behavior, I bought myself a new one as well as a multimeter.
Here is the average voltage I could measure on my RPi :
* HTC power supply : Spec: 5V/1A Model: TC E250 P/N: 79H00095-02M
-> 4.75V
* Belink Home Charger : Spec: 5V/1A Model: F8M126cw
-> 4.85V
* PHIHONG: Spec: 5V/1A Model PSAA05E-050
-> 4.98V

Now using the PHIHONG one which is really between 4.75 / 5.25 as recommended to safely use the RPi without risking any lack of power.
Yet, I still have my keyboard disconnecting...

Next step...
Find all posts by this user
Quote this message in a reply
07-12-2012, 08:20 PM
Post: #10
RE: USB randomly disconnects
(07-12-2012 07:14 AM)Diaoul Wrote:  A bit off-topic but what do you use as virtual environment to build raspbmc? SVN 1.7 is available on Debian sid only :/
Also I'm guessing I should use svn://svn.stmlabs.com/ to checkout right? Couldn't find documentation about how to build raspbmc from the svn repo, if you can point me some that'd be great.
What about setting up a jenkins to automatically build raspbmc images from the repo? I believe a post commit hook could be used to start the build process

Building works on Ubuntu or Debian. If using squeeze, upgrade qemu-system-arm and qemu-user-static to wheezy packages so you can chroot ARMEL.

You need SVN 1.7 because svn is now behind FW and will get an ugly 302 redirect cycle otherwise. I just commit behind that firewall.

Post-commit could do it, but creating a tarball every commit would hurt. And Raspbmc's rootFS is a tarball not an image.
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Sponsored Advertisement