X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=client%2FGoodFETGlitch.py;h=0e0a1aa6f71fd9eccb85e45d10233ae28dcc4c0d;hp=ce82d0d7a6df66253094a8f54f9bcaf897441fa0;hb=1898be2b9e4666be17c4be54560ae8afa7623c7c;hpb=ac438c880b976512eb377806fa0f470bf390fdde diff --git a/client/GoodFETGlitch.py b/client/GoodFETGlitch.py index ce82d0d..0e0a1aa 100644 --- a/client/GoodFETGlitch.py +++ b/client/GoodFETGlitch.py @@ -154,7 +154,7 @@ class GoodFETGlitch(GoodFET): print "%i %i %i %i %i" % r; def npoints(self): c=self.db.cursor(); - c.execute("select time,vcc,gnd,glitchcount,count from glitches where lock=0 and count=0;"); + c.execute("select time,vcc,gnd,glitchcount,count from glitches where lock=0 and glitchcount>0;"); print "time vcc gnd glitchcount count"; for r in c: print "%i %i %i %i %i" % r; @@ -190,10 +190,10 @@ class GoodFETGlitch(GoodFET): self.scanat(1,trials,vcc,gnd,t); def learn(self): """Learning phase. Finds thresholds at which the chip screws up.""" - trials=1; + trials=30; lock=0; #1 locks, 0 unlocked vstart=0; - vstop=1024; #Could be as high as 0xFFF, but upper range is useless + vstop=200; #Could be as high as 0xFFF, but upper range is useless vstep=1; tstart=0; tstop=self.client.glitchstarttime();