groupgets / GetThermal

Cross-platform USB thermal camera viewer
MIT License
233 stars 92 forks source link

Enable to get image using Pure Thermal 2 camera #8

Closed Matthieu-71 closed 6 years ago

Matthieu-71 commented 6 years ago

We're running VBox with openSuse 42 and we're unable to get an image from our Pure Thermal 2 camera with a Lepton 3.5 chip.

This is a screenshot of the console and terminal attempts to run the program. As you can see from the terminal we are getting a message saying, "No such device (-4)". We're running as sudo.

image

Kheirlb commented 6 years ago

Try pushing your flir camera into the PT2 socket a little bit. When powered properly, you should see the shutter close every now and then. And then unplug the PT2, re-plug it in, and restart GetThermal. Good luck.

On Mon, Jul 9, 2018 at 2:06 PM, Matthieu-71 notifications@github.com wrote:

We're running VBox with openSuse 42 and we're unable to get an image from our Pure Thermal 2 camera with a Lepton 3.5 chip.

This is a screenshot of the console and terminal attempts to run the program.

[image: image] https://user-images.githubusercontent.com/39201742/42475858-fa454e88-8399-11e8-92d0-360dde071f7d.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/groupgets/GetThermal/issues/8, or mute the thread https://github.com/notifications/unsubscribe-auth/AV7_467tAEYQa5bDg0E3WDbPKToLdQMdks5uE8XdgaJpZM4VIY9o .

-- Aerospace Engineering Major Computer Science Minor San Diego State University (530) 526-7030 | kheirlbparks@gmail.com

kekiefer commented 6 years ago

That's correct. But first you must figure out why lsusb doesn't list the camera. You will have to do something in vbox to associate the camera with the vm.

Matthieu-71 commented 6 years ago

So we added a filter to the vbox and the camera now appears under lsusb. We're get a different error saying, "Access denied (-3)".

image

kekiefer commented 6 years ago

Then you must run as sudo or create a udev rule to permit your login user to open these cameras.

Matthieu-71 commented 6 years ago

We ran GetThermal as sudo, and also tried creating a udev rule. The error message has changed again, now says, "I/O Error (-1). Also, the device doesn't appear under lsusb after a failed attempt at running GetThermal. We have to plug it out and then back in each time; is that normal?

image

kekiefer commented 6 years ago

I'm not sure what would cause that problem, but it does smell a bit like a virtualbox problem. Maybe someone else has tried this?

I've used the PT board with VMware Fusion and Debian 9, Ubuntu 16, and Windows 10 VMs to do what you're doing, and it works fine (as long as I assign the physical USB device to the VM, and don't allow VMware to try and paravirtualize the device).

Matthieu-71 commented 6 years ago

So, after installing Ubuntu 16.04, we're still unable to obtain an image from GetThermal.

When we build GetThermal using qtcreator as sudo we get a multitude of warnings. We're using Vbox to run Ubuntu. The error message is the same as before.

image

kekiefer commented 6 years ago

If you're doubting your build, there are Linux Appimage binaries you can try. But this doesn't sound likely. The remaining factor is virtualbox. VMware workstation player is free, so you could try that.

Matthieu-71 commented 6 years ago

Hi, so we finally got an image from GetThermal. Seems like the debug folder that was created on a failed build was causing an issue.

We were able to get a feed from two cameras, but not three (yet). Thanks for your help and comments!

image

kekiefer commented 6 years ago

Great! Glad to see it working for you.

jsnain commented 5 years ago

Hallo, I connected my PT2 with FLIR lepton 3.5 and tried to access it on linux over uvc, but I get error on all app like GetThermal, guvcview,VLC. On GetThermal error is like this: dwMaxVideoFrameSize: 38400 dwMaxPayloadTransferSize: 962 bInterfaceNumber: 1 Estimated / selected altsetting bandwith : 18 / 962. start_streaming: I/O error (-1) Device closed

The led on PT2 blinks intermittently also during initially 5 minute shutter closes and opens. please help

kekiefer commented 5 years ago

This isn't a GetThermal issue or a PureThermal issue either, but rather an issue with your platform rejecting the isochronous bandwidth requested by the camera. But have a look at this comment for a firmware patch that should help when using the Y16 format: https://github.com/groupgets/purethermal1-firmware/issues/24#issuecomment-524177762

afocal-telecentric commented 4 years ago

hello, I downloaded the binary files for the Mac OS version; however, I can't see an image on GetThermal. Any suggestions on what could be happening are welcome.