devnum numbering rule #21
Unanswered
nidorhuang
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
Hello.
Have you tried using enable_cdc_serial? Never tried in Linux. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Is there a way to determine the relationship between devnum and sysfs device?
I'm trying to write a linux python script to initialize multiple MCP2221A devices. I first checked the sysfs for some basic information such as the number of MCP2221A devices and associated tty device names, then try to process each device one at a time. After processing all devices, I'd like to apply reset to some of them. At this point, I'd like to understand the logic behind the devnum: how to determine the relationship between the actual physical device and the devnum? I first assumed maybe the devnum reflects the sequence of hardware detection in dmesg, however it seems not the case. After checking mcp.read_flash_info()["USB_SERIAL"], I found it is not related to USB_SERIAL either. Got stuck here.
Any suggestion is much appreciated. Thank you.
Beta Was this translation helpful? Give feedback.
All reactions