Dali D8X3N Thermal Camera: Difference between revisions

Added web raw viewer
Line 48: Line 48:
<br />
<br />


===D8X3N Module closer look===
==D8X3N Module closer look==
From now on, i will refer to the Thermal Imaging Module as TIM
From now on, i will refer to the Thermal Imaging Module as TIM


Line 84: Line 84:




===Viewing the Video Stream===
=Viewing the Video Stream=
[[File:Onvif Device Manager ODM.png|thumb|ODM streaming the Thermal view]]
[[File:Onvif Device Manager ODM.png|thumb|ODM streaming the Thermal view]]
when first connecting it to power and Ethernet, the camera will have 192.168.1.102 as a Static ip.
when first connecting it to power and Ethernet, the camera will have 192.168.1.102 as a Static ip.
Line 140: Line 140:




===Viewing Raw Thermal Data from the Web API===
==Viewing Raw Thermal Data from the Web API==
there is a hidden endpoint in the stream.so file that could be found while decompiling
there is a hidden endpoint in the stream.so file that could be found while decompiling


Line 188: Line 188:
====Snapshot Parameters====
====Snapshot Parameters====


*[[File:Dali D8X3N Raw Thermal viewer.png|thumb|Raw Data Viewer in python]]<code>Snap=[Yes/No]</code> - Enable snapshot mode
*<code>Snap=[Yes/No]</code> - Enable snapshot mode
 
==== Raw Viewer for PC (Python) ====
[[File:Dali D8X3N Raw Thermal viewer.png|thumb|Raw Data Viewer in python]]




Line 199: Line 202:
rev2 with temperature readout  https://pastebin.com/u107Q85w
rev2 with temperature readout  https://pastebin.com/u107Q85w


rev3 and onward will only be available directly as a Webpage on the Device (see below).
==== Raw Viewer for the internal Webserver (recommended) ====
It is also possible to use the Raw viewer directly in the browser.
To achieve this, the stream had to be proxied from port 5000 to 80 due to CORS.
luckily the internal lighttpd had the CGI module enabled, so piping it troug (using wget ... i know) worked with very low overhead.
To install, you need '''Terminal access''' to the Camera. see below.
optional for simplicity: '''ftp''' access
Then download the '''rawviewer.zip''' from [https://archive.org/details/rawviewer_202508 here]  (rev3 with histogram, javascript)
[[File:Dali D8X3N Webviewer.png|thumb|Web Raw Viewer with histogram (rev3)]]




unpack the web folder into '''/app''' and '''restart''' your camera.


It should be accessible now trough '''http://<camera ip>/raw.html''' in the browser and click '''Start Stream'''
<br /><blockquote>performance may need improvement.</blockquote>








===Getting Root Terminal Access===
==Getting Root Terminal Access==
To access the Terminal you need to solder or plug in a UART connection to Connector J7 on the "Glue" board.  
To access the Terminal you need to solder or plug in a UART connection to Connector J7 on the "Glue" board.  


Line 214: Line 237:
<br />
<br />


===(optional) Enabling Telnet access to make patching easier===
====Enabling Telnet access to make patching easier====
[[File:Upgrade ici dali firmware updater.png|thumb|ICI Firmware updater software with modified firmware loaded]]
[[File:Upgrade ici dali firmware updater.png|thumb|ICI Firmware updater software with modified firmware loaded]]


Line 225: Line 248:


The Login credentials are '''User: roo'''t  '''Password: DLroot'''
The Login credentials are '''User: roo'''t  '''Password: DLroot'''
<br />
=== Patching Device ===




===Patching the Web Server===
===Patching the Web Server===
<br />
==== Enabling Telnet and ftpd permanently ====
This only works if you also patch the Thermal Camera module flash!  
This only works if you also patch the Thermal Camera module flash!  


Line 235: Line 269:




<br />




====patching the decoder and streamer to 640x480:====
====Patching the decoder and streamer to 640x480:====
go to /app and edit the mach.cfg
go to /app and edit the mach.cfg


Line 250: Line 283:
edit the app.sh in /app and remove all "reboot" occasions to prevent the camera from rebooting if onvifserver, httpd or daliServer arent running for debugging purposes.
edit the app.sh in /app and remove all "reboot" occasions to prevent the camera from rebooting if onvifserver, httpd or daliServer arent running for debugging purposes.


===Patching the Thermal Camera module===
 
 
<br />
 
====Patching the Thermal Camera module====
To patch it, you need to disassemble everything down to the FPGA Board,
To patch it, you need to disassemble everything down to the FPGA Board,