Closed JimKnopfIoT closed 1 month ago
"I tried to run the Infiray P2 Pro on Windows WSL2 using Ubuntu 22.04."
Another configuration never tried before.
The info menu is showing [SRC: ERROR] indicating it can't read from the camera.
The info menu is also showing "Freeze" which is short for "Freeze Frame" indicating the USB connection was lost.
The -273.1 C temps are Zero Kelvin meaning empty thermal frame data.
The blue background is the 1st entry ( coldest color ) in the colormap.
float kelvin2Celsius(unsigned short kelvin) { // # LeoDJ's Kelvin conversion algorithm, post #216
return ( ((float)kelvin / 64.0) - 273.15 );
}
Did you get this error message on stdout / stderr ?
ERROR: Frame is empty, switching to freeze frame.
Fix camera connection and then press 'e' to exit freeze frame.
This can happen if there are loose USB cable connections (usually at the camera side).
If so, try disconnecting and reconnecting your USB cable (at both ends) and then press 'e' in the window to tell the app to try and re-establish USB connections.
If connections are re-established, "Freeze Frame" will switch back to "Live Video" mode (after pressing the 'e' key).
Just looked up what WLS2 is.
WARNING: Running Linux as a guest OS in a VM may not work because of the way the host presents the USB device data to the guest OS.
I tried this using a Linux VirtualBox Host and a RPi Desktop guest OS.
The app complied and ran, but there was no valid thermal data. The VM changed the video data being presented to the guest app. In my case, VirtualBox passed lossy compressed video data (vs raw lossless video data) to the thermal camera app so the thermal data was forever scathed and unusable.
Closing issue because app is running as a client of a guest OS in a virtual machine. Virtual machines can and will alter the USB video feed being passed to the guest OS, thus destroying the thermal data.
Verified working natively on Ubuntu 24.04.
I tried to run the Infiray P2 Pro on Windows WSL2 using Ubuntu 22.04. Installation was easy, getting it the USB Camera to work as /dev/video0 was tricky. I had to compile my own kernel and use a .wslconfig file in my Windows home dir to point to that kernel. I attached the Camera in Powershell using usbipd list usbipd bind -b 2-6 usbipd attach --wsl --busid 2-6
Now in WSL2, v4l2-ctl --list-devices --all show me this:
I can start using sudo ./redux -d 0. The screen is blue and show -273°C, a bit too cold.![geany_T2W4j8c6gz](https://github.com/92es/Thermal-Camera-Redux/assets/48170499/7deebdbd-1da6-4fee-843a-4b0088bd06ab)