Romuald Conty
fd19773c21
drivers/pn53x_usb: Make valgrind more happy :)
2011-06-28 14:05:40 +00:00
Romuald Conty
eec2794d2d
drivers/pn532_uart,arygon: Make valgrind happy with UART-based drivers
2011-06-28 13:16:44 +00:00
Romuald Conty
e6051ceca4
chip/pn53x: clean up SAMConfiguration usage.
2011-06-27 17:12:25 +00:00
Romuald Conty
eb70f3842e
Error handling improvement:
...
- Attempt to sort errors depending their source
- Rename DE* errors to differenciate Device-Error and Driver-Error
- Add ENOTIMPL error to raise a error when a feature is not (yet) implemented in libnfc
2011-06-27 16:31:10 +00:00
Romuald Conty
9c314d5652
Shrink InJumpForDEP frame size according to user manual.
2011-06-27 12:33:55 +00:00
Romuald Conty
904f41e0f7
drivers/pn53x*: use shared pn53x_ack_frame[] and pn53x_nack_frame[] instead of local declaration.
2011-06-27 10:33:55 +00:00
Romuald Conty
699e9008d1
Move ISO14443-3 UID cascading in a dedicated function.
2011-06-27 10:19:00 +00:00
Romuald Conty
0b42cbfb8f
examples/nfc-emulate-forum-tag4: this example now fails with ENOTSUPP when used with a non-PN532 chip.
2011-06-27 09:14:19 +00:00
Romuald Conty
7b6baafd1d
example/nfc-relay-picc: Move windows related code into contrib/win32
2011-06-27 08:56:38 +00:00
Romain Tartiere
4259f595ec
Initialize DEP mode (nt.nti.ndi.ndm) to NDM_UNDEFINED.
2011-06-26 14:43:11 +00:00
Romuald Conty
c40319c7b4
Windows: implement automatic uart port detection and input flush (Thanks to Edwin Evans)
2011-06-16 11:50:39 +00:00
Romain Tartiere
a8394caed5
Fix comparison between signed and unsigned.
2011-06-13 21:46:01 +00:00
Romuald Conty
29856a67a0
Rename USB_TIMEOUT to USB_INFINITE_TIMEOUT and use it each time bulk read need to be infinite. (Thanks to Guty)
2011-06-10 10:04:31 +00:00
Romuald Conty
850b3c2375
Improve USB support:
...
- All USB errors are now reported in text format;
- USB drivers now relies on libusb-win32 with version >= 1.2.4.x (1.2.4.6 recommended) (Many thanks to Glenn)
2011-06-09 14:00:45 +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
Romain Tartiere
bf5b97f86a
Add FreeBSD devd(8) snippet configuration for Sony S330 readers.
2011-06-06 08:46:55 +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
Romuald Conty
17c63aebb5
pn53x_usb: continue to search a available device on usb errors (r1092 reverted then issue fixed).
2011-05-25 12:08:42 +00:00
Romuald Conty
917717c4ca
drivers: UART based drivers could now use uart_flush_input() to discard junk bytes on input.
2011-05-25 10:31:19 +00:00
Romuald Conty
22e25a8b1e
chips/pn53x: drivers now uses pn53x_data_new() and pn53x_data_free() to handle strcut pn53x_data allocation, initialization and freeing.
2011-05-25 10:25:17 +00:00
Romuald Conty
c45d4e685a
pn53x_usb: continue to search a available device on usb errors (ie. Device Busy)
2011-05-25 10:15:18 +00:00
Romuald Conty
78ce62e7b6
Fix ISO/IEC 14443-4 hardware emulation.
...
NDO_AUTO_ISO14443_4 is now set to _true_ by default with nfc_target_init();
nfc_emulate_target() now fails (return _false_) when emulator->state_machine->io() failed;
Initialize nfc_device_t variables to _false_ in order to send correctly (see notes in nfc-device.c);
nfc_emulate_forum_tag4 prints error when nfc_emulate_target() failed.
2011-05-24 17:10:13 +00:00
Romuald Conty
975cd275d1
minor fixes
2011-05-20 16:09:00 +00:00
Romuald Conty
d8b31dbd46
debian: silent down lintian and add watch file
2011-05-20 15:07:12 +00:00
Romuald Conty
0c2671d7f9
remove duplicate file LICENSE (see COPYING)
2011-05-20 15:06:36 +00:00
Romuald Conty
dc88d6f3aa
debian: now use debhelper 7 (dh7) style rules file
2011-05-20 14:40:36 +00:00
Romain Tartiere
4828211e97
Fix crash when usb_bulk_read() fails.
2011-05-18 22:25:09 +00:00
Romain Tartiere
6d66866268
Silent down the compiler.
2011-05-18 18:53:00 +00:00
Romuald Conty
1aadfef363
debian: update copyright
2011-05-18 10:59:27 +00:00
Romuald Conty
70155985f8
debian: use a numbering that allow to have libnfc pre-version and debian package pre-version too. (Thanks to Thomas Hood)
2011-05-18 08:59:07 +00:00
Romuald Conty
da6add3534
drivers/pn53x_usb: make PN53x usb connection more stable:
...
- move well-know USB problem hack into pn53x_usb_bulk_write()
- put NACK hack to handle PN533 direct reply case
2011-05-17 10:41:26 +00:00
Romuald Conty
6b5a582386
debian: fix version numbering, fix .install files and remove PPA upload mention (Thanks to Thomas Hood)
2011-05-17 10:32:59 +00:00
Romuald Conty
12095307e5
debian: change name of lib to libnfc2 to match SONAME major version 2 (Thanks to Thomas Hood)
2011-05-16 12:55:44 +00:00
Romuald Conty
224c7b3fc3
debian: the directory debian/patches and its contents gets generated at build time and need not be kept in svn.
2011-05-16 12:52:11 +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
Romuald Conty
b9bcfaf959
debian: improve debian packaging (Thanks to Thomas Hood)
2011-05-12 14:01:51 +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
Romain Tartiere
520e64c095
Compile unit tests only on demand unless using --enable-debug.
2011-05-11 17:38:11 +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
Romuald Conty
2a9f876363
Import BUFFER_* macros from libfreefare and use them in writeback cache
2011-05-10 19:13:08 +00:00
Romuald Conty
2e630f7e0f
windows port: fix uart_receive() under Win32 platform
2011-05-10 17:02:33 +00:00