$opcode = sprintf("%02x",$Cmd{$cmd}{fixed_pattern});