Assign lens focal length and name for non cpu lenses

Started by Lars Steenhoff, October 29, 2016, 12:04:45 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Lars Steenhoff

@dfort yes your exactly right about the crop mode, the correction should not be applied.
Therefore it would be good to know if a shot was filmed in crop mode or normal. so that the lens correction is only used when it was a full frame shot. (I could manually disable the corrections for crop mode shots )

I will have some free time in the weekend and will have a look at getting up to speed with lua.  :)

DeafEyeJedi

Quote from: Lars Steenhoff on November 22, 2016, 09:00:10 PM
@dfort yes your exactly right about the crop mode, the correction should not be applied.
Therefore it would be good to know if a shot was filmed in crop mode or normal. so that the lens correction is only used when it was a full frame shot.

+1 -- because in the past I've accidentally overstretched some of the footage in post due to being shot crop-mode.

Quote from: Lars Steenhoff on November 22, 2016, 09:00:10 PM
I will have some free time in the weekend and will have a look at getting up to speed with lua.  :)

Sweet. Looking forward to it! :)
5D3.113 | 5D3.123 | EOSM.203 | 7D.203 | 70D.112 | 100D.101 | EOSM2.* | 50D.109

Lars Steenhoff

lens.name = "X3 Zeiss Distagon T* 2/25 ZF.2"

There could also be a way to write the crop info in the lens name, so no api change is needed, and the lens profile would not be automatically applied.
This does feel a bit of a hack, and there is the character limit of the lens name exif field you mentioned before.

Alternatively the focal length could represent the crop

lens.name = "Zeiss Distagon T* 2/25 ZF.2
lens.focal_length = 75


But the fist question @dmilligan would be: is the crop mode setting exposed to lua ?

dfort

Quote from: Lars Steenhoff on November 22, 2016, 10:33:23 PM
lens.name = "X3 Zeiss Distagon T* 2/25 ZF.2"

Does this work with ACR? If you need to enter the lens name manually to correct lens distortion doesn't it kind of defeat the purpose of what we're doing?

@a1ex hinted at adding some new metadata to MLV but how would that work with ACR?

If you would be satisfied with being able to look up a library of flat frames to fix vignetting and some other issues I think that would be possible to implement that without having to add any extra metadata with the cooperation from the developers of applications tailored specifically for MLV files. Applications like MLVFS, MLV Producer and MLP. Though we're talking about a lot of work. I believe @Danne is probably the furthest along with the flat frame thing in MLP. I'm drifting a bit off topic now because this should work for any lens, not just manual lenses.

@dmilligan -- I can rework lens.aperture to camera.aperture or expo.aperature or whatever. What we have going on here is being able to write the lens name, focal length and aperture only for manual lenses via lua. If a lens that communicates with the camera is detected these become read only. This seemed like a worthwhile thing to do but I don't want to put up a pull request that clashes with your vision of the API.

dfort

@Lars_Steenhoff
@garry23
@DeafEyeJedi

New test builds. This time I went on a merge fest so these have crop_rec, 10bit-12-bit and a few other enhancements along with the lua non-cpu lens thing we're working on here. These are only for the 5D3.113 and EOSM.202 since that's what we seem to be testing this on and are the only platforms that seem to work with the crop_rec mode that was requested for this next round of testing.

Good luck!

https://bitbucket.org/daniel_fort/magic-lantern/downloads/magiclantern-x-perimental.2016Nov23.zip

Lars Steenhoff

Yes this is great,  :) I was just installing the build tools on the mac and already downloaded the xperimental branch, after seeing all the merges going in there  8)

Im still figuring out how to make the build, so thanks for making it available as a download.  Will try it out on the 5d3 now.

Lars Steenhoff

So far great results! @dfort

I did a few tests by just making copies of the script and adding the lens names to the script.

This works well if I restart the camera for before each lens change, if I just run a different script after each other only the first one will stay active.
The 25 mm and the 35 mm and 50 mm work great

ZEISS25f2.LUA

-- ZEISS 25 f2
-- Prints lens_info.name on the console

menu.close()
console.show()
if lens.name == "" then
    print("non-cpu lens")
    lens.name = "Zeiss Distagon T* 2/25 ZF.2"
    lens.focal_length = 25
    lens.aperture = 20
end
print("lens: "..lens.name)
print("focal_length: "..lens.focal_length)
print("aperture: "..lens.aperture/10)
print "Press any key to exit."
key.wait()
console.hide()



ZEISS35f2.LUA
-- ZEISS 35 f2
-- Prints lens_info.name on the console

menu.close()
console.show()
if lens.name == "" then
    print("non-cpu lens")
    lens.name = "Zeiss Distagon T* 2/35 ZF.2"
    lens.focal_length = 35
    lens.aperture = 20
end
print("lens: "..lens.name)
print("focal_length: "..lens.focal_length)
print("aperture: "..lens.aperture/10)
print "Press any key to exit."
key.wait()
console.hide()




ZEISS50MP.LUA

