element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Raspberry Pi
  • Products
  • More
Raspberry Pi
Raspberry Pi Forum Self-powered hub + RF mouse + network = Fail
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
Raspberry Pi Wishlist
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 30 replies
  • Subscribers 678 subscribers
  • Views 4550 views
  • Users 0 members are here
Related

Self-powered hub + RF mouse + network = Fail

morgaine
morgaine over 13 years ago

Over the last several days, I've been doing a lot of testing of Pi with self-powered USB hubs.  Of the 3 hubs I possess, one is not Pi-compatible so I won't refer to it any further here.  The other two are nominally Pi-compatible and USB-compliant (they don't supply power upstream through the A-B lead), and the Pi boots fine with either of them connected, even when its power comes from one of their ports.  They are well-known and moderately expensive 4 and 7-port Belkin hubs, powered with hefty 2.5A and 3.8A mains adapters respectively:

 

  • Belkin TetraHub Hi-Speed USB 2.0 (4-Port) Hub F5U231
  • Belkin USB 2.0 Plus (7 Port) Hub F5U307

 

The testing had a single goal, to get the Pi to work correctly with 2 common USB devices attached to the self-powered hub, a mouse and a keyboard, while at the same time being connected to my local wired network.  The definition of "work correctly" for these tests was "A. Not lose any USB events" and "B. Operate normally over the local LAN without RTT anomalies nor packet loss".  Nobody could call this requirement ambitious --- it's the minimum one could demand of a networked computer today, or even less than minimum since the tests involved no thumb drive for backup for example.  (Such expansion is the reason for the hub.)

 

Soon after receiving my Pi I reported here about the substantial USB event/data loss I was seeing, which made the Pi barely usable for me.  (No USB hubs were connected at the time).  I found a wired mouse and keyboard that worked with only occasional dropouts so the Pi became more or less operational, but I had no time to pursue the USB loss issue further, until now.  "More or less operational" means I wasn't cursing too frequently, despite the losses.

 

Tethered keyboards aren't too bad for me because the keyboard rarely moves around, but I find tethered mice a poor human interface as the wire just gets in the way.  Therefore my main focus was to find an RF mouse that works with the Pi in the above configuration, and I planned to check out RF keyboards only later.  I have 6 RF mice of 4 different types:

 

  • Logitech MX-1000
  • Logitech MK320 Desktop combo (mouse only)
  • Logitech EX110 Desktop combo (mouse only)
  • Sandstrom SMWLL11

 

I won't list my wired keyboards nor wired mice for the simple reason that they all work "mostly OK" both when plugged into the Pi's on-board USB sockets and also when plugged into the self-powered hubs --- they're a combination of Logitech, Dell, and unbranded others.  "Mostly OK" means that there is an occasional USB event lost, but other than that, they fall into my "more or less operational" category.  (Not really satisfactory, but then, this is the Pi ...)

 

To avoid this post getting too long, I'm going to summarize my results ruthlessly, because despite a little variation, they all fall into the same ballpark:

 

  • If any of the above RF mice is plugged into either of the above self-powered hubs, then USB event/data loss increases from minimal to massive, USB response often disappears altogether for 5-10 seconds at a time (both mouse and keyboard), network ping RTT changes from a nominal 0.5 ms to thousands of times longer (1-13 seconds),  Ethernet controller read and write failures appear repeatedly in /var/log/messages, and all higher-level network activity such as ssh or NFS ceases or fails.
  • Replacing the RF mouse by a wired one usually ends the problem and returns the system to normal (but not perfect) operation.  Sometimes, unplugging the RF mouse is not enough and the hub needs to be unplugged from the Pi and replugged, which almost always ends the problem as long as no RF mouse is connected.  A couple of times I also had to reboot to recover.

 

This difference between RF and wired mice is so striking and so unambiguous that I'll just leave it at that.

 

From my experience, the Pi is not usable with RF mice attached to self-powered hubs, if my hubs are representative.

 

These tests were carried out with Raspbian updated to the latest packages and RPF firmware.

 

Morgaine.

  • Sign in to reply
  • Cancel
Parents
  • jamodio
    jamodio over 13 years ago

    OK, something positive to contribute to your "RF" quest ...

     

    I just received one of the Ultra Mini Keyboards with touchpad that have a 2.4GHz link and is listed as supported by Debian 3.1.

     

    This is the Amazon listing for the one I purchased -> http://www.amazon.com/gp/product/B003UE52ME/ref=oh_details_o00_s00_i00

     

    Adafruit which is also riding the R-Pi fever have this one listed (no stock now) -> http://www.adafruit.com/products/922 but $49.95 vs $16-25 from Amazon.

     

    I'm happy to report that IT WORKS with the R-Pi... just connected the little RF USB adapter, powered the keyboard and the R-Pi, no issues recognizing it or enumerating, started X11 and even the touch pad works nicely.

     

    I only have the 2.4GHz USB transceiver, HDMI monitor and ethernet connected to the R-Pi (caveat I'm powering the R-Pi with my switching 5V PS directly to P1 and have 500mA instead of 140mA polyfuses).

     

    This is how it shows on the R-pi:

     

    root@raspberrypi:~# lsusb

    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

    Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.

    Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.

    Bus 001 Device 004: ID 0c45:7000 Microdia

     

    root@raspberrypi:~# lsusb -v -s 001:004

    Bus 001 Device 004: ID 0c45:7000 Microdia

    Device Descriptor:

      bLength                18

      bDescriptorType         1

      bcdUSB               1.10

      bDeviceClass            0 (Defined at Interface level)

      bDeviceSubClass         0

      bDeviceProtocol         0

      bMaxPacketSize0         8

      idVendor           0x0c45 Microdia

      idProduct          0x7000

      bcdDevice            0.01

      iManufacturer           1 RCMCU

      iProduct                2 2.4GHz receiver

      iSerial                 0

      bNumConfigurations      1

      Configuration Descriptor:

        bLength                 9

        bDescriptorType         2

        wTotalLength           59

        bNumInterfaces          2

        bConfigurationValue     1

        iConfiguration          0

        bmAttributes         0xa0

          (Bus Powered)

          Remote Wakeup

        MaxPower              100mA

        Interface Descriptor:

          bLength                 9

          bDescriptorType         4

          bInterfaceNumber        0

          bAlternateSetting       0

          bNumEndpoints           1

          bInterfaceClass         3 Human Interface Device

          bInterfaceSubClass      1 Boot Interface Subclass

          bInterfaceProtocol      1 Keyboard

          iInterface              0

            HID Device Descriptor:

              bLength                 9

              bDescriptorType        33

              bcdHID               1.11

              bCountryCode            0 Not supported

              bNumDescriptors         1

              bDescriptorType        34 Report

              wDescriptorLength      77

             Report Descriptors:

               ** UNAVAILABLE **

          Endpoint Descriptor:

            bLength                 7

            bDescriptorType         5

            bEndpointAddress     0x81  EP 1 IN

            bmAttributes            3

              Transfer Type            Interrupt

              Synch Type               None

              Usage Type               Data

            wMaxPacketSize     0x0008  1x 8 bytes

            bInterval              10

        Interface Descriptor:

          bLength                 9

          bDescriptorType         4

          bInterfaceNumber        1

          bAlternateSetting       0

          bNumEndpoints           1

          bInterfaceClass         3 Human Interface Device

          bInterfaceSubClass      1 Boot Interface Subclass

          bInterfaceProtocol      2 Mouse

          iInterface              0

            HID Device Descriptor:

              bLength                 9

              bDescriptorType        33

              bcdHID               1.11

              bCountryCode            0 Not supported

              bNumDescriptors         1

              bDescriptorType        34 Report

              wDescriptorLength     116

             Report Descriptors:

               ** UNAVAILABLE **

          Endpoint Descriptor:

            bLength                 7

            bDescriptorType         5

            bEndpointAddress     0x82  EP 2 IN

            bmAttributes            3

              Transfer Type            Interrupt

              Synch Type               None

              Usage Type               Data

            wMaxPacketSize     0x0007  1x 7 bytes

            bInterval              10

    Device Status:     0x0000

      (Bus Powered)

     

    I've another one from Logitech coming soon, a little bit bigger. I'll let know if that one also works with the R-Pi.

     

    BTW this one also works with the APC board, and together with the keyboard I received the Android MK802 Mini PC, I'll write about it on a separate post.

     

    -J

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • jamodio
    jamodio over 13 years ago

    OK, something positive to contribute to your "RF" quest ...

     

    I just received one of the Ultra Mini Keyboards with touchpad that have a 2.4GHz link and is listed as supported by Debian 3.1.

     

    This is the Amazon listing for the one I purchased -> http://www.amazon.com/gp/product/B003UE52ME/ref=oh_details_o00_s00_i00

     

    Adafruit which is also riding the R-Pi fever have this one listed (no stock now) -> http://www.adafruit.com/products/922 but $49.95 vs $16-25 from Amazon.

     

    I'm happy to report that IT WORKS with the R-Pi... just connected the little RF USB adapter, powered the keyboard and the R-Pi, no issues recognizing it or enumerating, started X11 and even the touch pad works nicely.

     

    I only have the 2.4GHz USB transceiver, HDMI monitor and ethernet connected to the R-Pi (caveat I'm powering the R-Pi with my switching 5V PS directly to P1 and have 500mA instead of 140mA polyfuses).

     

    This is how it shows on the R-pi:

     

    root@raspberrypi:~# lsusb

    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

    Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.

    Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.

    Bus 001 Device 004: ID 0c45:7000 Microdia

     

    root@raspberrypi:~# lsusb -v -s 001:004

    Bus 001 Device 004: ID 0c45:7000 Microdia

    Device Descriptor:

      bLength                18

      bDescriptorType         1

      bcdUSB               1.10

      bDeviceClass            0 (Defined at Interface level)

      bDeviceSubClass         0

      bDeviceProtocol         0

      bMaxPacketSize0         8

      idVendor           0x0c45 Microdia

      idProduct          0x7000

      bcdDevice            0.01

      iManufacturer           1 RCMCU

      iProduct                2 2.4GHz receiver

      iSerial                 0

      bNumConfigurations      1

      Configuration Descriptor:

        bLength                 9

        bDescriptorType         2

        wTotalLength           59

        bNumInterfaces          2

        bConfigurationValue     1

        iConfiguration          0

        bmAttributes         0xa0

          (Bus Powered)

          Remote Wakeup

        MaxPower              100mA

        Interface Descriptor:

          bLength                 9

          bDescriptorType         4

          bInterfaceNumber        0

          bAlternateSetting       0

          bNumEndpoints           1

          bInterfaceClass         3 Human Interface Device

          bInterfaceSubClass      1 Boot Interface Subclass

          bInterfaceProtocol      1 Keyboard

          iInterface              0

            HID Device Descriptor:

              bLength                 9

              bDescriptorType        33

              bcdHID               1.11

              bCountryCode            0 Not supported

              bNumDescriptors         1

              bDescriptorType        34 Report

              wDescriptorLength      77

             Report Descriptors:

               ** UNAVAILABLE **

          Endpoint Descriptor:

            bLength                 7

            bDescriptorType         5

            bEndpointAddress     0x81  EP 1 IN

            bmAttributes            3

              Transfer Type            Interrupt

              Synch Type               None

              Usage Type               Data

            wMaxPacketSize     0x0008  1x 8 bytes

            bInterval              10

        Interface Descriptor:

          bLength                 9

          bDescriptorType         4

          bInterfaceNumber        1

          bAlternateSetting       0

          bNumEndpoints           1

          bInterfaceClass         3 Human Interface Device

          bInterfaceSubClass      1 Boot Interface Subclass

          bInterfaceProtocol      2 Mouse

          iInterface              0

            HID Device Descriptor:

              bLength                 9

              bDescriptorType        33

              bcdHID               1.11

              bCountryCode            0 Not supported

              bNumDescriptors         1

              bDescriptorType        34 Report

              wDescriptorLength     116

             Report Descriptors:

               ** UNAVAILABLE **

          Endpoint Descriptor:

            bLength                 7

            bDescriptorType         5

            bEndpointAddress     0x82  EP 2 IN

            bmAttributes            3

              Transfer Type            Interrupt

              Synch Type               None

              Usage Type               Data

            wMaxPacketSize     0x0007  1x 7 bytes

            bInterval              10

    Device Status:     0x0000

      (Bus Powered)

     

    I've another one from Logitech coming soon, a little bit bigger. I'll let know if that one also works with the R-Pi.

     

    BTW this one also works with the APC board, and together with the keyboard I received the Android MK802 Mini PC, I'll write about it on a separate post.

     

    -J

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
  • jamodio
    jamodio over 13 years ago in reply to jamodio

    Another configuration tested ...

     

    2.4GHz RF transceiver for the keyboard on one of the R-Pi USB ports, self powered USB 4-port hub (Kensington) on the other port, an old WiFi Digitus USB dongle with the Realtek RTL8187 chipset:

     

    root@raspberrypi:~# lsusb

    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

    Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.

    Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.

    Bus 001 Device 004: ID 0c45:7000 Microdia

    Bus 001 Device 005: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB

    Bus 001 Device 006: ID 0bda:8187 Realtek Semiconductor Corp. RTL8187 Wireless Adapter

     

    I didn't configure WiFi, I'm using it right now just to sniff with Kismet.

     

    Keyboard and touchpad still work.

     

    -J

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • morgaine
    morgaine over 13 years ago in reply to jamodio

    That's a nice little combined device, branded differently in UK but it seems to be the same unit -- http://www.amazon.co.uk/RII-ProMini-Wireless-Keyboard-TouchPad/dp/B003UE52ME/ref=sr_1_2?ie=UTF8&qid=1345263538&sr=8-2

     

    I might pick it up next week, although it's a full-size keyboard + RF mouse that I'm really after for Pi.  Still, that's a good test and I guess the mini keyboard could be useful with a tablet so I'm quite happy to get it.

     

    I vaguely recall someone on the RPF forum saying that what gives the Pi most indigestion is the combination of devices of different USB versions.  That doesn't tally well with the fact that my test included the Logitech MK320 desktop, which presumably is all the same version since both keyboard and mouse share the same receiver.  But perhaps something else in the Pi USB chain is of a different version to that receiver.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 13 years ago in reply to morgaine

    As always, things move on. There's been a major update to the usb driver in the official kernel a couple of days ago: https://github.com/raspberrypi/linux/pull/85

     

    It would be interesting to test your failing device against this updated driver and see if there's any change.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • jamodio
    jamodio over 13 years ago in reply to morgaine

    This is the one I'm expecting from Logitech -> http://www.amazon.com/gp/product/B005DKZTMG/ref=oh_details_o01_s02_i00

     

    It is almost full size and has also a touchpad. I'll let you know if it works or not.

     

    -J

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 13 years ago in reply to jamodio

    I've got the K400, works perfectly with my laptop, intermittantly stalls and repeats when used direct or in a D-Link DUB-H4 4port hub. Other occupant of the hub an Edimax wifi dongle. Using it with Raspbmx at the moment but same behaviour on Raspbian.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • jamodio
    jamodio over 13 years ago in reply to Former Member

    Thanks for the information, it is supposed to arrive tomorrow, I'll let you how it goes.

     

    My plan is to keep that one associated with the APC board, waiting for them to make their cabinet available.

     

    -J

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube