{"id":19966778,"url":"https://github.com/aptpod/apt-peripheral-linux-driver","last_synced_at":"2026-05-14T19:03:07.702Z","repository":{"id":83343296,"uuid":"406245118","full_name":"aptpod/apt-peripheral-linux-driver","owner":"aptpod","description":"Device driver for EDGEPLANT USB Peripherals,","archived":false,"fork":false,"pushed_at":"2023-12-01T01:53:23.000Z","size":169,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-01-12T08:41:55.957Z","etag":null,"topics":["c","device-driver","linux"],"latest_commit_sha":null,"homepage":"https://www.aptpod.co.jp/products/edgeplant/edgeplant-peripherals/","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aptpod.png","metadata":{"files":{"readme":"README.ja.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2021-09-14T06:05:56.000Z","updated_at":"2023-07-07T15:32:20.000Z","dependencies_parsed_at":"2023-12-01T02:44:55.837Z","dependency_job_id":"b457ca42-a0e9-4f49-ab28-437b60cd2605","html_url":"https://github.com/aptpod/apt-peripheral-linux-driver","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aptpod%2Fapt-peripheral-linux-driver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aptpod%2Fapt-peripheral-linux-driver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aptpod%2Fapt-peripheral-linux-driver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aptpod%2Fapt-peripheral-linux-driver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aptpod","download_url":"https://codeload.github.com/aptpod/apt-peripheral-linux-driver/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241398930,"owners_count":19956828,"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":["c","device-driver","linux"],"created_at":"2024-11-13T02:38:13.615Z","updated_at":"2025-11-25T19:05:43.387Z","avatar_url":"https://github.com/aptpod.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Device driver for EDGEPLANT USB Peripherals\n\n## About\n\nEDGEPLANT USB ペリフェラルを Linux 上で利用するためのデバイスドライバです。\n本デバイスドライバをインストールすることで、以下の製品でデータの受信や送信を行えるようになります。\n\n- EDGEPLANT CAN-USB Interface\n- EDGEPLANT CAN FD USB Interface\n- EDGEPLANT ANALOG-USB Interface\n\nEDGEPLANT Peripherals の詳細については[製品のホームページ](https://www.aptpod.co.jp/products/edgeplant/edgeplant-peripherals)を参照してください。\n\n## Getting Started\n\n### Prerequisites\n\nこのデバイスドライバをビルドするためには、以下のパッケージが必要となります。\n\n- GNU C\n- GNU make\n- Linux headers (kernel v4.4 以上)\n\nこのデバイスドライバを使用するためには、以下のカーネルコンフィグが必要となります。\n\n- SocketCAN\n  - CONFIG_NET\n  - CONFIG_CAN\n  - CONFIG_CAN_DEV\n- IIO\n  - CONFIG_IIO\n  - CONFIG_IIO_BUFFER\n  - CONFIG_IIO_KFIFO_BUF\n\n### Installing\n\n#### deb パッケージからのインストール\n\n1. アプトポッドの公開リポジトリを設定します。  \n   コマンド内の `${DISTRIBUTION}` には、ご使用の環境に応じて `ubuntu` または `debian` を指定してください。\n\n   ```sh\n   sudo apt-get update\n   sudo apt-get install -y \\\n      apt-transport-https \\\n      ca-certificates \\\n      curl \\\n      gnupg-agent \\\n      lsb-release\n   sudo mkdir -p /etc/apt/keyrings\n   curl -fsSL https://repository.aptpod.jp/intdash-edge/linux/${DISTRIBUTION}/gpg | \\\n      sudo gpg --dearmor -o /etc/apt/keyrings/intdash-edge.gpg\n   echo \"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/intdash-edge.gpg] \\\n      https://repository.aptpod.jp/intdash-edge/linux/${DISTRIBUTION} $(lsb_release -cs) \\\n      stable\" \\\n      | sudo tee /etc/apt/sources.list.d/intdash-edge.list\n   sudo apt-get update\n   ```\n\n2. apt-usbtrx-dkms パッケージをインストールします。\n\n   ```sh\n   sudo apt-get install apt-usbtrx-dkms\n   ```\n\n3. モジュールを読み込みます。\n\n   ```sh\n   sudo modprobe apt_usbtrx\n   ```\n\nDKMS を使用することで、カーネルが更新されるたびに自動的にドライバが再ビルドされます。\n\n#### ソースからビルドしてインストール\n\n1. リポジトリをクローンします。\n\n   ```sh\n   git clone https://github.com/aptpod/apt-peripheral-linux-driver\n   ```\n\n1. デバイスドライバとツールをビルドします。\n\n   ```sh\n   make all\n   ```\n\n1. デバイスドライバとツールをインストールします。\n\n   ```sh\n   sudo make install\n   sudo modprobe apt_usbtrx\n   ```\n\n   デフォルトではツールは `/usr/local/bin` にインストールされます。任意のディレクトリにインストールする場合は、`DESTDIR` を指定します。\n\n   ```sh\n   mkdir -p /path/to/dir\n   make DESTDIR=/path/to/dir install\n   ```\n\n### Running the unit test\n\n本プロジェクトでは [KUnit](https://www.kernel.org/doc/html/latest/dev-tools/kunit/index.html) を利用して単体テストを行なっています。自身の環境で単体テストを実施する場合、以下のスクリプトを実行してください。\n\n```sh\ncd kunit \u0026\u0026 ./run_test.sh\n```\n\n## Usage\n\nペリフェラルごとの利用方法については、[docs](./docs/README.md)を参照してください。\n\n## License\n\nDistributed under the GPL v2.0 License. See LICENSE for more information.\n\n## Contact\n\nhttps://www.aptpod.co.jp/contact/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faptpod%2Fapt-peripheral-linux-driver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faptpod%2Fapt-peripheral-linux-driver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faptpod%2Fapt-peripheral-linux-driver/lists"}