Commit Graph
100 Commits
Author SHA1 Message Date
Philippe Teuwen 9815ac728f nfc-emulate-uid: fix BCC 2013-01-22 00:45:42 +01:00
Philippe Teuwen edacadbce6 make style 2013-01-20 15:48:32 +01:00
Philippe Teuwen ea05559fa5 Prepare for version 1.7.0-RC2 2013-01-20 15:45:57 +01:00
Philippe Teuwen 84af758877 Add /etc/nfc/devices.d/ example in NEWS 2013-01-20 15:41:53 +01:00
Philippe Teuwen 532b30a2cd Merge branch 'test_user_defined_device_optional'
* test_user_defined_device_optional:
  Fix double malloc
  Allow device.optional=true to tolerate missing device
2013-01-20 15:36:29 +01:00
Philippe Teuwen bcd53a7cdc Fix double malloc 2013-01-20 15:24:03 +01:00
Philippe Teuwen 4576bad369 Fix ISO14443B' ATS broken by updated API 2013-01-19 00:14:19 +01:00
Philippe Teuwen 04a7d2a3ba Allow device.optional=true to tolerate missing device 2013-01-18 22:54:44 +01:00
Philippe Teuwen 24fed18590 Require cutter >=1.1.7 rather than >=1.1.8 2013-01-18 22:48:24 +01:00
Philippe Teuwen 2fbf5ab741 Fix debian/control for new API version libnfc3->libnfc4 2013-01-16 08:16:10 +01:00
Philippe Teuwen 0458c8e24e debian/rules: don't enable debug by default anymore as it can be done easily at runtime with LIBNFC_LOG_LEVEL 2013-01-10 23:57:12 +01:00
Philippe Teuwen 6be0b2396c Fix typos 2012-12-05 01:32:45 +01:00
Philippe Teuwen cf6d843c18 Fix pseudo-logging API when no logging is used 2012-12-04 19:14:37 +01:00
Philippe Teuwen 2651cdce2e Remove last SVN cruft 2012-11-27 18:56:54 +01:00
Philippe Teuwen ac1d05328b update NEWS to reflect API change for nfc_initiator_transceive_*() 2012-11-27 18:50:00 +01:00
Philippe Teuwen 7437f76007 simplify quick_start_example1 and add quick_start_example2 2012-11-16 12:25:27 +01:00
Philippe Teuwen fda8d60ce0 Adapt *transmit_bytes_timed API to be closer to *transmit_bytes 2012-11-12 16:54:03 +01:00
Philippe Teuwen 6c7c0a6e63 ReadMobib: make it compatible with Basic card 2012-11-10 17:11:48 +01:00
Philippe Teuwen 2a1558fb32 Deleting manpage present already twice 2012-09-28 09:16:30 +00:00
Philippe Teuwen 6e7fdb1c80 Adds nfc-emulate-forum-tag2 man page 2012-09-19 10:25:33 +00:00
Philippe Teuwen c87eab4958 Add support for OpenPCD2 2012-07-01 11:22:45 +00:00
Philippe Teuwen 86e92fd2a0 Tolerate older autotools version 2012-06-28 23:11:02 +00:00
Philippe Teuwen 4b5b45f14a Add "usb" keyword support to connstring to specify all usb drivers at once 2012-06-06 01:10:05 +00:00
Philippe Teuwen 723e2860ae Adding make style 2012-05-29 15:56:02 +00:00
Philippe Teuwen 568317929d astyle --formatted --mode=c --indent=spaces=2 --indent-switches --indent-preprocessor --keep-one-line-blocks --max-instatement-indent=60 --brackets=linux --pad-oper --unpad-paren --pad-header --align-pointer=name 2012-05-29 15:55:35 +00:00
Philippe Teuwen 01303fab0d astyle --formatted --mode=c --indent=spaces=2 --indent-switches --indent-preprocessor --keep-one-line-blocks --max-instatement-indent=60 --brackets=linux --pad-oper --unpad-paren --pad-header 2012-05-29 15:54:36 +00:00
Philippe Teuwen 562205cc14 astyle --formatted --mode=c --indent=spaces=2 --indent-switches --indent-preprocessor --keep-one-line-blocks --max-instatement-indent=60 --brackets=linux --pad-oper 2012-05-29 15:54:00 +00:00
Philippe Teuwen 67522bae65 astyle --formatted --mode=c --indent=spaces=2 --indent-switches --indent-preprocessor --keep-one-line-blocks --max-instatement-indent=60 --brackets=linux 2012-05-29 15:53:43 +00:00
Philippe Teuwen a2cd236441 astyle --formatted --mode=c --indent=spaces=2 --indent-switches --indent-preprocessor --keep-one-line-blocks --max-instatement-indent=60 2012-05-29 15:52:51 +00:00
Philippe Teuwen 26569c2202 Indent manually some comments to prepare astyle 2012-05-29 15:52:29 +00:00
Philippe Teuwen 7da28b87d2 HACKING: document EOL cleaning, thanks Ludovic 2012-05-29 07:59:04 +00:00
Philippe Teuwen dd12a4dd87 drivers/acr122_pcsc: allow LIBNFC_DEFAULT_DEVICE=acr122_pcsc:N where N is the Nth device accepted by the driver 2012-05-22 23:49:32 +00:00
Philippe Teuwen 912e32ecab Adding HACKING file, draft to be continued 2012-05-22 20:20:53 +00:00
Philippe Teuwen 47e90ee510 drivers/acr122_pcsc: allow LIBNFC_DEFAULT_DEVICE=acr122_pcsc 2012-05-22 17:25:48 +00:00
Philippe Teuwen ff87cf62b1 Fix segfault in pn53x_initiator_transceive_bytes when pszRx in NULL
Cause was "return *pszRx"
Segfault occured when listing a typeB'
2012-05-18 21:54:55 +00:00
Philippe Teuwen 969102c1a0 utils/nfc-list: always display the card type when a card is found 2012-05-18 21:54:45 +00:00
Philippe Teuwen 4bfd6ac874 fix disruptancies between tools location in src (utils<>examples) and in Debian packages (libnfc-bin<>libnfc-examples) 2012-05-17 19:22:25 +00:00
Philippe Teuwen 028db71d79 utils/nfc-emulate-forum-tag4: add support for v2.0 of the spec 2012-05-14 22:13:19 +00:00
Philippe Teuwen 7597055f26 fix typos 2012-05-14 19:44:03 +00:00
Philippe Teuwen 896fa54ece nfc-utils: some changes on the newly introduced fingerprinting method, see log for details
* avoid hardcoded list sizes in #define
* merge card_link data into const_ca
* indexes start at 0, not 1, and use -1 as marker rather than 0
* fix bug in DESFire ATQA
* remove CL1 entries for double size UIDs, in practice we'll always get the latest SAK of the cascade
* remove CL2 tags, cf previous point
* compact const_cs considering the previous points
* keep const_cs strings only where they are informative
* premature halt of inner loop if there is no more SAK index to treat
* change atqa & sak types to uint16_t & uint8_t

* skip redundant matches in the old fingerprinting method
2012-05-02 23:48:06 +00:00
Philippe Teuwen b10de698dd nfc-utils: new fingerprinting method closer to AN10833, patch proposed by Balazs Bucsay (thanks!) 2012-05-02 23:47:57 +00:00
Philippe Teuwen 93157dd30d nfc-utils.h: rename function oddparity_bytes_ts() to be coherent with nfc-utils.c 2012-05-02 21:18:46 +00:00
Philippe Teuwen 1cf9154296 nfc-utils: fix bug (remaining calls to old OddParity table) 2012-05-02 21:18:31 +00:00
Philippe Teuwen b84e3d0f20 nfc-utils: smaller oddparity code 2012-05-02 10:02:56 +00:00
Philippe Teuwen 789cb13dec Avoid readline auto-detection when cross-compiling. Still feasible to use readline if you specify the path to it. 2011-10-18 13:28:01 +00:00
Philippe Teuwen 7c88fc27b5 RC-S360, work-in-progress 2011-06-09 08:59:06 +00:00
Philippe Teuwen 082edbf598 More attempt to support Sony RC-S360 reader
Adapt InDeselect & InRelease to RC-S360
nfc-list now supports discovery of several typeA tags properly

Current status of RC-S360 support is:
    - nfc-list          => ok except for B' & 3B
    - nfc-anticol       => fails to send raw frames before select
    - nfc-mfultralight  => ok
    - nfc-mfclassic     => ok
    - pn53x-tamashell   => ok
    - pn53x-diagnose    => ok
    - nfc-dep-initiator => ok
    - nfc-dep-target    => fails in InitAsTarget
    - nfc-emulate-*     => fails in InitAsTarget

