How to add USB Serial port to XMOS Reference Audio project ?

If you have a simple question and just want an answer.
MisterQ
Member++
Posts: 21
Joined: Thu Jan 05, 2017 3:35 pm

Re: How to add USB Serial port to XMOS Reference Audio project ?

Postby MisterQ » Fri Mar 03, 2017 8:06 pm

mariojim22,

I have tried your project. It compiles OK and under Windows 10 audio hardware works,
but in Device Manager there is no any Virtual Serial Port.

Have you tried it in Windows?

Best regards,
Dragan
mariojim22
Junior Member
Posts: 4
Joined: Fri Mar 03, 2017 4:27 pm

Postby mariojim22 » Mon Mar 06, 2017 8:17 am

Sorry, I only try it on linux.
And it detects both without problems.
I will try it on windows 7.
shaileshwankhede
Experienced Member
Posts: 65
Joined: Fri Dec 02, 2016 1:30 pm

Postby shaileshwankhede » Wed Mar 08, 2017 12:49 pm

Hi Mario,

Thank you so much. Your project worked. I verified it under Linux and its working fine.
However there seems to be problem running serial device in windows. I get device status as: This device cannot start. (Code 10)
A device which does not exist was specified.


Thanks,
Shailesh
mariojim22
Junior Member
Posts: 4
Joined: Fri Mar 03, 2017 4:27 pm

Postby mariojim22 » Thu Mar 16, 2017 3:12 pm

Hi,

Finally it works on Windows (7 and 10). There is a problem on windows that it try to install a driver for each interface on USB descriptor that is not associated. So the solutions is attach an IAD that associateCDC's DATA and CONTROL interfaces.
Windows 10 detects it without problems, but Windows 7 need an .inf file, that associate the interface to right cdc windows driver.

This is the important part of .inf
[DeviceList]
%DESCRIPTION%=DriverInstall, USB\VID_20B1&PID_0008&MI_04

[DeviceList.NTamd64]
%DESCRIPTION%=DriverInstall, USB\VID_20B1&PID_0008&MI_04
You do not have the required permissions to view the files attached to this post.
shaileshwankhede
Experienced Member
Posts: 65
Joined: Fri Dec 02, 2016 1:30 pm

Postby shaileshwankhede » Fri Mar 17, 2017 5:46 am

Wow! Its working in windows 10 too.
Thank you so much!

Regards,
Shailesh
MisterQ
Member++
Posts: 21
Joined: Thu Jan 05, 2017 3:35 pm

Postby MisterQ » Fri Mar 17, 2017 7:35 am

Respected Mario,

I have tried yours project with new descriptors.h file under Windows 10 Pro and with the Thesycon XMOS driver Audio and the USB Serial port work.

If I try XMOS AN00124 USB CDC Class as Virtual Serial Port project on the same XMOS board and the same PC, serial port runs correctly without Thesycon XMOS driver.

Can your USB Virtual Serial Port (CDC) work without Thesycon XMOS driver as XMOS example software does?

Can you find out why Windows 10 see USB serial port without any driver with XMOS AN00124 USB CDC Class as Virtual Serial Port project using the driver incorporated in Windows, and with your mixed Audio and CDC project does not? Different VID & PID maybe?

Regards,
Dragan
mariojim22
Junior Member
Posts: 4
Joined: Fri Mar 03, 2017 4:27 pm

Postby mariojim22 » Tue Mar 28, 2017 5:49 pm

Hi Dragan,
In Windows 10, i didn't need to install any driver. I only have to install a ".inf" file on windows 7. And this is not a driver itself, it only says windows that it may use standar USB serial driver.
And maybe if you don't have Thesycon driver, windows stop looking for drivers when it didn't find the audio driver. Because it is the first config descriptor and then it search for CDC driver. But that I can not assure you, I just assume, I'm not a USB expert.
Regards
tbjr6
Member
Posts: 12
Joined: Sun May 20, 2018 2:41 pm

Postby tbjr6 » Mon Apr 12, 2021 4:47 am

Just tried this with a clean install of Windows 10 Pro x64 with all the latest updates. Using only Mario's uploads it worked immediately with no issues. Just in case someone finds this in the future, know that it still works flawlessly. You do need files from both posts though.

Who is online

Users browsing this forum: No registered users and 2 guests