Commit graph

74 commits

Author SHA1 Message Date
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
Thomas Sutter
376e367d45 Make Style and remove some comments. 2019-10-17 13:48:34 +02:00
Thomas Sutter
4da87d3f96 Fix Client Response for RAW command. Client should receives now all response octects. 2019-10-17 11:46:59 +02:00
Thomas Sutter
9d3331511b Fix FeliCa select_card. Selection works now for FeliCa standard cards.
Fix SendRaw data.
Add some new unfinished cmds.
2019-10-16 14:17:52 +02:00
Philippe Teuwen
d19754567d summer restructuring:
* .h include only the strict minimum for their own parsing
  * this forces all files to include explicitment their needs and not count on far streched dependencies
  * this helps Makefile to rebuild only the minimum
  * according to this rule, most standalone .h are now gone
  * big app.h is gone
  * remove seldom __cplusplus, if c++ happens, everything will have to be done properly anyway
* all unrequired include were removed
* split common/ into common/ (client+arm) and common_arm/ (os+bootloader)
  * bring zlib to common/
  * bring stuff not really/not yet used in common back to armsrc/ or client/
  * bring liblua into client/
  * bring uart into client/
  * move some portions of code around (dbprint, protocols,...)
* rename unused files into *_disabled.[ch] to make it explicit
* rename soft Uarts between 14a, 14b and iclass, so a standalone could use several without clash
* remove PrintAndLogDevice
* move deprecated-hid-flasher from client to tools
* Makefiles
  * treat deps in armsrc/ as in client/
  * client: stop on warning (-Werror), same as for armsrc/

Tested on:

* all standalone modes
* Linux
2019-08-11 21:42:01 +02:00
Philippe Teuwen
1354aec556 typos 2019-08-06 13:51:10 +02:00
Philippe Teuwen
733a7d836d more ARRAYLEN 2019-08-01 00:14:09 +02:00
Philippe Teuwen
4761ea13f7 MF_DBGLEVEL => DBGLEVEL (pm3 side) 2019-06-06 10:05:09 +02:00
Philippe Teuwen
3b12ba2e93 replace usb_poll_validate_length() by data_available() that supports USART too 2019-06-03 00:01:08 +02:00