+ def explore(self,tstart=0,tstop=-1, trials=5):
+ """Exploration phase. Uses thresholds to find exploitable points."""
+ gnd=0;
+ self.scansetup(1); #Lock the chip, place key in eeprom.
+ if tstop<0:
+ tstop=self.client.glitchstarttime();
+ times=range(tstart,tstop);
+ random.shuffle(times);
+ for t in times:
+ voltages=self.glitchvoltages(t);
+ print "Exploring %04i points in t=%04i." % (len(voltages),t);
+ sys.stdout.flush();
+ for vcc in voltages:
+ self.scanat(1,trials,vcc,gnd,t);