X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=client%2Fexperiments.py;h=44f89ecf1b92385da6d1fcf5e5ea42240c62190d;hp=04777da1e8b4f8ca96f8a6bcbdac639765da6411;hb=a52be3a0ebbb67f3b4f35f3d53431d7c1488c9b4;hpb=5b7f84b9bbc7e49e48a7dfb78a5cb1fb07622de7 diff --git a/client/experiments.py b/client/experiments.py index 04777da..44f89ec 100644 --- a/client/experiments.py +++ b/client/experiments.py @@ -199,7 +199,7 @@ class experiments(GoodFETMCPCANCommunication): #get folder information (based on today's date) now = datetime.datetime.now() datestr = now.strftime("%Y%m%d") - path = self.DATALOCATION+datestr+"_GenerationFuzzedPackets.csv" + path = self.DATALOCATION+"InjectedData/"+datestr+"_GenerationFuzzedPackets.csv" filename = path outfile = open(filename,'a'); dataWriter = csv.writer(outfile,delimiter=','); @@ -217,12 +217,12 @@ class experiments(GoodFETMCPCANCommunication): packet[i+5] = value #put a rough time stamp on the data and get all the data bytes - row = ['#',time.time(), standardId] + row = [time.time(), standardId,8] msg = "Injecting: " for i in range(5,13): row.append(packet[i]) msg += " %d"%packet[i] - print msg + #print msg dataWriter.writerow(row) self.client.txpacket(packet) #inject the packet repeatily