groupgets / purethermal1-uvc-capture

USB Video Class capture examples for PureThermal 1 / PureThermal 2 FLIR Lepton Dev Kit
124 stars 81 forks source link

multiple PT usage #31

Open uni23 opened 4 years ago

uni23 commented 4 years ago

Hi All. I'm trying to use multiple Purethermal2 + Lepton3.5 by usb.

The purethermal1-uvc-capture/python/uvc-deviceinfo.py was executed successfully using only one PT.

Is there any way to use multiple PT2?

When I put multiple PT2 using USB, (lsusb command)

Those have same ID (PT_USB_VID, PT_USB_PID) like

Bus 001 Device 017 : ID 1e4e:0100 Cubeternet Webcam Bus 001 Device 019 : ID 1e4e:0100 Cubeternet Webcam

In uvc-radiometry.py and uvctypes.py, PT_USB_VID and PT_USB_PID are used to check whether it is PT.

However I cannot find anything about "Device". How can I choose Device 017 or Device 019 using uvc-deviceinfo.py?

kekiefer commented 4 years ago

You have two options that are immediately obvious. First, you could specify the serial number in the last argument to uvc_find_device, though this is a little inflexible. Second, you could try to use uvc_get_device_list (https://ken.tossell.net/libuvc/doc/group__device.html#gac90c5f47d143fa3843ec464d2401241c) which will return an array of devices. You'll just need to work out how to handle the uvc_device_t *** with ctypes.

hawklu0307 commented 4 years ago

I also found the same issue and follow your suggestion to use camera serial number, I success to execute uvc_device_find and open the uvc_device, but second camera alaways happen uvc_start_streaming failed and return -99. each alone camera is normal, Do you have idea or suggest for this issue?

hawklu0307 commented 4 years ago

I also found the same issue and follow your suggestion to use camera serial number, I success to execute uvc_device_find and open the uvc_device, but second camera alaways happen uvc_start_streaming failed and return -99. each alone camera is normal, Do you have idea or suggest for this issue?

I don't know what reason, but I succeed to open dual PT2 on Jetson Nano platform. Raspberry Pi 4 still cannot open dual PT2..... 2344738

kekiefer commented 4 years ago

What firmware do you have on your PT board? See #17

hawklu0307 commented 4 years ago

PT板上有什麼固件?參見#17

1.3.0

Pulso007 commented 1 year ago

I also found the same issue and follow your suggestion to use camera serial number, I success to execute uvc_device_find and open the uvc_device, but second camera alaways happen uvc_start_streaming failed and return -99. each alone camera is normal, Do you have idea or suggest for this issue?

I don't know what reason, but I succeed to open dual PT2 on Jetson Nano platform. Raspberry Pi 4 still cannot open dual PT2..... 2344738

How do you pass the serial number to the function "res = libuvc.uvc_find_device(ctx, byref(dev), PT_USB_VID, PT_USB_PID, 0)"