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

FTDI 2232H based devices don't show up #33

Closed
tsailer opened this issue Jan 31, 2017 · 38 comments
Closed

FTDI 2232H based devices don't show up #33

tsailer opened this issue Jan 31, 2017 · 38 comments

Comments

@tsailer
Copy link

tsailer commented Jan 31, 2017

FTDI 2232H based devices (VID 0403 PID 6010) don't show up in UsbDkController.exe -n

The following is a trace from when attaching the FTDI device. I fear it's quite empty...
https://sailer.fedorapeople.org/trace.zip

This is with UsbDk_1.0.15_x64

@dmitryfleytman
Copy link
Contributor

dmitryfleytman commented Jan 31, 2017

The log is not empty.

@dmitryfleytman
Copy link
Contributor

@tsailer, the log is short indeed. Is it a log of device attach (physical plug-in) or enable via device manager?

@tsailer
Copy link
Author

tsailer commented Jan 31, 2017

This is a physical plug in. The device is already configured and Windows just loads the FTDI driver

@dmitryfleytman
Copy link
Contributor

I don't see bus re-enumeration events. It looks like UsbDk was not properly installed. Did you use MSI package to install it? Did installer ask to reboot the system after installation?

@tsailer
Copy link
Author

tsailer commented Jan 31, 2017

I did use MSI. And I rebooted (I think it asked, but I did anyway). Then when it didn't work I did subdkcontroller -u and then usbdkcontroller -i

@dmitryfleytman
Copy link
Contributor

dmitryfleytman commented Jan 31, 2017

Could you please check in regedit, that

HKLM\System\CurrentControlSet\Control\Class\{36FC9E60-C465-11CF-8056-444553540000}\ UpperFilters

contains string "UsbDk"? Is there anything else except UsbDk?

