在 linux 中找不到 PL2303 设备的序列号属性 [英] Can't find Serial Number attribute for PL2303 device in linux
问题描述
当我将 PL2303 USB 转串口转换器连接到我的 ubuntu 系统后运行以下命令时:
When i run the following command after connecting PL2303 USB to serial converter to my ubuntu system:
dmesg |grep ttyUSB
我明白了:
usb 1-2:pl2303 转换器现在连接到 ttyUSB0
然后我跑:
udevadm info -a -n /dev/ttyUSB0
我明白了:
looking at parent device '/devices/pci0000:00/0000:00:14.0/usb1/1-2':
KERNELS=="1-2"
SUBSYSTEMS=="usb"
DRIVERS=="usb"
ATTRS{authorized}=="1"
ATTRS{avoid_reset_quirk}=="0"
ATTRS{bConfigurationValue}=="1"
ATTRS{bDeviceClass}=="00"
ATTRS{bDeviceProtocol}=="00"
ATTRS{bDeviceSubClass}=="00"
ATTRS{bMaxPacketSize0}=="64"
ATTRS{bMaxPower}=="100mA"
ATTRS{bNumConfigurations}=="1"
ATTRS{bNumInterfaces}==" 1"
ATTRS{bcdDevice}=="0400"
ATTRS{bmAttributes}=="80"
ATTRS{busnum}=="1"
ATTRS{configuration}==""
ATTRS{devnum}=="27"
ATTRS{devpath}=="2"
ATTRS{idProduct}=="2303"
ATTRS{idVendor}=="067b"
ATTRS{ltm_capable}=="no"
ATTRS{manufacturer}=="Prolific Technology Inc. "
ATTRS{maxchild}=="0"
ATTRS{product}=="USB-Serial Controller D"
ATTRS{quirks}=="0x0"
ATTRS{removable}=="removable"
ATTRS{speed}=="12"
ATTRS{urbnum}=="20"
ATTRS{version}==" 1.10"
但是没有
ATTRS{串行}找到上面的PL2303 USB转串口转换器.谁能告诉我为什么?我获得了所有其他 USB 设备的串行属性
ATTRS{serial} is found for the above PL2303 USB to serial converter. Can anyone please tell me why? I get the serial attribute for all other USB devices
推荐答案
数据表PL2303 串行转换器芯片包括第 11 页上芯片的 EEPROM 配置数据的描述.
The datasheet for the PL2303 serial converter chip includes a description of the EEPROM configuration data for the chip on page 11.
EEPROM 可以为芯片指定 USB 产品和供应商 ID,因此在其产品中使用此芯片的人可以使用特定于其产品的 ID,而不是使用通用的 USB 到串行转换器 ID,从而允许如果需要,用于无缝自动检测和使用特定于产品的驱动程序.人们会期望序列号也可能存储在该 EEPROM 中.但是在 EEPROM 数据布局中没有序列号的位置.
The EEPROM can specify the USB product and vendor IDs for the chip, so instead of using the generic USB-to-serial converter ID, someone using this chip in their products can use an ID that is specific to their product, allowing for seamless auto-detection and use of the product-specific driver, if desired. One would expect that the serial number might also be stored in that EEPROM. But there is no place for a serial number in the EEPROM data layout.
事实上,整个数据表根本没有记录任何从这个串行转换器中检索唯一序列号的方法.所以我必须得出结论,这个串行转换器芯片系列根本没有唯一的序列号数字,至少在早期的芯片版本中没有(数据表来自 2005 年).
In fact, the entire datasheet does not document any way to retrieve an unique serial number from this serial converter at all. So I must conclude that this serial converter chip series simply does not have unique serial numbers, at least not in its earlier chip revisions (the datasheet is from year 2005).
这篇关于在 linux 中找不到 PL2303 设备的序列号属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!