self.client.serInit()
self.client.MCPsetup();
self.DATALOCATION = "../../contrib/ThayerData/"
+ self.INJECTDATALOCATION = self.DATALOCATION+"InjectedData/"
print "Message in RXB0; message type is %02x (0x00 is standard data, 0x08 is standard remote)." %messagetype
elif(messagestat == 0x00):
print "No messages in buffers."
-
+ #check to see if there was a packet
+ if( packet != None):
+ packetcount+=1;
if (packet!=None and writeToFile == True):
- packetcount+=1;
row = [];
row.append("%f"%time.time());
if period != None:
for i in range(0,writes):
self.client.MCPrts(TXB0=True);
- tic = time.time()
+ #tic = time.time()
time.sleep(period/1000) # pause for period ms before sending again
- print time.time()-tic
+ #print time.time()-tic
#starttime = time.time();
#while((time.time()-starttime < duration)):
# self.client.MCPrts(TXB0=True);
SIDhigh = (sID >> 3) & 0xFF; # get SID bits 10:3, rotate them to bits 7:0
packet = [SIDhigh,SIDlow,0x00,0x00,0x08]
#dlc = row[2]
- for i in range(4,dlc+4):
+ dlc = 8
+ for i in range(3,dlc+3):
packet.append(row[i])
+ print packet
self.client.txpacket(packet)