Commands momentarily disabled for RC-S360:
    - select_passive_target for B'& 3B
2011-06-08 00:09:57 +00:00
Philippe Teuwen 80a5ad1fd6 More attempt to support Sony S360 reader
Initialisation of RC-S360 in mode 0
Better generic nfc-list, does not rely only on DeSelect to avoid duplicates
Restore SetParameters for RC-S360
Handle Diagnose communication test properly

Tested:
    - nfc-list          => ok except for B' & 3B
    - nfc-anticol       => fails to send raw frames before select
    - nfc-mfultralight  => ok
    - nfc-mfclassic     => ok
    - pn53x-tamashell   => ok
    - pn53x-diagnose    => ok
    - nfc-dep-initiator => ok
    - nfc-dep-target    => fails in InitAsTarget
    - nfc-emulate-*     => fails in InitAsTarget

Commands momentarily disabled for RC-S330:
    - InDeselect
    - InRelease
    - select_passive_target for B'& 3B
2011-06-07 20:36:20 +00:00
Philippe Teuwen cbbda20018 nfc-anticol: -f option to force RATS 2011-06-07 18:47:20 +00:00
Philippe Teuwen 91c46050c0 First attempt to support Sony S330 reader
Tested:
- nfc-list
- nfc-anticol
- nfc-mfultralight
- nfc-mfclassic

