Giter VIP home page Giter VIP logo

renumerate's Introduction

Application for resetting USB devices on macOS. Borrowed from USB Prober app.

Usage

renumerate [OPTIONS] [vendor_id,product_id [vendor_id,product_id] [locationID [location ID]]...

Options

The available options are as follows. If no option is specified the values after the options are assumed to be a sequence of vendorID,productID pairs (in hex). If the -l option is specified, the values after the options are assumed to be locationID's (in hex). If no action option is specitied, a reenumerate command will be sent to the device(s):

--locationID, -l
	 The values after the options are locationIDs, instead of vendorID,productID.
--configuration, -c
	 Set the USB configuration to the value specified.
--resume, -r
	 Send a USB Resume to the device.
--suspend, -s
	 Send a USB Suspend to the device.
--reset, -R
	 Send a USB ResetDevice to the device.
--verbose, -v
	 Verbose mode.
--version, -V
	 Print version.
--help, -h, -?
	 Show this help.

Examples

Reset device at vid: 0x0488, pid: 0x5740

renumerate 0x0488,0x5740

Set the configuration of the device at vid: 0x05ac, pid: 0x1126 to 1:

$ reenumerate -v -c 1 0x05ac,0x1126

Reenumerate the devices at locationIDs 0xfa144300 and 0xfd141310

$ reenumerate -v -l 0xfa144300 0xfd141310

Compiling

Either use CMake or

cc reenumerate.c -framework IOKit -framework CoreFoundation -o reenumerate

Installing

make install from CMake build directory

renumerate's People

Contributors

yeswolf avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.