Canon 60D

Started by Audionut, March 16, 2015, 04:49:49 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

dfort

It worked perfectly. Thanks!


dfort

Got it:


Here's a behind the scenes look:


Test build on my downloads page. [EDIT] This is an early test build without a .FIR file so if you want to try it out make sure ML is running on your 60D.111 before doing the Canon firmware update to 1.1.2. ML-SETUP.FIR updated so you can install ML using the test build.

jai554

Quote from: dfort on April 14, 2018, 09:30:01 AM
Got it:


Here's a behind the scenes look:


Test build on my downloads page. This is an early test build without a .FIR file so if you want to try it out make sure ML is running on your 60D.111 before doing the Canon firmware update to 1.1.2.

tested and running just fine on my 60d 1.1.2
i tested on 2 different memory card. 1 with ML preinstalled 1 without ML.
one without ML i made it work using EOScard

dfort

Quote from: jai554 on April 14, 2018, 05:28:42 PM
...i made it work using EOScard

a1ex made a ML-SETUP.FIR for 1.1.2 so with the latest test build you should be able to install ML -- which basically sets the bootflag on both the camera and card.

jai554

Quote from: dfort on April 14, 2018, 06:09:38 PM
a1ex made a ML-SETUP.FIR for 1.1.2 so with the latest test build you should be able to install ML -- which basically sets the bootflag on both the camera and card.

removed ML from my camera, formatted the card
reinstalled using the latest build
all working perfectly!
thanks!


jai554

@dfort
Been using the latest FIR 1.1.2 build quite a bit
Passes all STUBTEST but in LUATEST the camera turn off by itself when "Setting ISO to random values..."

dfort

Let's try the newer tests that are in the lua_fix branch. Uploaded a test build to my downloads page.

jai554

@dfort

===============================================================================
ML/SCRIPTS/api_test.lua - 2018-4-19 13:20:38
===============================================================================

Strict mode tests...
Strict mode tests passed.

Generic tests...
arg = table:
  [0] = "api_test.lua"
camera = table:
  shutter = table:
    raw = 99
    apex = 5.375
    ms = 24
    value = 0.024097
  aperture = table:
    raw = 22
    apex = 1.75
    value = 1.8
    min = table:
      raw = 22
      apex = 1.75
      value = 1.8
    max = table:
      raw = 80
      apex = 9.
      value = 22.6
  iso = table:
    raw = 80
    apex = 6.
    value = 200
  ec = table:
    raw = 0
    value = 0
  flash = true
  flash_ec = table:
    raw = 0
    value = 0
  kelvin = 5200
  mode = 3
  metering_mode = 1
  drive_mode = 0
  model = "Canon EOS 60D"
  model_short = "60D"
  firmware = "1.1.2"
  temperature = 163
  gui = table:
    menu = false
    play = false
    play_photo = false
    play_movie = false
    qr = false
    idle = true
  bulb = function: p
  wait = function: p
  burst = function: p
  reboot = function: p
  shoot = function: p
event = table:
  pre_shoot = nil
  post_shoot = nil
  shoot_task = nil
  seconds_clock = nil
  keypress = nil
  custom_picture_taking = nil
  intervalometer = nil
  config_save = nil
console = table:
  write = function: p
  clear = function: p
  hide = function: p
  show = function: p
lv = table:
  enabled = false
  paused = false
  running = false
  zoom = 1
  overlays = false
  stop = function: p
  pause = function: p
  resume = function: p
  wait = function: p
  info = function: p
  start = function: p
lens = table:
  name = "EF50mm f/1.8 II"
  focal_length = 50
  focus_distance = 0
  hyperfocal = 73199
  dof_near = -109905601
  dof_far = 1000000
  af = true
  af_mode = 0
  autofocus = function: p
  focus = function: p
display = table:
  idle = nil
  height = 480
  width = 720
  notify_box = function: p
  print = function: p
  load = function: p
  draw = function: p
  off = function: p
  rect = function: p
  on = function: p
  clear = function: p
  pixel = function: p
  circle = function: p
  screenshot = function: p
  line = function: p
key = table:
  last = 10
  wait = function: p
  press = function: p
menu = table:
  visible = false
  open = function: p
  get = function: p
  close = function: p
  select = function: p
  block = function: p
  set = function: p
  new = function: p
movie = table:
  recording = false
  stop = function: p
  start = function: p
