Author Topic: Question about FLIR One for Android  (Read 263699 times)

0 Members and 3 Guests are viewing this topic.

Offline da-nie

  • Contributor
  • Posts: 44
  • Country: ru
Re: Question about FLIR One for Android
« Reply #325 on: March 23, 2017, 06:18:08 pm »
Thank you, Thomas123! In your program flir8p1c is a function of the temperature calculation. I used it. Now the program for QNX 6.3 is like this. :)

 

Offline da-nie

  • Contributor
  • Posts: 44
  • Country: ru
Re: Question about FLIR One for Android
« Reply #326 on: March 27, 2017, 07:03:46 pm »
Preview version! Sometimes works for Windows!

I create driver FLIR One Gen 2 for Windows XP with WinDDK!
After calibration does not work!

Uses:
0) Find WdfCoInstaller01009.dll (its not in archive! Big size...)
1) Flir One Gen 2 On.
2) Wait for green LED.
3) Start FlirOneControl.exe.
4) In path Image must created files ".tga". ( If everything worked :) - Does not always work )
5) Fun. :)

The program used ReadFile in synchronously mode. After closing the window FlieOneControl in the task manager, close the application if it remains working.


 

Offline da-nie

  • Contributor
  • Posts: 44
  • Country: ru
Re: Question about FLIR One for Android
« Reply #327 on: March 28, 2017, 09:35:55 am »
Stable version for Windows XP!

 ^-^

Note: If device removed, thern restart programm FlirOneControl!
« Last Edit: March 28, 2017, 06:07:04 pm by da-nie »
 

Offline frenky

  • Supporter
  • ****
  • Posts: 1003
  • Country: si
    • Frenki.net
Re: Question about FLIR One for Android
« Reply #328 on: March 28, 2017, 10:44:20 am »
Good job! :-+
 

Offline tomas123

  • Frequent Contributor
  • **
  • Posts: 832
  • Country: de
Re: Question about FLIR One for Android
« Reply #329 on: March 29, 2017, 03:37:15 pm »
@da-nie

I need some helps for the neccesary steps for running the FlirOneControl.exe (Windows 10).

I found a download of WdfCoInstaller01009.dll here
https://github.com/buaabyl/vmulti/tree/master/sys
and put the dll in your folder \FlirOneForWindows\FlirOneControl\Release.
Code: [Select]
> cd FlirOneForWindows\FlirOneControl\Release
> md5sum WdfCoInstaller01009.dll
a9970042be512c7981b36e689c5f3f9f *WdfCoInstaller01009.dll
But Procmon.exe from Sysinternals doesn't show any access of FlirOneControl.exe to WdfCoInstaller01009.dll.

There are three *.inf driver inside "\Driver for FLIR One Gen 2 for XP".
Code: [Select]
flironegen2_fileio.inf
flironegen2_frame.inf
flironegen2_iap.inf
Do I need to install these drivers?

Offline da-nie

  • Contributor
  • Posts: 44
  • Country: ru
Re: Question about FLIR One for Android
« Reply #330 on: March 29, 2017, 04:11:18 pm »
There is a problem. I use WinDDk 7.1.0. This WDK can not create a driver for Windows 10.

Quote
The Microsoft Windows Driver Kit (WDK) Version 7.1.0 is an update of the WDK 7.0.0 release and contains a set of tools, code samples, documentation, compilers, headers, and libraries that driver developers can use to create drivers for Windows 7, Windows Vista, Windows XP, Windows Server 2008 R2, Windows Server 2008, and Windows Server 2003.

WDK 10 i do not have. WDK 10 is integrated with Microsoft Visual Studio 2015. I not use Microsoft Visual Studio 2015, I use VC 6.  8) and Windows XP ( Yes, I'm retrograde  8) ). I can compile the driver for Windows 7. But i unknow, how to make an inf-file for Windows 7.  :-\ I use example for usb device in WDK 7.1.0. Today I'll try to make an inf for Windows 7 x86.

I do not know when I'll try WDK 10. But you can install WDK 10 and compile the driver. Maybe there will not be any changes to the program.  ::)

Quote
Do I need to install these drivers?

Yes, but this inf only XP...
 

Offline da-nie

  • Contributor
  • Posts: 44
  • Country: ru
Re: Question about FLIR One for Android
« Reply #331 on: March 29, 2017, 06:05:12 pm »
I compile driver for Windows 7 (x86,amd64,ai64). But I can not do inf-file. Does not work. Windows reports that the driver was not found.
And Windows does not see three devices! He sees only one device. Maybe that's why I did not install the driver.
By the way, WdfCoInstaller01009.dll needs different for different drivers (x86, amd64, ai64)!

Maybe someone can install drivers for Windows 7 and write an inf-file...


Update! On x64 platforms, a digital signature of the driver is required! Maybe, Therefore, the driver is not installed. On the Internet write that it can be fixed.
« Last Edit: March 29, 2017, 06:23:21 pm by da-nie »
 

Offline da-nie

  • Contributor
  • Posts: 44
  • Country: ru
Re: Question about FLIR One for Android
« Reply #332 on: March 30, 2017, 07:43:31 pm »
In Windows 7 x86 Flir One is "USB Composite Device", but not as three devices (how in XP). How to separate them?  |O I do not know what to do to get three devices.
Devices ID:
USB\VID_09CB&PID_1996&MI_00 - iAP
USB\VID_09CB&PID_1996&MI_01 - FileIO
USB\VID_09CB&PID_1996&MI_02 - Frame

In Windows 7 devices ID: USB\VID_09CB&PID_1996 -  |O
 

Offline da-nie

  • Contributor
  • Posts: 44
  • Country: ru
Re: Question about FLIR One for Android
« Reply #333 on: April 05, 2017, 06:25:27 pm »
Updated programm for Windows XP. :)

Windows 7 is not supported...



 

Offline da-nie

  • Contributor
  • Posts: 44
  • Country: ru
Re: Question about FLIR One for Android
« Reply #334 on: April 10, 2017, 05:03:42 pm »
Updated version for Windows XP. :) (For Windows the most stable work)

 
The following users thanked this post: joe-c

Offline joe-c

  • Frequent Contributor
  • **
  • Posts: 350
  • Country: de
    • Joe-c.de
Re: Question about FLIR One for Android
« Reply #335 on: April 10, 2017, 09:22:46 pm »
if i have again a FLIR One i will try that program.
Freeware Thermal Analysis Software: ThermoVision_Joe-C
Some Thermal cameras: Kameras
 

Offline Niels2

  • Newbie
  • Posts: 7
  • Country: de
Re: Question about FLIR One for Android
« Reply #336 on: April 12, 2017, 04:51:53 pm »
Hello, I know it is a really noob question for you guys, but mayby somebody can help me and tell me how to compile the .c files ? I wanted to use the flir one cam for android on my raspberry pi3 to stream the picture together with a pi cam over wifi, but unfortunalty I don`t have the skills for it... I tried several .c files like the flir8l.c, the flir8l3.c and the flir8p1.c for example. I`m using the preinstalled Geany software on the raspberry. When I want to compile (F8), an error appears for missing the libusb.h.
 

Offline da-nie

  • Contributor
  • Posts: 44
  • Country: ru
Re: Question about FLIR One for Android
« Reply #337 on: April 12, 2017, 05:29:21 pm »
1) sudo apt-get install libusb [ENTER] or sudo apt-get install libusb-1.0-0-dev [ENTER]
2) make [ENTER] in project "flir...c" directory.

 
The following users thanked this post: Niels2

Offline Niels2

  • Newbie
  • Posts: 7
  • Country: de
Re: Question about FLIR One for Android
« Reply #338 on: April 12, 2017, 11:39:42 pm »
Thanks da-nie, I allready installed the libhub, it seems to work with "make" in Geany (shift+F9) and I guess that I finally understood how to compile in the Linux command line... .
 

Offline Niels2

  • Newbie
  • Posts: 7
  • Country: de
Re: Question about FLIR One for Android
« Reply #339 on: April 13, 2017, 01:46:14 pm »
After trying several versions, I think I got the camera somehow running, it looks like the list below. I run flir8l3 atm. But unfortunately I am unable to get a picture on the screen. When I run guvcview I got an error message: no video device found. I can choose between 3 dummy video devices, but when I click on the "ok" button the error message box disappear and nothing happens...   :'(
Btw., is there something like the "Windows" snipping tool in Rasbian implemented?

Quote
: Thu Apr 13 13:26:20 2017
 bulk read EP 0x81, actual length 100
