#get_log_cm().info( "\n") total_count+=1 get_log_cm().debug( "Total Test Cycles = %d", total_count) #Ethernet Test:########################################################### ###Find HCR-4 IP Address#### if hostname != -1: ret = can_addr_ping(hostname) if ret == True: ethernet_count+=1 get_log_cm().info( "Ethernet Count = \t\t%d of %d", ethernet_count, total_count) #Ethernet Test end:####################################################### #UART:#################################################################### ret = uart_self_test() if ret == False: uart_count += 1 get_log_cm().info( "UART Count = \t\t\t%d of %d", uart_count, total_count) #UART end:################################################################ #USB:#################################################################### dev = usb.core.find(find_all=True) time.sleep(1) if prev_dev == "Not Init": for cfg in dev: if cfg.idVendor == 0x0525: prev_dev = cfg usb_count += 1 elif prev_dev != "Not Init":
total_count += 1 get_log_cm().debug("Total Test Cycles = %d", total_count) #Ethernet Test:########################################################### ###Find HCR-4 IP Address#### if hostname != -1: ret = can_addr_ping(hostname) if ret == True: ethernet_count += 1 get_log_cm().info("Ethernet Count = \t\t%d of %d", ethernet_count, total_count) #Ethernet Test end:####################################################### #UART:#################################################################### ret = uart_self_test() if ret == False: uart_count += 1 get_log_cm().info("UART Count = \t\t\t%d of %d", uart_count, total_count) #UART end:################################################################ #USB:#################################################################### dev = usb.core.find(find_all=True) time.sleep(1) if prev_dev == "Not Init": for cfg in dev: if cfg.idVendor == 0x0525: prev_dev = cfg usb_count += 1