Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update branch #12

Merged
merged 17 commits into from
Aug 5, 2024
Binary file modified .DS_Store
Binary file not shown.
40 changes: 40 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
## 1.2

Fixed the bug where the user block number is incorrectly handled throughout the app's saving and loading functions. Also updated the wording in configuration to be more accurate.

## 1.1

There's no functional update in this version. Only some tweaks.
1. The block number iterator was updated but then @Willy-JL noticed it causes more trouble so it was reverted.
2. The writing success screen now uses up-to-date system icon. The changes was made by @Willy-JL in his app catalog.
3. The functions that handle file format and directory are updated to use OFW's built-in functions instead of the old manual method. Thank @augustozanellato for introducing me to these functions. This wouldn't affect functionality. However, the .t5577 files in previous versions wouldn't be supported in this update. Please use the updated example 'examples/Tag_1.t5577' as reference. The main change is parsing the 8-digit hex block data into 4 bytes.
4. Added Github workflow to check build each time a new commit is made. This was copied from @xtruan 's [PR](https://github.com/zinongli/KeyCopier/pull/5) to my other app.

What's Changed
* Update t5577_writer.c by @Moon-Byeong-heui in https://github.com/zinongli/T5577_Raw_Writer/pull/8
* Revert "Update t5577_writer.c" by @zinongli in https://github.com/zinongli/T5577_Raw_Writer/pull/9
* Use Stock Functions to Achieve Directory and Flipper Format functions by @zinongli in https://github.com/zinongli/T5577_Raw_Writer/pull/10

New Contributors
* @Moon-Byeong-heui made their first contribution in https://github.com/zinongli/T5577_Raw_Writer/pull/8

**Full Changelog**: https://github.com/zinongli/T5577_Raw_Writer/compare/v1.0...v1.1

## 1.0

The app is fully functional now. It supports writing and editing manually on the flipper along side all the previous features.
Note: this app is built with API 69.0 on OFW 0.104.0 release.

## 0.1

Basic functions are all ready.
Users can write to their T5577.
They can configure the modulation, RF clock, and block number using the configuration menu.
They can save the current file.
They can load an existing file.

The function to add block 1-7 data is still being developped.
For now, users would have to write their own raw data using the data file template.
Put it into apps_data/t5577_writer folder, load it inside the app, and write onto a T5577 fob.

To install, download the following .fap file, drag the .fap into your Flipper Zero's apps/RFID folder, and start writing!
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
# T5577 Raw Writer App
An easy to use T5577 raw writer app for Flipper Zero. [Discord project page.](https://discord.com/channels/1211622338198765599/1267190551783018659)
## Instruction:
## Instruction

Configure the modulation, RF Clock, number of blocks, and block data in the `Config` menu.
Configure the modulation, RF Clock, number of blocks, and block data in the 'Config' menu.

Or, you can load a .t5577 file into the app and write it. An example file can be found [here](https://github.com/zinongli/T5577_Raw_Writer/blob/b8f459c787802a443b2a943250b2ad8249f7c0ea/examples/Tag_1.t5577). The configuration will be automatically loaded from block 0 data.
Or, you can load a .t5577 file into the app and write it. An example file can be found [here](https://github.com/zinongli/T5577_Raw_Writer/blob/main/examples/Tag_1.t5577). The configuration will be automatically loaded from block 0 data.

The texts like:
`Modulation: ASK/MC
RF Clock: 64
Number of User Blocks: 8`
in the .t5577 files are derived from the block 0 data when saved. So if you want to adjust the configuration, you can simply edit block 0 data, without having to edit the text in the file. Or, you can load the data directly and adjust the configuration in the app before writing tags.

You can also save the data you've just loaded and/or configured.
'Modulation: ASK/MC'

'RF Clock: 64'

## To-Do:
'Number of User Blocks: 8'

- [ ] Edit the directory handling into using OFW built-in functions storage_simply_mkdir. Also Flipper format. Credit auguzanellato.
in the .t5577 files are derived from the block 0 data when saved. So if you want to adjust the configuration, you can simply edit block 0 data. Or, you can load the data directly and adjust the configuration in the app before writing tags. Editing the texts mentioned above wouldn't work.

You can also save the data you've just loaded and/or configured.

## Special Thanks:
## Special Thanks
Thank [@jamisonderek](https://github.com/jamisonderek) for his [Flipper Zero Tutorial repository](https://github.com/jamisonderek/flipper-zero-tutorials) and [YouTube channel](https://github.com/jamisonderek/flipper-zero-tutorials#:~:text=YouTube%3A%20%40MrDerekJamison)! This app is built with his Skeleton App and GPIO Wiegand app as references.
2 changes: 1 addition & 1 deletion application.fam
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ App(
fap_category="RFID",
fap_icon_assets="assets",
fap_description="@README.md",
fap_version="0.1",
fap_version="1.2",
fap_author="Torron"
)
2 changes: 1 addition & 1 deletion examples/Tag_1.t5577
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Filetype: Flipper T5577 Raw File
Version: 2
Modulation: FSK2a
RF Clock: 64
Number of User Blocks: 8
Max User Block: 7
Raw Data:
Block 0: 00 14 70 E0
Block 1: 11 12 13 14
Expand Down
Binary file added screenshots/about.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/config_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/config_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/load.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/main_menu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/writing.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion t5577_writer.c
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ static T5577WriterApp* t5577_writer_app_alloc() {
0,
128,
64,
"T5577 Raw Writer v0.1\n\nAuthor: @Torron\n\nGithub: https://github.com/zinongli/T5577_Raw_Writer");
"T5577 Raw Writer v1.2\n\nAuthor: @Torron\n\nGithub: https://github.com/zinongli/T5577_Raw_Writer");
view_set_previous_callback(
widget_get_view(app->widget_about), t5577_writer_navigation_submenu_callback);
view_dispatcher_add_view(
Expand Down
Loading