def serialCmdPwdAuth(self, password_str):
result = False<EOL>try:<EOL><INDENT>req_start = "<STR_LIT>" + binascii.hexlify(password_str) + "<STR_LIT>"<EOL>req_crc = self.calc_crc16(req_start[<NUM_LIT:2>:].decode("<STR_LIT>"))<EOL>req_str = req_start + req_crc<EOL>self.m_serial_port.write(req_str.decode("<STR_LIT>"))<EOL>if self.m_serial_port.getResponse(self.getContext()).encode("<STR_LIT>") == "<STR_LIT>":<EOL><INDENT>ekm_log("<STR_LIT>" + self.getContext() + "<STR_LIT:)>")<EOL>result = True<EOL><DEDENT>else:<EOL><INDENT>ekm_log("<STR_LIT>" + self.getContext() + "<STR_LIT:)>")<EOL><DEDENT><DEDENT>except:<EOL><INDENT>ekm_log("<STR_LIT>" + self.getContext() + "<STR_LIT:)>")<EOL>ekm_log(traceback.format_exc(sys.exc_info()))<EOL><DEDENT>return result<EOL>
Password step of set commands

        This method is normally called within another serial command, so it
        does not issue a termination string.  Any default password is set
        in the caller parameter list, never here.

        Args:
            password_str (str): Required password.

        Returns:
            bool: True on completion and ACK.