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
238 (26.3%)
Yes, I'd not considered buying a TIC before, but 320x240 resolution at this price justifies it (as either tool or toy!)
425 (47%)
Yes, I was going to buy an E5/6/8 class of unit but will now get the E4
43 (4.8%)
No, but am looking out for a cheap i3 to hack
41 (4.5%)
Not yet, but probably will if now that a closed-box hack becomes is possible
158 (17.5%)

Total Members Voted: 780

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

0 Members and 2 Guests are viewing this topic.

Offline tomas123

  • Frequent Contributor
  • **
  • Posts: 832
  • Country: de
Re: Flir E4 Thermal imaging camera teardown
« Reply #5225 on: July 08, 2014, 08:11:34 am »
Thomas123,

Thanks for testing my images with your software. I reinstalled Imagemagick, but am getting the same result. Note version:

$ convert -version
Version: ImageMagick 6.8.9-5 Q16 x64 2014-06-26 http://www.imagemagick.org

I rechecked your problem with a fresh self compiled version of IM on a mac
Code: [Select]
$ convert -version
Version: ImageMagick 6.8.9-1 Q16 x86_64 2014-07-08 http://www.imagemagick.org
and I get the same wrong image like you.
I think, there is a new bug in the begin of pipe "convert t1.png gray:- ".

But I wrote above, there is a new switch for byte changing, and it works fine (thanks to the PNG developer glennrp)
Code: [Select]
$ convert -define png:swap-bytes t1.png t2.png
$ convert t2.png -auto-level t3.png
try it

Offline mikeselectricstuff

  • Super Contributor
  • ***
  • Posts: 11933
  • Country: gb
    • Mike's Electric Stuff
Re: Flir E4 Thermal imaging camera teardown
« Reply #5226 on: July 08, 2014, 08:13:29 am »

Whoever decides to delete the own posts - I think that's their right (but an useless action anyway).
But it would be polite to post an explanation.


Youtube channel:Taking wierd stuff apart. Very apart.
Mike's Electric Stuff: High voltage, vintage electronics etc.
Day Job: Mostly LEDs
 

Offline jjmmss00

  • Contributor
  • Posts: 10
Re: Flir E4 Thermal imaging camera teardown
« Reply #5227 on: July 08, 2014, 09:49:42 pm »
Code: [Select]
$ convert -define png:swap-bytes t1.png t2.png
$ convert t2.png -auto-level t3.png

This works great. I have been moving on to try and get PHP functioning. Will this change affect the flir.php script?  Thanks for your support.
 

Offline Fraser

  • Super Contributor
  • ***
  • Posts: 8318
  • Country: gb
Re: Flir E4 Thermal imaging camera teardown
« Reply #5228 on: July 08, 2014, 09:50:42 pm »
After I deleted some messages, many moons ago, I realised that I could have deleted just the text content, but that was a lesson learnt. Some people may be deleting their whole posts and even their eevblog account for reasons best known to themselves. Hopefully not as a result of pressure from any party.

Aurora
 

Offline tomas123

  • Frequent Contributor
  • **
  • Posts: 832
  • Country: de
Re: Flir E4 Thermal imaging camera teardown
« Reply #5229 on: July 08, 2014, 11:13:10 pm »
This works great. I have been moving on to try and get PHP functioning. Will this change affect the flir.php script?  Thanks for your support.

please edit the corresponding lines in the php code

I wrote a support request for your problem in the IM forum :)
http://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=25875

Offline frischky

  • Newbie
  • Posts: 2
Re: Flir E4 Thermal imaging camera teardown
« Reply #5230 on: July 09, 2014, 04:18:26 am »
Long time viewer of EEV on YT, but just came across this thread while Googling the E4.

Is there still many "upgradable" E4's left in the supply chain or is the newer hardware/firmware very prevalent?

I have no professional need for a TIC, but ever since a kid when I saw these at the Science Centre (were cooled by liquid nitro I think at the time) TICs always intrigued me.  So if there is still plenty of old stock, I am thinking of picking one up.
 

Offline Fraser

  • Super Contributor
  • ***
  • Posts: 8318
  • Country: gb
Re: Flir E4 Thermal imaging camera teardown
« Reply #5231 on: July 09, 2014, 05:04:50 am »
Much depends on which country you are in and the stock holding of retailers.

You could take a look on ebay as there are plenty for sale at RRP on there and they often state the firmware version.
« Last Edit: July 10, 2014, 02:47:52 am by Aurora »
 

Offline frischky

  • Newbie
  • Posts: 2
Re: Flir E4 Thermal imaging camera teardown
« Reply #5232 on: July 09, 2014, 07:13:47 am »
Thanks for the info.  Will have to roll the dice and hope for the best.
 

Offline micio

  • Newbie
  • Posts: 3
Re: Flir E4 Thermal imaging camera teardown
« Reply #5233 on: July 09, 2014, 11:36:31 pm »
Hi guys, I've been following this thread since day one and I have an E4, I was wondering if there was an easy step to remove the temperature scale and other elements over the picture so that it's just a thermal image. (i was only able to remove the logo)

Thanks!
 

Offline KyleK29

  • Newbie
  • Posts: 2
Re: Flir E4 Thermal imaging camera teardown
« Reply #5234 on: July 10, 2014, 10:29:36 am »
Might be well known, but my E4 with 2.3.0 ended up soft-bricked (or appeared so).  ;)  It would turn on and just have a black screen, I was able to revive it using the firmware pack at the FLIR site. Open FLIR Tools, hold SHIFT+CTRL+ALT and click the box under "Check for updates". This will force an update. Selected the .FIF and then the eFlirInstall.exe. It copied and hung. I then disconnected and replugged it in, redid that procedure and it copied the entire package. Rebooted camera when prompted and the package installed - failed and said "update failed, please reboot and try again". Did so and it successfully took it. Works like new again.

Posted here just encase anyone messes up their 2.3 based camera by FTPing into it.

Does anyone have a mirror of the 1.22 firmware? I want to check something.
« Last Edit: July 10, 2014, 10:31:46 am by KyleK29 »
 

Offline ixfd64

  • Frequent Contributor
  • **
  • Posts: 316
  • Country: us
    • Facebook
Re: Flir E4 Thermal imaging camera teardown
« Reply #5235 on: July 10, 2014, 03:03:47 pm »
Be careful about downgrading your camera. There are reports that doing so bricks the device.

Offline Taucher

  • Frequent Contributor
  • **
  • Posts: 456
  • Country: de
  • 1DsaYDGWXEYhEKL rfrbFyYsehaAtfBWawf
Re: Flir E4 Thermal imaging camera teardown
« Reply #5236 on: July 10, 2014, 03:38:29 pm »

Yes, most likely the bootloader is different (the chipset supports encryption and signing from bootblock level up) - I didn't check myself, but the bin/NK disassembly instructions are still around (they are pretty generic). Worst case would require the memory to be re-written externally (by programmer) as the built-in-flasher could fail to update/change certain flash-areas.

Please note that I'm NOT an expert in firmware bootloading etc. but more a systems generalist.
The described method with "force update" above could really be the key to un-bricking the camera.

Basically any step involved in bootup has to work - otherwise the camera will seem bricked:
- bootloader
- read & parse configuration data
- boot applications

For example: if one changes the bootloader and the binaries, then one also has to change the config files as the old software won't be able to expect - or parse new checksums or obfuscation layers introduced in later versions.

A complete copy of firmware AND configuration could be a method of downgrade - assuming one does not forget the serial number inside I²C.
Another approach would be to patch the code that reads the serial from I²C to return something pre-defined...

Just an idea for anybody who wants to try :)

Offline GTPprix

  • Newbie
  • Posts: 2
Re: Flir E4 Thermal imaging camera teardown
« Reply #5237 on: July 11, 2014, 02:34:12 am »
Long time lurker, first time poster. First off just wanted to thank everyone thats contributed to this quite frankly amazing thread. I have been thinking about buying one of these for ages but with the advent of the new firmware decided to move on it and I should have it tomorrow.

Hoping that I get 1.22 but I guess we'll see :)
 

Offline bookaboo

  • Frequent Contributor
  • **
  • Posts: 603
  • Country: ie
Re: Flir E4 Thermal imaging camera teardown
« Reply #5238 on: July 11, 2014, 05:12:34 pm »

Yes, most likely the bootloader is different (the chipset supports encryption and signing from bootblock level up) - I didn't check myself, but the bin/NK disassembly instructions are still around (they are pretty generic). Worst case would require the memory to be re-written externally (by programmer) as the built-in-flasher could fail to update/change certain flash-areas.

Please note that I'm NOT an expert in firmware bootloading etc. but more a systems generalist.
The described method with "force update" above could really be the key to un-bricking the camera.

Basically any step involved in bootup has to work - otherwise the camera will seem bricked:
- bootloader
- read & parse configuration data
- boot applications

For example: if one changes the bootloader and the binaries, then one also has to change the config files as the old software won't be able to expect - or parse new checksums or obfuscation layers introduced in later versions.

A complete copy of firmware AND configuration could be a method of downgrade - assuming one does not forget the serial number inside I²C.
Another approach would be to patch the code that reads the serial from I²C to return something pre-defined...

Just an idea for anybody who wants to try :)

This could be a problem as you can't just use a conf file from another camera, if you do the camera will work and the image is 320x240... but it looks grainy and not unlike a 80x60 image. My guess is that each bolometer has a slightly different output (more than just dead pixels) and this is calibrated and mapped in the factory.
 

Offline Taucher

  • Frequent Contributor
  • **
  • Posts: 456
  • Country: de
  • 1DsaYDGWXEYhEKL rfrbFyYsehaAtfBWawf
Re: Flir E4 Thermal imaging camera teardown
« Reply #5239 on: July 11, 2014, 05:27:26 pm »
...A complete copy of firmware AND configuration could be a method of downgrade - assuming one does not forget the serial number inside I²C.
Another approach would be to patch the code that reads the serial from I²C to return something pre-defined...
This could be a problem as you can't just use a conf file from another camera, if you do the camera will work and the image is 320x240... but it looks grainy and not unlike a 80x60 image. My guess is that each bolometer has a slightly different output (more than just dead pixels) and this is calibrated and mapped in the factory.

Well, that could be fixed by re-calibrating - the "good old" 17/18 firmware did come with the built-in webserver incl. re-cal.
Also we have had a few forum members who played with the cal-data, pixel masks etc... that stuff is little of a problem - but you're right - the "repace anything" solution would require a re-cal...
or one has to down-convert the config files in order to get perfect results.

Oh... and BTW - another idea: take an E8 - copy contents and I2C ...


Edit: Post #5252

Offline GTPprix

  • Newbie
  • Posts: 2
Re: Flir E4 Thermal imaging camera teardown
« Reply #5240 on: July 12, 2014, 04:37:31 am »
Got my E4 today from Amazon with 1.22 on it (what a relief!) Had it modded within ten minutes of getting it; freakin amazing :)
 

Offline vmp

  • Contributor
  • Posts: 6
Re: Flir E4 Thermal imaging camera teardown
« Reply #5241 on: July 14, 2014, 04:33:24 am »
My FLIR E4 was repaired. The firmware was changed to 2.3. Is there any way to downgrade. Where can I download old firmware to flir e4. Maybe someone earlier downloaded firmware from flir.com and can share.
 

Offline Fraser

  • Super Contributor
  • ***
  • Posts: 8318
  • Country: gb
Re: Flir E4 Thermal imaging camera teardown
« Reply #5242 on: July 14, 2014, 06:07:21 am »
There is no known way back from Firmware 2.3.

You may not even have the same main board in your repaired camera. Sadly you are locked into standard E4 specification.

Aurora
 

Offline vmp

  • Contributor
  • Posts: 6
Re: Flir E4 Thermal imaging camera teardown
« Reply #5243 on: July 14, 2014, 06:16:52 am »
Not much time was needed to improve the resolution. I changed the original configuration file manually. Fixed checksum using old tools. I switched the original file. After the restart I gained full native resolution.
« Last Edit: July 14, 2014, 06:25:18 am by vmp »
 

Offline miguelvp

  • Super Contributor
  • ***
  • Posts: 5549
  • Country: us
Re: Flir E4 Thermal imaging camera teardown
« Reply #5244 on: July 14, 2014, 06:57:52 am »
That's an interesting turn of events :)

Care to elaborate what tool you used and some details on what you did?
 

Offline mikeselectricstuff

  • Super Contributor
  • ***
  • Posts: 11933
  • Country: gb
    • Mike's Electric Stuff
Re: Flir E4 Thermal imaging camera teardown
« Reply #5245 on: July 14, 2014, 07:21:27 am »
Has anyone here actually seen a production 2.3 unit & had a serious play?
I don't recall seeing anyone posting about it, just a few comments from people who've looked at the downloaded update files.

