示例#1
0
 def writepage(self, data):
     """
     Write the SES page specified by integer pagenum with string, data.
     """
     cmd = Cmd("sd", {"self-test_code":0, "pf":1, "parameter_list_length":len(data)})
     cdb = CDB(cmd.cdb)
     cdb.set_data_out(data)
     result = self.pt.sendcdb(cdb)
     return result
示例#2
0
    def execute(self, command):
        """
        Send a CLI command through SES page 0xe8.
        """
        cmd = Cmd.clicommandout(self.expanderid, command)
        cdb = CDB(cmd.cdb)
        cdb.set_data_out(cmd.dat)
        self.pt.sendcdb(cdb)

        page = self.ses.parse(self.ses.readpage(0xe8))
        return page["data"].response.val
示例#3
0
    def execute(self, command):
        """
        Send a CLI command through SES page 0xe8.
        """
        cmd = Cmd.clicommandout(self.expanderid, command)
        cdb = CDB(cmd.cdb)
        cdb.set_data_out(cmd.dat)
        self.pt.sendcdb(cdb)

        page = self.ses.parse(self.ses.readpage(0xe8))
        return page["data"].response.val
示例#4
0
 def writepage(self, data):
     """
     Write the SES page specified by integer pagenum with string, data.
     """
     cmd = Cmd("sd", {
         "self-test_code": 0,
         "pf": 1,
         "parameter_list_length": len(data)
     })
     cdb = CDB(cmd.cdb)
     cdb.set_data_out(data)
     result = self.pt.sendcdb(cdb)
     return result