def start_controller_driver(self, p_pyhouse_obj, p_controller_obj): self.m_pyhouse_obj = p_pyhouse_obj l_msg = "Controller:{}, ".format(p_controller_obj.Name) l_msg += "DeviceFamily:{}, ".format(p_controller_obj.DeviceFamily) l_msg += "InterfaceType:{}".format(p_controller_obj.InterfaceType) LOG.info('Start Controller - {}'.format(l_msg)) l_driver = FamUtil.get_device_driver_API(p_pyhouse_obj, p_controller_obj) p_controller_obj._DriverAPI = l_driver l_ret = l_driver.Start(p_pyhouse_obj, p_controller_obj) return l_ret
def start_controller_driver(self, p_pyhouse_obj, p_controller_obj): self.m_pyhouse_obj = p_pyhouse_obj l_msg = "Controller:{}, ".format(p_controller_obj.Name) l_msg += "DeviceFamily:{}, ".format(p_controller_obj.DeviceFamily) l_msg += "InterfaceType:{}".format(p_controller_obj.InterfaceType) LOG.info('Start Controller - {}'.format(l_msg)) l_driver = FamUtil.get_device_driver_API(p_pyhouse_obj, p_controller_obj) p_controller_obj._DriverAPI = l_driver l_ret = l_driver.Start(p_pyhouse_obj, p_controller_obj) return l_ret
def start_controller(self, p_pyhouse_obj, p_controller_obj): """We must now find a driver for the type of PIM we have and initialize that driver """ p_controller_obj._Queue = Queue.Queue(300) LOG.info("start:{} - InterfaceType:{}".format(p_controller_obj.Name, p_controller_obj.InterfaceType)) self.m_pim = UpbPimAPI._initilaize_pim(p_controller_obj) l_driver = FamUtil.get_device_driver_API(p_pyhouse_obj, p_controller_obj) p_controller_obj._DriverAPI = l_driver self.m_pim._DriverAPI = l_driver try: l_driver.Start(p_pyhouse_obj, p_controller_obj) self.set_register_value(p_controller_obj, 0x70, [0x03]) except Exception as e_err: LOG.error('Driver failed to load properly - {}'.format(e_err)) return False return True
def start_controller(self, p_pyhouse_obj, p_controller_obj): """We must now find a driver for the type of PIM we have and initialize that driver """ p_controller_obj._Queue = Queue.Queue(300) LOG.info("start:{} - InterfaceType:{}".format( p_controller_obj.Name, p_controller_obj.InterfaceType)) self.m_pim = UpbPimAPI._initilaize_pim(p_controller_obj) l_driver = FamUtil.get_device_driver_API(p_pyhouse_obj, p_controller_obj) p_controller_obj._DriverAPI = l_driver self.m_pim._DriverAPI = l_driver try: l_driver.Start(p_pyhouse_obj, p_controller_obj) self.set_register_value(p_controller_obj, 0x70, [0x03]) except Exception as e_err: LOG.error('Driver failed to load properly - {}'.format(e_err)) return False return True