Commit Graph

233 Commits

Author SHA1 Message Date
Harald Welte 5a28ec07f4 RC632: don't use RFID_14443A_SPEED_???K to index linear array
The RFID_14443A_SPEED_???K are defined as 0x01, 0x02, 0x04, 0x08 to
allow for bitmasks, thus we cannot directly use them to index an
array.  Instead we now use named array initializers

Thanks to Gianni Tedesco for spotting this.
2011-04-08 13:49:06 +02:00
Harald Welte b857329210 The copyright on the SPIDEV driver has been transferred to Harald
On May 5, 2010, Frederic Rodo of TIL Technologies has transferred the
copyright of the SPIDEV driver to Harald Welte
2010-10-25 16:28:24 +02:00
Harald Welte 4ef2604e16 Note that ISO15693 contributions by Bjoern Riemer are now (C) Harald Welte
Bjoern was working for Fraunhofer at the time he wrote the code, so they
actually own the copyright.  The rights have been transferred to Harald
in September 2010.
2010-10-25 16:25:36 +02:00
Harald Welte 0c4b9f78b7 remove iso15693 anticol from TODO 2010-05-05 16:07:02 +02:00
Harald Welte e116151959 add gitignore files 2010-05-05 13:56:01 +02:00
Harald Welte 923c5f9db6 udev: use 'plugdev' group rather than 'users' group
In more recent GNU/Linux distributions, plugdev is the group used
for USB hot-plugged devices, and there is no real 'users' group
shared by all users anymore.
2010-05-05 11:16:06 +02:00
laforge 5f5de66d10 fix compiler warnings
git-svn-id: https://svn.gnumonks.org/trunk/librfid@2107 e0336214-984f-0b4b-a45f-81c69e1f0ede
2008-05-24 13:46:39 +00:00
laforge 544071c0f9 Add WRITE support for ISO15693 (Bjoern Riemer)
git-svn-id: https://svn.gnumonks.org/trunk/librfid@2106 e0336214-984f-0b4b-a45f-81c69e1f0ede
2008-05-24 13:41:16 +00:00
laforge 785fb8e449 fix crash of librfid-tool in scan function (Mate Soos)
git-svn-id: https://svn.gnumonks.org/trunk/librfid@2105 e0336214-984f-0b4b-a45f-81c69e1f0ede
2008-05-24 13:29:31 +00:00
laforge f835206e57 add CRC check to ISO15693 (Bjoern Riemer)
git-svn-id: https://svn.gnumonks.org/trunk/librfid@2104 e0336214-984f-0b4b-a45f-81c69e1f0ede
2008-05-24 13:23:03 +00:00
laforge 77fc8096e2 remove extra reads of primary status register (Bjoern Riemer)
git-svn-id: https://svn.gnumonks.org/trunk/librfid@2103 e0336214-984f-0b4b-a45f-81c69e1f0ede
2008-05-24 13:10:22 +00:00
laforge f05760f405 * use RC632_CMD_IDLE instead of 0x00 to improve readability
* don't write to read-only ERROR_FLAG register (Mate Soos)


git-svn-id: https://svn.gnumonks.org/trunk/librfid@2102 e0336214-984f-0b4b-a45f-81c69e1f0ede
2008-05-24 13:03:00 +00:00
laforge 5712116f1b Follow-up fixes for IRQ/ERR bitmaks mess (Bjoern Riemer) Patch 011
git-svn-id: https://svn.gnumonks.org/trunk/librfid@2101 e0336214-984f-0b4b-a45f-81c69e1f0ede
2008-05-24 13:01:25 +00:00
laforge 1d86a141b2 * Fix the STATUS register bit definitions foer STAT_{ERR,IRQ} (Bjoern Riemer)
git-svn-id: https://svn.gnumonks.org/trunk/librfid@2100 e0336214-984f-0b4b-a45f-81c69e1f0ede
2008-05-24 12:38:36 +00:00
laforge 8a9866cada python update
git-svn-id: https://svn.gnumonks.org/trunk/librfid@2098 e0336214-984f-0b4b-a45f-81c69e1f0ede
2008-05-07 10:33:49 +00:00
laforge ec2cf3b617 add -E parameter to do an endless loop of enumeratiosn. The option has one
argument which specifies the delay in milliseconds between the enumeration rounds


