Example #1
0
def prompt_and_flash_boards(boards_to_flash, firmware_dir, disable_prompt):
    flashed_boards = []
    try:
        for board in boards_to_flash:
            if disable_prompt or utils.prompt_yes_no("Do you want to flash the %r board" % board):
                flash_board(board, firmware_dir)
                flashed_boards.append(board)
    finally:
        print "Successfully flashed boards: %s" % flashed_boards
Example #2
0
def prompt_and_flash_boards(boards_to_flash, firmware_dir, disable_prompt):
    flashed_boards = []
    try:
        for board in boards_to_flash:
            if disable_prompt or utils.prompt_yes_no(
                    'Do you want to flash the %r board' % board):
                flash_board(board, firmware_dir)
                flashed_boards.append(board)
    finally:
        print 'Successfully flashed boards: %s' % flashed_boards
Example #3
0
    tom = shell.Shell(bridge_path)
    sleep(1)
    sb = shell.Scoreboard(tom, 'gxpr_bridge')
    sleep(1)
    print sb.query('version_hash_gxpr')
    tom.sendline('test set_system_info %s' % sn)
    sleep(3)
    print sb.query('gxpr_serial_number')
    print sb.query('gxpr_fpga_sw_version')
    sleep(1)

    aeromap = aero.measure()

    print "   GXPR Status: " + aeromap['overall']
    print "   GXPR ERP: " + aeromap['power_boterp_value']
    print "   GXPR MTL: " + aeromap['power_botmtl_value']
    print "   GXPR Decoder: " + aeromap['decoder']
    print "   GXPR Power: " + aeromap['power']
    print "   GXPR Timing: " + aeromap['timing']
    print "   GXPR Delay: " + aeromap['delay']
    print "   GXPR Reply: " + aeromap['reply']
    print "   GXPR Jitter: " + aeromap['jitter']
    print "   GXPR ratio: " + aeromap['ratio']
    print "   GXPR Sls: " + aeromap['sls']

    sore.all_output('off')
    if not tools.prompt_yes_no('Continue to next %s?' % NAME):
        break

raw_input('\n\nPress Enter to close.')
Example #4
0
    sleep(1)
    sb = shell.Scoreboard(tom,'gxpr_bridge')
    sleep(1)
    print sb.query('version_hash_gxpr')
    tom.sendline('test set_system_info %s' % sn) 
    sleep(3)
    print sb.query('gxpr_serial_number')
    print sb.query('gxpr_fpga_sw_version')
    sleep(1)

    aeromap = aero.measure()

    print "   GXPR Status: " + aeromap['overall']
    print "   GXPR ERP: " + aeromap['power_boterp_value']
    print "   GXPR MTL: " + aeromap['power_botmtl_value']
    print "   GXPR Decoder: " + aeromap['decoder']
    print "   GXPR Power: " + aeromap['power']
    print "   GXPR Timing: " + aeromap['timing']
    print "   GXPR Delay: " + aeromap['delay']
    print "   GXPR Reply: " + aeromap['reply']
    print "   GXPR Jitter: " + aeromap['jitter']
    print "   GXPR ratio: " + aeromap['ratio']
    print "   GXPR Sls: " + aeromap['sls']
           
    sore.all_output('off')
    if not tools.prompt_yes_no('Continue to next %s?' % NAME):
        break;

raw_input('\n\nPress Enter to close.')