{"id":20885287,"url":"https://github.com/lab11/usbreset","last_synced_at":"2026-04-25T00:31:54.510Z","repository":{"id":57387836,"uuid":"53386681","full_name":"lab11/usbreset","owner":"lab11","description":"Node.js tool for resetting USB adapters","archived":false,"fork":false,"pushed_at":"2016-03-08T06:00:22.000Z","size":1,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-01-19T10:43:31.366Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lab11.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-03-08T05:58:32.000Z","updated_at":"2019-10-01T00:24:32.000Z","dependencies_parsed_at":"2022-09-06T09:51:14.795Z","dependency_job_id":null,"html_url":"https://github.com/lab11/usbreset","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lab11%2Fusbreset","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lab11%2Fusbreset/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lab11%2Fusbreset/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lab11%2Fusbreset/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lab11","download_url":"https://codeload.github.com/lab11/usbreset/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243267280,"owners_count":20263799,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-18T08:13:02.012Z","updated_at":"2025-12-29T00:20:55.258Z","avatar_url":"https://github.com/lab11.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"usbreset\n========\n\nThis tool resets a USB device. The use case is to attempt to gain functionality\nagain from a device that is unresponsive, for instance a hanging USB BLE\nadapter. This tool is Linux-only and unfortunately requires running with `sudo`\nin order to interact directly with USB devices.\n\nUSB devices are specified by Vendor ID (VID) and Product ID (PID). These\nnumbers are unique to a given product and can be found by running `lsusb`. For\nexample in the following output from `lsusb` the Vendor ID is 0x0a5c and\nProduct ID is 0x21e8\n```\nBus 002 Device 001: ID 0a5c:21e8 Broadcom Corp. BCM20702A0 Bluetooth 4.0\n```\n\nUsage\n-----\n\n```javascript\nvar usbreset = require('usbreset');\n\nvar VID = 0x0a5c;\nvar PID = 0x21e8;\n\nvar error = usbreset.reset(VID, PID);\nif (error) {\n    console.log(error);\n} else {\n    // USB device has been reset\n}\n\n```\n\nNotes\n-----\n\nOccasionally this ioctl throws a -19, ENODEV. It's unclear why. Running it a\nsecond time usually results in a successful reset.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flab11%2Fusbreset","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flab11%2Fusbreset","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flab11%2Fusbreset/lists"}