Skip to content

Commit 361fbd3

Browse files
committed
v1.2.0 release
Improvements & fix issues
1 parent af82c93 commit 361fbd3

16 files changed

+749
-1755
lines changed

CHANGELOG.md

+19-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,21 @@
11
# Changelog
22

3-
## v1.0.0
4-
* First public release (December 18, 2022)
3+
## v1.2.0 (December 21, 2022)
4+
5+
* Improvements & fix issues
6+
* Added `help` command
7+
* Added `commands` file
8+
* Renamed `nfc-srix-programmer` command to `nfc-srix`
9+
* Removed `commands` Commands Folder
10+
* Removed `config` Config file
11+
* Removed `modify_block` file
12+
* Removed `otp_reset` file
13+
* Removed `read_eeprom_content` file
14+
* Removed `read_eeprom_file` file
15+
* Removed `read_tag_info` file
16+
* Removed `write_eeprom_to_file` file
17+
* Removed `write_to_tag` file
18+
19+
## v1.0.0 (December 18, 2022)
20+
21+
* First public release

CMakeLists.txt

+2-30
Original file line numberDiff line numberDiff line change
@@ -11,36 +11,8 @@ add_definitions(${LIBNFC_CFLAGS_OTHER})
1111

1212

1313
# main
14-
add_executable(nfc-srix-programmer main.c logging.c nfc_utils.c)
15-
target_link_libraries(nfc-srix-programmer ${LIBNFC_LIBRARIES})
16-
17-
# Read EEPROM content
18-
add_executable(read_eeprom_content read_eeprom_content.c logging.c nfc_utils.c)
19-
target_link_libraries(read_eeprom_content ${LIBNFC_LIBRARIES})
20-
21-
# Read Tag info
22-
add_executable(read_tag_info read_tag_info.c logging.c nfc_utils.c)
23-
target_link_libraries(read_tag_info ${LIBNFC_LIBRARIES})
24-
25-
# Write EEPROM to a file
26-
add_executable(write_eeprom_to_file write_eeprom_to_file.c logging.c nfc_utils.c)
27-
target_link_libraries(write_eeprom_to_file ${LIBNFC_LIBRARIES})
28-
29-
# Read EEPROM from a file
30-
add_executable(read_eeprom_file read_eeprom_file.c logging.c nfc_utils.c)
31-
target_link_libraries(read_eeprom_file ${LIBNFC_LIBRARIES})
32-
33-
# modify_block
34-
add_executable(modify_block modify_block.c logging.c nfc_utils.c)
35-
target_link_libraries(modify_block ${LIBNFC_LIBRARIES})
36-
37-
# Write EEPROM file to NFC tag
38-
add_executable(write_to_tag write_to_tag.c logging.c nfc_utils.c)
39-
target_link_libraries(write_to_tag ${LIBNFC_LIBRARIES})
40-
41-
# reset OTP
42-
add_executable(otp_reset otp_reset.c logging.c nfc_utils.c)
43-
target_link_libraries(otp_reset ${LIBNFC_LIBRARIES})
14+
add_executable(nfc-srix main.c logging.c nfc_utils.c)
15+
target_link_libraries(nfc-srix ${LIBNFC_LIBRARIES})
4416

4517

4618

README.md

+10-5
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,16 @@ make
3333
<img src="screenshots/read_eeprom_content.png" alt="Read EEPROM Content" style="height: 300px;"/>
3434
<img src="screenshots/read_tag_info.png" alt="Read EEPROM Content" style="height: 300px;"/>
3535

36-
## Config file
36+
## Config
3737

38-
* `tag_type=x4k;` [x4k|512] Select SRIX4K or SRI512 tag type [default: x4k]
39-
* `print_columns=1;` [1|2] erint on one or two columns [default: 1]
40-
* `verbose=off;` [on|off] Enable verbose - print debugging data [default: off]
41-
* `skip_confirmation=off;` [on|off] Skip All confirmation input [default: off]
38+
```text
39+
Usage: ./nfc-srix [-v] [-y] [-t x4k|512]
40+
41+
Options:
42+
-v enable verbose - print debugging data
43+
-y nswer YES to all questions
44+
-t x4k|512 select SRIX4K or SRI512 tag type [default: x4k]
45+
```
4246

4347
## Supported tags
4448

@@ -49,3 +53,4 @@ make
4953

5054
Compliant ST SRx tags have some blocks that, once changed,cannot be changed back to their original value.Example Counters Blocks 5 and 6.
5155
Before writing a tag, make sure you're aware of this.
56+

build.sh

+1-15
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,8 @@
22

33
# Create build folder
44
mkdir build
5-
6-
# Copy config file
7-
cp ./config build/config
8-
95
cd build
106

11-
# Create commands folder
12-
mkdir commands
13-
147
TEMP_DIR=$(mktemp -d build.XXXXXXXX)
158
cd "${TEMP_DIR}"
169

@@ -19,14 +12,7 @@ cmake ../../
1912
make
2013

2114
# Copy executables
22-
mv nfc-srix-programmer ../
23-
mv read_eeprom_content ../commands/
24-
mv read_tag_info ../commands/
25-
mv write_eeprom_to_file ../commands/
26-
mv read_eeprom_file ../commands/
27-
mv modify_block ../commands/
28-
mv write_to_tag ../commands/
29-
mv otp_reset ../commands/
15+
mv nfc-srix ../
3016

3117
# Cleanup
3218
cd ../

0 commit comments

Comments
 (0)