]> cvs.zerfleddert.de Git - proxmark3-svn/commitdiff
FIX: Another try to see if the "lf em4x 410xsim" becomes better, added the clock...
authoriceman1001 <iceman@iuse.se>
Mon, 27 Oct 2014 20:42:41 +0000 (21:42 +0100)
committericeman1001 <iceman@iuse.se>
Mon, 27 Oct 2014 20:42:41 +0000 (21:42 +0100)
FIX:  changes the transfersize from sim -> pm3,  was 48, now USB_CMD_DATA_SIZE (512) Much faster!

armsrc/appmain.c
client/.history
client/cmdlf.c
client/cmdlfem4x.c

index d239ceb05cd6cfb44766d94476399503136798e8..6d18561a532fe0b4342472d57e8da8c148add905 100644 (file)
@@ -948,7 +948,7 @@ void UsbPacketReceived(uint8_t *packet, int len)
 
                case CMD_DOWNLOADED_SIM_SAMPLES_125K: {
                        uint8_t *b = (uint8_t *)BigBuf;
 
                case CMD_DOWNLOADED_SIM_SAMPLES_125K: {
                        uint8_t *b = (uint8_t *)BigBuf;
-                       memcpy(b+c->arg[0], c->d.asBytes, 48);
+                       memcpy(b+c->arg[0], c->d.asBytes, USB_CMD_DATA_SIZE);
                        cmd_send(CMD_ACK,0,0,0,0,0);
                        break;
                }       
                        cmd_send(CMD_ACK,0,0,0,0,0);
                        break;
                }       
index 176dec98c715635dc1a946d8fbebe48b0716d264..e20a63e0c5caab0178b0385c4b8bcfff1f370f24 100644 (file)
@@ -6,3 +6,6 @@ lf t55xx rd 0
 lf t55xx trac
 lf t55xx rd 1
 lf t55xx rd 2
 lf t55xx trac
 lf t55xx rd 1
 lf t55xx rd 2
+lf em4x 410xsim 124s
+lf em4x 410xsim 0F0368568B
+da pl
index a198e1e1236b990bd893b3b123caaf8ebd3a03d3..1ce0ac81544e4562fd00fbe89c0d806c7d78e086 100644 (file)
@@ -398,17 +398,18 @@ int CmdLFSim(const char *Cmd)
   /* convert to bitstream if necessary */
   ChkBitstream(Cmd);
 
   /* convert to bitstream if necessary */
   ChkBitstream(Cmd);
 
-  PrintAndLog("Sending data, please wait...");
-  for (i = 0; i < GraphTraceLen; i += 48) {
+  PrintAndLog("Sending [%d bytes]", GraphTraceLen);
+  for (i = 0; i < GraphTraceLen; i += USB_CMD_DATA_SIZE) {
     UsbCommand c={CMD_DOWNLOADED_SIM_SAMPLES_125K, {i, 0, 0}};
     int j;
     UsbCommand c={CMD_DOWNLOADED_SIM_SAMPLES_125K, {i, 0, 0}};
     int j;
-    for (j = 0; j < 48; j++) {
+    for (j = 0; j < USB_CMD_DATA_SIZE; j++) {
       c.d.asBytes[j] = GraphBuffer[i+j];
     }
     SendCommand(&c);
     WaitForResponse(CMD_ACK,NULL);
       c.d.asBytes[j] = GraphBuffer[i+j];
     }
     SendCommand(&c);
     WaitForResponse(CMD_ACK,NULL);
+       printf(".");
   }
   }
-
+  printf("\n");
   PrintAndLog("Starting simulator...");
   UsbCommand c = {CMD_SIMULATE_TAG_125K, {GraphTraceLen, gap, 0}};
   SendCommand(&c);
   PrintAndLog("Starting simulator...");
   UsbCommand c = {CMD_SIMULATE_TAG_125K, {GraphTraceLen, gap, 0}};
   SendCommand(&c);
index aa87132e7f6decf57bef6542a4194d9d69d921cd..45a95f02c26b34848d15b7834f2060f972bb5ea5 100644 (file)
@@ -221,7 +221,8 @@ int CmdEM410xSim(const char *Cmd)
 
   /* clear our graph */
   ClearGraph(0);
 
   /* clear our graph */
   ClearGraph(0);
-
+  GraphTraceLen = 0;
+  
   /* write it out a few times */
   for (h = 0; h < 4; h++)
   {
   /* write it out a few times */
   for (h = 0; h < 4; h++)
   {
@@ -270,7 +271,7 @@ int CmdEM410xSim(const char *Cmd)
   /* booyah! */
   RepaintGraphWindow();
   
   /* booyah! */
   RepaintGraphWindow();
   
-  CmdLFSim("");
+  CmdLFSim("64");
   return 0;
 }
 
   return 0;
 }
 
@@ -295,7 +296,7 @@ int CmdEM410xWatch(const char *Cmd)
                }
                
                CmdLFRead(read_h ? "h" : "");
                }
                
                CmdLFRead(read_h ? "h" : "");
-               CmdSamples("16000");
+               CmdSamples("12000");
                
        } while (
                !CmdEM410xRead("64") 
                
        } while (
                !CmdEM410xRead("64") 
Impressum, Datenschutz