Commands momentarily disabled:
- SetParameters
- InDeselect
- InRelease
2011-06-05 22:25:05 +00:00
Philippe Teuwen f4c3d9d4ed nfc-mfclassic: handle 7-byte UID cards & MFC Mini 2011-05-26 22:49:45 +00:00
Philippe Teuwen 96538d052b Extend max length for firmware description & fix typo 2011-05-25 19:53:45 +00:00
Philippe Teuwen ff7696fffb nfc.c: reformulate comments of prev commit in chip-agnostic way. BTW there is more to do... 2011-05-12 20:51:44 +00:00
Philippe Teuwen e5601e562f _timed(): now allows indirect control of intern prescaler via max expected cycles count 2011-05-12 20:33:00 +00:00
Philippe Teuwen b98afced69 Move prescaler to CHIP_DATA struct & remove some compilation warnings 2011-05-11 23:22:52 +00:00
Philippe Teuwen ab54a37678 list_targets support for ASK CTS512B (no anticol support yet) 2011-05-11 23:00:54 +00:00
Philippe Teuwen 53f1acfdcb _timed() fcts: allow 32b cycles counter & prescaler!=0 2011-05-11 20:56:09 +00:00
Philippe Teuwen ca3c5007f6 pn53x _timed fcts now use burst read/write on fifo register 2011-05-10 23:44:36 +00:00
Philippe Teuwen 21dfe81d0b Some optimisations in initialisation of registers 2011-05-10 23:44:27 +00:00
Philippe Teuwen 0e3357b589 pn53x _timed fcts: safebelts towards new writeback mechanism 2011-05-09 21:08:03 +00:00
Philippe Teuwen a2a93e7224 nfc-relay: fix UID 2011-05-09 08:51:07 +00:00
Philippe Teuwen d834860965 Add partial support (list) for ISO14443B-3 ST SRx & ASK CTx cards 2011-05-06 19:11:03 +00:00
Philippe Teuwen 77e522aade chips/pn53x.c: allow null reception buffers for transceive commands 2011-05-05 23:13:49 +00:00
Philippe Teuwen c0a38e6eb0 drivers: fix bug on receive: all pn53x_transceive after an error were flagged as erroneous 2011-05-05 22:26:51 +00:00
Philippe Teuwen e276d3e6ba nfc_target_init: drop explicitely the field 2011-05-05 14:58:26 +00:00
Philippe Teuwen 8dd8d25ef7 LoGO progressive field: remove hacks, unneeded with revised initializations 2011-05-05 12:45:56 +00:00
Philippe Teuwen eb86efa341 oops typo 2011-05-05 10:14:21 +00:00
Philippe Teuwen 4124dc662d Cleanup of initializations 2011-05-05 10:12:26 +00:00
Philippe Teuwen 412c326c3a better fix for timed fcts 2011-05-04 14:14:18 +00:00
Philippe Teuwen f2cb0eaa6e list_passive_targets: fixed for TypeB on LoGO 2011-05-03 19:22:28 +00:00
Philippe Teuwen 8169da3701 pn53x: Fix bug in _timed fcts 2011-05-03 13:55:20 +00:00
Philippe Teuwen fc48b7eb89 mfc: removing alpha feature to prepare release 2011-04-28 14:53:44 +00:00
Philippe Teuwen 8a77b68b10 mfc fingerprinting: fixing data 2011-04-12 07:45:41 +00:00
Philippe Teuwen b89eb58257 mfc fingerprinting: more data 2011-04-11 15:23:38 +00:00
Philippe Teuwen a72e61acbb change exec mode of scripts 2011-04-09 20:01:08 +00:00
Philippe Teuwen 610e5c9513 tamashell example for LoGO LEDs 2011-04-08 19:50:19 +00:00
Philippe Teuwen 9a101943b8 tamashell: now pause in milliseconds 2011-04-08 19:50:09 +00:00
Philippe Teuwen 9c7c4307d4 pn53x_usb: turn off LEDs on LoGO on exit 2011-04-08 19:27:10 +00:00
Philippe Teuwen ed715056e2 pn53x_usb: add comments on LED switching 2011-04-08 19:11:42 +00:00
Philippe Teuwen 174c916961 nfc-mfclassic: add some more fingerprints 2011-04-08 18:33:48 +00:00
Philippe Teuwen 55495e1e97 *_timed fcts: proper error codes 2011-04-05 13:44:36 +00:00
Philippe Teuwen 743fa048e1 pn53x: adapt MaxRetries to avoid issue with 2 tags on PN531, using same value as what LoGO does 2011-04-05 13:39:47 +00:00
Philippe Teuwen fae451d236 mfclassic fingerprinting 2011-04-05 13:30:49 +00:00
Philippe Teuwen 7f2b300dde support crc auto-handling in ...transceive_bytes_timed 2011-04-04 22:23:38 +00:00
Philippe Teuwen 8d70321d80 nfc-list: fix grammatical typo if multiple tags 2011-04-04 19:21:27 +00:00
Philippe Teuwen ffe2714b28 pn53x: factorize timer code 2011-04-04 19:04:43 +00:00
Philippe Teuwen 93de7fcd5c pn53x drivers: fix timer corrections location 2011-04-04 15:07:39 +00:00
Philippe Teuwen fb398c387f pn53x: add timed versions of transceive_bytes/bits 2011-04-04 14:16:36 +00:00
Philippe Teuwen 93c56a4b44 pn53x_usb: fix description strings 2011-04-04 09:29:14 +00:00
Philippe Teuwen 5600007dd3 pn53x: factorize & generalize CHIP_DATA() usage 2011-04-04 09:26:10 +00:00
Philippe Teuwen 35e9696ada pn53x-tamashell properly properly fixed 2011-03-10 14:43:59 +00:00
Philippe Teuwen 5bc113792b pn53x-tamashell properly fixed 2011-03-10 14:38:50 +00:00
Philippe Teuwen 3dc8d6c97c pn53x-sam: fixed with new API 2011-03-09 14:49:38 +00:00
Philippe Teuwen 351f08a54b pn53x-tamashell: fixed with new API 2011-03-09 14:45:22 +00:00
Philippe Teuwen 5df49391a9 pn53x-tamashell: add pause command & doc 2011-02-18 22:05:36 +00:00
Philippe Teuwen 3af79394b4 Readme typo 2011-02-18 09:01:30 +00:00
Philippe Teuwen 287bbfeea3 pn53x-tamashell: fix bug introduced by r878 2011-02-10 14:29:29 +00:00
Philippe Teuwen af7d04cd04 tamashell: accepts script as arg, this makes shebang possible 2011-02-03 17:17:29 +00:00
Philippe Teuwen 03963ef535 nfc-emulate-tag: handle HALT & READ 2011-01-07 13:22:39 +00:00
Philippe Teuwen 73561c5c1a nfc-emulate-tag.c: add notes on UID emulation 2011-01-07 12:32:25 +00:00