Zachary Weiss 3 سال پیش
والد
کامیت
d12fff7cdf
2فایلهای تغییر یافته به همراه7 افزوده شده و 2 حذف شده
  1. 5 1
      README.md
  2. 2 1
      scenes/mag_scene_emulate_test.c

+ 5 - 1
README.md

@@ -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.

+ 2 - 1
scenes/mag_scene_emulate_test.c

@@ -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)
 
@@ -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);