Skip to content

Commit d12fff7

Browse files
committed
NFC notes
1 parent 018c190 commit d12fff7

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,8 @@ Other misc things to investigate / build:
1717
- Reverse-track emulate?
1818
- Tuning of parameters like pre-signal zeros?
1919
- "Interpacket delay" like the RedSpoof implementation?
20-
- (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?
20+
- (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?
21+
22+
23+
HF coil notes:
24+
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.

scenes/mag_scene_emulate_test.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#define PIN_B 1 // currently unused
55
#define CLOCK_US 240 // typically set between 200-500us
66
#define TEST_STR "%B123456781234567^LASTNAME/FIRST^YYMMSSSDDDDDDDDDDDDDDDDDDDDDDDDD?;1234567812?"
7+
#define TEST_TRACK 0
78
// TODO: better way of setting temp test str,
89
// text wrapping on screen? (Will be relevant for any loaded data too)
910

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

171172
// blink led while spoofing
172173
notification_message(mag->notifications, &sequence_blink_start_magenta);
173-
mag_spoof(v, 0);
174+
mag_spoof(v, TEST_TRACK);
174175
notification_message(mag->notifications, &sequence_blink_stop);
175176

176177
furi_string_free(v);

0 commit comments

Comments
 (0)