Also, what is your USB controller? Could you post dump of UsbView output (https://github.com/daynix/UsbDk/blob/master/Documentation/UsbInfo.txt)?

@tsailer
Copy link
Author

tsailer commented Jan 31, 2017

See for yourself. Spoiler: UpperFilters is UsbDk.

ftdi.reg.txt

@dmitryfleytman
Copy link
Contributor

dmitryfleytman commented Jan 31, 2017

Ok, could you please post dump of UsbView. With your device attached, of course.

@tsailer
Copy link
Author

tsailer commented Jan 31, 2017

Still downloading the SDK, will take at least one more hour

@tsailer
Copy link
Author

tsailer commented Jan 31, 2017

Intel Mobile 5th Gen EHCI

@tsailer
Copy link
Author

tsailer commented Jan 31, 2017

usbview segfaults on dump (it starts up with the GUI window though)

@tsailer
Copy link
Author

tsailer commented Jan 31, 2017

usbview1

@dmitryfleytman
Copy link
Contributor

dmitryfleytman commented Jan 31, 2017 via email

@tsailer
Copy link
Author

tsailer commented Feb 1, 2017

The problem is, Save from the GUI makes USBView crash too.

Without the docking station, save as text at least works, save as XML still crashes it

Without the FTDI device: USBViewAll.txt

With the FTDI device: USBViewAll2.txt

@dmitryfleytman
Copy link
Contributor

Thanks!

Could you also provide installation log of UsbDk? You need to uninstall it with "usbdkcontroller -u" and the collect log produced during "usbdkcontroller -i"?

@tsailer
Copy link
Author

tsailer commented Feb 1, 2017

Here you go: usbdkinstall.txt

Uninstall did not produce any log entries

@dmitryfleytman
Copy link
Contributor

I don't see any UsbDk log entries there. Did you use the same UsbDk logging script?

@tsailer
Copy link
Author

tsailer commented Feb 1, 2017

No just usbdkcontroller -i. What script do I need to use?

@dmitryfleytman
Copy link
Contributor

I mean script for tracing, UsbDkTraceToFile.bat.

@tsailer
Copy link
Author

tsailer commented Feb 1, 2017

https://sailer.fedorapeople.org/trace1.zip

Both uninstall, then install

@dmitryfleytman
Copy link
Contributor

Parsed log is here
Thanks, I'll investigate it.

@tsailer
Copy link
Author

tsailer commented Feb 1, 2017

Similar to Issue #21 ? This is Windows 7 (x64) too.

@dmitryfleytman
Copy link
Contributor

Hi @tsailer ,

I did a change in UsbDk that should fix the problem you observe and prepared a test build.
Could you please give it a try and collect a new install and plug-in traces in case it does not work?

You will need to enable test signing mode on your system in order to load this driver, see instructions here
Also, please uninstall original UsbDk version before installing this one.

@tsailer
Copy link
Author

tsailer commented Feb 2, 2017

Enumerate USB devices
Found 6 USB devices:
0. FilterID: 1, Port: 1, ID: 8087:8001, Configs: 1, Speed: 3
USB\VID_8087&PID_8001 1
Descriptor for configuration #0: size 25

  1. FilterID: 3, Port: 3, ID: 8087:0a2a, Configs: 1, Speed: 2
    USB\VID_8087&PID_0A2A 3
    Descriptor for configuration #0: size 177
  2. FilterID: 3, Port: 6, ID: 1bcf:2b8d, Configs: 1, Speed: 3
    USB\VID_1BCF&PID_2B8D 6
    Descriptor for configuration #0: size 737
  3. FilterID: 3, Port: 7, ID: 0a5c:5804, Configs: 1, Speed: 2
    USB\VID_0A5C&PID_5804 0123456789ABCD
    Descriptor for configuration #0: size 269
  4. FilterID: 5, Port: 1, ID: 0403:6010, Configs: 1, Speed: 3
    USB\VID_0403&PID_6010 AX00000003
    Descriptor for configuration #0: size 55
  5. FilterID: 9, Port: 1, ID: 0403:6010, Configs: 1, Speed: 2
    FTDIBUS\VID_0403+PID_6010+AX00000003B 0000
    Descriptor for configuration #0: size 32

Much better, thanks !

@tsailer
Copy link
Author

tsailer commented Feb 2, 2017

There is one weirdness:

When trying to use the FTDI supplied driver with UsbDk installed, I get:
Driver file operation error. DeviceIoControl failed (The system cannot find the file specified. Error code = 2)
But it still seems to work, after a couple of seconds delay. This output must come out of the FTDI supplied DLL

@dmitryfleytman
Copy link
Contributor

This printout is from UsbDk API DLL, If you collect UsbDk trace we will know what happens exactly.

@dmitryfleytman
Copy link
Contributor

Original issue fixed by db95b46

@tsailer
Copy link
Author

tsailer commented Feb 2, 2017

@dmitryfleytman
Copy link
Contributor

Parsed log

@dmitryfleytman
Copy link
Contributor

dmitryfleytman commented Feb 2, 2017

The problem is:

[3]1EB8.01B8::02/02/2017-14:58:28.804 [UsbDk]CUsbDkControlDevice::AddRedirectionToSet Adding new redirection
[3]1EB8.01B8::02/02/2017-14:58:28.804 [UsbDk]CUsbDkRedirection::Dump Redirect: DevID: FTDIBUS\VID_0403+PID_6010+AX00000003B, InstanceID: 0000
[3]1EB8.01B8::02/02/2017-14:58:28.804 [UsbDk]CUsbDkControlDevice::AddRedirectionToSet failed. Cannot redirect unknown device.

Client tries to open a device by name FTDIBUS\VID_0403+PID_6010+AX00000003B. This name is not proper USB device name receives from UsbDk enumeration results.

Not sure why this happens, but UsbDk has nothing to do with it.

I'm closing this issue because original problem is fixed. Please open a new one if there are other problems with this device.

@tsailer
Copy link
Author

tsailer commented Feb 2, 2017

It's working, just the message is irritating. So could you silence the message in the release build? Thanks.

@dmitryfleytman
Copy link
Contributor

This message is intended to go to the debug stream. Is it printed on the console? If so, it's client application prints it.
I would avoid silencing it because it actually indicates a real problem with client's code.

@tsailer
Copy link
Author

tsailer commented Feb 2, 2017

It ends up in the debug stream, but also on stdout. I cannot see where the client application could do that, it never does WaitForDebugEvent*

@dmitryfleytman
Copy link
Contributor

dmitryfleytman commented Feb 2, 2017 via email

@tsailer
Copy link
Author

tsailer commented Feb 3, 2017

UsbDkHelper.cpp:42

static void printExceptionString(const char *errorStr)
{
auto tString = string2tstring(string(errorStr));
OutputDebugString(tString.c_str());
tcout << tString;
}

So besides outputting to the debug stream, UsbDk also outputs it via stdout.

@dmitryfleytman
Copy link
Contributor

Printout removed by d47bd4d

@tsailer
Copy link
Author

tsailer commented Feb 14, 2017

Thanks for the printout removal!

When do you plan to release an installer with that changeset included? Thanks!

@dmitryfleytman
Copy link
Contributor

We are going to release a new version next week after a few more fixes pushed.

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

2 participants