假设我有两个完全相同类型的相机,如果我不知道它们插入哪个端口,我将如何正确使用一个而不是另一个?
我知道您可以按名称选择相机,但它们都具有相同的名称。我知道您可以通过驱动器进行选择,但我无法确定用户将相机插入哪个端口。
这意味着我必须遍历相机并根据摘要选择正确的相机。不幸的是,如果相机与其他连接的相机属于同一类型,我无法判断它是否存在静态唯一标识属性。
如果我输入 gphoto2 --camera-summary 我得到:
Camera summary:
Manufacturer: Canon Inc.
Model: Canon EOS Rebel T6i
Version: 3-1.0.0
Vendor Extension ID: 0xb (1.0)
Capture Formats: JPEG
Display Formats: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, CRW, Unknown(b103), Unknown(bf02), Defined Type, Unknown(b104), Unknown(b105), Unknown(b982)
Device Capabilities:
File Download, File Deletion, File Upload
No Image Capture, No Open Capture, Canon EOS Capture, Canon EOS Shutter Button
Canon Wifi support
Storage Devices Summary:
store_00020001:
StorageDescription: SD
VolumeLabel: None
Storage Type: Removable RAM (memory card)
Filesystemtype: Digital Camera Layout (DCIM)
Access Capability: Read-Write
Maximum Capability: 31902400512 (30424 MB)
Free Space (Bytes): 21192966144 (20211 MB)
Free Space (Images): -1
Device Property Summary:
Model ID(0xd049):(read only) (type=0x6) 2147484563
Property 0xd402:(read only) (type=0xffff) 'Canon EOS Rebel T6i'
Property 0xd407:(read only) (type=0x6) 1
Property 0xd406:(readwrite) (type=0xffff) 'Unknown Initiator'
Property 0xd303:(read only) (type=0x2) 1
Battery Level(0x5001):(read only) (type=0x2) Enumeration [100,0,75,0,50] value: 100% (100)
其中不包括序列号之类的属性。
我也试过 gphoto2 --get-config serialnumber 但得到一个奇怪的结果:
Label: Serial Number
Type: TEXT
Current: None
任何帮助都会很棒,感谢阅读!