-- ZEISS 50MP f2
-- Prints lens_info.name on the console

menu.close()
console.show()
if lens.name == "" then
    print("non-cpu lens")
    lens.name = "Zeiss Makro-Planar T* 2/50 ZF.2"
    lens.focal_length = 50
    lens.aperture = 20
end
print("lens: "..lens.name)
print("focal_length: "..lens.focal_length)
print("aperture: "..lens.aperture/10)
print "Press any key to exit."
key.wait()
console.hide()






Lars Steenhoff

The Zeiss Planar T* 1,4/85 ZF.2 does not show up in ACR for some reason.
And if I compare a shot from the lens on a Nikon camera the exif data does not have the lens name, but ACR does recognise the lens for profile. so I'm not sure were ACR reads this name from.

Canon dng file processed with MLVFS
http://www.larssteenhoff.com/forum_pics/M23-2308MLV_1_2016-11-23_0001_C0000_000010.dng

Nikon raw file from the nikon df with the zeiss lens.
http://www.larssteenhoff.com/forum_pics/DSC_7499.NEF

ZEISS85.LUA
-- ZEISS 85 f1.4
-- Prints lens_info.name on the console

menu.close()
console.show()
if lens.name == "" then
    print("non-cpu lens")
    lens.name = "Zeiss Planar T* 1,4/85 ZF.2"
    lens.focal_length = 85
    lens.aperture = 14
end
print("lens: "..lens.name)
print("focal_length: "..lens.focal_length)
print("aperture: "..lens.aperture/10)
print "Press any key to exit."
key.wait()
console.hide()





Canon dng file processed with MLVFS
http://www.larssteenhoff.com/forum_pics/M23-2308MLV_1_2016-11-23_0001_C0000_000010.dng



Nikon raw file from the nikon df with the zeiss lens.
http://www.larssteenhoff.com/forum_pics/DSC_7499.NEF

dfort

ACR can't find "Zeiss Planar T* 1,4/85 ZF.2" but your other lenses are fine? Just checked that file and reproduced the issue. That's very strange. In the Nikon NEF file I see this:

Lens ID                         : Carl Zeiss Planar T* 1.4/85 ZF.2

So I edited the "Lens Model" your file with exiftool replacing the "1,4" with "1.4" and it worked:



Go figure.

Lars Steenhoff

Great you found it!   so the comma should be a dot in lens name.

Now all my lenses work!  Thanks for figuring that out


ZEISS85.LUA
-- ZEISS 85 f1.4
-- Prints lens_info.name on the console

menu.close()
console.show()
if lens.name == "" then
    print("non-cpu lens")
    lens.name = "Zeiss Planar T* 1.4/85 ZF.2"
    lens.focal_length = 85
    lens.aperture = 14
end
print("lens: "..lens.name)
print("focal_length: "..lens.focal_length)
print("aperture: "..lens.aperture/10)
print "Press any key to exit."
key.wait()
console.hide()


ZEISS50.LUA
-- ZEISS 50 f1.4
-- Prints lens_info.name on the console

menu.close()
console.show()
if lens.name == "" then
    print("non-cpu lens")
    lens.name = "Zeiss Planar T* 1.4/50 ZF.2"
    lens.focal_length = 50
    lens.aperture = 14
end
print("lens: "..lens.name)
print("focal_length: "..lens.focal_length)
print("aperture: "..lens.aperture/10)
print "Press any key to exit."
key.wait()
console.hide()

Lars Steenhoff

The way I tested it was just to rename the scripts and load them all, just to test if they work.
Actually its quite an easy way to select different lenses  :)  just have to restart the camera after a lens change but need to do that anyway.

I guess there is no way to store a lens setting so when I turn the camera on it will auto load the last setting?




Lars Steenhoff

Found it!

If I turn on autorun the lens is loaded at startup, this is perfect.

Now the only thing not in user menu is the aperture setting, that should be relatively easy to code, I will have a look at some examples
( or you can use the text editor in camera  :D )


Lars Steenhoff

All these Zeiss lens names are recognised in ACR
Zeiss Distagon T* 2.8/15 ZF.2
Zeiss Distagon T* 3.5/18 ZF.2
Zeiss Distagon T* 2.8/21 ZF.2
Zeiss Distagon T* 2.8/25 ZF.2
Zeiss Distagon T* 2/25 ZF.2
Zeiss Distagon T* 2/28 ZF.2
Zeiss Distagon T* 2/35 ZF.2
Zeiss Distagon T* 1.4/35 ZF.2
Zeiss Makro-Planar T* 2/50 ZF.2
Zeiss Planar T* 1.4/50 ZF.2
Zeiss Planar T* 1.4/85 ZF.2
Zeiss Makro-Planar T* 2/100 ZF.2
Zeiss Apo Sonnar T* 2/135 ZF.2




Now I'm trying to get a Nikon lens to be recognised in ACR but it does not reconise it.

QuoteNikon AF NIKKOR 35mm f/2D

