Poll

Has the hackabiliy of the E4 made you buy one :  

Yes, I was already looking at the competition at a similar price, but the hack swung it to E4
277 (28.1%)
Yes, I'd not considered buying a TIC before, but 320x240 resolution at this price justifies it (as either tool or toy!)
444 (45.1%)
Yes, I was going to buy an E5/6/8 class of unit but will now get the E4
49 (5%)
No, but am looking out for a cheap i3 to hack
51 (5.2%)
Not yet, but probably will if now that a closed-box hack becomes is possible
164 (16.6%)

Total Members Voted: 807

Author Topic: Flir E4 Thermal imaging camera teardown  (Read 4077363 times)

0 Members and 12 Guests are viewing this topic.

Offline dtbp

  • Contributor
  • Posts: 12
Re: Flir E4 Thermal imaging camera teardown
« Reply #4000 on: March 01, 2014, 01:43:11 am »
I just wanted to share something I discovered today. After disassembling the camera and stupidly (DO NOT unseat this camera if you can help it) removing the spring clip that holds the visual camera in place,  the MSX was significantly off vertically upon reassembly. No amount of reseating of the visible camera could line up the images, it's almost like it wasn't seated properly at the factory before calibration... After toying with adjusting the calibration files for the new paralax, I ended up just placing a sliver of paper under the lip of camera as a shim. Problem solved with my favorite kind of engineering! I don't deserve nice things.... :D
 

Offline DaveWB

  • Regular Contributor
  • *
  • Posts: 146
Re: Flir E4 Thermal imaging camera teardown
« Reply #4001 on: March 01, 2014, 01:43:34 am »
Anyone more of a visual learner I uploaded a tutorial:
Resolution hack:
<vid>
Menu hack:
<vid>
Neat ... just a small hint: the resolution hack can be done over RNDIS too, no need for zipping and flirnetinstall then - just drop the e8.conf into the right place by FTP - works just like the .fif version :)
Like this :D
http://youtu.be/Ci2a_zjWUiQ
 

Offline tomas123

  • Frequent Contributor
  • **
  • Posts: 832
  • Country: de
Re: Flir E4 Thermal imaging camera teardown
« Reply #4002 on: March 01, 2014, 02:23:27 am »
Great news.

We found the necessary exif values for the calculation of atmosphere transmissivity influence in Flir Images.

see my post with an Excel sample here
 http://u88.n24.queensu.ca/exiftool/forum/index.php/topic,4898.msg27546.html#msg27546

the excel calculated temperature is 100% identical with a Flir Tools csv temperature file

Offline caudex

  • Newbie
  • Posts: 6
Re: Flir E4 Thermal imaging camera teardown
« Reply #4003 on: March 01, 2014, 03:48:22 am »
I can't stop thinking about some kind of self-destruct-mechanism as soon as you log in via FTP. Or it might be possible that I watch too much action movies... ;D
Any form of active "destruct" functionality would be very stupid, as they'd just get a load of pissed off customers returning them as faulty.

Would be funny though if they added in functionality which when it detects a unauthorised cfg file has been added or changed... it will put the camera into lock down and every time you attempt to turn it on it will freeze and display a image saying "CAMERA DISABLED ATTEMPTED HACK <file name> DETECTED"......

haha it would clearly piss off alot of people ,but they cannot send it back and claim warranty since it isn't broken because of FLIR.
 

Offline Rasz

  • Super Contributor
  • ***
  • Posts: 2617
  • Country: 00
    • My random blog.
Re: Flir E4 Thermal imaging camera teardown
« Reply #4004 on: March 01, 2014, 06:32:19 am »
I can't stop thinking about some kind of self-destruct-mechanism as soon as you log in via FTP. Or it might be possible that I watch too much action movies... ;D
Any form of active "destruct" functionality would be very stupid, as they'd just get a load of pissed off customers returning them as faulty.

Would be funny though if they added in functionality which when it detects a unauthorised cfg file has been added or changed... it will put the camera into lock down and every time you attempt to turn it on it will freeze and display a image saying "CAMERA DISABLED ATTEMPTED HACK <file name> DETECTED"......

haha it would clearly piss off alot of people ,but they cannot send it back and claim warranty since it isn't broken because of FLIR.

it would only piss off FLIR, as it is legal to return goods WITHOUT ANY REASON in EU within 7 days of receiving your mail order
Who logs in to gdm? Not I, said the duck.
My fireplace is on fire, but in all the wrong places.
 

Offline daves

  • Regular Contributor
  • *
  • Posts: 103
  • Country: cz
Re: Flir E4 Thermal imaging camera teardown
« Reply #4005 on: March 01, 2014, 09:03:32 am »
it is legal to return goods WITHOUT ANY REASON in EU within 7 days of receiving

Partially true. In our country it is 14 days, BUT it must be in ORIGINAL CONDITION, so any sing of trying hack is reason to not accept the return.

If there will be any problem with Flir tools in future, just DO NOT USE it :-D Use BFIC (See my footnote and try windows version).
Batch Thermal Images Editor (JPG, BMT, SNP, IRI, ISI, IS2, PGM, TIF, IMG, BMP):  https://www.eevblog.com/forum/testgear/flir-e4-thermal-imaging-camera-teardown/msg350556/#msg350556
 

Online mikeselectricstuffTopic starter

  • Super Contributor
  • ***
  • Posts: 14033
  • Country: gb
    • Mike's Electric Stuff
Re: Flir E4 Thermal imaging camera teardown
« Reply #4006 on: March 01, 2014, 09:49:24 am »
I can't stop thinking about some kind of self-destruct-mechanism as soon as you log in via FTP. Or it might be possible that I watch too much action movies... ;D
Any form of active "destruct" functionality would be very stupid, as they'd just get a load of pissed off customers returning them as faulty.

Would be funny though if they added in functionality which when it detects a unauthorised cfg file has been added or changed... it will put the camera into lock down and every time you attempt to turn it on it will freeze and display a image saying "CAMERA DISABLED ATTEMPTED HACK <file name> DETECTED"......

haha it would clearly piss off alot of people ,but they cannot send it back and claim warranty since it isn't broken because of FLIR.
Nothing to do with warranty - in the UK at least, the liability for "faulty" goods is with the seller, and it would be down to them to prove the goods had been damaged.
 "Dunno mate it just came like that..." 
"The fragile USB socket just fell off..."
etc. etc.   
Youtube channel:Taking wierd stuff apart. Very apart.
Mike's Electric Stuff: High voltage, vintage electronics etc.
Day Job: Mostly LEDs
 

Offline Rainer

  • Regular Contributor
  • *
  • Posts: 54
  • Country: de
Re: Flir E4 Thermal imaging camera teardown
« Reply #4007 on: March 01, 2014, 12:41:38 pm »
Here some stuff for you:
File-upload.net-Link

FLIR_BACKUP.zip

http://www.file-upload.net/download-8669033/FLIR_BACKUP.zip.html

uploadarea.de
(same archive, i don´t know anything, how long the archive will be online)



http://www.uploadarea.de/files/kqqgiclbm7jur37u6g729r6ku.zip


Inside the zip is an office-file with the full protocol of the fillezilla-FTP-Transfer and all Data i can backup in this way.
Hopefully, it helps to patch the new firmware.

Setting in TIC is: USB Option only RNDIS an stay in the Menue before selection(in display is: USB-Mode, Export and Version-Information selectable)
 

Offline stefbeer

  • Regular Contributor
  • *
  • Posts: 57
  • Country: de
Re: Flir E4 Thermal imaging camera teardown
« Reply #4008 on: March 01, 2014, 01:51:16 pm »
Well, the look of that config file is a bit unexpected... :o At least for me.
And only after opening the configuration file for like three or four times, I noticed the different file name "conf.cfc". Just stating the obvious: the second c most certainly stands for crypted.
I'm not huge into hex or crypto stuff but I cannot recognize anything in that file...

Also, the only logfile in the backup /Temp/postlog.txt hasn't anything useful in it (at least as far as I can see).

Any ideas on how to start?
 

Offline Taucher

  • Frequent Contributor
  • **
  • Posts: 456
  • Country: de
  • 1DsaYDGWXEYhEKL rfrbFyYsehaAtfBWawf
Re: Flir E4 Thermal imaging camera teardown
« Reply #4009 on: March 01, 2014, 02:04:06 pm »
Well, the look of that config file is a bit unexpected... :o At least for me.
And only after opening the configuration file for like three or four times, I noticed the different file name "conf.cfc". Just stating the obvious: the second c most certainly stands for crypted.
I'm not huge into hex or crypto stuff but I cannot recognize anything in that file...

Also, the only logfile in the backup /Temp/postlog.txt hasn't anything useful in it (at least as far as I can see).

Any ideas on how to start?

the file has a #CFC near the end and some binary stuff after that ... I'd say that's a start

Offline tomas123

  • Frequent Contributor
  • **
  • Posts: 832
  • Country: de
Re: Flir E4 Thermal imaging camera teardown
« Reply #4010 on: March 01, 2014, 02:42:21 pm »
Here some stuff for you:
thanks, but you uploaded all your privat images from folder FLIR_BACKUP\FlashIFS\DCIM\FLIR_100 !

Offline Taucher

  • Frequent Contributor
  • **
  • Posts: 456
  • Country: de
  • 1DsaYDGWXEYhEKL rfrbFyYsehaAtfBWawf
Re: Flir E4 Thermal imaging camera teardown
« Reply #4011 on: March 01, 2014, 02:55:11 pm »
common DLL:

Code: [Select]
CCfc::initSignature(CCfc::CFC_SIGNTYPE_T)                           .text 0000000000105150 00000070 R . . . . . .
CCfc::CCfc(void)                                                    .text 000000000010523C 00000020 R . . . . . .
CCfc::CCfc(CCfc::CFC_SIGNTYPE_T)                                    .text 0000000000105264 00000028 R . . . . . .
CCfc::CCfc(CCfc::CFC_SIGNTYPE_T,CCfc::CFC_PLTYPE_T)                 .text 000000000010528C 00000028 R . . . . . .
CCfc::calcSign(void *,long)                                         .text 00000000001054FC 0000012C . . . . . . .
CCfc::setSignatureType(CCfc::CFC_SIGNTYPE_T)                        .text 00000000001057C8 00000020 . . . . . . .
CCfc::getSignature(bool &,int *)                                    .text 00000000001057E8 00000028 . . . . . . .
CCfc::setSuid(unsigned __int64)                                     .text 0000000000105810 0000000C . . . . . . .
CCfc::setPltype(CCfc::CFC_PLTYPE_T)                                 .text 000000000010581C 00000020 . . . . . . .
CCfc::signatureSize(void)                                           .text 000000000010583C 00000010 . . . . . . .
CCfc::cfcheader(void *,CCfc::CFC_SIGNTYPE_T *,CCfc::CFC_PLTYPE_T *) .text 000000000010584C 000000BC . . . . . . .

Offline tomas123

  • Frequent Contributor
  • **
  • Posts: 832
  • Country: de
Re: Flir E4 Thermal imaging camera teardown
« Reply #4012 on: March 01, 2014, 03:33:52 pm »
they removed all parts to get the High Resolution Service Mode (especially prodapp.exe)

removed binaries
Code: [Select]
./FlashBFS/system/bitapp.exe
./FlashBFS/system/camtorrent.exe
./FlashBFS/system/cemgrc.exe
./FlashBFS/system/cerdisp.exe
./FlashBFS/system/clientshutdown.exe
./FlashBFS/system/cmaccept.exe
./FlashBFS/system/conmanclient2.exe
./FlashBFS/system/conmanclient3.exe
./FlashBFS/system/dumpcoff.exe
./FlashBFS/system/fmqping.exe
./FlashBFS/system/fvd.exe
./FlashBFS/system/i2c.exe
./FlashBFS/system/pmic.exe
./FlashBFS/system/prodapp.exe
./FlashBFS/system/regsvrce.exe

added binaries
Code: [Select]
./FlashBFS/system/suid.exe
For the calibration Flir activate furthermore the high res mode.
see
Code: [Select]
$ exiftool ./FlashFS/system/maps/ds250C_we_ap_fi_le_static.gan
ExifTool Version Number         : 9.53
...
Gain Dead Map Image Width       : 320
Gain Dead Map Image Height      : 240
Gain Dead Map Image Type        : TIFF
Gain Dead Map Image             : (Binary data 153804 bytes, use -b option to extract)

good news: your sensor is 320x240  :)

also see unchanged FlashFS/system/service/appcore.d/config.d/conf.cfg



Offline Rainer

  • Regular Contributor
  • *
  • Posts: 54
  • Country: de
Re: Flir E4 Thermal imaging camera teardown
« Reply #4013 on: March 02, 2014, 01:06:47 pm »
If you want to test something, you can send me a zip-file and some instructions.
 

Offline Taucher

  • Frequent Contributor
  • **
  • Posts: 456
  • Country: de
  • 1DsaYDGWXEYhEKL rfrbFyYsehaAtfBWawf
Re: Flir E4 Thermal imaging camera teardown
« Reply #4014 on: March 03, 2014, 02:50:05 am »
Just a quick statistics analysis for the conf file - comparing .cfg and .cfc
Green is count of byte from 0x00 (left) to 0xFF (right) - red is the same count, just sorted by count descending.
Size indicates it's not compressed.

PS: Histograms were made with bytehist: https://www.cert.at/downloads/software/bytehist_en.html

Offline mamalala

  • Supporter
  • ****
  • Posts: 777
  • Country: de
Re: Flir E4 Thermal imaging camera teardown
« Reply #4015 on: March 03, 2014, 03:16:33 am »
Just a quick statistics analysis for the conf file - comparing .cfg and .cfc
Green is count of byte from 0x00 (left) to 0xFF (right) - red is the same count, just sorted by count descending.
Size indicates it's not compressed.

PS: Histograms were made with bytehist: https://www.cert.at/downloads/software/bytehist_en.html

That look srather strange, not like real encryption. Notice the "notch" in the .cfc bytes green plot, whereas the "peak" in the .cfg is just after that. All in all not that random. Woul be interresting to see some more .cfc files from new cams, and compare them. Who knows, maybe just some silly XOR or bit-rotationg using the cam's serial (or whatever) number. After all, it's  a rather small processor in there that is already struggling with providing a fluidly working UI, so burdening it with heavy encryption may be a no-go.

Oh, and has anyone tried to still feed it regular plain-text .cfg files? I mean, who says that the choice between .cfc and .cfg is mutually exclusive?

Greetings,

Chris
 

Offline PlatonicSolid

  • Newbie
  • Posts: 1
Re: Flir E4 Thermal imaging camera teardown
« Reply #4016 on: March 03, 2014, 03:33:50 am »
I just happened to be looking for a thermal imaging camera at the same time Flir was upgrading their firmware. I ended up placing 3 online orders. Cancelled the first 2 as they were on back order (as that would guarantee new firmware). Gambled that if the vendor had stock (order date 2/24/14) it would be the old firmware. Camera arrived 2/28 with old firmware. Carefully followed Mikes instructions and the resolution is now great! Thank you - Thank you - Thank you Mike (and contributors).

It's worth mentioning that I would not have purchased this item without the ability to achieve the higher resolution. The difference really is night and day.
 

Offline daves

  • Regular Contributor
  • *
  • Posts: 103
  • Country: cz
Re: Flir E4 Thermal imaging camera teardown
« Reply #4017 on: March 03, 2014, 09:24:41 am »
maybe just some silly XOR or bit-rotationg using the cam's serial (or whatever) number
I bet so. Since we have original and the crypted one, it should not be to hard to find out the encryption key.
Batch Thermal Images Editor (JPG, BMT, SNP, IRI, ISI, IS2, PGM, TIF, IMG, BMP):  https://www.eevblog.com/forum/testgear/flir-e4-thermal-imaging-camera-teardown/msg350556/#msg350556
 

Offline Rainer

  • Regular Contributor
  • *
  • Posts: 54
  • Country: de
Re: Flir E4 Thermal imaging camera teardown
« Reply #4018 on: March 03, 2014, 10:52:32 am »
Quote from my first post:

Model E4 1.1L
Serial-No. 63914752
Part-No. 63901-0101
SW-Version 1.21.0
 :-+

If you need any further data of my TIC, please let me know about and i will do so.

@ the german "developers": Ich wohne in Berlin und kann gern auch mal persönlich mit der TIC irgendwo hinkommen, falls das hilft.
 

Offline amyk

  • Super Contributor
  • ***
  • Posts: 8429
Re: Flir E4 Thermal imaging camera teardown
« Reply #4019 on: March 03, 2014, 12:20:25 pm »
common DLL:

Code: [Select]
CCfc::initSignature(CCfc::CFC_SIGNTYPE_T)                           .text 0000000000105150 00000070 R . . . . . .
CCfc::CCfc(void)                                                    .text 000000000010523C 00000020 R . . . . . .
CCfc::CCfc(CCfc::CFC_SIGNTYPE_T)                                    .text 0000000000105264 00000028 R . . . . . .
CCfc::CCfc(CCfc::CFC_SIGNTYPE_T,CCfc::CFC_PLTYPE_T)                 .text 000000000010528C 00000028 R . . . . . .
CCfc::calcSign(void *,long)                                         .text 00000000001054FC 0000012C . . . . . . .
CCfc::setSignatureType(CCfc::CFC_SIGNTYPE_T)                        .text 00000000001057C8 00000020 . . . . . . .
CCfc::getSignature(bool &,int *)                                    .text 00000000001057E8 00000028 . . . . . . .
CCfc::setSuid(unsigned __int64)                                     .text 0000000000105810 0000000C . . . . . . .
CCfc::setPltype(CCfc::CFC_PLTYPE_T)                                 .text 000000000010581C 00000020 . . . . . . .
CCfc::signatureSize(void)                                           .text 000000000010583C 00000010 . . . . . . .
CCfc::cfcheader(void *,CCfc::CFC_SIGNTYPE_T *,CCfc::CFC_PLTYPE_T *) .text 000000000010584C 000000BC . . . . . . .
Let's hope that this isn't some sort of public-key crypto, or some patching will be needed...
 

Offline tomas123

  • Frequent Contributor
  • **
  • Posts: 832
  • Country: de
Re: Flir E4 Thermal imaging camera teardown
« Reply #4020 on: March 03, 2014, 03:00:54 pm »
WINDOWS VERSION GUI  (No need PHP)

DOWNLOAD ----> http://test.daves.cz/wrapper/wrapper.zip (about 12MB - it contains utils)

Hi Daves,

you program give me an error message.


We found the necessary exif values for the calculation of atmosphere transmissivity influence in Flir Images.

see my post with an Excel sample here
 http://u88.n24.queensu.ca/exiftool/forum/index.php/topic,4898.msg27546.html#msg27546

the excel calculated temperature is 100% identical with a Flir Tools csv temperature file


I checked the 4x4 radiometric Image (4x4-0m.jpg) with BFIC and I get a wrong temperature range (-12,1°C ... +125,4°C)


Flir Tools gives -15,059 ... +129,157 (see exported 4x4-0.csv.txt )

As Attachment a Excel Sheet with all necessary calculations.
further informations see here http://u88.n24.queensu.ca/exiftool/forum/index.php/topic,4898.msg27546.html#msg27546

Offline Zucca

  • Supporter
  • ****
  • Posts: 4606
  • Country: it
  • EE meid in Itali
Re: Flir E4 Thermal imaging camera teardown
« Reply #4021 on: March 03, 2014, 03:10:13 pm »
FLIR Systems’ Customer Survey 2014 - E-series

I think they got several feedbacks like this (see attachment).... Thanks again taucher and mike.

I can´t for the final page with field "general comments" or so.
« Last Edit: March 03, 2014, 03:13:01 pm by zucca »
Can't know what you don't love. St. Augustine
Can't love what you don't know. Zucca
 

Offline daves

  • Regular Contributor
  • *
  • Posts: 103
  • Country: cz
Re: Flir E4 Thermal imaging camera teardown
« Reply #4022 on: March 03, 2014, 03:36:53 pm »
you program give me an error message
Damn stupid message ! Please ignore it, I will remove it in the next release together with some minor bug fixes.
Batch Thermal Images Editor (JPG, BMT, SNP, IRI, ISI, IS2, PGM, TIF, IMG, BMP):  https://www.eevblog.com/forum/testgear/flir-e4-thermal-imaging-camera-teardown/msg350556/#msg350556
 

Offline tomas123

  • Frequent Contributor
  • **
  • Posts: 832
  • Country: de
Re: Flir E4 Thermal imaging camera teardown
« Reply #4023 on: March 03, 2014, 03:59:19 pm »
you program give me an error message
Damn stupid message ! Please ignore it, I will remove it in the next release together with some minor bug fixes.
Please check my excel sheet, the calculations with atmosphere transmissivity are a great improvement.

furthermore the current cersion of exiftool readout the measuring points ( a great hack from Phil Harvey  :-+ )
Code: [Select]
>exiftool -meas* FLIR0232-Tools.jpg
Meas 1 Type                     : Spot
Meas 1 Params                   : 152 111
Meas 1 Label                    : Sp1
Meas 2 Type                     : Line
Meas 2 Params                   : 181 157 291 149
Meas 2 Label                    : Li1
Meas 3 Type                     : Area
Meas 3 Params                   : 211 5 40 27
Meas 3 Label                    : Ar1
Meas 4 Type                     : Ellipse
Meas 4 Params                   : 105 177 151 177 105 153
Meas 4 Label                    : El1
Meas 5 Type                     : Difference
Meas 5 Params                   : 2 1 2 3 1 2
Meas 5 Label                    : Dt1

Offline daves

  • Regular Contributor
  • *
  • Posts: 103
  • Country: cz
Re: Flir E4 Thermal imaging camera teardown
« Reply #4024 on: March 03, 2014, 05:54:01 pm »
Please check my excel sheet, the calculations with atmosphere transmissivity are a great improvement.
...
furthermore the current version of exiftool readout the measuring points ( a great hack from Phil Harvey  :-+ )

Sure, I have it on todo list. But these are more complex things, requiring more time to implement. So it will not appear in the next release.
I spent many hours on BFIC, so now I need to push other projects a bit too. Then I will get back to BFIC again.
Batch Thermal Images Editor (JPG, BMT, SNP, IRI, ISI, IS2, PGM, TIF, IMG, BMP):  https://www.eevblog.com/forum/testgear/flir-e4-thermal-imaging-camera-teardown/msg350556/#msg350556
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf