equal
deleted
inserted
replaced
35 115200, #speed |
35 115200, #speed |
36 120) #timeout |
36 120) #timeout |
37 self.HandleSerialTransaction(KEEPBOOTINGTransaction()) |
37 self.HandleSerialTransaction(KEEPBOOTINGTransaction()) |
38 self.PLCStatus = "Stopped" |
38 self.PLCStatus = "Stopped" |
39 |
39 |
|
40 def StartPLC(self, debug=False): |
|
41 self.HandleSerialTransaction(STARTTransaction()) |
|
42 |
40 def NewPLC(self, md5sum, data, extrafiles): |
43 def NewPLC(self, md5sum, data, extrafiles): |
41 self.successfully_transfered = self.HandleSerialTransaction(LOADTransaction(data, self.PLCprint)) |
44 self.successfully_transfered = self.HandleSerialTransaction(LOADTransaction(data, self.PLCprint)) |
42 return self.successfully_transfered |
45 return self.successfully_transfered |
43 |
46 |
44 def MatchMD5(self, MD5): |
47 def MatchMD5(self, MD5): |
45 return self.successfully_transfered |
48 res = self.HandleSerialTransaction(CHECKMD5Transaction(MD5)) |
|
49 return "".join(res).find('FAILED') == -1 |
46 |
50 |
47 |
51 |
48 def SetTraceVariablesList(self, idxs): |
52 def SetTraceVariablesList(self, idxs): |
49 pass |
53 pass |
50 |
54 |