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
c972071a03
update TODO
...
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1917 e0336214-984f-0b4b-a45f-81c69e1f0ede
2006-10-25 23:33:21 +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
cc2845b1dd
fix conditionals / variable definitions (automake madness)
...
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1915 e0336214-984f-0b4b-a45f-81c69e1f0ede
2006-10-23 16:06:33 +00:00
laforge
c9d3bf3389
graceful error in case of non-existing reader backend driver
...
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1914 e0336214-984f-0b4b-a45f-81c69e1f0ede
2006-10-23 16:05:27 +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
551be94aee
export 14443a initialiation routine
...
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1911 e0336214-984f-0b4b-a45f-81c69e1f0ede
2006-10-15 20:12:45 +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
fd4364a71c
firmware compilation TODO has been done
...
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1908 e0336214-984f-0b4b-a45f-81c69e1f0ede
2006-10-14 21:50:56 +00:00
laforge
fee486a7c4
prefix functions of openpcd firmware with 'opcd_' to prevent confusion :)
...
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1907 e0336214-984f-0b4b-a45f-81c69e1f0ede
2006-10-14 21:45:56 +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
1db4b3b435
- don't display debug messages during usb bus scan
...
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1898 e0336214-984f-0b4b-a45f-81c69e1f0ede
2006-10-08 00:54:35 +00:00
laforge
1961da193e
some reality update of the README file
...
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1896 e0336214-984f-0b4b-a45f-81c69e1f0ede
2006-10-07 22:04:57 +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
2f426580fa
- make openpcd driver work with most recent openpcd dumbreader firmware
...
- make openpcd driver work if it is called after some other usb driver
was initialized
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1893 e0336214-984f-0b4b-a45f-81c69e1f0ede
2006-10-04 10:23:54 +00:00
laforge
7ace9ffe10
add support for multiple [new] usb id's in openct backend driver
...
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1892 e0336214-984f-0b4b-a45f-81c69e1f0ede
2006-09-30 13:27:07 +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
a38aca0474
try OpenPCD if there is no cm5121 available
...
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1887 e0336214-984f-0b4b-a45f-81c69e1f0ede
2006-09-22 23:12:40 +00:00
laforge
1b891c2d37
memset the size of the structure, rather than the pointer to it. Usually this problem results in memsetting too litttle... but here we actually have a less-than-four-byte-structure and we end up messing up the stack :(
...
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1886 e0336214-984f-0b4b-a45f-81c69e1f0ede
2006-09-22 21:00:27 +00:00
laforge
66547428ea
re-initialize sak rx_len for each cascade level (Henryk Ploetz)
...
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1885 e0336214-984f-0b4b-a45f-81c69e1f0ede
2006-09-22 20:57:48 +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
19bdabf243
introduce new debug macro for debugging register-level accesses
...
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1883 e0336214-984f-0b4b-a45f-81c69e1f0ede
2006-09-22 20:54:32 +00:00
laforge
4437c52ba1
- fix treatment of rx_length in low-level transceive routines
...
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1870 e0336214-984f-0b4b-a45f-81c69e1f0ede
2006-08-16 22:11:21 +00:00
laforge
f82a7a65e8
ugly workaround to avoid stack overflow
...
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1869 e0336214-984f-0b4b-a45f-81c69e1f0ede
2006-08-16 22:08:58 +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
2f8c4ec417
add timer/irq handling, disabled
...
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1867 e0336214-984f-0b4b-a45f-81c69e1f0ede
2006-08-16 14:00:56 +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
6af93d9408
add some more register definition
...
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1862 e0336214-984f-0b4b-a45f-81c69e1f0ede
2006-08-16 00:19:51 +00:00
laforge
2b672c96e2
- more verbose/precise debug messages
...
- don't close usb before closing reader handle
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1861 e0336214-984f-0b4b-a45f-81c69e1f0ede
2006-08-16 00:19:20 +00:00
laforge
9a9ffcf0c1
add interrupt definitions
...
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1856 e0336214-984f-0b4b-a45f-81c69e1f0ede
2006-08-07 14:07:33 +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
52f7a5374c
minor cosmetic cleanup, use macro instead of explicit check
...
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1833 e0336214-984f-0b4b-a45f-81c69e1f0ede
2006-06-23 21:47:00 +00:00
laforge
5d19cebcd4
add more debugging about CID/NAD capability of card
...
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1832 e0336214-984f-0b4b-a45f-81c69e1f0ede
2006-06-23 21:45:49 +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
23f5e7e37a
implement TX side chaining, clean up a lot of spaghetti code
...
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1828 e0336214-984f-0b4b-a45f-81c69e1f0ede
2006-06-21 16:45:03 +00:00
laforge
f21541d65d
respect MTU indicated by low-level driver.
...
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1825 e0336214-984f-0b4b-a45f-81c69e1f0ede
2006-06-14 19:47:07 +00:00
laforge
0e95f6a22a
fix tx chaining
...
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1824 e0336214-984f-0b4b-a45f-81c69e1f0ede
2006-06-14 19:46:44 +00:00
laforge
b4c7e5000a
make sure we never rx/tx frames > 64 bytes because stupid cm5121 is not able to
...
refill FIFO during rx/tx operation due to latency issues. This needs to be
put in a reader specific field, rather than an ASIC specific field.
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1823 e0336214-984f-0b4b-a45f-81c69e1f0ede
2006-06-14 19:45:26 +00:00
laforge
e1eacada54
fix multi-fifo-writes. still doesn't work, I think we have to limit the framesize to 64bytes with the cm5121
...
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1822 e0336214-984f-0b4b-a45f-81c69e1f0ede
2006-06-14 19:18:24 +00:00
laforge
23c11e3e5a
- make timeout more liberal
...
- implement fifo refill for transmit/transceive > 64bytes
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1821 e0336214-984f-0b4b-a45f-81c69e1f0ede
2006-06-14 18:36:28 +00:00
laforge
0f993627c6
remove linux.c
...
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1820 e0336214-984f-0b4b-a45f-81c69e1f0ede
2006-06-14 16:39:55 +00:00
laforge
a7a878d932
add send_script program
...
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1819 e0336214-984f-0b4b-a45f-81c69e1f0ede
2006-06-14 16:39:16 +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
aeb513680e
increased SNDBUF_SIZE to prevent overflow
...
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1816 e0336214-984f-0b4b-a45f-81c69e1f0ede
2006-06-13 09:48:29 +00:00