Skip to content
This repository has been archived by the owner on Jul 28, 2024. It is now read-only.

Commit

Permalink
NFC notes
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyweiss committed Dec 28, 2022
1 parent 018c190 commit d12fff7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,8 @@ Other misc things to investigate / build:
- Reverse-track emulate?
- Tuning of parameters like pre-signal zeros?
- "Interpacket delay" like the RedSpoof implementation?
- (Less important) Any way to easily wrap text on screen, without having to manually calculate the number of chars that fit and splicing the string accordingly into lines?
- (Less important) Any way to easily wrap text on screen, without having to manually calculate the number of chars that fit and splicing the string accordingly into lines?


HF coil notes:
NFC reader field can be turned on / off with furi_hal_nfc_field_on(); and furi_hal_nfc_field_off(); respectively, as seen in nfc_scene_field.c (used for debug purposes). At a lower level, that consists of furi_hal_nfc_exit_sleep(); and st25r3916TxRxOn(); to turn on, and st25r3916TxRxOff(); and furi_hal_nfc_start_sleep(); to turn off. May be worth trying directly (wake from sleep at setup, toggle on and off corresponding with bit direction, send to sleep on exit). If this doesn't work, will likely need to consider lower-level control.
3 changes: 2 additions & 1 deletion scenes/mag_scene_emulate_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#define PIN_B 1 // currently unused
#define CLOCK_US 240 // typically set between 200-500us
#define TEST_STR "%B123456781234567^LASTNAME/FIRST^YYMMSSSDDDDDDDDDDDDDDDDDDDDDDDDD?;1234567812?"
#define TEST_TRACK 0
// TODO: better way of setting temp test str,
// text wrapping on screen? (Will be relevant for any loaded data too)

Expand Down Expand Up @@ -170,7 +171,7 @@ bool mag_scene_emulate_test_on_event(void *context, SceneManagerEvent event) {

// blink led while spoofing
notification_message(mag->notifications, &sequence_blink_start_magenta);
mag_spoof(v, 0);
mag_spoof(v, TEST_TRACK);
notification_message(mag->notifications, &sequence_blink_stop);

furi_string_free(v);
Expand Down

0 comments on commit d12fff7

Please sign in to comment.