This is a static, read-only archive of Wireshark Q&A. Older questions and answers from October 2017 and earlier can be found at osqa-ask.wireshark.org.
0

Decode as USB-PTP not available

asked Dec 12 '25

I have a camera I'm working with over USB with MTP/PTP. Yesterday when I used a remote control application on my computer it was correctly interpreting the packets as USB-PTP and showing a lot of helpful information. Today, it is not recognizing them and there is no way I've found to "force" it. I've tried disabling everything in protocols except USB-PTP, the Decode As menu in the software, as well as starting Wireshark from the command line with wireshark --only-protocols usb-ptp.

I have a saved dump from yesterday that worked and one from today that is not working if it's helpful.

Comments

Sample capture attached to: 8431: New Dissector Patch - USB PTP / MTP

epan/dissectors/packet-usb-ptp.c:

    dissector_add_uint("usb.bulk", IF_CLASS_IMAGE, usb_ptp_dissector_handle);

From packet-usb.h: #define IF_CLASS_IMAGE 0x06

Do you have packets that match usb.bInterfaceClass == 0x06 in the second capture?

User 2763 ( Dec 12 '25 )

From @User 88862 via Discord, since he is unable to comment himself for some as-yet unknown reason:

"No, in the second (failed) capture, they are being detected as [bInterfaceClass: Unknown (0xffff)] (which is incorrect, it is a still imaging device). They show as [bInterfaceClass: Imaging (0x06)] in the capture file that worked yesterday."

User 1680 ( Dec 12 '25 )

2 Answers

0

answered Dec 12 '25

0

answered Dec 12 '25

Try using a new "default" profile, select it using the profile options at the bottom right.

Comments

From @User 88862 via Discord, since he is unable to comment himself for some as-yet unknown reason:

"I managed to create a new profile for USB-PTP. However when I go to Edit -> Configuration Profiles..., the only thing I'm seeing that might be relevant is "Auto Switch Filter", which seems like it would be relevant if I was able to get "Decode As..." to work, but I couldn't find the right setting there."

User 1680 ( Dec 12 '25 )
cc-by-sa Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.