There are no commas in the name, perhaps the name is wrong or ACR is looking in another exif field for Nikon lenses.
I took those names from the same list on the adobe website.

https://helpx.adobe.com/camera-raw/kb/supported-lenses.html#Nikon

QuoteNikon AF Fisheye-Nikkor 16mm f/2.8D
Nikon AF NIKKOR 50mm f/1.4D
Nikon AF NIKKOR 35mm f/2D
Nikon AF NIKKOR 24mm f/2.8D

None of these are recognised

dfort

Look what I found in the exiftool source code:

lib/Image/ExifTool/Nikon.pm
# nikon lens ID numbers (ref 8/11)
    '00 40 2D 2D 2C 2C 00 00' => 'Carl Zeiss Distagon T* 3.5/18 ZF.2',
    '00 48 32 32 24 24 00 00' => 'Carl Zeiss Distagon T* 2.8/21 ZF.2',
    '00 54 3C 3C 18 18 00 00' => 'Carl Zeiss Distagon T* 2/28 ZF.2',
    '00 54 44 44 0C 0C 00 00' => 'Carl Zeiss Distagon T* 1.4/35 ZF.2',
    '00 54 44 44 18 18 00 00' => 'Carl Zeiss Distagon T* 2/35 ZF.2',
    '00 54 50 50 0C 0C 00 00' => 'Carl Zeiss Planar T* 1.4/50 ZF.2',
    '00 54 50 50 18 18 00 00' => 'Carl Zeiss Makro-Planar T* 2/50 ZF.2',
    '00 54 62 62 0C 0C 00 00' => 'Carl Zeiss Planar T* 1.4/85 ZF.2',
    '00 54 68 68 18 18 00 00' => 'Carl Zeiss Makro-Planar T* 2/100 ZF.2',
    '00 54 72 72 18 18 00 00' => 'Carl Zeiss Apo Sonnar T* 2/135 ZF.2',


So if exiftool has to look up the lens via the Lens ID ACR can probably use either the Lens ID or Lens Model EXIF tags to identify the lens.

In any case, looks like things are working. Now we need a real lua script. It should be able to run Autorun so that when a non-cpu lens is detected it will look up a configure file for the last lens used and have a menu where you can choose from a list of lenses. We might consider putting all the possible lens combinations that are in the Adobe list that can be adapted to a Canon body in a text file so users don't need to figure out that the way a lens is displayed in ACR might not be exactly the way it is saved in the EXIF tag.

@Lars_Steenhoff - The lens you are looking for is probably:
AF Nikkor 35mm f/2
Got that from the exiftool code.

@garry23 - It would be great if you can you jump start this when you get back from vacation.

Lars Steenhoff

http://www.larssteenhoff.com/forum_pics/DSC_7500.NEF

Here is a file shot on Nikon with the AF Nikkor 35mm f/2,   I tried this name but it still does not recognise it.
Perhaps you can look in this file to see how and were it stores the lens data.

If I open this file in an exif editor I don't see anything in the lens model field.

Lars Steenhoff

http://u88.n24.queensu.ca/exiftool/forum/index.php?topic=2754.0

Here is some talk about encrypted exif data. I do remember that Nikon encrypts its raw files

QuoteUse the exiftool -v3 to see both the encrypted and decrypted LensData in hex.

https://forums.adobe.com/thread/350943

dfort

I'm stumped on the Nikon AF Nikkor 35mm f/2 lens. It may be because this is an automatic lens and Nikon uses the LensID tag which is an integer instead of LensModel which is a string. In addition, LensID numbers seem to be dependent on the camera. I could change the LensID tag to show various Canon lenses but when I used the LensID for that lens (66) it came up:

QuoteLens ID                         : Unknown (66)

So we might be out of luck when it comes to mounting Nikon AF lenses on your Canon and using them as manual lenses. Note that the Zeiss ZF.2 lenses are chipped but they are manual lenses so those seem to work fine.

[EDIT] I posted a question in the Adobe Camera Raw forum. Let's see if we can get an answer on this.


dfort

Some interesting documentation that shows Lens ID information that was posted on another topic (in French):

http://www.magiclantern.fm/forum/index.php?topic=18308.msg175438#msg175438

There's a long list of lenses along with their Lens ID numbers. Interesting that the EF 70-200mm f/2.8L IS II USM lens has different ID numbers depending on whether or not a tele extender is being used.

Lens Id Hex Marque Modèle

251     FB  Canon  EF 70-200mm f/2.8L IS II USM
252     FC  Canon  EF 70-200mm f/2.8L IS II USM + 1.4x
253     FD  Canon  EF 70-200mm f/2.8L IS II USM + 2x


It also lists Zeiss ZE lenses but not ZF.2 lenses which are optically identical and we know are showing up properly in ACR.

Lens Id Hex Marque Modèle
33   4  21  Zeiss  Distagon T* 15mm f/2.8 ZE
33   5  21  Zeiss  Distagon T* 18mm f/3.5 ZE
33   6  21  Zeiss  Distagon T* 21mm f/2.8 ZE
33   7  21  Zeiss  Distagon T* 25mm f/2 ZE
33   8  21  Zeiss  Distagon T* 28mm f/2 ZE
33   9  21  Zeiss  Distagon T* 35mm f/2 ZE
33  10  21  Zeiss  Distagon T* 35mm f/1.4 ZE
33  11  21  Zeiss  Planar T* 50mm f/1.4 ZE
33  12  21  Zeiss  Makro-Planar T* 50mm f/2 ZE
33  13  21  Zeiss  Makro-Planar T* 100mm f/2 ZE
33  14  21  Zeiss  Apo-Sonnar T* 135mm f/2 ZE


I have no idea how this works because Lens ID only accepts a single integer value and all the Zeiss ZE lenses use the same integer.

Still no answers on the Adobe forum about the Nikon AF lens issue.

Lars Steenhoff

Yes I think on the adobe forum there won't be much help,
I had some other idea to make new profiles based on the current Nikon profiles and with a name that is known to be recognised.

There is the profile creator from adobe, but I have not yet found a way to open excisting profiles.

https://www.adobe.com/support/downloads/detail.jsp?ftpID=5489

I can understand why the lenses with an extender have a different name, as the profile should also be different as only the center of the lens is used.  this is the same effect of the magic lantern in camera crop module, so it is interesting to see that there is also provision for crop in the profiles.

dmilligan


dfort

Fantastic!

Ok if I ask for a feature request on this feature request? How about adding lens information tags to dng files so this will work for silent.mo too. We don't need a sidecar xmp for dng files, do we? Would this be in the scope of the manual_lens_info branch?

g3gg0

just noticed this thread.
it is only about having a proper string for the current lens on MLV side?
or would it require additional data that must be embedded into DNG?
Help us with datasheets - Help us with register dumps
magic lantern: 1Magic9991E1eWbGvrsx186GovYCXFbppY, server expenses: [email protected]
ONLY donate for things we have done, not for things you expect!

dfort

@g3gg0

For this to work with MLV, DNG and CR2 --

CR2 will require writing an xmp sidecar file.

DNG needs to have the lens data to be embedded.

MLV does have the required lens data -- though I found a minor issue if we decide to someday add the lens serial number as a user defined field because it isn't being saved. This is from a lens that should have something in the lens serial number field:

     Name:        'EF-S17-55mm f/2.8 IS USM'
     Serial:      ''
     Focal Len:   55 mm


Ant123

Here you can find parameters taken from 3 lenses:
MIME-Version: 1.0
Content-Type: application/octet-stream; name="lensinfo.zip"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="lensinfo.zip"

UEsDBBQAAgAIAIq4PknKhn0C2gsAAPo2AAATAAAATGVucyBpbmZvIEVGLU0tMjItMu2b3Y7cthWA
r62noO/si2Qlzc/ODpICHImakVcSVZGaycYwhCCetgvETr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NjlTEEKT1TBja8ue+2S0naLaiQ9bfbrfDVNT
yqNtie+HGjniHMJhepBNO6Y+dkYpJrkeax6c7gh/s+3YvYohxHT0cnHrcUJY0WSmzf8BUEsBAhQA
FAACAAgAirg+ScqGfQLaCwAA+jYAABMAAAAAAAAAAAAgAAAAAAAAAExlbnMgaW5mbyBFRi1NLTIy
LTJQSwECFAAUAAIACABArHVJGjRydVULAAD1NgAAFwAAAAAAAAAAACAAAAALDAAATGVucyBpbmZv
IEVGLVMtMTgtNTUtSVNQSwECFAAUAAIACAAAuj5JBJp5OCYLAADCNgAAFgAAAAAAAAAAACAAAACV
FwAATGVucyBpbmZvIFNpZ21hIDE4LTI1MFBLBQYAAAAAAwADAMoAAADvIgAAAAA=



But attachments in this forum still don't work for me.

dfort

I have no idea how you produced this or if it has anything to do with this topic for non cpu lenses but it is interesting.

Quote from: Ant123 on November 27, 2016, 06:05:45 PM
Here you can find parameters taken from 3 lenses:
...
But attachments in this forum still don't work for me.

You don't need to attach text files but there is a 20,000 character limit per post and Tapatalk users will probably hate this:

EF-M22mm f/2 STM
uartr.lua: start UART redirection
Fri Sep 30 22:21:56 2016 UART redirect Test (uartrtst.lua) OK

!! RESET COMPLETE !!


[DCL 1st] ==================================
COM_CONTROL1 CTL_HEADER:         0x02
COM_CONTROL1 COM_2ND:            0x00
COM_CONTROL1 DATA_AVAILABLE:     TRUE
COM_CONTROL1 POWER_ON_REQ:       FALSE
COM_CONTROL1 EOS_COM_REQ:        TRUE

COM_CYCLE FREQ_24HZ:             FALSE
COM_CYCLE FREQ_25HZ:             FALSE
COM_CYCLE FREQ_30HZ:             FALSE
COM_CYCLE FREQ_48HZ:             FALSE
COM_CYCLE FREQ_50HZ:             FALSE
COM_CYCLE FREQ_60HZ:             TRUE
COM_CYCLE FREQ_72HZ:             FALSE
COM_CYCLE FREQ_75HZ:             FALSE
COM_CYCLE FREQ_90HZ:             FALSE
COM_CYCLE FREQ_96HZ:             FALSE
COM_CYCLE FREQ_100HZ:            FALSE
COM_CYCLE FREQ_120HZ:            FALSE
COM_CYCLE FREQ_ENBL:             TRUE

FB_GAP:                          0x00

UNIT_CONTROL SINK:               TRUE

RESET_COMMAND FOCUS:             FALSE
RESET_COMMAND IRIS:              FALSE
RESET_COMMAND IS:                FALSE
RESET_COMMAND SINK:              FALSE

POWER_CONTROL FOCUS_MOTOR:       FALSE

LENS_FUNC_PERMISSION PF:         FALSE
LENS_FUNC_PERMISSION FP:         FALSE
LENS_FUNC_PERMISSION CZ:         TRUE
LENS_FUNC_PERMISSION IRIS:       TRUE
LENS_FUNC_PERMISSION IS:         TRUE

IS_STATUS VECTOR_ENABLE:         FALSE
IS_STATUS SW_ON:                 ON
IS_STATUS START_STOP(SW1/SW2):   0x00
IS_STATUS SHUTTER_SPEED:         0x09

IS_MODE NORMAL:                  ON
IS_MODE DYNAMIC:                 ON

CAMERA_STATUS GRIP_POSITION:     0x00
CAMERA_STATUS TEMP_VALID:        FALSE
CAMERA_STATUS MODE:              STILL
CAMERA_STATUS REC:               FALSE

IRIS TARGET FNO:                 0x0074
IRIS_SPEED IRIS_SPEED:           0x00
IRIS_SPEED SPEED_UNIT:           0x00

IRIS_SPEED_IN_ZOOM IRIS_SPEED:   0x00
IRIS_SPEED_IN_ZOOM SPEED_UNIT:   0x00

IRIS_CONTROL SILENT_DRIVE:       0x00
IRIS_CONTROL POWER_STOP:         0x00
IRIS_CONTROL AUTO_CLOSE:         0x00

CHECK_SUM:                       0xB4



[DCL 2nd] ==================================
COM_CONTROL2 CTL_HEADER:         0x00
COM_CONTROL2 COM_2ND:            0x00
COM_CONTROL2 DATA_AVAILABLE:     FALSE

WOB_CENTER_FPC:                  0
WOB_WIDTH:                       0
WOB_MOVE_CENTER:                 0
FOCUS_SPEED:                     0
FOCUS_CONTROL DRIVE_MODE:        0x00
FOCUS_CONTROL PINT_STATE:        0x00
FOCUS_CONTROL IMAGESURFACE_FPC:  0x00

GET_FPC_TIMING:                  0x00
FOCUS_DRIVE_TIMING:              0x00

CHECK_SUM:                       0x00



[DCL Init] ================================
CTL_HEADER:                      0x01
COM_VERSION:                     0x01
COM_SUB_VERSION:                 0x00

COM_CYCLE FREQ_24HZ:             TRUE
COM_CYCLE FREQ_25HZ:             TRUE
COM_CYCLE FREQ_30HZ:             TRUE
COM_CYCLE FREQ_48HZ:             FALSE
COM_CYCLE FREQ_50HZ:             TRUE
COM_CYCLE FREQ_60HZ:             TRUE
COM_CYCLE FREQ_72HZ:             FALSE
COM_CYCLE FREQ_75HZ:             FALSE
COM_CYCLE FREQ_90HZ:             FALSE
COM_CYCLE FREQ_96HZ:             FALSE
COM_CYCLE FREQ_100HZ:            FALSE
COM_CYCLE FREQ_120HZ:            FALSE

START_CYCLE FREQ_24HZ:           FALSE
START_CYCLE FREQ_25HZ:           FALSE
START_CYCLE FREQ_30HZ:           FALSE
START_CYCLE FREQ_48HZ:           FALSE
START_CYCLE FREQ_50HZ:           FALSE
START_CYCLE FREQ_60HZ:           TRUE
START_CYCLE FREQ_72HZ:           FALSE
START_CYCLE FREQ_75HZ:           FALSE
START_CYCLE FREQ_90HZ:           FALSE
START_CYCLE FREQ_96HZ:           FALSE
START_CYCLE FREQ_100HZ:          FALSE
START_CYCLE FREQ_120HZ:          FALSE

CAMERA_ID1:                      0xA8
CAMERA_ID3:                      0x00
CAMERA_ID4:                      0x83

CAMERA_VERSION[0]:               0x00
CAMERA_VERSION[1]:               0x00