HEX:
 80 00 64 00 00 00 00 00 00 00 00 00 00 00 00 00 1e 00 00 00 01 00 01 00 9e 00 76 00 07 00 2c 00 0e 00 a4 01 3f 00 1f 00 0f 00 14 00 00 00 00 00 07 00 00 00 03 00 00 00 00 00 00 00 00 00 00 00 3a 00 cd c3 d0 43 b3 0f f1 77 85 09 06 00 20 ca 15 00 e8 03 00 00 60 61 02 00 85 09 06 00 20 ca 15 00 e8 03
STRING:
?d?v,??:???C??w? ??`a? ?
#00000527 85/10 fps:{"shutterState":"ON","shutterTemperature":307.940002441406,"usbNotifiedTimestamp":1185381769.56599,"usbEnqueuedTimestamp":1185381769.56773,"ffcState":"FFC_VALID_RAD"}
#00000528 84/10 fps:{"shutterState":"ON","shutterTemperature":307.950012207031,"usbNotifiedTimestamp":1185381769.68106,"usbEnqueuedTimestamp":1185381769.68236,"ffcState":"FFC_VALID_RAD"}
#00000529 84/10 fps:{"shutterState":"ON","shutterTemperature":307.950012207031,"usbNotifiedTimestamp":1185381769.79381,"usbEnqueuedTimestamp":1185381769.79525,"ffcState":"FFC_VALID_RAD"}
#00000530 84/10 fps:{"shutterState":"ON","shutterTemperature":307.950012207031,"usbNotifiedTimestamp":1185381769.9109,"usbEnqueuedTimestamp":1185381769.91248,"ffcState":"FFC_VALID_RAD"}
#00000531 87/10 fps:{"shutterState":"ON","shutterTemperature":307.959991455078,"usbNotifiedTimestamp":1185381770.02179,"usbEnqueuedTimestamp":1185381770.02322,"ffcState":"FFC_VALID_RAD"}
#00000532 85/10 fps:{"shutterState":"ON","shutterTemperature":307.959991455078,"usbNotifiedTimestamp":1185381770.13591,"usbEnqueuedTimestamp":1185381770.13732,"ffcState":"FFC_VALID_RAD"}
#00000533 88/10 fps:{"shutterState":"ON","shutterTemperature":307.959991455078,"usbNotifiedTimestamp":1185381770.25076,"usbEnqueuedTimestamp":1185381770.25231,"ffcState":"FFC_VALID_RAD"}
#00000534 86/10 fps:{"shutterState":"ON","shutterTemperature":307.959991455078,"usbNotifiedTimestamp":1185381770.3639,"usbEnqueuedTimestamp":1185381770.36531,"ffcState":"FFC_VALID_RAD"}
#00000535 86/10 fps:{"shutterState":"ON","shutterTemperature":307.959991455078,"usbNotifiedTimestamp":1185381770.47768,"usbEnqueuedTimestamp":1185381770.4791,"ffcState":"FFC_VALID_RAD"}
#00000536 86/10 fps:{"shutterState":"ON","shutterTemperature":307.959991455078,"usbNotifiedTimestamp":1185381770.59205,"usbEnqueuedTimestamp":1185381770.59352,"ffcState":"FFC_VALID_RAD"}
#00000537 86/10 fps:{"shutterState":"ON","shutterTemperature":307.959991455078,"usbNotifiedTimestamp":1185381770.70577,"usbEnqueuedTimestamp":1185381770.70718,"ffcState":"FFC_VALID_RAD"}
#00000538 86/10 fps:{"shutterState":"ON","shutterTemperature":307.959991455078,"usbNotifiedTimestamp":1185381770.81978,"usbEnqueuedTimestamp":1185381770.82159,"ffcState":"FFC_VALID_RAD"}
#00000539 85/10 fps:{"shutterState":"ON","shutterTemperature":307.959991455078,"usbNotifiedTimestamp":1185381770.93474,"usbEnqueuedTimestamp":1185381770.93727,"ffcState":"FFC_VALID_RAD"}
#00000540 86/10 fps:{"shutterState":"ON","shutterTemperature":307.970001220703,"usbNotifiedTimestamp":1185381771.04869,"usbEnqueuedTimestamp":1185381771.05,"ffcState":"FFC_VALID_RAD"}
#00000541 85/10 fps:{"shutterState":"ON","shutterTemperature":307.970001220703,"usbNotifiedTimestamp":1185381771.16167,"usbEnqueuedTimestamp":1185381771.16308,"ffcState":"FFC_VALID_RAD"}
#00000542 85/10 fps:{"shutterState":"ON","shutterTemperature":307.959991455078,"usbNotifiedTimestamp":1185381771.27668,"usbEnqueuedTimestamp":1185381771.27798,"ffcState":"FFC_VALID_RAD"}
#00000543 84/10 fps:{"shutterState":"ON","shutterTemperature":307.959991455078,"usbNotifiedTimestamp":1185381771.3896,"usbEnqueuedTimestamp":1185381771.39102,"ffcState":"FFC_VALID_RAD"}
#00000544 86/10 fps:{"shutterState":"ON","shutterTemperature":307.959991455078,"usbNotifiedTimestamp":1185381771.50327,"usbEnqueuedTimestamp":1185381771.50501,"ffcState":"FFC_VALID_RAD"}

 

Offline da-nie

  • Contributor
  • Posts: 44
  • Country: ru
Re: Question about FLIR One for Android
« Reply #340 on: April 13, 2017, 03:17:59 pm »
Change USB-port for FLIR One and disconnected all devices (without keyboard :) ).
In Raspberry Pi 3 FLIR One work unstable... libusb error and libusb timeout.

Your received data is normal. :) But this data is part full data.
 
The following users thanked this post: Niels2

Offline Niels2

  • Newbie
  • Posts: 7
  • Country: de
Re: Question about FLIR One for Android
« Reply #341 on: April 13, 2017, 08:09:37 pm »
Thanks again for your fast response da-nie, but this solution seems not working for me. Maybe this helps;
Code: [Select]
pi@raspberrypi:~ $ sudo guvcview
GUVCVIEW: couldn't open /root/.config/guvcview2/video0 for read: No such file or directory
libv4l2: error getting pixformat: Invalid argument
V4L2_CORE: ERROR opening V4L2 interface for /dev/video0
V4L2_CORE: Unable to find parent usb device.V4L2_CORE: Unable to find parent usb device.V4L2_CORE: Unable to find parent usb device.libv4l2: error getting pixformat: Invalid argument
V4L2_CORE: ERROR opening V4L2 interface for /dev/video4
libv4l2: error getting pixformat: Invalid argument
V4L2_CORE: ERROR opening V4L interface: Invalid argument

** (guvcview:13857): WARNING **: Couldn't connect to accessibility bus: Empty address ''
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
pi@raspberrypi:~ $ GUVCVIEW: couldn't open /root/.config/guvcview2/video1 for read: No such file or directory
libv4l2: error getting pixformat: Invalid argument
V4L2_CORE: ERROR opening V4L2 interface for /dev/video0
V4L2_CORE: Unable to find parent usb device.V4L2_CORE: Unable to find parent usb device.V4L2_CORE: Unable to find parent usb device.libv4l2: error getting pixformat: Invalid argument
V4L2_CORE: ERROR opening V4L2 interface for /dev/video4
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: Inappropriate ioctl for device
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: Inappropriate ioctl for device
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: Inappropriate ioctl for device
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: Inappropriate ioctl for device
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: Inappropriate ioctl for device
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: Inappropriate ioctl for device
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: Inappropriate ioctl for device
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: Inappropriate ioctl for device
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: Inappropriate ioctl for device
V4L2_CORE: (libusb) couldn't get device
GUVCVIEW: no valid file extension for video file (?
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.front
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround40
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround41
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround50
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround51
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround71
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
^C
pi@raspberrypi:~ $
 

Offline tomas123

  • Frequent Contributor
  • **
  • Posts: 832
  • Country: de
Re: Question about FLIR One for Android
« Reply #342 on: April 13, 2017, 11:33:35 pm »
Quote
V4L2_CORE: ERROR opening V4L2 interface for /dev/video0

Did you run the v4l2loopback kernel driver on your raspberry pi?

You need:
/dev/video1
/dev/video2


Code: [Select]
pi@raspberrypi:~/v4l2loopback $ sudo modprobe videodev

pi@raspberrypi:~/v4l2loopback $ sudo insmod v4l2loopback.ko video_nr=0,1,2,3
pi@raspberrypi:~/v4l2loopback $ lsmod
Module                  Size  Used by
v4l2loopback           26994  0
configs                32580  0
videodev              172779  1 v4l2loopback
media                  16312  1 videodev
bnep                   11853  2
hci_uart               21122  1
btbcm                   7885  1 hci_uart
bluetooth             365780  22 bnep,btbcm,hci_uart
brcmfmac              201842  0
brcmutil                9031  1 brcmfmac
snd_bcm2835            23131  0
snd_pcm                95473  1 snd_bcm2835
snd_timer              22556  1 snd_pcm
cfg80211              500739  1 brcmfmac
snd                    68400  3 snd_bcm2835,snd_timer,snd_pcm
rfkill                 21397  4 cfg80211,bluetooth
bcm2835_gpiomem         3759  0
bcm2835_wdt             4133  0
uio_pdrv_genirq         3718  0
uio                    10230  1 uio_pdrv_genirq
ipv6                  367697  24

Offline Niels2

  • Newbie
  • Posts: 7
  • Country: de
Re: Question about FLIR One for Android
« Reply #343 on: April 13, 2017, 11:37:29 pm »
Finally it works!  :) got the flir8k running with the "mjpeg-stream" thats all I wanted. I have still no clue about getting the guvcview working, but after struggeling with the "kernel header things"  |O I`m totaly satisfied! Thank you all for your great work! :-+
 

Offline Niels2

  • Newbie
  • Posts: 7
  • Country: de
Re: Question about FLIR One for Android
« Reply #344 on: April 13, 2017, 11:47:42 pm »
Quote
V4L2_CORE: ERROR opening V4L2 interface for /dev/video0

Did you run the v4l2loopback kernel driver on your raspberry pi?



I think so  :-//   but for now, it works like I wanted (the livestream via wifi). Next step is to automise everything on start. I hope it will be easier  ::)
Thanks again for your great support!  :-+
 

Offline tomas123

  • Frequent Contributor
  • **
  • Posts: 832
  • Country: de
Re: Question about FLIR One for Android
« Reply #345 on: April 14, 2017, 04:31:30 pm »
the v4l interface is tricky to install on the raspi

with the last raspi firmware
Code: [Select]
$ uname -a
Linux raspberrypi 4.4.50+ #970 Mon Feb 20 19:12:50 GMT 2017 armv6l GNU/Linux

.. I got the kernel headers with https://github.com/notro/rpi-source/wiki
see my terminal log
Code: [Select]
$ sudo apt-get install bc
$ sudo apt-get install dkms


pi@raspberrypi:~ $ mkdir temp
pi@raspberrypi:~ $ cd temp/
pi@raspberrypi:~/temp $ sudo wget https://raw.githubusercontent.com/notro/rpi-source/master/rpi-source -O /usr/bin/rpi-source && sudo chmod +x /usr/bin/rpi-source && /usr/bin/rpi-source -q --tag-update
--2017-04-09 15:21:32--  https://raw.githubusercontent.com/notro/rpi-source/master/rpi-source
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.112.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.112.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 12670 (12K) [text/plain]
Saving to: ‘/usr/bin/rpi-source’

/usr/bin/rpi-source                        100%[=========================================================================================>]  12.37K  --.-KB/s   in 0.003s

2017-04-09 15:21:32 (4.06 MB/s) - ‘/usr/bin/rpi-source’ saved [12670/12670]

pi@raspberrypi:~/temp $ rpi-source

 *** gcc version check: OK

 *** Using: /usr/share/doc/raspberrypi-bootloader/changelog.Debian.gz

 *** Latest firmware revision: b51046a2b2bb69771579a549d157205d9982f858

 *** Linux source commit: e223d71ef728c559aa865d0c5a4cedbdf8789cfd

 *** Download kernel source
--2017-04-09 15:21:52--  https://github.com/raspberrypi/linux/archive/e223d71ef728c559aa865d0c5a4cedbdf8789cfd.tar.gz
Resolving github.com (github.com)... 192.30.253.113, 192.30.253.112
Connecting to github.com (github.com)|192.30.253.113|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/raspberrypi/linux/tar.gz/e223d71ef728c559aa865d0c5a4cedbdf8789cfd [following]
--2017-04-09 15:21:53--  https://codeload.github.com/raspberrypi/linux/tar.gz/e223d71ef728c559aa865d0c5a4cedbdf8789cfd
Resolving codeload.github.com (codeload.github.com)... 192.30.253.121, 192.30.253.120
Connecting to codeload.github.com (codeload.github.com)|192.30.253.121|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 136303810 (130M) [application/x-gzip]
Saving to: ‘/home/pi/linux-e223d71ef728c559aa865d0c5a4cedbdf8789cfd.tar.gz’

/home/pi/linux-e223d71ef728c559aa865d0c5a4 100%[=========================================================================================>] 129.99M  1.45MB/s   in 77s   

2017-04-09 15:23:11 (1.68 MB/s) - ‘/home/pi/linux-e223d71ef728c559aa865d0c5a4cedbdf8789cfd.tar.gz’ saved [136303810/136303810]


 *** Unpack kernel source

 *** Add '+' to kernel release string

 *** Create symlink: /home/pi/linux

 *** Create /lib/modules/<ver>/{build,source} symlinks

 *** .config

 *** Module.symvers

 *** make modules_prepare
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  SHIPPED scripts/kconfig/zconf.tab.c
  SHIPPED scripts/kconfig/zconf.lex.c
  SHIPPED scripts/kconfig/zconf.hash.c
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
scripts/kconfig/conf  --silentoldconfig Kconfig
  CHK     include/config/kernel.release
  UPD     include/config/kernel.release
...

 *** ncurses-devel is NOT installed. Needed by 'make menuconfig'. On Raspbian sudo apt-get install libncurses5-dev

 *** Help: https://github.com/notro/rpi-source/wiki

//check
ls -al /lib/modules/$(uname -r)/build
lrwxrwxrwx 1 root root 14 Apr  9 15:25 /lib/modules/4.4.50+/build -> /home/pi/linux


// weiter mit Treiber

$ sudo apt-get install libv4l-dev
$ sudo apt-get install git

pi@raspberrypi:~ $ git clone https://github.com/umlaeute/v4l2loopback
Cloning into 'v4l2loopback'...
remote: Counting objects: 1565, done.
remote: Total 1565 (delta 0), reused 0 (delta 0), pack-reused 1565
Receiving objects: 100% (1565/1565), 730.30 KiB | 439.00 KiB/s, done.
Resolving deltas: 100% (868/868), done.
Checking connectivity... done.

pi@raspberrypi:~ $ cd v4l2loopback/


$ cd v4l2loopback/
pi@raspberrypi:~/v4l2loopback $ sudo make clean
rm -f *~
rm -f Module.symvers Module.markers modules.order
make -C /lib/modules/`uname -r`/build M=/home/pi/v4l2loopback clean
make[1]: Entering directory '/home/pi/linux-e223d71ef728c559aa865d0c5a4cedbdf8789cfd'
  CLEAN   /home/pi/v4l2loopback/.tmp_versions
make[1]: Leaving directory '/home/pi/linux-e223d71ef728c559aa865d0c5a4cedbdf8789cfd'
pi@raspberrypi:~/v4l2loopback $ sudo make
Building v4l2-loopback driver...
make -C /lib/modules/`uname -r`/build M=/home/pi/v4l2loopback modules
make[1]: Entering directory '/home/pi/linux-e223d71ef728c559aa865d0c5a4cedbdf8789cfd'
  CC [M]  /home/pi/v4l2loopback/v4l2loopback.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /home/pi/v4l2loopback/v4l2loopback.mod.o
  LD [M]  /home/pi/v4l2loopback/v4l2loopback.ko
make[1]: Leaving directory '/home/pi/linux-e223d71ef728c559aa865d0c5a4cedbdf8789cfd'
pi@raspberrypi:~/v4l2loopback $ sudo make install
make -C /lib/modules/`uname -r`/build M=/home/pi/v4l2loopback modules_install
make[1]: Entering directory '/home/pi/linux-e223d71ef728c559aa865d0c5a4cedbdf8789cfd'
  INSTALL /home/pi/v4l2loopback/v4l2loopback.ko
  DEPMOD  4.4.50+
make[1]: Leaving directory '/home/pi/linux-e223d71ef728c559aa865d0c5a4cedbdf8789cfd'
depmod -a  `uname -r`
pi@raspberrypi:~/v4l2loopback $ find /lib/ -name v4l2loopback.ko 2>/dev/zero
/lib/modules/4.4.50+/extra/v4l2loopback.ko
/lib/modules/4.4.50/extra/v4l2loopback.ko  //BAD

//vorher nicht vergessen
$ sudo modprobe videodev

pi@raspberrypi:~/v4l2loopback $ sudo insmod /lib/modules/4.4.50+/extra/v4l2loopback.ko video_nr=0,1,2,3
pi@raspberrypi:~/v4l2loopback $ lsmod
Module                  Size  Used by
v4l2loopback           26994  0
configs                32580  0
videodev              172779  1 v4l2loopback
media                  16312  1 videodev
bnep                   11853  2
hci_uart               21122  1
btbcm                   7885  1 hci_uart
bluetooth             365780  22 bnep,btbcm,hci_uart
brcmfmac              201842  0
brcmutil                9031  1 brcmfmac
snd_bcm2835            23131  0
snd_pcm                95473  1 snd_bcm2835
snd_timer              22556  1 snd_pcm
cfg80211              500739  1 brcmfmac
snd                    68400  3 snd_bcm2835,snd_timer,snd_pcm
rfkill                 21397  4 cfg80211,bluetooth
bcm2835_gpiomem         3759  0
bcm2835_wdt             4133  0
uio_pdrv_genirq         3718  0
uio                    10230  1 uio_pdrv_genirq
ipv6                  367697  24

Offline Niels2

  • Newbie
  • Posts: 7
  • Country: de
Re: Question about FLIR One for Android
« Reply #346 on: April 14, 2017, 10:06:01 pm »
Thanks for the help tomas123

I tried it one more time, but Guvcview is still not working. It isn`t really a problem for me, as long as the stream is running...

Here are my check for the right kernel (hope this is the right way to check it):

Code: [Select]
pi@raspberrypi:/ $ uname -a
Linux raspberrypi 4.4.50-v7+ #970 SMP Mon Feb 20 19:18:29 GMT 2017 armv7l GNU/Linux

pi@raspberrypi:/ $ ls -al /lib/modules/$(uname -r)/build
lrwxrwxrwx 1 root root 14 Apr 13 19:12 /lib/modules/4.4.50-v7+/build -> /home/pi/linux
Then I did this
Code: [Select]

pi@raspberrypi:/ $ sudo modprobe videodev

pi@raspberrypi:/ $ cd /home/pi/v4l2loopback

pi@raspberrypi:~/v4l2loopback $ sudo insmod /lib/modules/4.4.50-v7+/extra/v4l2loopback.ko video_nr=0,1,2,3

pi@raspberrypi:~/v4l2loopback $ lsmod
Module                  Size  Used by
v4l2loopback           23431  0
videodev              132913  1 v4l2loopback
media                  11573  1 videodev
binfmt_misc             6388  1
bnep                   10340  2
hci_uart               17943  1
btbcm                   5929  1 hci_uart
bluetooth             326105  22 bnep,btbcm,hci_uart
brcmfmac              186403  0
brcmutil                5661  1 brcmfmac
evdev                  11396  2
cfg80211              428871  1 brcmfmac
rfkill                 16037  4 cfg80211,bluetooth
snd_bcm2835            20447  1
snd_pcm                75762  1 snd_bcm2835
snd_timer              19288  1 snd_pcm
snd                    51908  5 snd_bcm2835,snd_timer,snd_pcm
bcm2835_gpiomem         2976  0
bcm2835_wdt             3225  0
uio_pdrv_genirq         3164  0
uio                     8000  1 uio_pdrv_genirq
i2c_dev                 5859  0
fuse                   84037  3
ipv6                  347620  66

And this was the result:

Code: [Select]
pi@raspberrypi:/ $ sudo guvcview
GUVCVIEW: couldn't open /root/.config/guvcview2/video0 for read: No such file or directory
libv4l2: error getting pixformat: Invalid argument
V4L2_CORE: ERROR opening V4L2 interface for /dev/video0
libv4l2: error getting pixformat: Invalid argument
V4L2_CORE: ERROR opening V4L2 interface for /dev/video1
libv4l2: error getting pixformat: Invalid argument
V4L2_CORE: ERROR opening V4L2 interface for /dev/video2
libv4l2: error getting pixformat: Invalid argument
V4L2_CORE: ERROR opening V4L2 interface for /dev/video3
libv4l2: error getting pixformat: Invalid argument
V4L2_CORE: ERROR opening V4L interface: Invalid argument
Unable to init server: Could not connect: Connection refused
GUVCVIEW: (GUI) Gtk3 can't open display
Guvcview error: no video device found
Maybe I`ll try to fix it later...

Today I tried to work out an automatised start for the "flir8k" driver and used this:
Code: [Select]
pi@raspberrypi:/ $ sudo /home/pi/Downloads/flir8k/flir8k
this worked fine, but then I tried to start the start1.sh file the same way:
Code: [Select]
pi@raspberrypi:/ $ sudo /home/pi/mjpg-streamer/mjpg-streamer/start1.sh
cat: ./start1.sh: No such file or directory
/home/pi/mjpg-streamer/mjpg-streamer/start1.sh: 3: /home/pi/mjpg-streamer/mjpg-streamer/start1.sh: ./mjpg_streamer: not found
/home/pi/mjpg-streamer/mjpg-streamer/start1.sh: 4: /home/pi/mjpg-streamer/mjpg-streamer/start1.sh: ./mjpg_streamer: not found

That didn`t work.

I can only start the stream by entering the folder of the "mjpg-streamer like this:

Code: [Select]
pi@raspberrypi:~/mjpg-streamer/mjpg-streamer $ cd /
pi@raspberrypi:/ $ cd /home/pi/mjpg-streamer/mjpg-streamer/
pi@raspberrypi:~/mjpg-streamer/mjpg-streamer $ sudo ./start1.sh
cat ./start1.sh
export LD_LIBRARY_PATH=./
./mjpg_streamer -i "input_file.so -f /mnt/RAMDisk/ -n thermal.jpg" -o "output_http.so -p 8080 -w /usr/local/www" &
./mjpg_streamer -i "input_file.so -d 0 -f /mnt/RAMDisk/ -n real.jpg"    -o "output_http.so -p 8081 -w /usr/local/www"
MJPG Streamer Version: svn rev: 3:172
 i: folder to watch...: /mnt/RAMDisk/
 i: forced delay......: 0
 i: delete file.......: no, do not delete
 i: filename must be..: real.jpg
 o: www-folder-path...: /usr/local/www/
 o: HTTP TCP port.....: 8081
 o: username:password.: disabled
 o: commands..........: enabled
MJPG Streamer Version: svn rev: 3:172
 i: folder to watch...: /mnt/RAMDisk/
 i: forced delay......: 0
 i: delete file.......: no, do not delete
 i: filename must be..: thermal.jpg
 o: www-folder-path...: /usr/local/www/
 o: HTTP TCP port.....: 8080
 o: username:password.: disabled
 o: commands..........: enabled


...but couldn`t find a way to autostart it that way...  :palm:

btw. this is how my "start1.sh" file looks like:

Code: [Select]
cat ./start1.sh
export LD_LIBRARY_PATH=./
./mjpg_streamer -i "input_file.so -f /mnt/RAMDisk/ -n thermal.jpg" -o "output_http.so -p 8080 -w /usr/local/www" &
./mjpg_streamer -i "input_file.so -d 0 -f /mnt/RAMDisk/ -n real.jpg"    -o "output_http.so -p 8081 -w /usr/local/www"
 

Offline tomas123

  • Frequent Contributor
  • **
  • Posts: 832
  • Country: de
Re: Question about FLIR One for Android
« Reply #347 on: April 15, 2017, 03:25:46 pm »
Quote
Code: [Select]
./mjpg_streamer: not foundThat didn`t work.
I can only start the stream by entering the folder of the "mjpg-streamer"
 

I see, you need some Linux beginner tutorials  ;)
I good german source for free books is:
http://openbook.rheinwerk-verlag.de/shell_programmierung/index.htm
http://openbook.rheinwerk-verlag.de/linux/

Offline da-nie

  • Contributor
  • Posts: 44
  • Country: ru
Re: Question about FLIR One for Android
« Reply #348 on: May 01, 2017, 11:03:00 am »
My RAW-file analizer.

 

Offline Ben321Topic starter

  • Frequent Contributor
  • **
  • Posts: 894
Re: Question about FLIR One for Android
« Reply #349 on: May 03, 2017, 04:34:18 am »
Updated version for Windows XP. :) (For Windows the most stable work)

This looks awesome! Thanks for making this. However, it has 3 problems.
1) It doesn't come with a driver installer (or text file explaining how to install), only the driver files, so I don't know exactly how to install it.
2) It is a driver designed only for XP, which doesn't work on newer versions of Windows, including Windows 10. My current PC has Windows 10, and I don't want to downgrade it to XP.
3) The software itself is not written in English, and is not written for an English locale, so all the text on user interface is just a bunch of question marks.

Here's 3 solutions.
1) Create a setup.exe to make sure that it can be installed properly, or at least include a text file with instructions on how to install the driver.
2) In addition to the XP driver (don't get rid of it, as some people still use XP), use a newer driver SDK to create a Windows 7 driver, and also a Windows 10 driver.
3) Create a separate English language file that I can load, so that all the strings in the program are in English, so that the text actually displays properly on computer's who's locale is set to United States, and so that people who only know English (like myself) can read it.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf