63f168440b
Provide a (poor) logging capability when log4c is not available but DEBUG is enabled.
Romuald Conty2011-10-27 15:14:18 +00:00
2e2d091bfd
nfc-list: continue to attempt to reach devices after a connection failure.
Romuald Conty2011-10-27 13:46:13 +00:00
6752951084
Refresh quick_start_example1.c according to new API
Romuald Conty2011-10-18 16:07:13 +00:00
789cb13dec
Avoid readline auto-detection when cross-compiling. Still feasible to use readline if you specify the path to it.
Philippe Teuwen2011-10-18 13:28:01 +00:00
b4ebb4510d
Removes libusb types workaround (r200) as it seems to not be needed anymore but may disturb compiler.
Romuald Conty2011-10-18 11:03:54 +00:00
b6c23c7c0e
FixBundle.cmake.in was missing from released archives. (Thanks to GruGue from the libnfc forum)
Romuald Conty2011-10-17 13:11:37 +00:00
55daa29a7c
Allow to connect to a device using a connection string: - Provide a nfc_get_default_device() that allow to grab the connstring stored in LIBNFC_DEFAULT_DEVICE environnement variable or returns the first available device if not set; - nfc_connect(NULL) now takes the default device (see nfc_get_default_device()); - Removes nfc_driver_desc_t from public types - Defines nfc_connstring as char[1024] - examples/*: use nfc_connstring - examples/nfc-poll: now uses only the default device (instead of all devices availables) - Removes parse_args() from nfc-utils.[hc]
Romuald Conty2011-10-17 13:03:56 +00:00
b2666dea15
windows port improved: - PCSC headers/libs are not a requierement sif you dont select ACR122 driver - uart_win32 implementation now handles timeouts
Romuald Conty2011-10-01 14:50:53 +00:00
ea0ffa615a
Remove (g)indent references. Unfortunately, there is no automatic way that is good to indent the code. Developers need to take care about indent themself ;) (Fixes Issue 84)
Romuald Conty2011-10-01 12:33:11 +00:00
afd015f1b7
Attempt to provide a Windows implementation of timeouts handling in UART
Romuald Conty2011-09-30 14:02:51 +00:00
8c7b61eaba
move some examples to utils/ since they are not examples anymore :) (Fixes Issue 164)
Romuald Conty2011-09-30 11:33:31 +00:00
311d12feef
Make a copy of the provided timeout before calling select(2).
Romain Tartiere2011-09-29 15:01:48 +00:00
8f7834c625
drivers/arygon,pn532_uart,pn53x_usb: all PN53x commands are now cancelable
Romuald Conty2011-09-29 14:53:52 +00:00
49ab6a7f31
raise up loggin level when PCSC context is not found (e.g. under POSIX system, pcscd is not running)
Romuald Conty2011-09-29 11:59:34 +00:00
481fb4943f
- Add timeout capablities to nfc_initiator_transceive_bytes(), nfc_target_send_bytes() and nfc_target_receive_bytes(); - Bump version to 1.5.1.
Romain Tartiere2011-09-22 13:03:47 +00:00
ca8bd1df91
logging: remove semaphore usage since libnfc is not threaded and log4c does handle threaded cases itself. (Should ease Windows compiling)
Romuald Conty2011-09-20 14:07:40 +00:00
c4b45cd390
debian: add nfc-mfsetuid and nfc-emulate-nfcforum-tag2 to libnfc-example package.
Romuald Conty2011-09-13 13:12:54 +00:00
0f3b733239
directory include/nfc does not have iso7816.h file.
Romuald Conty2011-09-12 19:50:21 +00:00
e8eec583ed
Enhance logging system: * Removes internal DBG/WARN/ERR macros (but keep them in examples); * Removes almost all DEBUG define references; * Uses the flexible log4c library to log all messages.
Romuald Conty2011-09-12 14:50:01 +00:00
e401f4ec4e
Write special Mifare 1K cards, including Block 0 / UID
Adam Laurie2011-09-05 14:40:56 +00:00
fa7084fa77
removes the libusb-win32 workaround: libusb-win32 project released a new stable version which fixes the infinite timeout issue. (Thanks to Ergeerts Glenn)
Romuald Conty2011-08-08 10:02:47 +00:00
84918fd075
Fix invalid memory access when a new driver is probing for hardware and the number of requested devices was already reached.
Romain Tartiere2011-06-30 13:35:40 +00:00
fd19773c21
drivers/pn53x_usb: Make valgrind more happy :)
Romuald Conty2011-06-28 14:05:40 +00:00
eec2794d2d
drivers/pn532_uart,arygon: Make valgrind happy with UART-based drivers
Romuald Conty2011-06-28 13:16:44 +00:00
e6051ceca4
chip/pn53x: clean up SAMConfiguration usage.
Romuald Conty2011-06-27 17:12:25 +00:00
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
Romuald Conty2011-06-27 16:31:10 +00:00
9c314d5652
Shrink InJumpForDEP frame size according to user manual.
Romuald Conty2011-06-27 12:33:55 +00:00
904f41e0f7
drivers/pn53x*: use shared pn53x_ack_frame[] and pn53x_nack_frame[] instead of local declaration.
Romuald Conty2011-06-27 10:33:55 +00:00
699e9008d1
Move ISO14443-3 UID cascading in a dedicated function.
Romuald Conty2011-06-27 10:19:00 +00:00
0b42cbfb8f
examples/nfc-emulate-forum-tag4: this example now fails with ENOTSUPP when used with a non-PN532 chip.
Romuald Conty2011-06-27 09:14:19 +00:00
7b6baafd1d
example/nfc-relay-picc: Move windows related code into contrib/win32
Romuald Conty2011-06-27 08:56:38 +00:00
4259f595ec
Initialize DEP mode (nt.nti.ndi.ndm) to NDM_UNDEFINED.
Romain Tartiere2011-06-26 14:43:11 +00:00
c40319c7b4
Windows: implement automatic uart port detection and input flush (Thanks to Edwin Evans)
Romuald Conty2011-06-16 11:50:39 +00:00
29856a67a0
Rename USB_TIMEOUT to USB_INFINITE_TIMEOUT and use it each time bulk read need to be infinite. (Thanks to Guty)
Romuald Conty2011-06-10 10:04:31 +00:00
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)
Romuald Conty2011-06-09 14:00:45 +00:00
f4c3d9d4ed
nfc-mfclassic: handle 7-byte UID cards & MFC Mini
Philippe Teuwen2011-05-26 22:49:45 +00:00
96538d052b
Extend max length for firmware description & fix typo
Philippe Teuwen2011-05-25 19:53:45 +00:00
17c63aebb5
pn53x_usb: continue to search a available device on usb errors (r1092 reverted then issue fixed).
Romuald Conty2011-05-25 12:08:42 +00:00
917717c4ca
drivers: UART based drivers could now use uart_flush_input() to discard junk bytes on input.
Romuald Conty2011-05-25 10:31:19 +00:00
22e25a8b1e
chips/pn53x: drivers now uses pn53x_data_new() and pn53x_data_free() to handle strcut pn53x_data allocation, initialization and freeing.
Romuald Conty2011-05-25 10:25:17 +00:00
c45d4e685a
pn53x_usb: continue to search a available device on usb errors (ie. Device Busy)
Romuald Conty2011-05-25 10:15:18 +00:00
70155985f8
debian: use a numbering that allow to have libnfc pre-version and debian package pre-version too. (Thanks to Thomas Hood)
Romuald Conty2011-05-18 08:59:07 +00:00
da6add3534
drivers/pn53x_usb: make PN53x usb connection more stable:
Romuald Conty2011-05-17 10:41:26 +00:00
6b5a582386
debian: fix version numbering, fix .install files and remove PPA upload mention (Thanks to Thomas Hood)
Romuald Conty2011-05-17 10:32:59 +00:00
12095307e5
debian: change name of lib to libnfc2 to match SONAME major version 2 (Thanks to Thomas Hood)
Romuald Conty2011-05-16 12:55:44 +00:00
224c7b3fc3
debian: the directory debian/patches and its contents gets generated at build time and need not be kept in svn.
Romuald Conty2011-05-16 12:52:11 +00:00
ff7696fffb
nfc.c: reformulate comments of prev commit in chip-agnostic way. BTW there is more to do...
Philippe Teuwen2011-05-12 20:51:44 +00:00
e5601e562f
_timed(): now allows indirect control of intern prescaler via max expected cycles count
Philippe Teuwen2011-05-12 20:33:00 +00:00
b9bcfaf959
debian: improve debian packaging (Thanks to Thomas Hood)
Romuald Conty2011-05-12 14:01:51 +00:00