Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

detect_m8_serial_device can't find device on Windows #134

Open
CapMousse opened this issue Feb 9, 2024 · 7 comments
Open

detect_m8_serial_device can't find device on Windows #134

CapMousse opened this issue Feb 9, 2024 · 7 comments
Labels
help wanted Extra attention is needed

Comments

@CapMousse
Copy link

Hello 👋

I just encounter a problem on Windows 11 while using M8C :

The method detect_m8_serial_device seem to not be able to find the correct values while reading the VID and PID.
While debugging, I found that the VID and PID returned by sp_get_port_usb_vid_pid were totally random.

sp_get_port_usb_vid_pid(m8_port, &usb_vid, &usb_pid);

Then the next check fail as the VID and PID doesn't match the correct values:
if (usb_vid == 0x16C0 && usb_pid == 0x048A)

If I comment all the check and force detect_m8_serial_device to return 1 when detecting port COM1 (the port where the headless unit is connected), m8c work as intended.

I can't find why libserialport can't read the correct values on windows.

Have a nice day !

@laamaa
Copy link
Owner

laamaa commented Feb 13, 2024

Unfortunately I don't have a Windows 11 machine I could try to reproduce the problem with. With my Win10 install it seems to be working correctly. Could someone with Win11 please try and see if this happens on more than one machine?

@laamaa laamaa added the help wanted Extra attention is needed label Feb 13, 2024
@CapMousse
Copy link
Author

For context : this is a Windows 11 Pro install with all security features enabled. I can reproduce the same issue on a laptop with the same exact setup.

I will try on a Windows 11 Home edition too.

@possiblyanowl
Copy link

possiblyanowl commented Feb 26, 2024

Hi, I also have Windows 11 Pro, and am having the same problem. M8 is detectable by M8 web display, I see the COM port in Device Manager when I connect the M8 as well as the M8 audio devices, but opening m8c results in the "DEVICE DISCONNECTED" error message.

Please let me know what I am able to do to help. I have setup the mingw toolchain and can compile m8c and test dev builds if necessary.

@CapMousse
Copy link
Author

Update : I've just tester the latest release on W11 Pro and Home and still have the same issue. But everything work fine if I disable all the checks.

@possiblyanowl
Copy link

Same here, if I remove the checks for USB VID and PID and just return 1, it will work correctly.

@laamaa
Copy link
Owner

laamaa commented Mar 7, 2024

This is probably a libserialport issue, need to look up if some other project has bumped into the same issue when I have some time

@DJLevel3
Copy link

DJLevel3 commented Sep 4, 2024

This issue is still present, how do I remove those checks?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants