예제 #1
0
 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)
예제 #2
0
 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)
예제 #3
0
 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)
예제 #4
0
 def onSta0BtnClicked(self):
     m_id = self.GetMonitorID()
     alist = espmonitor.GenFrame([], m_id, 0x00)
     #espmonitor.DispListHex(alist)
     text = self.List2StrHex(alist)
     self.sendedit.setText(text)
예제 #5
0
 def OnVoltageQueryBtnDown(self):
     m_id = self.GetMonitorID()
     alist = espmonitor.GenFrame([], m_id, 0x30)
     text = self.List2StrHex(alist)
     self.sendedit.setText(text)
예제 #6
0
    def OnBcQueryBtnDown(self):
        m_id = 0x0
        alist = espmonitor.GenFrame([], m_id, 0x00)

        text = self.List2StrHex(alist)
        self.sendedit.setText(text)