Menu

#1950 New Device (VID=3474 and PID=0020)

closed
None
1
2025-06-17
2025-06-05
Joe Doe
No

This is a thermal imaging camera, brand TOPDON, model TC004 Mini.

lsusb shows it as "ID 3474:0020 Raysentek Co.,Ltd Raysentek MTP"

Full lsusb -v output is attached along with the mtp-detect output.

I was able to access it using this:

{ "abc", 0x3474, "123", 0x0020, DEVICE_FLAG_PROPLIST_OVERRIDES_OI}

This flag was suggested by ChatGPT and necessary to prevent a hang when downloading files. I don't know how to tell what other flags it may need. ChatGPT suggested more but none of the others seemed to make any difference.

I'm not familiar with how these tools normally behave so I'm going to be a little verbose here so that if I'm missing something then you can spot it:

The examples/mtp-* tools indicate that they are detecting it as an android device and applying those flags. However, I tried defining DEVICE_FLAGS_ANDROID_BUGS as 0 and this seems to cause no change in behavior either.

There's also a "ERROR: Could not close session!" which I tried DEVICE_FLAG_FORCE_RESET_ON_CLOSE and DEVICE_FLAG_DONT_CLOSE_SESSION in response to, but neither seems to have any effect. This error doesn't seem to cause any issues though.

I also tried DEVICE_FLAG_CAPTURE and, since I couldn't find anything in examples that seemed like it would attempt this, ChatGPT helped me patch libmtp to add a function to send raw commands, and then write a test program to use it, but the output of it suggests that the camera doesn't support this. I can't rule out that ChatGPT and I may not know what we're doing, but I was assuming from the start that the camera doesn't support this, so I'm not surprised by the result. However, if there is actually an example program to trigger an image capture then maybe I should try it to make sure it doesn't work.

Anyway, just to be clear, I can use examples/mtp-files to list files, and examples/mtp-connect to download and delete the files, so it does work.

2 Attachments

Discussion

  • Marcus Meissner

    Marcus Meissner - 2025-06-17
    • status: open --> closed
    • assigned_to: Marcus Meissner
     
  • Marcus Meissner

    Marcus Meissner - 2025-06-17

    thanks for the report.

    I have however added it to libgphoto2 instead of libmtp as its a camera.

     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB