{"id":21888114,"url":"https://github.com/autch/pieceif-libusb","last_synced_at":"2026-04-24T21:31:46.275Z","repository":{"id":139301115,"uuid":"120643894","full_name":"autch/pieceif-libusb","owner":"autch","description":"pieceif.dll の libusb への移植","archived":false,"fork":false,"pushed_at":"2018-02-09T12:09:49.000Z","size":26,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-11T10:57:23.724Z","etag":null,"topics":["c","libusb","piece-me"],"latest_commit_sha":null,"homepage":null,"language":"C","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/autch.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-02-07T16:54:36.000Z","updated_at":"2023-11-22T07:57:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"e5c2804b-6fda-4067-9180-2cc80bf08142","html_url":"https://github.com/autch/pieceif-libusb","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/autch/pieceif-libusb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/autch%2Fpieceif-libusb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/autch%2Fpieceif-libusb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/autch%2Fpieceif-libusb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/autch%2Fpieceif-libusb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/autch","download_url":"https://codeload.github.com/autch/pieceif-libusb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/autch%2Fpieceif-libusb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32241591,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["c","libusb","piece-me"],"created_at":"2024-11-28T11:14:13.846Z","updated_at":"2026-04-24T21:31:46.253Z","avatar_url":"https://github.com/autch.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pieceif-libusb\n\n[P/ECE](http://aquaplus.jp/piece/) の USB 接続ライブラリである pieceif.dll を libusb に移植したものです。\n\nドライバ署名検証の無効化というリスクを冒さずに P/ECE を現代の Windows で使うことができるようになります。\n\n## 注意\n\n* ~~ソース上で libusb の API に置き換えたけどまだ動かない。~~ → 直した。動く。\n* ~~複数接続の実装が怪しい。~~ → 動く？\n\n## 準備\n\n本家のドライバやその他の互換ドライバが入っているときは、あらかじめデバイスマネージャで削除します。デバイスを削除する際に「このデバイスのドライバーファイルも削除します」にチェックすればいいはずです。\n\nP/ECE を USB 接続した状態で [Zadig](http://zadig.akeo.ie/) をダウンロードして実行し、 `PIECE PME-001` が選択されている状態で WinUSB をインストールします。\n\n## バイナリ配布を使う\n\n[Visual Studio 2017 の Microsoft Visual C++ 再頒布可能パッケージ (x86)](https://go.microsoft.com/fwlink/?LinkId=746572) が入っていなければ入れておきます。\n\nP/ECE 開発環境の `bin/pieceif.dll` を、配布 zip の中にあるファイル一式で（バックアップを取ってから）上書きしてください。\n\nバイナリ配布には [libusb 1.0](http://libusb.info/) を含みます。LGPLv2.1 です。\n\n## ビルドする\n\n```\ngit clone https://github.com/autch/pieceif-libusb.git\n```\n\n[libusb 本家](http://libusb.info/) から Download -\u003e Latest Windows Binaries をダウンロードし、以下のように配置します。\n\n```\npieceif-libusb/\n  libusb/                  ←ここに展開してリネームしておく\n    include/\n    MS32/\n      dll/\n        libusb-1.0.lib\n        libusb-1.0.dll\n    MS64/\n  pieceif-libusb.sln\n  README.md\n  pieceif-libusb/\n    pieceif-libusb.vcxproj\n    ...\n```\n\nあとは VS2017 で開けばビルドができるはずです。\n\nできあがった pieceif.dll と libusb-1.0.dll を P/ECE 開発環境の `piece\\bin` ディレクトリに上書きコピーすれば、`isd` や `WinIsd` が使えるようになるはずです。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fautch%2Fpieceif-libusb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fautch%2Fpieceif-libusb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fautch%2Fpieceif-libusb/lists"}