dryos = table:
  clock = 42
  ms_clock = 42554
  image_prefix = "IMG_"
  dcim_dir = table:
    exists = true
    create = function: p
    children = function: p
    files = function: p
    parent = table:
      exists = true
      create = function: p
      children = function: p
      files = function: p
      parent = table:
        exists = true
        create = function: p
        children = function: p
        files = function: p
        parent = nil
        path = "B:/"
      path = "B:/DCIM/"
    path = "B:/DCIM/100CANON/"
  config_dir = table:
    exists = true
    create = function: p
    children = function: p
    files = function: p
    parent = table:
      exists = true
      create = function: p
      children = function: p
      files = function: p
      parent = table:
        exists = true
        create = function: p
        children = function: p
        files = function: p
        parent = nil
        path = "B:/"
      path = "ML/"
    path = "ML/SETTINGS/"
  ml_card = table:
    cluster_size = 32768
    drive_letter = "B"
    file_number = 2208
    folder_number = 100
    free_space = 31119808
    type = "SD"
    path = "B:/"
    _card_ptr = userdata
  shooting_card = table:
    cluster_size = 32768
    drive_letter = "B"
    file_number = 2208
    folder_number = 100
    free_space = 31119808
    type = "SD"
    path = "B:/"
    _card_ptr = userdata
  date = table:
    sec = 39
    min = 20
    hour = 13
    wday = 6
    isdst = false
    day = 19
    yday = 1
    year = 2018
    month = 4
  call = function: p
  rename = function: p
  directory = function: p
  remove = function: p
interval = table:
  time = 10
  count = 0
  running = false
  stop = function: p
battery = table:
  level = 35
  id = 1
  performance = 2
  time = nil
  drain_rate = 33
task = table:
  create = function: p
  yield = function: p
property = table:
Generic tests completed.

Module tests...
Testing file I/O...
Copy test: autoexec.bin -> tmp.bin
Copy test OK
Append test: tmp.txt
Append test OK
Rename test: apple.txt -> banana.txt
Rename test OK
Rename test: apple.txt -> ML/banana.txt
Rename test OK
File I/O tests completed.

Testing Canon GUI functions...
Enter MENU mode...
Enter PLAY mode...
Enter MENU mode...
Exit MENU mode...
Enter PLAY mode...
Enter PLAY mode...
Enter MENU mode...
Enter MENU mode...
Exit MENU mode...
Start LiveView...
Enter PLAY mode...
Enter PLAY mode...
Exit PLAY mode...
Pause LiveView...
Enter MENU mode...
Enter MENU mode...
Exit MENU mode...
Pause LiveView...
Resume LiveView...
Pause LiveView...
Enter PLAY mode...
Exit PLAY mode...
Enter PLAY mode...
Exit PLAY mode...
Stop LiveView...
Enter MENU mode...
Exit MENU mode...
Enter MENU mode...
Enter PLAY mode...
Exit PLAY mode...
Start LiveView...
Enter PLAY mode...
Exit PLAY mode...
Pause LiveView...
Enter PLAY mode...
Enter MENU mode...
Enter MENU mode...
Exit MENU mode...
Enter MENU mode...
Exit MENU mode...
Pause LiveView...
Resume LiveView...
Enter MENU mode...
Enter PLAY mode...
Exit PLAY mode...
Enter PLAY mode...
Enter MENU mode...
Exit MENU mode...
Pause LiveView...
Resume LiveView...
Pause LiveView...
Enter PLAY mode...
Enter MENU mode...
Enter MENU mode...
Enter PLAY mode...
Enter PLAY mode...
Enter PLAY mode...
Exit PLAY mode...
Enter MENU mode...
Enter PLAY mode...
Enter PLAY mode...
Exit PLAY mode...
Stop LiveView...
Start LiveView...
Enter PLAY mode...
Enter PLAY mode...
Enter MENU mode...
Exit MENU mode...
Enter MENU mode...
Enter MENU mode...
Enter MENU mode...
Enter PLAY mode...
Enter PLAY mode...
Exit PLAY mode...
Stop LiveView...
Start LiveView...
Enter MENU mode...
Enter PLAY mode...
Enter MENU mode...
Canon GUI tests completed.

Testing ML menu API...
Menu tests completed.

Testing picture taking functions...
Snap simulation test...
Single picture...
B:/DCIM/100CANON/IMG_2209.CR2 not found.
B:/DCIM/100CANON/IMG_2209.JPG: 5662879
Two burst pictures...
Ideally, the camera should be in some continuous shooting mode (not checked).
B:/DCIM/100CANON/ABC_2210.CR2 not found.
B:/DCIM/100CANON/ABC_2210.JPG: 5729078
B:/DCIM/100CANON/ABC_2211.CR2 not found.
B:/DCIM/100CANON/ABC_2211.JPG: 5664187
Bracketed pictures...
B:/DCIM/100CANON/IMG_2212.CR2 not found.
B:/DCIM/100CANON/IMG_2212.JPG: 5934052
B:/DCIM/100CANON/IMG_2213.CR2 not found.
B:/DCIM/100CANON/IMG_2213.JPG: 5712465
B:/DCIM/100CANON/IMG_2214.CR2 not found.
B:/DCIM/100CANON/IMG_2214.JPG: 754961
Bulb picture...
Elapsed time: 13157
B:/DCIM/100CANON/IMG_2215.CR2 not found.
B:/DCIM/100CANON/IMG_2215.JPG: 363953
Picture taking tests completed.

Testing multitasking...
Only one task allowed to interrupt...
Main task yielding.
Task C started.
Task C finished.
Main task back.
Main task yielding.
Task C started.
Task C finished.
Main task back.
Main task yielding.
Task C started.
Task C finished.
Main task back.
Main task yielding.
Task C started.
Task C finished.
Main task back.
Main task yielding.
Task C started.
Task C finished.
Main task back.
Main task yielding.
Task C started.
Task C finished.
Main task back.
Main task yielding.
Task C started.
Task C finished.
Main task back.
Main task yielding.
Task C started.
Task C finished.
Main task back.
Main task yielding.
Task C started.
Task C finished.
Main task back.
Main task yielding.
Task C started.
Task C finished.
Main task back.
Multitasking tests completed.

Testing half-shutter...
Half-shutter test OK.

Testing module 'lv'...
LiveView is running; stopping...
Starting LiveView...
Overlays: Canon
Overlays: Canon
Overlays: ML
Overlays: ML
Overlays: disabled
Overlays: Canon
Overlays: Canon
Overlays: Canon
Overlays: disabled
Overlays: ML
Overlays: disabled
Overlays: Canon
Overlays: Canon
Overlays: Canon
Overlays: Canon
Setting zoom to x1...
Setting zoom to x5...
Setting zoom to x10...
Setting zoom to x5...
Setting zoom to x1...
Setting zoom to x10...
Setting zoom to x1...
Pausing LiveView...
Resuming LiveView...
Stopping LiveView...
LiveView tests completed.


Testing lens focus functionality...
Autofocus outside LiveView...
Focus distance: 0
Autofocus in LiveView...


The test stops after finishing the autofocus test

Edit:
The test completes if i remove the lens but the screen is blank when it asks to switch to Av mode then Movie mode (im just guessing what to do hehe)

dfort

We had similar issues running the test on the 650D. So you got to the end of the test?

jai554

Quote from: dfort on April 19, 2018, 07:47:23 AM
We had similar issues running the test on the 650D. So you got to the end of the test?

I can get to the end only if i remove the lens.
I tried with 2 different lens.

dfort

Something doesn't look quite right here:

lens = table:
  name = "EF50mm f/1.8 II"
  focal_length = 50
  focus_distance = 0
  hyperfocal = 73199
  dof_near = -109905601
  dof_far = 1000000
  af = true
  af_mode = 0


Note the difference with a successful run on the 700D:

lens = table:
  name = "EF28-105mm f/3.5-4.5 USM"
  focal_length = 30
  focus_distance = 1410
  hyperfocal = 8518
  dof_near = 1224
  dof_far = 1666
  af = true
  af_mode = 0


Now the question is if the same issue is present in the 1.1.1 firmware. Could you try a regression test?

Walter Schulz

Does EF 50/1.8 II report focus distance to cam?
EDIT: Checked, it does not.

jai554

I also tried with tamron 17-50 vc. Same result
I will retest using the kit lens

Edit:
@dfort i forgot that my kitlens AF is broken
cant complete the test

jai554

Can anyone help test the latest build?
I can't test it :(

dfort

There's also issues completing the lens tests on the 650D. I'll post scripts to help us see what's going on with that. Just give me some time to get to it.

dfort

Ok--let's try to isolate that problem area. Let's start by running only the test that is failing. On your card under ML/scripts you'll see something like this:



Open up the api_test.lua file with a text editor and scroll down to the end, you'll see this:

function api_tests()
    menu.close()
    console.clear()
    console.show()
    test_log = logger("LUATEST.LOG")

    -- note: each test routine must print a blank line at the end
    strict_tests()
    generic_tests()
   
    printf("Module tests...\n")
    test_io()
    test_camera_gui()
    test_menu()
    test_camera_take_pics()
    sleep(1)
    test_multitasking()
    test_keys()
    test_lv()
    test_lens_focus()
    test_camera_exposure()
    test_movie()
   
    printf("Done!\n")
   
    test_log:close()
    key.wait()
    console.hide()
end


Comment out all the tests that you don't want to run. In our case we only want the test_lens_focus() so put a "--" in front of all the other tests:

function api_tests()
    menu.close()
    console.clear()
    console.show()
    test_log = logger("LUATEST.LOG")

    -- note: each test routine must print a blank line at the end
    -- strict_tests()
    -- generic_tests()
   
    printf("Module tests...\n")
    -- test_io()
    -- test_camera_gui()
    -- test_menu()
    -- test_camera_take_pics()
    -- sleep(1)
    -- test_multitasking()
    -- test_keys()
    -- test_lv()
    test_lens_focus()
    -- test_camera_exposure()
    -- test_movie()
   
    printf("Done!\n")
   
    test_log:close()
    key.wait()
    console.hide()
end


Make sure you do a shutter half-press when the test asks for it.

Here's how a couple of lenses did on the 700D. First one is the 28-105mm and the second is the 50mm 1.8 STM lens.


===============================================================================
ML/SCRIPTS/API_TEST.LUA - 2018-4-22 14:35:43
===============================================================================

Module tests...

Testing lens focus functionality...
Autofocus outside LiveView...
Focus distance: 1860
Autofocus in LiveView...
Please trigger autofocus (half-shutter / AF-ON / * ).
19...18...17...16...15...Autofocus triggered.
Autofocus completed.
Focus distance: 2590
Focusing backward...
Focus distance: 1860
Focus motor position: 0
Focusing forward with step size 3, wait=true...
...
Focus distance: 470
Focus motor position: 0
Focusing backward with step size 3, wait=true...
........
Focus distance: 655350
Focus motor position: 0
Focus range: 3 steps forward, 8 steps backward.
Motor steps: 0 forward, 0 backward, 0 lost.
Focusing forward with step size 3, wait=false...
.....................................
Focus distance: 470
Focus motor position: 0
Focusing backward with step size 3, wait=false...
..................................
Focus distance: 655350
Focus motor position: 0
Focus range: 37 steps forward, 34 steps backward.
Motor steps: 0 forward, 0 backward, 0 lost.
Focusing forward with step size 2, wait=true...
.....................................................
Focus distance: 470
Focus motor position: 0
Focusing backward with step size 2, wait=true...
...................................................
Focus distance: 655350
Focus motor position: 0
Focus range: 53 steps forward, 51 steps backward.
Motor steps: 0 forward, 0 backward, 0 lost.
Focusing forward with step size 2, wait=false...
...
Focus distance: 470
Focus motor position: 0
Focusing backward with step size 2, wait=false...
...
Focus distance: 655350
Focus motor position: 0
Focus range: 126 steps forward, 124 steps backward.
Motor steps: 0 forward, 0 backward, 0 lost.
Focusing forward with step size 1, wait=true...
...
Focus distance: 470
Focus motor position: 0
Focusing backward with step size 1, wait=true...
...
Focus distance: 655350
Focus motor position: 0
Focus range: 212 steps forward, 212 steps backward.
Motor steps: 0 forward, 0 backward, 0 lost.
Focusing forward with step size 1, wait=false...
...
Focus distance: 470
Focus motor position: 0
Focusing backward with step size 1, wait=false...
...
Focus distance: 655350
Focus motor position: 0
Focus range: 303 steps forward, 310 steps backward.
Motor steps: 0 forward, 0 backward, 0 lost.

Focus test completed.

Done!

===============================================================================
ML/SCRIPTS/API_TEST.LUA - 2018-4-22 14:38:10
===============================================================================

Module tests...

