Metadata-Version: 2.1
Name: magicrf
Version: 1.2
Summary: Library for UHF RFID Soc Reader Chip M100 and QM100
Home-page: https://github.com/hex-in/libmagicrf.git
Author: Heyn
Author-email: heyunhuan@gmail.com
License: MIT
Keywords: UHF,M100,QM100,rfid,magicrf
Platform: any
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Build Tools
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Dist: pyserial (>=3.4)

MagicRF
=======

MagicRF is a library for M100 and QM100 modules.


Installation
------------

* Compile and install the library::

    pip3 install magicrf

* After installation you can run unit tests to make sure that the library works fine.  Execute::

    python -m magicrf.case1

Usage
-----

  In Python 3::
    from magicrf import m100

    reader = m100('COM14')

    def receive_callback(data):
        for item in data[:-1].split(';'):
            epc, rssi = item.split(',')
            print('{0} RSSI: -{1} dBm'.format(epc, int(rssi, 16)))

    reader.rxcallback( receive_callback )
    reader.start()

    # reader.power(22)
    # reader.param(q=4)
    reader.query(100)

Example
-------

    from magicrf import m100

    # Get PA Power
    m100.power()
    # Set PA Power
    m100.power(22.0)


V1.0.1 (2018-11-26)
+++++++++++++++++++
* Release ver1.0.1


V1.0 (2018-08-15)
+++++++++++++++++++
* Initialization

V1.1 (2018-10-24)
+++++++++++++++++++
* New query\power etc. functions.


