def OnBWQuery1BtnDown(self): bcm_id = self.GetBcmID() m_id = self.GetMonitorID() dlist = [] dlist.append(bcm_id) alist = espmonitor.GenFrame(dlist, m_id, 0x11) text = self.List2StrHex(alist) self.sendedit.setText(text)
def OnBWQuery0BtnDown(self): m_id = self.GetMonitorID() dlist = [] itf_id = self.GetItfID() dlist.append(itf_id) alist = espmonitor.GenFrame(dlist, m_id, 0x10) text = self.List2StrHex(alist) self.sendedit.setText(text)
def OnSetDevListBtn(self): m_id = self.GetMonitorID() itf_id = self.GetItfID() dlist = [0x01] #接口模块个数 dlist.append(itf_id) #接口模块ID print(dlist) alist = espmonitor.GenFrame(dlist, m_id, 0x20) text = self.List2StrHex(alist) self.sendedit.setText(text)
def onSta0BtnClicked(self): m_id = self.GetMonitorID() alist = espmonitor.GenFrame([], m_id, 0x00) #espmonitor.DispListHex(alist) text = self.List2StrHex(alist) self.sendedit.setText(text)
def OnVoltageQueryBtnDown(self): m_id = self.GetMonitorID() alist = espmonitor.GenFrame([], m_id, 0x30) text = self.List2StrHex(alist) self.sendedit.setText(text)
def OnBcQueryBtnDown(self): m_id = 0x0 alist = espmonitor.GenFrame([], m_id, 0x00) text = self.List2StrHex(alist) self.sendedit.setText(text)