public static void reset_branch(String num, String filepath, String downloadpath, Scanner scanner){
		String line="", result = "";
		int item=0;
		System.out.println("Please choose the reset button's status that you want to test: 1=press, 2=release, 0=return:");
		System.out.println("If you choose to test the pressed status, please keep the button pressed before you press 1, until you see the release instruction.");
		line=scanner.nextLine();
		
		while(!(line.equals("0"))){
			while ((!(line.equals("1")))&&(!(line.equals("2")))&&(!(line.equals("0")))){
				System.out.println("Error input! ");
				System.out.println("Please choose the reset button's status that you want to test: 1=press, 2=release, 0=return:");
				line=scanner.nextLine();
			}
			
			if (line.equals("0")){
				break;
			}
			item = Integer.parseInt(line);
			
			switch(item){
			case 1:
				Reset_Press.serialcomm(num);
				Reset_Press.fileprocess(downloadpath, filepath);
				break;
			case 2:
				Reset_Release.serialcomm(num);
				Reset_Release.fileprocess(downloadpath, filepath);
				break;
			}
			
			System.out.println("Please choose the reset button's status that you want to test: 1=press, 2=release, 0=return:");
			line=scanner.nextLine();
		}
	}