You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
我使用了串口+usb扩展器,上面使用了转换器(usb转串口),我发现我使用的转换器使用的芯片为CH340,我获取资料发现这个芯片没有序列号。
I used a serial port plus a USB expander, with a converter (USB to serial port) connected to it. I found that the converter I am using adopts the CH340 chip. After checking relevant documents, I confirmed that this chip does not have a serial number.
usb扩展器+没有序列号的芯片就会导致名称改变(每次电脑重启后)。
Using a USB hub together with a chip that has no unique serial number will cause the device name to change every time the computer restarts.
我查找资料 发现使用 设备路径 可以避免这个问题(串口=》属性=》详细信息=》属性=》设备实例路径)。
After checking relevant information, I found that using the device instance path can avoid this problem.
(Serial port → Properties → Details → Property → Device instance path)
我去翻找 HidSharp 的源代码,发现在 WinHidDevice 中的 _id 就是我需要的,但是他是私有的。
I dug into the source code of HidSharp and found that _id in WinHidDevice is exactly what I need, but it is private.
我又去查找资料我发现其他平台(非Win也有类似的设备路径逻辑)我希望 HidSharp 把他开放出来让我们使用。
I did further research and found that other platforms (non-Windows) also have similar device path logic. I hope HidSharp can expose this for us to use.
This discussion was converted from issue #42 on July 02, 2026 20:45.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
我使用了串口+usb扩展器,上面使用了转换器(usb转串口),我发现我使用的转换器使用的芯片为CH340,我获取资料发现这个芯片没有序列号。
I used a serial port plus a USB expander, with a converter (USB to serial port) connected to it. I found that the converter I am using adopts the CH340 chip. After checking relevant documents, I confirmed that this chip does not have a serial number.
usb扩展器+没有序列号的芯片就会导致名称改变(每次电脑重启后)。
Using a USB hub together with a chip that has no unique serial number will cause the device name to change every time the computer restarts.
我查找资料 发现使用 设备路径 可以避免这个问题(串口=》属性=》详细信息=》属性=》设备实例路径)。
After checking relevant information, I found that using the device instance path can avoid this problem.
(Serial port → Properties → Details → Property → Device instance path)
我去翻找
HidSharp的源代码,发现在WinHidDevice中的_id就是我需要的,但是他是私有的。I dug into the source code of
HidSharpand found that_idinWinHidDeviceis exactly what I need, but it is private.我又去查找资料我发现其他平台(非Win也有类似的设备路径逻辑)我希望
HidSharp把他开放出来让我们使用。I did further research and found that other platforms (non-Windows) also have similar device path logic. I hope
HidSharpcan expose this for us to use.All reactions