uhubctl | uhubctl - USB hub per-port power control

 by   mvp C Version: v2.5.0 License: Non-SPDX

kandi X-RAY | uhubctl Summary

kandi X-RAY | uhubctl Summary

uhubctl is a C library typically used in Internet of Things (IoT), Raspberry Pi applications. uhubctl has no bugs, it has no vulnerabilities and it has medium support. However uhubctl has a Non-SPDX License. You can download it from GitHub.

uhubctl is utility to control USB power per-port on smart USB hubs. Smart hub is defined as one that implements per-port power switching. Original idea for this code was inspired by hub-ctrl.c by Niibe Yutaka:
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              uhubctl has a medium active ecosystem.
              It has 1761 star(s) with 198 fork(s). There are 46 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 4 open issues and 416 have been closed. On average issues are closed in 4 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of uhubctl is v2.5.0

            kandi-Quality Quality

              uhubctl has no bugs reported.

            kandi-Security Security

              uhubctl has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              uhubctl has a Non-SPDX License.
              Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.

            kandi-Reuse Reuse

              uhubctl releases are available to install and integrate.
              Installation instructions are not available. Examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of uhubctl
            Get all kandi verified functions for this library.

            uhubctl Key Features

            No Key Features are available at this moment for uhubctl.

            uhubctl Examples and Code Snippets

            No Code Snippets are available at this moment for uhubctl.

            Community Discussions

            QUESTION

            How to turn USB port power on and off in Raspberry PI 4
            Asked 2020-Jan-16 at 17:09

            On a Raspberry PI 3B+, it's simple to turn power on its four USB ports off and on. Simply write a "0" to /sys/devices/platform/soc/3f980000.usb/buspower to turn power off and a "1" to turn power on.

            The same method doesn't work on Raspberry PI 4B, 4GB (the hex number before ".usb" is different, that's NOT the problem). I have tried uhubctl and hub-ctl as well without any success. I have used a USB power meter to measure the voltage on the ports. It doesn't change. Un a PI 3B+ it changes as expected.

            Does the PI 4 support turning USB power off and on in software at all? If it does, how to do it? Or is there a bug somewhere that has to be fixed to make it work? I use the newest Rapbian on both the Pi 3B+ and the Pi 4.

            ...

            ANSWER

            Answered 2020-Jan-16 at 15:40

            As far as I read Raspberry Pi and Linux issues on GitHub, it seems that there was a bugfix released for uhubctl on 2019 July. Patch I'm refering to: mvp/uhubctl@4aae44c. It should be merged to master. So...

            Another thing to have in mind, it seems that RRi 4B hardware only supports "ganged power switching", which means... that You can only turn on and off ALL the USB ports. Not every single one in particular.

            Source https://stackoverflow.com/questions/59772765

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install uhubctl

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries

            Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link