It may be that there are differences between units that are manufactured (and calibrated) with newer FW vs. those that have been subsequently updated.
These differences could provide some useful clues. I'd have though the bootloader would be an obvious place for them to have added something, but from what vmp says, he has 2.3 running an old config file, not downgraded the FW to an earlier version.

BTW I bookmarked several ebay auctions for upgraded units over a week ago & no sign of any being taken down.
Youtube channel:Taking wierd stuff apart. Very apart.
Mike's Electric Stuff: High voltage, vintage electronics etc.
Day Job: Mostly LEDs
 

Offline vmp

  • Contributor
  • Posts: 6
Re: Flir E4 Thermal imaging camera teardown
« Reply #5246 on: July 14, 2014, 07:39:58 am »
I connected the camera as RNDIS  using  flirs tool FLIRInstallNet  and Set_RNDIS_temporary.fif  from this forum.
I downloaded the file conf.cfg from my flir e4 using FileZilla.   (ip: 192.168.0.2  user: flir  pass: 3vlig  )
In Notepad I've changed:
". caps.config.image.settings.IRwidth int32 80
. caps.config.image.settings.IRheight int32 60 "
to
". caps.config.image.settings.IRwidth int32 320
. caps.config.image.settings.IRheight int32 240"
I've Fixed checksum using crc01.exe ( tool from this forum).

I switched the original file. After the restart i have 320x240 resolution in thermovision.

My conf.cfg was not encrypted.
My camera info: 
Model:   E4 1.1
serial:  639xxxxx
part number: 63901-0101
software  2.3.0
« Last Edit: July 14, 2014, 07:50:09 am by vmp »
 

Offline mikeselectricstuff

  • Super Contributor
  • ***
  • Posts: 11933
  • Country: gb
    • Mike's Electric Stuff
Re: Flir E4 Thermal imaging camera teardown
« Reply #5247 on: July 14, 2014, 08:03:07 am »
Seems reasonable that when upgrading FW it would keep the old config file, at least for an end-user upgrade, but looks like they did change it to a standard one with 80x60, but left it in the old format.
So the question is, how might you make a production 2.3 unit think it's an old but  upgraded unit (assuming production 2.3 is the same as "upgrade" 2.3)?
Bootloader version/functionality? EEPROM? Hardware differences ? Serial number?
It shouldn't be too hard to find where it's checking for this.

Here we go again...
Youtube channel:Taking wierd stuff apart. Very apart.
Mike's Electric Stuff: High voltage, vintage electronics etc.
Day Job: Mostly LEDs
 

Offline Fraser

  • Super Contributor
  • ***
  • Posts: 8318
  • Country: gb
Re: Flir E4 Thermal imaging camera teardown
« Reply #5248 on: July 14, 2014, 08:12:47 am »
Excellent work VMP  :-+

You have just given hope to those who have had to return their cameras to FLIR.

As Mike states, the production FW2.3 cameras may be a more challenging platform but at least your 'upgraded' unit was capable of being returned to its former self  :)

What was wrong with your camera that required it to be returned ? If they had fitted a new main board I would have expected it to be a production FW2.3 version spare part.

Aurora
 

Offline mikeselectricstuff

  • Super Contributor
  • ***
  • Posts: 11933
  • Country: gb
    • Mike's Electric Stuff
Re: Flir E4 Thermal imaging camera teardown
« Reply #5249 on: July 14, 2014, 08:17:19 am »
Excellent work VMP  :-+

You have just given hope to those who have had to return their cameras to FLIR.

As Mike states, the production FW2.3 cameras may be a more challenging platform but at least your 'upgraded' unit was capable of being returned to its former self  :)

What was wrong with your camera that required it to be returned ? If they had fitted a new main board I would have expected it to be a production FW2.3 version spare part.

Aurora
Or it could be that their spares stock is still older boards - these would probably move rather more slowly than production units so could hang around rather longer.
Interestingly vmp's hardware version was not showing the mysterious "L".
« Last Edit: July 14, 2014, 08:19:19 am by mikeselectricstuff »
Youtube channel:Taking wierd stuff apart. Very apart.
Mike's Electric Stuff: High voltage, vintage electronics etc.
Day Job: Mostly LEDs
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf