Chopper HUB specifications
Hardware
- USB HUB controller IC
- micro-processor
- Load switch to connect/disconnect VBUS
- Analog switch to connect/disconnect D+/D-
- Power switch to select self or bus powered mode
License
- Creative Commons Attribution Share-Alike 4.0 License
https://creativecommons.org/licenses/by-sa/4.0
Firmware
- HID Class (no specific device driver required)
- Based on M-Stack:
http://www.signal11.us/oss/m-stack/
- Dual-licensed under the LGPL version 3 and the Apache License version 2.0
Cross Platform SDK
Features
- OS Linux/Mac/Windows
- Compiler: GCC, MinGW and MS Visual C++
- Command line tool chain
- API for C++/Python/Ruby
- Sample program
License
- GPL v2
I just finished a project that does this. I used the TI TPS2546. A couple of IOs into the device and you can switch from charge sources or host connect. When you change the modes it disconnects the power and reconnects for you. 60 cents I think. Small package.
It might give you some ideas if nothing else.