CAMERA_SERIAL_NO[0]:             0x00
CAMERA_SERIAL_NO[1]:             0x00
CAMERA_SERIAL_NO[2]:             0x00
CAMERA_SERIAL_NO[3]:             0x00
CAMERA_SERIAL_NO[4]:             0x00

FB_ADJUST_DATA:                  0x04

GROUP1_VALID:                    FALSE
GROUP2_VALID:                    FALSE
GROUP3_VALID:                    FALSE
GROUP4_VALID:                    FALSE
GROUP5_VALID:                    FALSE
GROUP6_VALID:                    FALSE
GROUP7_VALID:                    FALSE
GROUP8_VALID:                    FALSE

STILL_CONFUSIONCIRCLE[0]:        0x07
STILL_CONFUSIONCIRCLE[1]:        0xD0

MOVIE_CONFUSIONCIRCLE[0]:        0x0A
MOVIE_CONFUSIONCIRCLE[1]:        0x00

CHECK_SUM:                       0x96



[DLC 1st] ==================================
COM_CONTROL1 LTC_HEADER:         0x02
COM_CONTROL1 COM_2ND:            0x00
COM_CONTROL1 DATA_AVAILABLE:     TRUE
COM_CONTROL1 IMAGE_OK:           TRUE
COM_CONTROL1 POWER_OFF_OK:       FALSE

UNIT_STATUS1 IS_LOCK:            FALSE

UNIT_STATUS2 SINK:               0x02

RESET_STATUS1 FOCUS:             0x02
RESET_STATUS1 IRIS:              0x02
RESET_STATUS1 ZOOM:              0x00
RESET_STATUS1 IS:                0x00

RESET_STATUS2 SINK:              0x02

POWER_STATUS FOCUS_RING_SENSOR:  TRUE
POWER_STATUS IRIS_SENSOR:        TRUE
POWER_STATUS STEPOUT_SENSOR:     FALSE
POWER_STATUS FOCUS_MOTOR:        FALSE

LENS_FUNC_STATUS PF:             FALSE
LENS_FUNC_STATUS CZ:             FALSE
LENS_FUNC_STATUS IS:             FALSE
LENS_FUNC_STATUS SINK:           FALSE

ERROR_INFO FOCUS:                FALSE
ERROR_INFO IS:                   FALSE
ERROR_INFO IRIS:                 FALSE

SWITCH_INFO1 IS:                 FALSE
SWITCH_INFO1 IS_MODE:            FALSE
SWITCH_INFO1 AF:                 FALSE

IS_INFO_AVAILABLE ANGULAR_SPEED: FALSE
IS_INFO_AVAILABLE COMPLENS_INFO: FALSE

GYRO_YAW:                        0
GYRO_PITCH:                      0
COMP_POS_YAW:                    0
COMP_POS_PITCH:                  0

IRIS_REAL_FNO:                   0x0046
IRIS_DISP_FNO:                   0x0040
IRIS_MIN_FNO:                    0x0046
IRIS_MAX_FNO:                    0x0120

IRIS_STATUS DRIVE:               0x00
IRIS_STATUS POWER:               0x00
IRIS_STATUS PHASE:               0x00
IRIS_STATUS CLOSE:               0x00
1/8 AVEF:                        0x19
JSSTESP:                         0x06
UNSTABLE_PHASE:                  0x00

FOCAL_LENGTH:                    22 mm
ZOOM_POSITION:                   0x00

FOCUS_STATUS FAR_END:            FALSE
FOCUS_STATUS NEAR_END:           FALSE
FOCUS_STATUS DRIVE_FAR:          FALSE
FOCUS_STATUS DRIVE_NEAR:         TRUE
FOCUS_STATUS ZOOM_DRIVING:       FALSE
FOCUS_STATUS ARRIVAL_CHECK:      TRUE

FPC:                             9380
WOB_CENTER_FPC:                  9380
NEAR_MARGIN:                     0
FAR_MARGIN:                      0
WOB_MIN_WIDTH:                   2147483647
MIN_SPEED:                       2147483647
MAX_SPEED1:                      2147483647
MAX_SPEED2:                      2147483647
DISTANCE:                        65535 cm
FOCUS_ZONE:                      15
OBJECT_MAGNIFY:                  2

VIGNETTING0:                     0x00
VIGNETTING1:                     0x04
VIGNETTING2:                     0x0B
VIGNETTING3:                     0x0F

PO:                              0xD0
PO5:                             0xE3
PO10:                            0xEE
PITCH:                           0.000000
SENS0:                           0.000000
SENS1P:                          0.000000
SENS2P:                          0.000000
SENS3P:                          0.000000
SENS1M:                          0.000000
SENS2M:                          0.000000
SENS3M:                          0.000000
ABSINF:                          48
ABSNER:                          43
CHECK_SUM:                       0x09



[DLC 2nd] =================================
COM_CONTROL2 LTC_HEADER:         0x02
COM_CONTROL2 COM_2ND:            0x01
COM_CONTROL2 DATA_AVAILABLE:     TRUE

CHECK_SUM:                       0xF1



[DLC Init] ================================
CTL_HEADER:                      0x01
COM_VERSION:                     0x01
COM_SUB_VERSION:                 0x00

COM_CYCLE FREQ_24HZ:             TRUE
COM_CYCLE FREQ_25HZ:             TRUE
COM_CYCLE FREQ_30HZ:             TRUE
COM_CYCLE FREQ_48HZ:             FALSE
COM_CYCLE FREQ_50HZ:             TRUE
COM_CYCLE FREQ_60HZ:             TRUE
COM_CYCLE FREQ_72HZ:             FALSE
COM_CYCLE FREQ_75HZ:             FALSE
COM_CYCLE FREQ_90HZ:             FALSE
COM_CYCLE FREQ_96HZ:             FALSE
COM_CYCLE FREQ_100HZ:            FALSE
COM_CYCLE FREQ_120HZ:            FALSE

CAMERA_SERIAL_NO[0]:             0x00
CAMERA_SERIAL_NO[1]:             0x00
CAMERA_SERIAL_NO[2]:             0x00
CAMERA_SERIAL_NO[3]:             0x00
CAMERA_SERIAL_NO[4]:             0x00

LENS_VERSION[0]:                 0x01
LENS_VERSION[1]:                 0x08
LENS_VERSION[2]:                 0x00

LENS_RECOGNITION[0]:             0x31
LENS_RECOGNITION[1]:             0x10

LENS_NAME:                       EF-M22mm f/2 STM

UNIT_AVAILABLE1 FOCUS:           TRUE
UNIT_AVAILABLE1 IRIS:            TRUE
UNIT_AVAILABLE1 ZOOM:            FALSE
UNIT_AVAILABLE1 IS:              FALSE
UNIT_AVAILABLE1 ND:              FALSE
UNIT_AVAILABLE1 SINK:            TRUE
UNIT_AVAILABLE1 BARRIER:         FALSE

UNIT_AVAILABLE2 TELE_CONV:       FALSE
UNIT_AVAILABLE2 WIDE_CONV:       FALSE
UNIT_AVAILABLE2 MECHA LOCK:      FALSE
UNIT_AVAILABLE2 RING1:           TRUE
UNIT_AVAILABLE2 RING2:           FALSE
UNIT_AVAILABLE2 RING3:           FALSE
UNIT_AVAILABLE2 ZOOM_PRESET:     FALSE

UNIT_CONTROLLABLE1 FOCUS:        TRUE
UNIT_CONTROLLABLE1 IRIS:         TRUE
UNIT_CONTROLLABLE1 ZOOM:         FALSE
UNIT_CONTROLLABLE1 IS:           FALSE
UNIT_CONTROLLABLE1 ND:           FALSE
UNIT_CONTROLLABLE1 SINK:         TRUE
UNIT_CONTROLLABLE1 BARRIER:      FALSE

UNIT_CONTROLLABLE2 TELE_CONV:    FALSE
UNIT_CONTROLLABLE2 WIDE_CONV:    FALSE
UNIT_CONTROLLABLE2 MECHA LOCK:   FALSE
UNIT_CONTROLLABLE2 RING1:        FALSE
UNIT_CONTROLLABLE2 RING2:        FALSE
UNIT_CONTROLLABLE2 RING3:        FALSE
UNIT_CONTROLLABLE2 ZOOM_PRESET:  FALSE

RESET_REQ FOCUS:                 TRUE
RESET_REQ IRIS:                  TRUE
RESET_REQ ZOOM:                  FALSE
RESET_REQ IS:                    FALSE
RESET_REQ ND:                    FALSE
RESET_REQ SINK:                  FALSE
RESET_REQ BARRIER:               FALSE

SUPPORT FOCUS_REDRIVE_TIME:      FALSE

METHOD_AVAILABLE WOBLING:        FALSE
METHOD_AVAILABLE FCS_BACKLASH:   TRUE
METHOD_AVAILABLE FCS_POWER_OVER: TRUE

SWITCH_AVAILABLE IS:             FALSE
SWITCH_AVAILABLE IS_MODE:        FALSE
SWITCH_AVAILABLE AF:             FALSE
SWITCH_AVAILABLE FCS_PRESET:     FALSE
SWITCH_AVAILABLE FCS_PRESET_SET: FALSE
SWITCH_AVAILABLE FCS_PRESET_GO:  FALSE
SWITCH_AVAILABLE FCS_LIMIT:      FALSE
SWITCH_AVAILABLE FUNCTION:       FALSE

FOCUS_REDRIVE_TIME_SILENT:       0
FOCUS_REDRIVE_TIME:              0

IS_MODE NORMAL:                  FALSE
IS_MODE DYNAMIC:                 FALSE

