ドキュメントの全体像や他のサンプルプログラムについては、こちらのランディングページをご覧ください。
タカヤ製RFIDリーダライタ UTR-S201/202 シリーズ を USBシリアル接続で制御するための Pythonサンプルプログラム です。本プログラムは社内検証用に作成したものを公開しており、無保証 での提供となります。
このサンプルプログラムは、UTR-S201/202シリーズリーダライタをUSBシリアル接続で制御するためのPythonサンプルです。基本的なタグ読み取り機能を提供し、コンソールにタグ読取結果を表示します。
- OS: Windows 10 / 11
- Python: 3.8 以上
- 必要ライブラリ: pyserial
- リポジトリのクローン:
git clone https://github.com/TamaruNorio/UTR_USB_Python.git cd UTR_USB_Python - 必要ライブラリのインストール:
pip install pyserial
- UTR-S201/202 リーダライタをUSB接続:
- 実行:
コンソールにタグ読取結果が表示されます。
python src/utr_usb_sample.py
UTR_USB_Python/
├─ src/
│ └─ utr_usb_sample.py # メインスクリプト
├─ .gitignore
└─ README.md
このリポジトリのソースコードは MIT License の下で公開されています。詳細は LICENSE ファイルをご確認ください。
This CodeX work repository includes small PowerShell helpers for local checks and PR preparation.
.\scripts\dev_check.ps1
.\scripts\git_preflight.ps1
.\scripts\publish_pr.ps1 -Message "commit message" -Title "PR title"
.\scripts\sync_after_merge.ps1 -Branch "work-branch"dev_check.ps1showsgit status --short, runs pytest againsttests, runs the blocked-text scan, and checks.gitignore.git_preflight.ps1shows branch, status, diff stat, recent log, and then runsdev_check.ps1.publish_pr.ps1commits and pushes only afterYESconfirmation, generatespr_body.md, copies it to the clipboard, and opens the PR creation URL when it can infer one.sync_after_merge.ps1syncsmainand deletes the local work branch only afterYESconfirmation.
These helpers do not run USB hardware communication and do not run src/utr_usb_sample.py.