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 3704: Other error" with empty serial number #4

Open
emaste opened this issue Jun 27, 2019 · 0 comments

Comments

@emaste
Copy link

emaste commented Jun 27, 2019

I have a cp2102 USB-serial dongle with no serial number set, and cp210x-cfg reports an error:

# ./cp210x-cfg
ID 10c4:ea60 @ bus 000, dev 003: CP2102 USB to UART Bridge Controller
Model: CP2102
Vendor ID: 10c4
Product ID: ea60
Name: CP2102 USB to UART Bridge Controller
error: failed to read cfg item 3704: Other error

I can set a serial number:

# ./cp210x-cfg -S $(pwgen -s 10)
ID 10c4:ea60 @ bus 000, dev 003: CP2102 USB to UART Bridge Controller
Model: CP2102
Vendor ID: 10c4
Product ID: ea60
Name: CP2102 USB to UART Bridge Controller
Serial: 8OoOE8NmD5

And I can tell cp210x-cfg to set the serial number back to an empty string, which returns the error again:

# ./cp210x-cfg -S ""
ID 10c4:ea60 @ bus 000, dev 003: CP2102 USB to UART Bridge Controller
Model: CP2102
Vendor ID: 10c4
Product ID: ea60
Name: CP2102 USB to UART Bridge Controller
error: failed to read cfg item 3704: Other error

But the Python cp210x-program does report the empty serial number, without error:

# python2 ./cp210x-program
[usb device]
product_string = CP2102 USB to UART Bridge Controller
serial_number = 
...

So it looks like everything functions correctly, except for emitting the error message.

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

1 participant