git-svn-id: https://svn.gnumonks.org/trunk/librfid@2089 e0336214-984f-0b4b-a45f-81c69e1f0ede
2008-02-24 12:42:53 +00:00
laforge 6e98a8dc0e add anticollision support for iso15693 and use correct mask_len (Bjoern Riemer)
git-svn-id: https://svn.gnumonks.org/trunk/librfid@2088 e0336214-984f-0b4b-a45f-81c69e1f0ede
2008-02-24 12:38:02 +00:00
laforge 76a801fda4 implement SELECT command for ISO15693 (Bjoern Riemer)
git-svn-id: https://svn.gnumonks.org/trunk/librfid@2087 e0336214-984f-0b4b-a45f-81c69e1f0ede
2008-02-24 12:37:28 +00:00
laforge fa559d2f99 add function to set mifare key from internal eeprom
git-svn-id: https://svn.gnumonks.org/trunk/librfid@2086 e0336214-984f-0b4b-a45f-81c69e1f0ede
2008-02-24 12:35:52 +00:00
laforge 292444f20b finish eeprom read/write implementations for RC632
git-svn-id: https://svn.gnumonks.org/trunk/librfid@2084 e0336214-984f-0b4b-a45f-81c69e1f0ede
2008-02-08 19:51:45 +00:00
laforge 74b93b30bc add support for setting layer2 while doing scanning (Bjoern Riemer)
git-svn-id: https://svn.gnumonks.org/trunk/librfid@2083 e0336214-984f-0b4b-a45f-81c69e1f0ede
2008-02-08 15:19:37 +00:00
laforge 3b0c065058 add ISO15693 stay_quiet (close) support (Bjoern Riemer)
git-svn-id: https://svn.gnumonks.org/trunk/librfid@2082 e0336214-984f-0b4b-a45f-81c69e1f0ede
2008-02-08 15:17:46 +00:00
laforge ed8a02eda6 use DEBUGP, not printf (Bjoern Riemer)
git-svn-id: https://svn.gnumonks.org/trunk/librfid@2081 e0336214-984f-0b4b-a45f-81c69e1f0ede
2008-02-08 15:16:07 +00:00
laforge 507a87a79b add missing semicolon
git-svn-id: https://svn.gnumonks.org/trunk/librfid@2080 e0336214-984f-0b4b-a45f-81c69e1f0ede
2008-02-08 15:15:21 +00:00
laforge 0e0da0d6b8 fix typo in 15693 AFI setopt implementation (Bjoern Riemer)
git-svn-id: https://svn.gnumonks.org/trunk/librfid@2079 e0336214-984f-0b4b-a45f-81c69e1f0ede
2008-02-08 15:13:28 +00:00
laforge e3d49c4785 python update (Kushal Das)
git-svn-id: https://svn.gnumonks.org/trunk/librfid@2078 e0336214-984f-0b4b-a45f-81c69e1f0ede
2008-02-08 15:12:15 +00:00
laforge e5766cb30c Add declaration of rc632_register_dump()
git-svn-id: https://svn.gnumonks.org/trunk/librfid@2077 e0336214-984f-0b4b-a45f-81c69e1f0ede
2008-02-08 15:08:35 +00:00
laforge 248a277403 fix bugs for optlen setting in layer2_Getopt of iso14443a (Uwe Hermann)
git-svn-id: https://svn.gnumonks.org/trunk/librfid@2076 e0336214-984f-0b4b-a45f-81c69e1f0ede
2008-02-08 15:06:05 +00:00
laforge f8167ee283 mifare-tool: fix '-h', use '-b' for brute force (Uwe Hermann)
git-svn-id: https://svn.gnumonks.org/trunk/librfid@2075 e0336214-984f-0b4b-a45f-81c69e1f0ede
2008-02-08 15:04:18 +00:00
laforge 7142d7da7a disable debug in the default compile (Uwe Hermann)
git-svn-id: https://svn.gnumonks.org/trunk/librfid@2074 e0336214-984f-0b4b-a45f-81c69e1f0ede
2008-02-08 15:02:23 +00:00
laforge 621d27cc64 add (preliminary?) SAK based detection of mifare mini.
git-svn-id: https://svn.gnumonks.org/trunk/librfid@2073 e0336214-984f-0b4b-a45f-81c69e1f0ede
2008-02-07 16:17:18 +00:00
laforge 9a7ba1f0d8 use LIBS instead of AM_LDFLAGS, otherwise apparently some systems won't link
libusb correctly (Petr Stetiar)


git-svn-id: https://svn.gnumonks.org/trunk/librfid@2071 e0336214-984f-0b4b-a45f-81c69e1f0ede
2008-02-05 02:06:33 +00:00
laforge 58ea86f325 * update readme to reflect 0.2.0 relese
git-svn-id: https://svn.gnumonks.org/trunk/librfid@2069 e0336214-984f-0b4b-a45f-81c69e1f0ede
2008-02-04 17:02:35 +00:00
laforge a5bc5c69d1 * add rfid_reader_rc632_common.h to noinst_HEADERS
git-svn-id: https://svn.gnumonks.org/trunk/librfid@2068 e0336214-984f-0b4b-a45f-81c69e1f0ede
2008-02-04 17:02:26 +00:00
ploetz db516767b8 Make librfid-tool print out the ATS in case of success with a T=CL card
git-svn-id: https://svn.gnumonks.org/trunk/librfid@2065 e0336214-984f-0b4b-a45f-81c69e1f0ede
2008-02-02 17:13:59 +00:00
laforge da4aa962e1 * implement rfid_reader_{get,set}opt()
* move get/set environment and get firmware api version to reader_{get,set}opt()
* merge rc632 power_up and power_down functions in new power function
* merge rc632 layer 2 protocol init functions into one
* rename parameters of rfid_layer2_{get,set}opt()
* move rf_power() function of reader to new setopt() interface
* merge reader layer 2 protocol init functiosn into one
* move most of the iso15693 anticol implementation from asic into layer2 code
* make most iso15693 parameters configurable via layer2_{get,set}opt()
* implement AFI for iso15693 inventory request
* introduce new generic 'rc632 asic based reader' functions
* use those functions from openpcd, cm5121 and spidev readers
* use new register initialization script data structure for rc632 init functions
* TODO update


git-svn-id: https://svn.gnumonks.org/trunk/librfid@2064 e0336214-984f-0b4b-a45f-81c69e1f0ede
2008-01-29 16:29:21 +00:00
laforge 2b0914e033 implement new mifare dumping code based on sector/block translation functions,
fully supporting 4k format


git-svn-id: https://svn.gnumonks.org/trunk/librfid@2063 e0336214-984f-0b4b-a45f-81c69e1f0ede
2008-01-29 15:06:41 +00:00
laforge 591a1b00c1 * fix length of mifare classic block
* add mifare classic block/sector conversion functions


git-svn-id: https://svn.gnumonks.org/trunk/librfid@2062 e0336214-984f-0b4b-a45f-81c69e1f0ede
2008-01-29 15:05:22 +00:00
laforge 36a703f8f4 make svn:ignore properties more complete
git-svn-id: https://svn.gnumonks.org/trunk/librfid@2061 e0336214-984f-0b4b-a45f-81c69e1f0ede
2008-01-27 21:26:49 +00:00
laforge d3897b3a7a make svn:ignore list complete
git-svn-id: https://svn.gnumonks.org/trunk/librfid@2060 e0336214-984f-0b4b-a45f-81c69e1f0ede
2008-01-27 21:23:58 +00:00
laforge 0cf6bd8627 add autotools related files to svn:ignore property
git-svn-id: https://svn.gnumonks.org/trunk/librfid@2059 e0336214-984f-0b4b-a45f-81c69e1f0ede
2008-01-27 21:21:55 +00:00
laforge 97399441f7 set recursive svn:ignore of Makefile.in
git-svn-id: https://svn.gnumonks.org/trunk/librfid@2058 e0336214-984f-0b4b-a45f-81c69e1f0ede
2008-01-27 21:19:20 +00:00
laforge 79e204d323 partial ISO15693 support (based on patch by Bjoern Kaiser)
git-svn-id: https://svn.gnumonks.org/trunk/librfid@2057 e0336214-984f-0b4b-a45f-81c69e1f0ede
2008-01-27 21:14:08 +00:00
laforge c203de04bd * improve scanning support:
** first try REQA/HLTA/REQA/HLTA until no more tags found
** then power off the field and start from the beginning again
* add proper RF field on/off switching support to all readers
* reduce timer to actual value, don't multiply by 10
* detect collisions during transceive_sf (ATQA)
* make UID length depend on cascade level, not ATQA


git-svn-id: https://svn.gnumonks.org/trunk/librfid@2056 e0336214-984f-0b4b-a45f-81c69e1f0ede
2008-01-27 02:15:48 +00:00
laforge 6b2db45060 cosmetic coding style fixes
git-svn-id: https://svn.gnumonks.org/trunk/librfid@2055 e0336214-984f-0b4b-a45f-81c69e1f0ede
2008-01-26 21:51:52 +00:00
laforge 20e918a3b8 coding style fixes
git-svn-id: https://svn.gnumonks.org/trunk/librfid@2054 e0336214-984f-0b4b-a45f-81c69e1f0ede
2008-01-26 21:48:44 +00:00
laforge f0c3847bc7 always compile the rfid_hexdump() function, since DEBUG_LIBRFID might be defined only locally and not for the entire project
git-svn-id: https://svn.gnumonks.org/trunk/librfid@2053 e0336214-984f-0b4b-a45f-81c69e1f0ede
2008-01-26 21:40:52 +00:00
laforge be84ee238f fix more compiler warnings, based on a patch by Rainer Keller
git-svn-id: https://svn.gnumonks.org/trunk/librfid@2052 e0336214-984f-0b4b-a45f-81c69e1f0ede
2008-01-26 20:21:59 +00:00
laforge 7cf71fab95 * support for mingw (Petr Stetiar)
git-svn-id: https://svn.gnumonks.org/trunk/librfid@2051 e0336214-984f-0b4b-a45f-81c69e1f0ede
2008-01-26 20:08:42 +00:00
laforge 9e71b54725 update COPYING to latest version (Uwe Hermann)
git-svn-id: https://svn.gnumonks.org/trunk/librfid@2050 e0336214-984f-0b4b-a45f-81c69e1f0ede
2008-01-26 19:58:30 +00:00