Commit graph

82 commits

Author SHA1 Message Date
iceman1001 b696c498b7 scope, const 2024-05-14 14:37:08 +02:00
iceman1001 42f0699c78 style 2024-05-14 10:04:28 +02:00
iceman1001 bbbe985111 when changing to 50 loops on device side, the felica reader code on client side timedout and it wasnt handled good enough so the return code was PM3_SUCCESS giving a false positive. Increase timeout, decrease loops to 25, and better loop handling of return value 2024-05-12 20:17:50 +02:00
iceman1001 eac3774189 changed to 50 polls, not sure if its good. Maybe looking at timeout 1060ms value instead? also cleaned out debug statements 2024-04-26 12:15:38 +02:00
iceman1001 4304372858 tweaking felica timings to see if it gets better results 2024-04-22 10:41:28 +02:00
iceman1001 d608d85e3b felica... shouldnt print dbhexdump.. it should be on client side 2024-01-23 19:18:44 +01:00
Henry Gabryjelski 6804e719e5 const for felica 2023-08-08 23:55:20 -07:00
Philippe Teuwen 17d7fb8abb cppcheck test unsigned less than zero 2023-01-15 02:23:19 +01:00
acru3l f57879cbcb Fix felica_sendraw 2022-04-27 11:38:28 +09:00
Philippe Teuwen c44aa8a8c4 arm felica: Fix codeql warnings 2022-02-27 15:00:50 +01:00
iceman1001 b98d518fd7 style 2022-01-06 19:41:45 +01:00
iceman1001 b55a33b1d7 cppcheck fixes for const 2022-01-06 15:22:36 +01:00
Philippe Teuwen b703bb746b Adapting license headers, WIP 2022-01-06 02:20:38 +01:00
pieterg 1ec2e95437
armsrc/felica: add polling response time slot support to felica_sim_lite
Make sure we respond in a valid time slot.
We were responding too early, the first time slot (which is always allowed) starts after 512 * 64 / fc.

Also, respond in incremental time slots. We could have used a fixed time slot (#0 is always allowed), but by using incremental time slots we have a better chance the reader will get our response in the expected time frame.
(when our timing is wrong, we have a risk of responding too early when using the first slot, and too late when using the last slot. Slots in the middle of the allowed range have the best chance)
2021-11-19 14:59:45 +01:00
Iceman 94b597febf
Merge pull request #1530 from pieterg/patch-1
armsrc/felica: fix crc offsets in felica_sim_lite
2021-11-18 17:43:48 +01:00
pieterg bf03177255 armsrc/felica: fix handling POLL with Request Code 1
apparent typo, listenmode should be set to false in order to send the
prepared response
2021-11-18 15:07:50 +01:00
pieterg 3edd6b5b36
armsrc/felica: fix crc offsets in felica_sim_lite
the sync bytes should not be included in the crc calculation
(and the crc bytes should be placed at the end of the response buffers)
2021-11-18 12:20:09 +01:00
Philippe Teuwen e79fb92074 Add fpga-xc3s100e and icopyx support 2021-08-21 23:45:46 +02:00
Philippe Teuwen 5b54385347 rename globals 2021-08-21 23:08:26 +02:00
iceman1001 d1fe746ebf felica - select tag , only loop 10 tens 2021-04-15 21:43:48 +02:00
iceman1001 27184d7f5b style 2021-04-08 10:44:31 +02:00
iceman1001 7574606080 hf felica sniff - now uses cliparser 2021-03-26 21:01:50 +01:00
iceman1001 91b47eeb1f hf felica litesim - now uses cliparser 2021-03-25 09:39:40 +01:00
iceman1001 7593fa20b8 textual (thanks @ave_!) 2020-11-28 22:21:21 +01:00
iceman1001 31f5502171 remade ASK C-ticket select to deviceside 2020-10-02 14:31:52 +02:00
iceman1001 7ee811bb9e felica fixes 2020-07-08 23:11:29 +02:00
iceman1001 b775b68e4e fpga iclass 2020-07-07 13:18:53 +02:00
iceman1001 d83a45f0cb fpga merge changes 2020-07-06 15:16:00 +02:00
Philippe Teuwen 3e7512a5d5 armsrc: clarify static vars vs global vars 2020-05-19 17:05:43 +02:00
Philippe Teuwen 1ee8696e47 Fix issue #729. Avoid stalling on non-rdv4 when polling for FeliCa without card in proximity 2020-05-13 00:36:52 +02:00
Philippe Teuwen 026707b960 arm: fix prototypes 2020-05-11 13:48:57 +02:00
iceman1001 75eff352c9 MIX 2020-04-08 05:29:22 +02:00
Thomas Sutter 35131a52c9 Fix FeliCa Light Dump function 2020-01-21 18:07:18 +01:00
iceman1001 621eb12976 fix: lf simulation, wrong offsets in majormode 2020-01-12 00:30:23 +01:00
iceman1001 110446799c coverty 263981 2020-01-04 15:55:50 +01:00
iceman1001 608d38c4b5 cppcheck 2020-01-01 22:13:24 +01:00
Thomas Sutter b4c1333ac3 Remove unused comments.
Change boolean for src.
2019-11-01 15:37:53 +01:00
Thomas Sutter 42fd13985f Make style. 2019-11-01 15:19:09 +01:00
Thomas Sutter dadad1dacf Fix felica sniffing. 2019-11-01 15:06:48 +01:00
Thomas Sutter 1a852e02c7 Fix sniffing command.
Refactor hf list felica.
2019-10-30 13:35:03 +01:00
Thomas Sutter bfd5214cd5 Add read_without_encryption command. 2019-10-24 16:08:44 +02:00
Thomas Sutter 2274383129 Remove crc methode. Add CRC macro.
Change help text for request service.
2019-10-23 09:21:43 +02:00
Thomas Sutter 3f56116615 Add felica request service all nodes command.
Make style.
2019-10-22 17:03:54 +02:00
Thomas Sutter 6144e2d09b Add felica request service command.
Add cmd parser functions.
2019-10-22 15:56:05 +02:00
Thomas Sutter e7f7810d22 Make style. Change DBG_DEBUG. Refactor CRC calculation 2019-10-21 09:59:15 +02:00
Thomas Sutter ce4c651853 Merge remote-tracking branch 'upstream/master' into felica_support_request_service
# Conflicts:
#	armsrc/felica.c
#	client/cmdhffelica.c
2019-10-20 18:40:16 +02:00
Thomas Sutter f7d4f2e9f3 Unfinished request service commands. 2019-10-20 18:28:07 +02:00
iceman1001 0dd9e66bcf text 2019-10-19 23:40:34 +02:00
iceman1001 29468ee817 fix: wrong mess len 2019-10-19 16:12:33 -04:00
Philippe Teuwen 6ba85af199 quick fix for felica, we can't leave repo broken so long... 2019-10-18 22:42:56 +02:00