-
-
Notifications
You must be signed in to change notification settings - Fork 173
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
USB String Descriptor requests/Response not appearing in Wireshark #129
Comments
Did you start capture before connecting device or after? |
Hi and Thank you TM. --START CAPTURE BEFORE PLUG IN -- |
I ALWAY start capture and AFTER THAT I plug in device . Or I would not see any of enumerations. Sorry. Not enough sleep obviously. The device works properly other than this oddity. |
You won't see start of frame because USBPcap is capturing URBs not actual USB packets. |
AH yes.. Back side via software and what the driver can see --versus what a ON THE WIRE sniffer can see. |
So I shop around quickly and find this little descriptor dumper. Further amazed and befuddled I select it and it tells me to please unplug the device and plug it back in I get this: I get the same stuff on Wireshark as before. I have been told at times that I can break a steel wedge while playing in a sandpile. I now understand that more perfectly. Any ideas? |
Still no progress after trying several different tests. Can't explain why Windows see all the data when Wireshark never shows any string requests or response. ? |
Do you see any unknown transfers (transfer type 0xFF)? Another option can be that the strings are retrieved before FDO is created. Only ST board I have is 32F746GDISCOVERY. Can you check if it happens on such board and prepare firmware hex for me to try? |
Wireshark does not capture - USBPcap does (after FDO is created). Device can have some effect on FDO creation (it is the VID/PID and/or class that is required for host to select driver) but it mostly boils down to host (Windows) driver for the device. The photo matches discovery board that I have. It has two USB device ports - one full speed the other one high speed. Only one can be active at a time and which one is used depends on loaded firmware. |
Yeah I worded it broadly. I've use USBPcapCMD to capture by itself and then view the PCAP file in WS. I'm so scattered at the moment but I was going to see if there was another USB CAPTURE add in to capture with but I just can't spin all the plates . |
Time has yanked the rug from under my feet today I'm afraid. I will have to be away from my Lab environment for some time and working only from the limits of remote access. The training I was to provide will be delayed. And I won't be able to do this Firmware generating gymnastics for a few days now until I get settled in to a different environment. The F746 examples do not have a CDC STANDALONE DEVICE EXAMPLE. That's a killer for having something QUICK but I don't know how bad. It means I have to find one of the F7xx projects that DOES have that example "APPLICATION" (IF ONE EXISTED - and it does - 756G_Eval). Then see what might need to be changed to suite the other F746G Discover PCB. |
I've used Wireshark 4.0.3 and now the previous 3.xxx and still the same results. WIn 10 Enterprise. WIreshark 4.0.3. Device: 100% functional apparently VID 0483. PID 5740. ST micro controller as CDC device using VCP. I see DEVICE DESC request and response. I see CONFIG request for 9 bytes and response. I see second CONFIG REQUEST for ALL bytes this time and the expected response.I see STATUS request and response. I see a THIRD (Surprise) CONFIG DESC request and that same response. I see SET CONFIG. I see SET INTERFACE and lastly I see line coding requests and responses. BUT ---- I DO see the expected string information when Windows Device manager. As in iProduct and the text is readable in Device manager under DETAIL- Bus Reported Device Description. It is the expected TEXT. I tried using Wireshark native and USBPcapCMD by itself and then viewing the PCAP file with Wireshark. Also don't see Microsoft specific descriptor requests. Device descriptor response shows non-zero values for all 3 of iManufacturer, iProduct and iSerialNumber index values
NO REQUESTS FOR STRING DESCRIPTORS SHOW UP in Wireshark but Windows gets the data... Baffled.....
Help?
The text was updated successfully, but these errors were encountered: