iceman1001
0096672d38
fix fct names and consts and bad if statement
2024-05-14 11:57:47 +02:00
iceman1001
82e7830e5b
style
2023-10-30 22:20:55 +01:00
iceman1001
14a0e0bc72
fix old length for sim module
2023-10-18 15:18:58 +02:00
iceman1001
026cd7d53d
style
2023-10-15 13:21:16 +02:00
iceman1001
0f9f5f116c
text
2023-10-15 10:11:27 +02:00
iceman1001
4f96d3eb46
style
2023-10-03 17:10:39 +02:00
iceman1001
bb5d61dca7
added some helper functions
2023-10-01 13:05:08 +02:00
iceman1001
bb47bdd979
revert back to old timings
2023-09-28 08:34:29 +02:00
iceman1001
bf7ac0b8ce
in prep for new firmware, no old v3xxx supported anymore
2023-09-27 21:34:51 +02:00
iceman1001
d8817f2cb2
style, length checks for getversion, bit comparision
2023-09-27 21:31:48 +02:00
iceman1001
3d92b44047
reduced time out for SCL
2023-09-27 21:30:30 +02:00
iceman1001
6ddf283272
adapt wait after ATR down to 1200 ms, and retries ten times now
2023-09-22 23:32:50 +02:00
iceman1001
78adf186d3
style
2023-09-17 17:41:58 +02:00
iceman1001
b6e1344e1c
added a custom timeout parameter to the smart raw command
2023-09-16 18:38:53 +02:00
Henry Gabryjelski
8af8723528
const for i2c
2023-08-14 21:45:21 -07:00
iceman1001
9888eef8dc
changed hf mf wrbl and view command to look for strict readonly ACL in the data.
2023-01-06 23:53:25 +01:00
Jean-Michel Picod
f32de52b46
Wait a bit longer for the smartcard.
...
For the max 256-byte frame, SIM wasn't ready early enough, corrupting
the reception buffer with 5 spurious bytes.
Empirically, 109 clock cycles is the minimum value that worked.
Adding 1 clock cycle as a safety buffer.
2022-12-09 13:32:17 +01:00
iceman1001
8eb6f60ba6
added a wait when init I2C, seems to increase stability
2022-12-09 07:40:41 +01:00
iceman1001
ac84e855a9
Jumps len check fix
2022-12-09 07:39:36 +01:00
iceman1001
c5582ab7c7
Changing timings, this now waits for max 276 bytes while 8051 speaks with card
2022-12-09 07:39:04 +01:00
iceman1001
4c9c0b5264
minor adaptations to timings
2022-12-09 07:37:37 +01:00
Jean-Michel Picod
07a8f7a6de
Raise the buffer size even more.
...
I was too conservative as it requires 261 bytes. Let's put 270 for the
peace of mind.
2022-12-05 22:05:15 +01:00
Jean-Michel Picod
83e6b223c4
Adapt ARM code to comply with SIM module firmware 4.12
2022-12-05 19:35:11 +01:00
Jean-Michel Picod
c2aed7900c
Temporary fix buffer overflow until new SIM firmware is released
2022-12-05 16:53:59 +01:00
Philippe Teuwen
b703bb746b
Adapting license headers, WIP
2022-01-06 02:20:38 +01:00
Philippe Teuwen
5b54385347
rename globals
2021-08-21 23:08:26 +02:00
iceman1001
a6712295c7
textual - hw status on device side
2021-05-11 16:11:33 +02:00
iceman1001
27184d7f5b
style
2021-04-08 10:44:31 +02:00
iceman1001
8a05a4d1d7
smart raw - now use NG.\nhf iclass config - added more support for keyrollning (WIP)\n
2021-04-08 09:34:11 +02:00
iceman1001
d19da982f0
looping for smart card, inverted the silent to verbose, updated cardhelper stuff
2021-04-04 17:01:43 +02:00
iceman1001
31f7f17766
smart, loop 5 times, and shorten delay instead
2021-04-04 11:21:17 +02:00
Philippe Teuwen
777cb5a8ce
make style
2020-11-02 01:46:47 +01:00
iceman1001
57f226c922
smart upgrade - now uses NG, added crc for each transfer to verify data integrity before flashing
2020-10-26 00:38:13 +01:00
iceman1001
bc48941951
fix smart card
2020-10-25 01:12:20 +02:00
iceman1001
2e27a493e8
revert to precision clock
2020-10-20 17:34:42 +02:00
Philippe Teuwen
4ed57c7c4d
make style
2020-08-13 12:25:04 +02:00
iceman1001
7450ad6573
style and trying a long timeout
2020-08-06 16:20:29 +02:00
iceman1001
5725eed2cd
to log or not to log
2020-08-03 17:38:18 +02:00
iceman1001
acb598756c
optional log
2020-07-29 11:00:06 +02:00
Philippe Teuwen
f69739da79
make style
2020-06-19 18:34:47 +02:00
iceman1001
e71e70bd9d
minor
2020-06-12 17:50:11 +02:00
iceman1001
3832cf26fd
color
2020-06-11 19:20:59 +02:00
Philippe Teuwen
cb8d589fc4
armsrc: clarify static vars vs global vars, part 3
2020-05-19 18:12:40 +02:00
Philippe Teuwen
026707b960
arm: fix prototypes
2020-05-11 13:48:57 +02:00
iceman1001
2ec4bc9a0e
old->mix
2020-02-22 13:14:43 +01: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