##// END OF EJS Templates
imanay -
r112:113
parent child
Show More
@@ -42,9 +42,8
42 42 datarpta = self.tx_buffer
43 43
44 44 if cmd == "NTST":
45 self.enaModules = self.__getConnectionStatus()
46 45 #Using tx buffer
47 datarpta = self.enaModules
46 datarpta = self.__getConnectionStatus(cmd = cmd)
48 47
49 48 self.commServerObj.sendData(cmd=cmd, data=datarpta, ipDestino = ipSource)
50 49
@@ -173,11 +172,24
173 172 print all_blocks
174 173 self.tx_buffer = all_blocks
175 174
176 def __getConnectionStatus(self):
175 def __getConnectionStatus(self, cmd):
177 176
178 enaModules = self.checkAntenna()
177 ena = self.checkAntenna()
178 self.enaModules = ena
179
180 blockLst = []
179 181
180 return enaModules
182 for id in range(1,65):
183 if id not in self.enaModules:
184 continue
185
186 blockStr = self.__ConnectionWithControlModules(self.rx_buffer,cmd,id)
187 blockLst.append(blockStr + ", 192.168.1." + str(id) + "\n")
188 #Using tx buffer
189 self.tx_buffer = "".join(blockLst)
190 print self.tx_buffer
191
192 return self.tx_buffer
181 193
182 194 if __name__ == '__main__':
183 195
General Comments 0
You need to be logged in to leave comments. Login now