public static byte[] rstr(String hex) {
	        int length = hex.length();
	        byte[] bHex = new byte[length/2];
	        String temp = null;
	        int t = 0;
	        for (int i=0; i<length; i++) {
	            temp = "" + hex.charAt(i) + hex.charAt(++i);
	            bHex[t++] = (byte)Integer.parseInt(temp, 16);
	        }
	        return bHex;
	    }