def METHOD_NAME(self):
    if self.txbuffer[0] == 0xee:
        self.log("sent wake cmd")
        self.consume_bytes(16)
    elif self.txbuffer[0] == 0xe2:
        self.log("sent get device info cmd")
        self.consume_bytes(16)
        self.state = Z2Tracer.read_device_info_reply
    elif self.txbuffer[0] == 0xeb:
        length = (self.rxbuffer[1] | (self.rxbuffer[2] << 8)) + 5
        length = (length + 3) & (-4)
        self.consume_bytes(16)
        self.want_bytes = length
        self.state = Z2Tracer.read_interrupt_data
    elif self.txbuffer[0] == 0xe3:
        self.log(f"got report info for {self.txbuffer[1]}, len is {self.rxbuffer[3]}")
        self.consume_bytes(16)
    elif self.txbuffer[0] == 0xe7:
        self.want_bytes = self.txbuffer[3] + 5
        self.consume_bytes(16)
        self.state = Z2Tracer.reading_report_long
    elif self.txbuffer[0] == 0xe6:
        self.consume_bytes(16)
        self.state = Z2Tracer.read_report_reply
    else:
        self.error()