This commit is contained in:
cc
2025-04-15 12:15:27 +02:00
commit 6572754e2a
1871 changed files with 329779 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2019 Will Abson
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@@ -0,0 +1,73 @@
Metadata-Version: 2.1
Name: wabson.chafon-rfid
Version: 0.1.0
Summary: Read RFID data from Chafon UHF readers
Home-page: https://github.com/wabson/chafon-rfid
Author: Will Abson
Author-email: will@wabson.org
License: UNKNOWN
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.4
Description-Content-Type: text/markdown
Provides-Extra: test
Chafon RFID reader
==================
[![Build Status](https://travis-ci.org/wabson/chafon-rfid.svg?branch=master)](https://travis-ci.org/wabson/chafon-rfid)
[![codecov](https://codecov.io/gh/wabson/chafon-rfid/branch/master/graph/badge.svg)](https://codecov.io/gh/wabson/chafon-rfid)
Read and write RFID tags using the popular Chafon UHF-based readers and writers. Originally
written to read race timing chips on a finish line, a range of hardware is now supported from
small desktop USB devices to long-range fixed readers, including the following,
* [CF-RU5102 desktop UHF reader/writer](http://www.chafon.com/productdetails.aspx?pid=384) (not HID version)
* [CF-RU5106](http://www.chafon.com/productdetails.aspx?pid=382) / [CF-RU5112](http://www.chafon.com/productdetails.aspx?pid=383) UHF integrated reader with antenna
* [CF-RU5202 desktop UHF reader/writer](http://www.chafon.com/productdetails.aspx?pid=535)
* CF-RU6402 fixed UHF reader (Impinj R2000, 4-port)
* [CF-MU801](http://chafon.com/productdetails.aspx?pid=667) / [CF-MU804](http://chafon.com/productdetails.aspx?pid=669) (Impinj R2000, 1-port or 4-port) UHF module
* [CF-MU904 UHF module](http://www.chafon.com/productdetails.aspx?pid=565) (own brand, 1-port)
You can connect to the reader/writer via the following standard connections
* USB (recommended)
* Direct serial connection
* Ethernet connection
The library supports a basic set of commands to perform tag inventories, write tag EPC values
and get and set reader parameters. Helpers are provided to allow you to implement any other
documented commands, which automatically take care of constructing commands, generating and
verifying checksums and connecting to the reader/writer.
See the [examples](examples/) folder for details of how to connect, send commands and read
responses.
Requirements
------------
This module requires *Python 3.4+* but should work under any OS.
For serial communication using the built-in transport class, [pyserial](https://pyserial.readthedocs.io/) is required. Other implementations are possible for MicroPython/CircuitPython environments.
Some examples may have additional requirements, see comments in the individual files.
Installation
------------
To install the package into your own project, use `pip`
pip install --upgrade wabson.chafon-rfid
Usage
-----
Examples of how to to use the provided module are provided in the [examples](examples/) directory.

View File

@@ -0,0 +1,35 @@
chafon_rfid/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
chafon_rfid/__pycache__/__init__.cpython-311.pyc,,
chafon_rfid/__pycache__/base.cpython-311.pyc,,
chafon_rfid/__pycache__/checksum.cpython-311.pyc,,
chafon_rfid/__pycache__/command.cpython-311.pyc,,
chafon_rfid/__pycache__/response.cpython-311.pyc,,
chafon_rfid/__pycache__/transport.cpython-311.pyc,,
chafon_rfid/__pycache__/transport_microbit.cpython-311.pyc,,
chafon_rfid/__pycache__/transport_serial.cpython-311.pyc,,
chafon_rfid/__pycache__/uhfreader18.cpython-311.pyc,,
chafon_rfid/__pycache__/uhfreader288m.cpython-311.pyc,,
chafon_rfid/base.py,sha256=-Z5HV1t47-CyB0RRXTJEe4f6aVRUqvsGIQB36fYgzv0,6415
chafon_rfid/checksum.py,sha256=hbZq1ZqyYIUXoOXRx3yp4vcCE13T-UnQTwYbnKMK27g,464
chafon_rfid/command.py,sha256=qFvYXgs3rj5gzOOJ5XPUWutSm1TrJab8U0FXQIrDz30,955
chafon_rfid/response.py,sha256=uXgz2fk2QW1_tP2N1E-buWC3M_DcIznFlasrwYrPZY8,213
chafon_rfid/transport.py,sha256=iISZfGJ0WBPfn0ewqWqCMcV5vDku7HyTSArXrUlR9bs,1770
chafon_rfid/transport_microbit.py,sha256=g_jPFWPFcHz9UQCBFqf7gAvih_G0ZkuT5TGe_5nVmpI,419
chafon_rfid/transport_serial.py,sha256=5t9nUkxUo9BM2SuLJ1g_f4GocMAFvi1mFP9lwkfNmkQ,465
chafon_rfid/uhfreader18.py,sha256=2Mta8syOb8qlbDB7AZkncShcaRkBV_u5abiQIKkiXMw,757
chafon_rfid/uhfreader288m.py,sha256=sC9cnrPTESpdQYSuj_YFX0BbtrK6PwvOl6N8-V-cafg,2865
tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
tests/__pycache__/__init__.cpython-311.pyc,,
tests/__pycache__/test_base.cpython-311.pyc,,
tests/__pycache__/test_uhfreader18.cpython-311.pyc,,
tests/__pycache__/test_uhfreader288.cpython-311.pyc,,
tests/test_base.py,sha256=gI_mqL62vFM_yQEwOmAL3OivYx707MoYb2WcPC-o2XE,1840
tests/test_uhfreader18.py,sha256=1fFi62svqDD--xqNp5--LiosbCj23SspUa--st-AwcY,1779
tests/test_uhfreader288.py,sha256=VmTn2y2CJLMrwidFnvg9kFOPuDUqz4nkhZUhDga816k,2946
wabson.chafon_rfid-0.1.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
wabson.chafon_rfid-0.1.0.dist-info/LICENSE,sha256=C1O09aulH-VyZtHqg9T5tTxusR0-9lwdm5qAOJfLMMQ,1067
wabson.chafon_rfid-0.1.0.dist-info/METADATA,sha256=hXABtSaUj77cv8EqMc0NHslJLi2meQLgIenlgcj24RQ,3108
wabson.chafon_rfid-0.1.0.dist-info/RECORD,,
wabson.chafon_rfid-0.1.0.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
wabson.chafon_rfid-0.1.0.dist-info/WHEEL,sha256=EVRjI69F5qVjm_YgqcTXPnTAv3BfSUr0WVAHuSP3Xoo,92
wabson.chafon_rfid-0.1.0.dist-info/top_level.txt,sha256=Pry11kltrqqi3W5ICIXiGZO6gHrLzVXrDGmD0mEA4Xk,18

View File

@@ -0,0 +1,5 @@
Wheel-Version: 1.0
Generator: bdist_wheel (0.35.1)
Root-Is-Purelib: true
Tag: py3-none-any

View File

@@ -0,0 +1,2 @@
chafon_rfid
tests