my_path = '..\\solenoid_log\\'
	my_name = 'solendoid_test'
	test_count = 10
##############USER DEFINED##################################################################################

##One time setup
	while True:
		test_count 			= 0
########Passing Counters########
		total_count 	= 0
		run = 1
################################		
	

##############INIT #################					
		set_log_info(my_path, my_name, 1)
		ser_Init()
		#card_bay_init()
##############INIT END##############		
		get_log_cm().info('Start %s Test', my_name)
		get_log_cm().info('Test :\n Solenoid')
		card_bay_init()

		while run:
			#Total Test Cycles
			#get_log_cm().info( "\n")
			total_count+=1
			pull_off()
			get_log_cm().debug( "Total Test Cycles = %d", total_count)
			time.sleep(5)
			pull_on()
				if "No EMV Support" not in str(emv_data):
					characters = emv_data.replace(' ', '')
					get_log_cm().debug("Card %d ATR string %s" % (card_id, characters.decode('hex')))
					return 0
				else:
					get_log_cm().error("x is %d UNKNOWN") % (x)
					return 1


if __name__=='__main__':
##############USER DEFINED##################################################################################
##Overwrite Log location
	my_path = '..\\smart_card_log\\'
	my_name = 'smart_card_test'
	test_count = 100
	log = set_log_info(my_path, my_name, 0)
##############USER DEFINED##################################################################################

##One time setup
	while True:
		test_count 			= 0
########Passing Counters########
		total_count 	= 0
		smart_card_count = 0
		MAX_COM_RETRY	= 5

################################

##############INIT #################
		ser_Init()
		run = 1
if __name__ == '__main__':
    ##############USER DEFINED##################################################################################
    ##Overwrite Log location
    my_path = '..\\solenoid_log\\'
    my_name = 'solendoid_test'
    test_count = 10
    ##############USER DEFINED##################################################################################

    ##One time setup
    while True:
        test_count = 0
        ########Passing Counters########
        total_count = 0
        run = 1
        ################################

        ##############INIT #################
        set_log_info(my_path, my_name)
        ser_Init()
        #card_bay_init()
        ##############INIT END##############
        get_log_cm().info('Start %s Test', my_name)
        get_log_cm().info('Test :\n Solenoid')

        while run:
            #Total Test Cycles
            #get_log_cm().info( "\n")
            total_count += 1
            get_log_cm().debug("Total Test Cycles = %d", total_count)
            time.sleep(1)
Beispiel #4
0
                    characters = emv_data.replace(' ', '')
                    get_log_cm().debug("Card %d ATR string %s" %
                                       (card_id, characters.decode('hex')))
                    return 0
                else:
                    get_log_cm().error("x is %d UNKNOWN") % (x)
                    return 1


if __name__ == '__main__':
    ##############USER DEFINED##################################################################################
    ##Overwrite Log location
    my_path = '..\\smart_card_log\\'
    my_name = 'smart_card_test'
    test_count = 100
    log = set_log_info(my_path, my_name, 0)
    ##############USER DEFINED##################################################################################

    ##One time setup
    while True:
        test_count = 0
        ########Passing Counters########
        total_count = 0
        smart_card_count = 0
        MAX_COM_RETRY = 5

        ################################

        ##############INIT #################
        ser_Init()
        run = 1