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

Device cannot start error on Windows 10 #6

Closed
iovsiann opened this issue Sep 14, 2021 · 4 comments · Fixed by #8
Closed

Device cannot start error on Windows 10 #6

iovsiann opened this issue Sep 14, 2021 · 4 comments · Fixed by #8
Assignees
Labels
bug Something isn't working

Comments

@iovsiann
Copy link

Hi,
thank you for the sample code. I tried it on Ubuntu 18.04 and Windows. While Ubuntu 18.04 finds MicNode and shows it in Audacity, the device fails to start in Windows 10.

  • MicNode does appear under "Sound, video and game devices" in Device Manager, but with a yellow triangle icon (apparently indicating that the device failed to start)
  • right-clicking on MicNode in Device Manager shows device status as "This device cannot start. (Code 10) The specified range could not be found in the range list."

Any advice would be much appreciated.
Thank you

@iovsiann
Copy link
Author

iovsiann commented Sep 14, 2021

This is issue is for https://github.com/sandeepmistry/pico-microphone project

@iovsiann iovsiann reopened this Sep 14, 2021
@sandeepmistry
Copy link
Member

Hi @iovsiann,

I'm having issues with my Windows 10 VM, the USB microphone device is listed in the device manager with the yellow triangle. However, I do NOT see it listed in Audacity.

A few suggestions to try while I try to figure out my setup would be:

  1. Port an upstream patch over nrf5x USB Compliance Verification Test suite hathach/tinyusb#1058 over, you'll need to change examples/usb_microphone/usb_descriptors.c:

replace:

TUD_CONFIG_DESCRIPTOR(1, ITF_NUM_TOTAL, 0, CONFIG_TOTAL_LEN, TUSB_DESC_CONFIG_ATT_REMOTE_WAKEUP, 100),

with:

TUD_CONFIG_DESCRIPTOR(1, ITF_NUM_TOTAL, 0, CONFIG_TOTAL_LEN, 0x00, 100),
  1. Try to change Audacity to record at 16,000 Hz

  2. Consider reaching out to the TinyUSB team, as the USB microphone example in this project was based on the TinyUSB audio_test device example - so they may be able to provide additional guidance or insights.

@sandeepmistry
Copy link
Member

@iovsiann I think I've tracked this down.

Please try out the changes proposed in #8 and let me know how it goes.

@sandeepmistry sandeepmistry added the bug Something isn't working label Sep 23, 2021
@sandeepmistry sandeepmistry self-assigned this Sep 23, 2021
@iovsiann
Copy link
Author

@sandeepmistry,
I have checked it, it works both on my Windows laptop (Skype, Audacity) and Ubuntu desktop (Audacity) - I used your code in the pull request without any changes. Everything, including Audacity, worked "out of the box" - I didn't have to tweak Audacity mic sampling rate.
Many thanks for the fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants