Ejemplo n.º 1
0
 def __init__(self, argv):
     if DATA.isn.startswith('26'):
         self.gang = 1
     elif DATA.isn.startswith('21'):
         self.gang = 2
     else:
         self.gang = 'NUKNOW'
     DATA.op('GANG_NUMBER,0,%d,N/A,N/A' % self.gang)
     self.comid = argv['COM']['1']
     self.dut = RS232({"COM": self.comid})
     if self.gang > 1:
         self.comid2 = argv['COM']['2']
         self.dut2 = RS232({"COM": self.comid2})
     if self.gang > 2:
         self.comid3 = argv['COM']['3']
         self.dut3 = RS232({"COM": self.comid3})
Ejemplo n.º 2
0
 def __init__(self,argv):
     logV(argv)
     self.isn = ''
     com = argv['COM'][str(DATA.id)]
     logV(com)
     self.dut = RS232({'COM':com})
     self.dut._connect()
Ejemplo n.º 3
0
 def open_com_port(self, argv):
     try:
         gang = argv['gang']
     except:
         gang = '1,2,3,4'
     if not self.gang in gang:
         #DATA.op(argv['name'] + ',0,SKIP,N/A,N/A')
         return
     name = argv['com_name']
     self.rs232[name] = RS232(argv)
     self.rs232[name]._connect()
Ejemplo n.º 4
0
 def __init__(self, argv):
     try:
         com = argv['com']
     except:
         com = 'COM23'
     try:
         self.dut = RS232(argv)
         self.dut._connect()
     except Exception as e:
         d = dialog({})
         d.info({Exception: e})
Ejemplo n.º 5
0
 def __init__(self, argv):
     self.io = RS232(argv)
Ejemplo n.º 6
0
 def __init__(self, argv):
     self.DUTCOM = argv['COM'][str(DATA.id)]
     self.DUT = RS232({'COM': self.DUTCOM})
     self.DUT._connect()
Ejemplo n.º 7
0
 def __init__(self, argv):
     self.io = RS232(argv)
     self.io._connect()
Ejemplo n.º 8
0
 def open_com_port(self, argv):
     name = argv['com_name']
     self.rs232[name] = RS232(argv)
     self.rs232[name]._connect()
Ejemplo n.º 9
0
 def __init__(self, argv):
     self.io = RS232({'COM': argv['COM'][str(DATA.id)]})
     self.hub_port = argv['hub_port'][str(DATA.id)]
Ejemplo n.º 10
0
 def __init__(self, argv):
     self.dut = RS232(argv)