Major update to EM4x70 support:
1. Rework how communications with tag occur.
a. bitstream to be sent to the tag is now fully pre-generated.
b. bits sent and received are logged with start / end times.
2. Support built-in `hw dbg` for controlling verbosity of debug output
The new bitstream generation and logging has exposed a surprising legacy behavior ... each of the command that sent additional data (beyond the command) were:
* inserting an extra RM zero bit
* force-enabling command parity is used
This was not expected. However, this PR maintains the behavior of the existing code.
TODO: Root-cause why the third RM bit is needed. Fix code to remove that hack.
TODO: change the arm/client interface to ONLY use arrays of bytes, with well-defined content endianness, to avoid this problem.
This commit is contained in:
1 parent
f31ee2633f
commit
21ad101ff5
6 files changed
+2653
-243
No files matched your search
@@ -34,9 +34,15 @@
|
||||
|
||||
// TODO: Optional: use those unique structures in a union, call it em4x70_data_t, but add a first
|
||||
// common header field that includes the command itself (to improve debugging / validation).
|
||||
|
||||
typedef struct _em4x70_tag_info_t {
|
||||
/// <summary>
|
||||
/// The full data on an em4x70 the tag.
|
||||
/// The full data on an em4170 tag.
|
||||
/// For V4070 tags:
|
||||
/// * UM2 does not exist on the tag
|
||||
/// * Pin does not exist on the tag
|
||||
/// * UM1 (including the lock bits) might be one-time programmable (OTP)
|
||||
///
|
||||
/// [31] == Block 15 MSB == UM2₆₃..UM2₅₆
|
||||
/// [30] == Block 15 LSB == UM2₅₅..UM2₄₈
|
||||
/// [29] == Block 14 MSB == UM2₄₇..UM2₄₀
|
||||
@@ -168,6 +174,7 @@ typedef struct _em4x70_cmd_input_calculate_t {
|
||||
ID48LIB_KEY key;
|
||||
ID48LIB_NONCE rn;
|
||||
} em4x70_cmd_input_calculate_t;
|
||||
|
||||
typedef struct _em4x70_cmd_output_calculate_t {
|
||||
ID48LIB_FRN frn;
|
||||
ID48LIB_GRN grn;
|
||||
|
||||
Reference in new issue
Block a user