IRIS_MAX_DISP_FNO_TELE:          0x0120
IRIS_MIN_DISP_FNO_TELE:          0x00A0
IRIS_MAX_DISP_FNO_WIDE:          0x0120
IRIS_MIN_DISP_FNO_WIDE:          0x0140
IRIS_MAX_SPEED IRIS_SPEED:       0x06
IRIS_MAX_SPEED SPEED_UNIT:       0x01
IRIS_MIN_SPEED IRIS_SPEED:       0x04
IRIS_MIN_SPEED SPEED_UNIT:       0x00

IRIS_UNIT_INFO STOP_RESOLUTION:  0x02

FOCAL_LENGTH_WIDE:               0x0016

FOCAL_LENGTH_TELE:               0x0016

ZOOM_MAX_POSITION:               0x0000

FOCUS_MAX_ZONE:                  0x001F

SWITCH_AVAILABLE2 ZOOM_KEY:      FALSE

COM_2ND_WAIT:                    0x06
COM_1ST_WAIT:                    0x0A
AF_WAIT:                         0x06

CHECK_SUM:                       0x72


<BYTE>
STATUS ST1:   0x00
STATUS ST2:   0x00
STATUS ST3:   0x00
STATUS ST4:   0x00
STATUS ST5:   0x00
STATUS ERROR: 0x00

<BIT>
ST1 AE_NG:    0
ST1 EMD_NG:   0
ST1 CL_ON:    0
ST1 BELOWS:   0
ST1 AJ_ON:    0
ST1 PF_ON:    0
ST1 FP_ON:    0
ST1 LSW_ON:   0
-------------------
ST2 CLOSE:    0
ST2 EMD_ON:   0
ST2 FD_ON:    0
ST2 ZM_ON:    0
ST2 FD_NG:    0
ST2 AF_NG:    0
ST2 SPECIAL:  0
ST2 MANUAL:   0
-------------------
ST3 ISDIS:    0
ST3 ISSTAT:   0
ST3 ISSW:     0
ST3 ISDON:    0
ST3 ISLOCK:   0
ST3 ED_ON:    0
ST3 GYRO_SET: 0
ST3 reserved: 0
-------------------
ST4 PHOTO_NG: 0
-------------------

FOCUS UNIT SPEC ========
WOBBLING LENS: FALSE
FD SLOW LENS : TRUE
STM LENS     : TRUE
USM LENS     : FALSE
OVERLAP LENS : TRUE

IS UNIT SPEC ========
IS UNIT      : FALSE
DYNAMIC IS   : FALSE

SINK UNIT SPEC ========
SINK UNIT    : CTRL

[LENS INFO] =============================================
LensID           = 0x1031
LENS NAME: EF-M22mm f/2 STM (Size: 17 Byte)
Wide FocalLength = 22 mm
Tele FocalLength = 22 mm

[FIRM VERSION] ==========================================
[1 8 0]

[ID INFO] ===============================================

[ID1]
DOUJI YES
NOEMD NO
ZOOMA NO
ZOOML NO
MACRO NO
SOFTL NO
SHIFT NO
SOTOME NO
FSC SPD NO

[ID7]
HSLENS NO
NEWPRO YES
AREABP NO
ISLENS NO
PZOOM NO
SHUHEN NO
CALCDIS YES
ABSDIS YES

[ID8]
EXT_ID YES
LENS_No YES
ABS_32 YES
LENS_SW NO
NEWPO YES

[ID13]
TGTPOS_BP NO
FD_SLOW YES
IRIS_SLOW YES
PWR_LMT_DC YES
LENS_NAME YES
IRIS_TIME YES
K190BP    NO
K169BP    NO

[ID14]
SERIAL_5BYTE NO
TS_POS      NO
ABS_DRIVE NO
UNLCK_NOSTP NO
EXTEND_DT íPëÃ(TUBE)

[ID15]
IRIS/AF/IS CNT 0

[ID16]
EXT_ID17 YES
AAEA2 YES
FSS_DATA NO
GYRO_DATA NO
LENSDRIVE_EN YES
FP_OK YES
PINT1/4 Fɬ NO
K269BP    NO

[ID17]
AE_CRCT NO
IRIS_INFO 1/16
MOVIE_TRANSPORT YES
PWR_OVER YES
96H_ST_L YES
ZOOM_POS NO
FIRM_UP YES

[ID18]
STATUS2 NO
IRIS_16RELATIVEDRIVE NO
DISP_FL NO
TV_SPEED_NO YES
DPP_INFO Ver.2nd

[ID19]
CINEMA_CMD_ENBL NO
FRESET_DRV NO
STORE_DRV NO
K289BP NO
DAF_BP NO

[ID20]
EXT_ID3 NO
NEWPO_2BYTE NO
IMG_MAG_CHG_EN YES
L_DISPLAY_EN NO
IRIS_FOLLOW_DRV NO
IRIS_SLOW_DRV NO
IRIS_128_DRV NO
iBP NO

[ID21]
BUSY_TIME_OVER_LENS NO
FREE_SPD_EN NO


Tip for Mac users, save Ant123's code as a plain text file and open it with Stuffit Expander.