+ def filterStdSweep(self, freq = freq, time = 5):
+ msgIDs = []
+ niff(self,freq,duration,description, verbose=True, comment=None, filename=None, standardid=None, debug = False):
+ for i in range(0, 2047, 6):
+ print "sniffing id: %d, %d, %d, %d, %d, %d" % (i,i+1,i+2,i+3,i+4,i+5)
+ comment = "sweepFilter_%d_%d_%d_%d_%d_%d" % (i,i+1,i+2,i+3,i+4,i+5)
+ description = "Running a sweep filer for all the possible standard IDs. This run filters for: %d, %d, %d, %d, %d, %d" % (i,i+1,i+2,i+3,i+4,i+5)
+ count = self.sniff(freq=freq, duration = time, description = description,comment = comment, standardid = [i, i+1, i+2, i+3, i+4, i+5])
+ if( count != 0):
+ for j in range(i,i+5):
+ comment = "sweepFilter: %d" % (j)
+ description = "Running a sweep filer for all the possible standard IDs. This run filters for: %d " % j
+ count = self.sniff(freq=freq, duration = time, description = description,comment = comment, standardid = [j])
+ if( count != 0):
+ msgIDs.append(j)
+ return msgIDs