Testing lens focus functionality...
Autofocus outside LiveView...
Focus distance: 3500
Autofocus in LiveView...
Please trigger autofocus (half-shutter / AF-ON / * ).
19...18...17...Autofocus triggered.
Autofocus completed.
Focus distance: 3500
Focusing backward...
Focus distance: 655350
Focus motor position: 0
Focusing forward with step size 3, wait=true...
.........................
Focus distance: 340
Focus motor position: 0
Focusing backward with step size 3, wait=true...
.........................
Focus distance: 655350
Focus motor position: 0
Focus range: 25 steps forward, 25 steps backward.
Motor steps: 0 forward, 0 backward, 0 lost.
Focusing forward with step size 3, wait=false...
...
Focus distance: 1100
Focus motor position: 0
Focusing backward with step size 3, wait=false...
...
Focus distance: 1100
Focus motor position: 0
Focus range: 162 steps forward, 163 steps backward.
Motor steps: 0 forward, 0 backward, 0 lost.
Focusing forward with step size 2, wait=true...
...
Focus distance: 1100
Focus motor position: 0
Focusing backward with step size 2, wait=true...
...
Focus distance: 1100
Focus motor position: 0
Focus range: 164 steps forward, 164 steps backward.
Motor steps: 0 forward, 0 backward, 0 lost.
Focusing forward with step size 2, wait=false...
...
Focus distance: 1100
Focus motor position: 0
Focusing backward with step size 2, wait=false...
...
Focus distance: 1100
Focus motor position: 0
Focus range: 419 steps forward, 421 steps backward.
Motor steps: 0 forward, 0 backward, 0 lost.
Focusing forward with step size 1, wait=true...
...
Focus distance: 1100
Focus motor position: 0
Focusing backward with step size 1, wait=true...
...
Focus distance: 1100
Focus motor position: 0
Focus range: 1055 steps forward, 1055 steps backward.
Motor steps: 0 forward, 0 backward, 0 lost.
Focusing forward with step size 1, wait=false...
...
Focus distance: 1100
Focus motor position: 0
Focusing backward with step size 1, wait=false...
...
Focus distance: 1100
Focus motor position: 0
Focus range: 1057 steps forward, 1058 steps backward.
Motor steps: 0 forward, 0 backward, 0 lost.

Focus test completed.

Done!

jai554

I get error everytime im trying to test "test_lens_focus()" function


ML/SCRIPTS/API_TEST.LUA:1175: assertion failed!
stack traceback:
[C]: in function 'assert'
ML/SCRIPTS/API_TEST.LUA:1175: in function 'test_lens_focus'
ML/SCRIPTS/API_TEST.LUA:1349: in function 'api_tests'
ML/SCRIPTS/API_TEST.LUA:1364: in main chunk
[API_TEST.LUA] script finished.

Walter Schulz

Get yourself a lens reporting focus distance.

Focus dist, DOF Near and Far must contain valid entries.

jai554

i am using tamron 17-50 2.8 vc



Walter Schulz

Set cam to factory defaults. Don't forget Custom Functions (C.Fn) settings!
Remove battery after each test run.
Try different focus modes.
Report back.

dfort

All lenses should be able to complete the focus test or at least not crash the test. It looks like lua couldn't put the camera into LiveView. Try running the test in photo mode with and without LiveView. Also do a regression test--are you getting the same results with 1.1.1 as you are with 1.1.2?

[EDIT] Maybe worth mentioning we're using lua_fix experimental builds when running these tests. The lua tests in the nightly builds use a different API (application program interface).

jai554

Quote from: dfort on April 23, 2018, 04:37:07 PM
All lenses should be able to complete the focus test or at least not crash the test. It looks like lua couldn't put the camera into LiveView. Try running the test in photo mode with and without LiveView. Also do a regression test--are you getting the same results with 1.1.1 as you are with 1.1.2?

[EDIT] Maybe worth mentioning we're using lua_fix experimental builds when running these tests. The lua tests in the nightly builds use a different API (application program interface).

Already tested both in liveview and outside liveview still getting the same error
only running the test_lens_focus() function

dfort

@jai554 - Could you please post the "lens = table:" block from the log file using the Tamron lens you used to make this screenshot?



Are you using photo mode? Are you starting the test in LiveView or outside of LiveView? Have you tried running test_lv() by itself? The reason I'm asking these questions is because just before the assert error you're getting is this:

    -- note: some lenses may be able to AF only in LiveView
    -- so let's check each mode regardless of the other


The tests should be able to switch to the various modes but I have found that it is best to have the camera in photo mode with LiveView off and in manual mode before running the tests. The error might be a problem getting into and out of LiveView because the lens information seems to be fine on your screenshot.

dfort

Looks like we're stuck on the lua_fix branch lua API tests. The 60D can't get past the lens tests but I'm not sure if we're getting the same results with 1.1.1 and 1.1.2. Check out some of the testing that has been going on with the 650D and note how a possible stub issue was tracked down. We should be able to do something similar here to track down the issue with the focus test.

Start reading from here:

https://www.magiclantern.fm/forum/index.php?topic=7473.msg200606#msg200606