protected function hex2data($temp)
   {
      $data = array();
      $len = strlen($temp);
      for ($i=0;$i<$len;$i+=2)
         $data[(int)($i/2)]= hexdec(substr($temp,$i,2));
      return $data;
   }