The utility model discloses a device and detection equipment for cable on-off detection and counting, design electronic technical field, the first input of first comparison unit connects resistance R5's first end, the second input of first comparison unit connects the first
USB port among double -
deck USB, the first end of resistance R12 is connected among the second
USB port in double -
deck USB, the second end of resistance R5 and the second end of resistance R12 ground, the first USB port and second USB port connect corresponding detection end, the output of first comparison unit connects the control end of first switch, the input of first switch connects the output of counting unit and the first power supply pin of double -
deck USB, and the input of counting unit and the second power supply pin of double -deck USB connect power supply output end. In this way, the number of the cable that is turned on in the multiple cables of this test is counted conveniently, and the problem of human counting mistake is reduced.