From 5c0f1afebd37290c1379cbb40a57718bd4b2e2b5 Mon Sep 17 00:00:00 2001 From: chrishoder Date: Wed, 20 Feb 2013 04:49:36 +0000 Subject: [PATCH] increased capabilities to the write from file to allow it to read and use a sniff saved data file git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@1517 12e2690d-a6be-4b82-a7b7-67c4a43b65c8 --- client/experiments.py | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/client/experiments.py b/client/experiments.py index d9d85fa..cfe8f1b 100644 --- a/client/experiments.py +++ b/client/experiments.py @@ -278,19 +278,9 @@ class experiments(GoodFETMCPCANCommunication): #print "Fuzzing on standard ID: %d" %standardId self.client.serInit() self.spitSetup(freq) - packet = [0,0,0x00,0x00,0x08,0,0,0,0,0,0,0,0] #empty template - #form a basic packet - -# #### split SID into different regs -# SIDlow = (standardIds[0] & 0x07) << 5; # get SID bits 2:0, rotate them to bits 7:5 -# SIDhigh = (standardIds[0] >> 3) & 0xFF; # get SID bits 10:3, rotate them to bits 7:0 -# -# packet = [SIDhigh, SIDlow, 0x00,0x00, # pad out EID regs -# 0x08, # bit 6 must be set to 0 for data frame (1 for RTR) -# # lower nibble is DLC -# packetTemp[0],packetTemp[1],packetTemp[2],packetTemp[3],packetTemp[4],packetTemp[5],packetTemp[6],packetTemp[7]] -# - + packet = [0,0,0x00,0x00,0x08,0,0,0,0,0,0,0,0] #empty packet template + + #get folder information (based on today's date) now = datetime.datetime.now() datestr = now.strftime("%Y%m%d") -- 2.20.1