bdDetect: Enrich USB serial data with info about USB device#15764
Conversation
|
Yes, I am about to test this likely tomorrow. |
|
Portable version of nvda_snapshot_pr15764-29937,d9a7c5be.exe, python console:
|
|
Yes, this is correct. I need to expand hwPortUtils but I at least know how.
|
|
Yes, it is "USB Serial Port", and usb serial converter bus reported device description is "Albatross Braille Display". Let me know if you need any additional information. |
|
I think the most recent commit should finally give us what's needed, namely |
|
Unfortunately albatross did not start, and it is not present in list of displays.
|
|
Have you performed the test step on the python console?
|
|
Yes I tested in python console getting those result. |
|
Ah I'm sorry, somehow I didn't get your test result. |
|
Pretty sure last commit eventually should get you going |
|
congratulations @LeonarddeR! `>>> import bdDetect
I am about to close #15693. |
|
Note that this pr doesn't yet contain a workaround for Albatross. Therefore I'd leave #15693 open and adapt it after merge of this pr. |
|
Thank you for information. I leave it open. |
ps. After reading your previous comment and then inspecting your initial comment I realized that your thought is that albatross driver is changed too. I realized it before writing my previous comment (which I am quoting in this comment). |
|
This pr does not yet improve the Albatross driver by itself. |
|
But albatross driver can query bus reported device description? |
|
Sure, after this is merged. |
| "devicePath": idd.DevicePath | ||
| }) | ||
| if _isDebug(): | ||
| log.debug("%r" % usbId) |
Co-authored-by: Sean Budd <seanbudd123@gmail.com>
See test results for failed build of commit c9ce3f98b6 |
|
The only way I could get rid of the c901 was by rewriting the if/elif statements into a match statement. |
That works only because |
|
In that case I prefer to revert the match statement. |
I don't think this is true - the function was still split up into listComPorts/_getBluetoothPortInfo which reduced complexity in listComPorts significantly, and I am fairly sure to the point of legitimate c901 removal in both functions. |
| "devicePath": idd.DevicePath | ||
| }) | ||
| if _isDebug(): | ||
| log.debug("%r" % usbId) |
Co-authored-by: Sean Budd <seanbudd123@gmail.com>
See test results for failed build of commit 1c32201dea |
Link to issue number:
Blocks #15693
Summary of the issue:
Many braille displays use a serial converter from FTDI with VID 0x403" and PID 0x6001. Given the weird nature of Albatross devices not being able to identify themselves on request, the Albatross driver is currently a disturbing factor in automatic detection.
Description of user facing changes
None.
Description of development approach
busReportedDeviceDescriptiondictionary entry.Testing strategy:
Testing with Albatross from @burmancomp would be appreciated.
It can be tested using
bdDetect.getConnectedUsbDevicesForDriver("albatross"). This should yield device matches with details about the underlying USB device.Known issues with pull request:
None known
Code Review Checklist: