Commit Graph

66 Commits

Author SHA1 Message Date
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 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 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 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 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 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 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 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 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 f963b4d0fe * add missing header files to distributed tarball
* bump revision number to 0.2.0 (not yet released)


git-svn-id: https://svn.gnumonks.org/trunk/librfid@2049 e0336214-984f-0b4b-a45f-81c69e1f0ede
2008-01-26 19:51:55 +00:00
laforge 685d1c4a5a * Add spidev reader driver
* restructure automake usage, introduce shared Makefile.flags.am


git-svn-id: https://svn.gnumonks.org/trunk/librfid@2047 e0336214-984f-0b4b-a45f-81c69e1f0ede
2008-01-26 19:23:54 +00:00
laforge 237c7f9e9d Fix bitfields for big endian platforms (Jeremy Lainé)
git-svn-id: https://svn.gnumonks.org/trunk/librfid@2038 e0336214-984f-0b4b-a45f-81c69e1f0ede
2008-01-22 15:45:50 +00:00
meri 3e18d7e682 applied Rainer Kellers fix 'Header missing, define name typo'
git-svn-id: https://svn.gnumonks.org/trunk/librfid@2016 e0336214-984f-0b4b-a45f-81c69e1f0ede
2007-10-29 01:23:36 +00:00
ploetz 76035dde43 Need stdio.h for fprintf
Add debug output for ATS


git-svn-id: https://svn.gnumonks.org/trunk/librfid@2002 e0336214-984f-0b4b-a45f-81c69e1f0ede
2007-06-10 03:02:41 +00:00
meri 855cc21b1a updated win32 support for MINGW32-compiler/cross-compiler
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1990 e0336214-984f-0b4b-a45f-81c69e1f0ede
2007-05-02 01:46:14 +00:00
meri 1870e3694d added win32 support for MINGW32-compiler/cross-compiler
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1989 e0336214-984f-0b4b-a45f-81c69e1f0ede
2007-04-30 18:39:18 +00:00
meri 8a68898b07 Added new function codes
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1987 e0336214-984f-0b4b-a45f-81c69e1f0ede
2007-04-03 20:17:25 +00:00
ploetz 93ffaaefec Add RFID_OPT_14443A_WUPA to request WUPA instead of REQA (Rainer Keller <mail@rainerkeller.de>)
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1985 e0336214-984f-0b4b-a45f-81c69e1f0ede
2007-03-20 00:47:12 +00:00
ploetz 9a8dbae5c7 unsigned int -> size_t in some appropriate places.
Fixes segfaults on x86_64


git-svn-id: https://svn.gnumonks.org/trunk/librfid@1984 e0336214-984f-0b4b-a45f-81c69e1f0ede
2007-03-20 00:16:22 +00:00
laforge 38bb1c4c01 make rfid_frametype public, since it is used by public function definitions in rfid_reader.h
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1958 e0336214-984f-0b4b-a45f-81c69e1f0ede
2007-01-09 21:45:45 +00:00
laforge d7650b956f Porting librfid on ARM, I got trouble using 14443B due to alignment issue. This
patch fix it. (Pierrick Hascoet <pierrick@hydromel.net>)


git-svn-id: https://svn.gnumonks.org/trunk/librfid@1954 e0336214-984f-0b4b-a45f-81c69e1f0ede
2007-01-06 13:40:55 +00:00
laforge f0a3a3f8c4 - add size detection for mifare classic / ultralight
- add possibility to obtain ATQA via getopt
- fix default -EINVAL return of tcl getopt


git-svn-id: https://svn.gnumonks.org/trunk/librfid@1930 e0336214-984f-0b4b-a45f-81c69e1f0ede
2006-12-01 13:29:00 +00:00
laforge 8b39e78b9d disable debugging by default
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1929 e0336214-984f-0b4b-a45f-81c69e1f0ede
2006-11-28 18:02:14 +00:00
laforge 2da53a43ba - fix mifare write support
- make mifare auth more reliable
- add mifare permission / access bit en/decoding
- some more 15693 bits
- add new 'mifare-tool' program


git-svn-id: https://svn.gnumonks.org/trunk/librfid@1928 e0336214-984f-0b4b-a45f-81c69e1f0ede
2006-11-28 10:06:24 +00:00
laforge bbb902ddc9 some preliminary work to get 15693 working (actual implementation still missing)
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1916 e0336214-984f-0b4b-a45f-81c69e1f0ede
2006-10-25 23:33:06 +00:00
laforge 29063ce3c9 remove unused 'next' pointers
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1912 e0336214-984f-0b4b-a45f-81c69e1f0ede
2006-10-18 14:49:24 +00:00
laforge 7f44cae7c1 - fix multiple include of rfid_protocol_mifare_classic.h problem
- add some more layer2 {get,set}opt()s
- add rfid_protocol_{get,set}opt()
- export functions for l2/proto scanning, not just for combined scanning
- add support for sending WUPA instead of REQA in iso14443a


git-svn-id: https://svn.gnumonks.org/trunk/librfid@1910 e0336214-984f-0b4b-a45f-81c69e1f0ede
2006-10-15 19:17:22 +00:00
laforge 966a8e3acc redirect DEBUGP to 'debugp' function inside openpcd firmware
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1909 e0336214-984f-0b4b-a45f-81c69e1f0ede
2006-10-14 21:51:24 +00:00
laforge 6bc8adf40b redesign autoconf/automake infrastructure to support
- building of CM5121 driver (and backends) optional
- building of librfid for in-firmware-use


git-svn-id: https://svn.gnumonks.org/trunk/librfid@1906 e0336214-984f-0b4b-a45f-81c69e1f0ede
2006-10-14 18:53:50 +00:00
laforge 36751e15b8 - remove prototypes for already-removed _register() functions from headers
- automatically define LIBRFID_STATIC if LIBRFID_FIRMWARE is set
- remove any references to printf/snprintf
- remove bogus free() in 14443b_init


git-svn-id: https://svn.gnumonks.org/trunk/librfid@1905 e0336214-984f-0b4b-a45f-81c69e1f0ede
2006-10-14 15:22:36 +00:00
laforge 9ce76f0941 - separate 'STATIC' (non-dyamic-allocation) from 'FIRMWARE' (no host drivers)
- enhance openpcd in-firmware driver stubs
- fix 15693 segfaults with cm5121 and openpcd (15693 is not working yet!)


git-svn-id: https://svn.gnumonks.org/trunk/librfid@1904 e0336214-984f-0b4b-a45f-81c69e1f0ede
2006-10-14 15:04:10 +00:00
laforge e404cccecd Prepare RFID compilation in firmware mode
- switch from linked lists to static arrays 
- remove all non-handle dynamic allocations (at the expense of stack)
- declare all proto/reader/asic/layer2 structures as const
- wrap all handle allocations in macros that expand to references to 
  static structures in case of firmware mode
- update copyright notices
- add skeleton code for openpcd-inside-firmware driver
- update TODO with remaining TODO for firmware mode


git-svn-id: https://svn.gnumonks.org/trunk/librfid@1903 e0336214-984f-0b4b-a45f-81c69e1f0ede
2006-10-14 12:34:38 +00:00
laforge 6e87a00752 - fix segfault during rfid_scan()
- add accessor functions for protocol and layer2 names
- print l2 and proto name + uid after successful scan


git-svn-id: https://svn.gnumonks.org/trunk/librfid@1899 e0336214-984f-0b4b-a45f-81c69e1f0ede
2006-10-08 01:05:50 +00:00
laforge fe4ffab6d9 - use C99 compiler flags
- implement some getopt/setopt functions for UID and layer2 specific parameters
- basic rfid scanning support
- add commandline arguments for layer2 / scanning to librfid-tool
- try to detect both supported readers automatically in librfid-tool
- add new 'l2_supported' and 'proto_supported members to rfid_reader


git-svn-id: https://svn.gnumonks.org/trunk/librfid@1895 e0336214-984f-0b4b-a45f-81c69e1f0ede
2006-10-07 20:55:16 +00:00
laforge 7829a04b91 fix various compile warnings. code cleanup
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1891 e0336214-984f-0b4b-a45f-81c69e1f0ede
2006-09-30 13:26:32 +00:00
laforge 341afde582 update to new (four-byte, explicit response_request flag) revision of openpcd usb protocol
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1884 e0336214-984f-0b4b-a45f-81c69e1f0ede
2006-09-22 20:56:54 +00:00
laforge b80d2b99aa use attribute(packed) where apropriate
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1868 e0336214-984f-0b4b-a45f-81c69e1f0ede
2006-08-16 22:07:54 +00:00
laforge 96c3aa17bc add some definitions on ISO144443A frame waiting time
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1863 e0336214-984f-0b4b-a45f-81c69e1f0ede
2006-08-16 00:20:28 +00:00
laforge 91f920e0d3 add support for new OpenPCD design
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1851 e0336214-984f-0b4b-a45f-81c69e1f0ede
2006-07-23 18:38:25 +00:00
laforge 7a398f0b12 fix TX chaining: Don't use/respect toggle bit (block nr) for S-blocks.
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1831 e0336214-984f-0b4b-a45f-81c69e1f0ede
2006-06-23 20:26:40 +00:00
laforge 2e5b78aa3b s/transcieve/transceive/g (Henryk Ploetz)
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1817 e0336214-984f-0b4b-a45f-81c69e1f0ede
2006-06-13 09:55:09 +00:00
laforge 1016f644a1 - disable debug statements
- cleanly initialize pps[2]


git-svn-id: https://svn.gnumonks.org/trunk/librfid@1672 e0336214-984f-0b4b-a45f-81c69e1f0ede
2005-11-08 16:25:57 +00:00
laforge 1fcc35aad6 move include directory for pkginclude compliance
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1664 e0336214-984f-0b4b-a45f-81c69e1f0ede
2005-11-08 13:04:32 +00:00
laforge b40ece7ac6 implement and test baud rates of up to 848k
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1663 e0336214-984f-0b4b-a45f-81c69e1f0ede
2005-11-08 12:19:38 +00:00
laforge 7600eb5ebb - better layering abstraciton
- differentiate between library internal definitions and public ones
- implement getopt/setopt like get/setsockopt
- offer speed changing controls


git-svn-id: https://svn.gnumonks.org/trunk/librfid@1662 e0336214-984f-0b4b-a45f-81c69e1f0ede
2005-11-08 10:34:18 +00:00
laforge 05c7e30427 use autoconf/automake
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1658 e0336214-984f-0b4b-a45f-81c69e1f0ede
2005-11-08 08:34:15 +00:00
laforge a947e55c3c add infineon mifare default keys
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1656 e0336214-984f-0b4b-a45f-81c69e1f0ede
2005-11-08 08:19:15 +00:00
laforge cf4cccb614 Add support for native CCID driver, modularize OpenCT support (based on a patch from Werner Koch)
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1597 e0336214-984f-0b4b-a45f-81c69e1f0ede
2005-10-29 20:42:34 +00:00
laforge b9e8c17d8c make "frametype" a parameter of transcieve functions
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1559 e0336214-984f-0b4b-a45f-81c69e1f0ede
2005-10-23 20:03:56 +00:00