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

error: failed to read cfg item 3703: Input/Output Error #1

Open
pklapperich opened this issue Oct 31, 2018 · 2 comments
Open

error: failed to read cfg item 3703: Input/Output Error #1

pklapperich opened this issue Oct 31, 2018 · 2 comments

Comments

@pklapperich
Copy link

I sometimes get errors when reading CP2102 devices. I get the same errors when trying to write the NAME field. I haven't tried any other changes.

$ sudo cp210x-cfg -m 10c4:ea60
ID 10c4:ea60 @ bus 001, dev 014: CP2102N USB to UART Bridge Controller
Model: CP210Q
Vendor ID: 10c4
Product ID: ea60
error: failed to read cfg item 3703: Input/Output Error
Serial: 55f11b71d8cdbac69d77ac99e08c527b
$ sudo cp210x-cfg -m 10c4:ea60
ID 10c4:ea60 @ bus 001, dev 014: CP2102N USB to UART Bridge Controller
Model: CP210Q
Vendor ID: 10c4
Product ID: ea60
Name: CP2102N USB to UART Bridge Controller
Serial: 55f11b71d8cdbac69d77ac99e08c527b
$ sudo cp210x-cfg -m 10c4:ea60 -N FOO10R200
ID 10c4:ea60 @ bus 001, dev 014: CP2102N USB to UART Bridge Controller
error: failed to set cfg item 3703: Pipe error
Model: CP210Q
Vendor ID: 10c4
Product ID: ea60
error: failed to read cfg item 3703: Input/Output Error
Serial: 55f11b71d8cdbac69d77ac99e08c527b
@cz172638
Copy link

i tried set serial on linkit 7697 which has cp2102n.
further investigation led to
https://www.silabs.com/documents/public/application-notes/AN978-cp210x-usb-to-uart-api-specification.pdf
and https://www.silabs.com/documents/public/application-notes/an976-cp2102-3-4-9-to-cp2102n-porting-guide.pdf and https://www.silabs.com/documents/public/application-notes/AN721.pdf

AN978 satements:
CP210x_SetConfig() Programs the entire configuration of a CP2102N device.
CP210x_GetConfig() Gets the entire configuration of a CP2102N device as a byte array.
CP210x_GetXXXXXXX() calls usually works also on CP2102N, but some only on non-N versions.

also contains full description of CP2102N configuration array.

btw it would be worth to poke at https://github.com/remakeelectric/cp210xmanufacturing

@irrwisch1
Copy link

I forked the project and added support for the newer cp2102n chips
https://github.com/irrwisch1/cp210x-cfg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants