2026-04-12 17:47:54 +08:00
..
2026-04-12 17:47:54 +08:00
2026-04-12 17:47:54 +08:00
2026-04-12 17:47:54 +08:00

Example of lepton spi thermal sensor

download and build lepton spi driver

  1. git clone from Linux stable

     git clone git@vtxgit.vivotek.tw:bsp/linux/kernel/stable.git
    
  2. checkout commit ebc00e27093163d23408bcf0b9177391228c1a9e

     git checkout ebc00e27093163d23408bcf0b9177391228c1a9e
    
  3. The link of git commit is following.

     https://vtxgit.vivotek.tw/bsp/linux/kernel/stable/-/merge_requests/166/diffs?commit_id=ebc00e27093163d23408bcf0b9177391228c1a9e
    
  4. The link of related disscussion is following.

     https://vtxgit.vivotek.tw/bsp/linux/kernel/stable/-/merge_requests/166?diff_id=3147&start_sha=d69aa9a8030f31be7d5bdd566f148ad83e0653a1
    
  5. make kernel

     make vienna_defconfig
     make
    
  6. build driver

     cd drivers/thermal/flir_lepton/
     make
    

load driver and run app

  1. copy lepton.ko to your device

  2. insert lepton driver

     insmod lepton.ko spi_bus_num=1 spi_speed=13000000
    
  3. run rtsp/vospi

     ./rtsps -c stream_server_config.ini &
     ./vospi -c Resource/VIC/0/os05a10_2560x1920_ch0.cfg -a Resource/AutoScene/autoscene_conf.cfg &
    

use spi device

  1. run vospi by spi device(ex: /dev/spidev3.0)

     ./vospi -c Resource/VIC/0/os05a10_2560x1920_ch0.cfg -a Resource/AutoScene/autoscene_conf.cfg -s /dev/spidev3.0 &
    

Lepton device version

  1. Lepton 2.5

     ./vospi -t 2 -c Resource/VIC/0/os05a10_2560x1920_ch0.cfg -a Resource/AutoScene/autoscene_conf.cfg -s /dev/spidev3.0 &
    
  2. Lepton 3.5

     ./vospi -t 3 -c Resource/VIC/0/os05a10_2560x1920_ch0.cfg -a Resource/AutoScene/autoscene_conf.cfg -s /dev/spidev3.0 &