Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/reader/fm175xx/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@
0x06: 16, # MIFARE Ultralight
0x12: 45, # NTAG213
0x3E: 135, # NTAG215
0x3F: 135, # NTAG215, exact 504-byte user area
0x6D: 231, # NTAG216
}

Expand Down
Binary file added test/tags/OpenSpool/Geeetech PLA FFC5AB CC 3F.bin
Binary file not shown.
16 changes: 16 additions & 0 deletions test/tags/OpenSpool/Geeetech PLA FFC5AB CC 3F.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
source_processor: OpenspoolTagProcessor
unique_id: 3ce8c47fa2d438e7db003cf265cb2d85dc75baf942c49f93c05a81cd59b01f52
manufacturer: Geeetech
type: PLA
modifiers: []
colors:
- 0xFFFFC5AB
diameter_mm: 1.75
weight_grams: 1000
hotend_min_temp_c: 190
hotend_max_temp_c: 220
bed_temp_c: 60.0
drying_temp_c: 50.0
drying_time_hours: 8.0
manufacturing_date: "0001-01-01"
td: 0.0
5 changes: 3 additions & 2 deletions test/test_mifare_ultralight_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def scan():


def memory(size_byte):
physical_sizes = {0x06: 64, 0x12: 180, 0x3E: 540, 0x6D: 924}
physical_sizes = {0x06: 64, 0x12: 180, 0x3E: 540, 0x3F: 540, 0x6D: 924}
data = bytearray(i % 251 for i in range(physical_sizes[size_byte]))
data[12:16] = bytes([0xE1, 0x10, size_byte, 0x00])
return bytes(data)
Expand Down Expand Up @@ -77,6 +77,7 @@ def execute(cmd):
pytest.param(0x06, 64, 12, id="ultralight"),
pytest.param(0x12, 180, 41, id="ntag213"),
pytest.param(0x3E, 540, 131, id="ntag215"),
pytest.param(0x3F, 540, 131, id="ntag215-cc-504"),
pytest.param(0x6D, 924, 227, id="ntag216"),
])
def test_reads_all_physical_pages(reader, scan, monkeypatch, size_byte, total_size, last_page):
Expand Down Expand Up @@ -146,7 +147,7 @@ def test_physical_dump_preserves_processor_output(reader, scan, monkeypatch, fix
data = fixture_path.read_bytes()
# Some older NTAG213 dumps include rollover bytes. Simulate only physical
# memory and pass the real reader's exact-length output to each processor.
physical_sizes = {0x06: 64, 0x12: 180, 0x3E: 540, 0x6D: 924}
physical_sizes = {0x06: 64, 0x12: 180, 0x3E: 540, 0x3F: 540, 0x6D: 924}
physical_size = physical_sizes[data[14]]
assert len(data) >= physical_size
mock_tag(reader, monkeypatch, data[:physical_size])
Expand Down
Loading