Skip to content

Commit

Permalink
v1.2.0 release
Browse files Browse the repository at this point in the history
Improvements & fix issues
  • Loading branch information
hassananayi committed Dec 21, 2022
1 parent af82c93 commit 361fbd3
Show file tree
Hide file tree
Showing 16 changed files with 749 additions and 1,755 deletions.
21 changes: 19 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
# Changelog

## v1.0.0
* First public release (December 18, 2022)
## v1.2.0 (December 21, 2022)

* Improvements & fix issues
* Added `help` command
* Added `commands` file
* Renamed `nfc-srix-programmer` command to `nfc-srix`
* Removed `commands` Commands Folder
* Removed `config` Config file
* Removed `modify_block` file
* Removed `otp_reset` file
* Removed `read_eeprom_content` file
* Removed `read_eeprom_file` file
* Removed `read_tag_info` file
* Removed `write_eeprom_to_file` file
* Removed `write_to_tag` file

## v1.0.0 (December 18, 2022)

* First public release
32 changes: 2 additions & 30 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,36 +11,8 @@ add_definitions(${LIBNFC_CFLAGS_OTHER})


# main
add_executable(nfc-srix-programmer main.c logging.c nfc_utils.c)
target_link_libraries(nfc-srix-programmer ${LIBNFC_LIBRARIES})

# Read EEPROM content
add_executable(read_eeprom_content read_eeprom_content.c logging.c nfc_utils.c)
target_link_libraries(read_eeprom_content ${LIBNFC_LIBRARIES})

# Read Tag info
add_executable(read_tag_info read_tag_info.c logging.c nfc_utils.c)
target_link_libraries(read_tag_info ${LIBNFC_LIBRARIES})

# Write EEPROM to a file
add_executable(write_eeprom_to_file write_eeprom_to_file.c logging.c nfc_utils.c)
target_link_libraries(write_eeprom_to_file ${LIBNFC_LIBRARIES})

# Read EEPROM from a file
add_executable(read_eeprom_file read_eeprom_file.c logging.c nfc_utils.c)
target_link_libraries(read_eeprom_file ${LIBNFC_LIBRARIES})

# modify_block
add_executable(modify_block modify_block.c logging.c nfc_utils.c)
target_link_libraries(modify_block ${LIBNFC_LIBRARIES})

# Write EEPROM file to NFC tag
add_executable(write_to_tag write_to_tag.c logging.c nfc_utils.c)
target_link_libraries(write_to_tag ${LIBNFC_LIBRARIES})

# reset OTP
add_executable(otp_reset otp_reset.c logging.c nfc_utils.c)
target_link_libraries(otp_reset ${LIBNFC_LIBRARIES})
add_executable(nfc-srix main.c logging.c nfc_utils.c)
target_link_libraries(nfc-srix ${LIBNFC_LIBRARIES})



15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,16 @@ make
<img src="screenshots/read_eeprom_content.png" alt="Read EEPROM Content" style="height: 300px;"/>
<img src="screenshots/read_tag_info.png" alt="Read EEPROM Content" style="height: 300px;"/>

## Config file
## Config

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

## Supported tags

Expand All @@ -49,3 +53,4 @@ make

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

16 changes: 1 addition & 15 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,8 @@

# Create build folder
mkdir build

# Copy config file
cp ./config build/config

cd build

# Create commands folder
mkdir commands

TEMP_DIR=$(mktemp -d build.XXXXXXXX)
cd "${TEMP_DIR}"

Expand All @@ -19,14 +12,7 @@ cmake ../../
make

# Copy executables
mv nfc-srix-programmer ../
mv read_eeprom_content ../commands/
mv read_tag_info ../commands/
mv write_eeprom_to_file ../commands/
mv read_eeprom_file ../commands/
mv modify_block ../commands/
mv write_to_tag ../commands/
mv otp_reset ../commands/
mv nfc-srix ../

# Cleanup
cd ../
Expand Down
Loading

0 comments on commit 361fbd3

Please sign in to comment.