-
-
Notifications
You must be signed in to change notification settings - Fork 111
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
💡 [FEATURE] Support for CP2104 serial devices #305
Comments
No idea, no-one's tried a CP1204 until now. Please run a debug build and provide logs showing the result of plugging in this device. If we're lucky we might just need to add a VID/PID. |
should be compatible but I can try and make a debug mt32pi, meanwhile, the VID/PID is: PID: 0xEA60 / VID:0x10C4 |
Hi, Here's a patch which enables support for CP2104 USB serial chip, as suggested by @gritd The Circle library already supports CP2102 USB serial chip, but restricts it to CP2102 by detecting the chip variant during initialization. This is too restrictive: the CP2104 is compatible (has even the same VID/PID) So this patch simply removes the explicit CP2102 variant check, and then it works like a charm :-) circle-support-cp2104.patch.zip @dwhinham: thanx for making this inspiring project! |
confirmed! - CP2104 is detected and works super, thanks - hope this can make it into the next rev. |
Thank you both for the patch and for testing. I can certainly include this patch for the next release, but really we should be aiming to upstream a fix into Circle so that other projects can benefit too. cc'ing @rsta2, @hinxx: This PDF (page 2) suggests that the differences are very minor (e.g. number of stop bits supported). Searching for Would it make sense to rename the driver to "CP210x" and lift the part number check? Thanks! |
@dwhinham Good idea and thank you for giving an info to us! Unfortunately this cannot be included in the next Circle release any more, which was already scheduled for today, but I think we can deal with this soon after the release. I will come back on it. |
This should get CP2104 and potentially other similar devices working. Closes #305.
Thanks Rene, and no problem with missing the window for the new Circle release as we have a workaround for the time being and it's easy enough for me to maintain patches. I've applied a patch to deal with this in mt32-pi for now in 772fb15, so I think we can close this here and follow on with this issue over at rsta2/circle#329. Cheers! |
The changelog states the mt32pi can handle CP1202 serial devices but I have a board which uses the CP1204 which is not recognised, is that correct? Does this serial chip variation gets ignored or is this a matter of initalization time increase?
The text was updated successfully, but these errors were encountered: