groupgets / purethermal1-uvc-capture

USB Video Class capture examples for PureThermal 1 / PureThermal 2 FLIR Lepton Dev Kit
124 stars 81 forks source link

Temperature values not being updated #42

Open Sergio- opened 3 years ago

Sergio- commented 3 years ago

Hi. I'm trying to use the V4L2 API to read the Aux and FPA temp from Lepton 2.5. The commands doen't return any error, but, the values are also not updated, it always return the same values.

lep_cid_sys_aux_temperature_kel 0x08030005 (int)    : min=0 max=65535 step=1 default=0 value=30947
lep_cid_sys_fpa_temperature_kel 0x08030006 (int)    : min=0 max=65535 step=1 default=0 value=31089
[solivo@t460ocdc uvcdynctrl]$ sudo v4l2-ctl -d /dev/video2 --all | grep tempe
lep_cid_sys_aux_temperature_kel 0x08030005 (int)    : min=0 max=65535 step=1 default=0 value=30947
lep_cid_sys_fpa_temperature_kel 0x08030006 (int)    : min=0 max=65535 step=1 default=0 value=31089
[solivo@t460ocdc uvcdynctrl]$ sudo v4l2-ctl -d /dev/video2 --all | grep tempe
lep_cid_sys_aux_temperature_kel 0x08030005 (int)    : min=0 max=65535 step=1 default=0 value=30947
lep_cid_sys_fpa_temperature_kel 0x08030006 (int)    : min=0 max=65535 step=1 default=0 value=31089
[solivo@t460ocdc uvcdynctrl]$ sudo v4l2-ctl -d /dev/video2 --all | grep tempe
lep_cid_sys_aux_temperature_kel 0x08030005 (int)    : min=0 max=65535 step=1 default=0 value=30947
lep_cid_sys_fpa_temperature_kel 0x08030006 (int)    : min=0 max=65535 step=1 default=0 value=31089

Any ideas of why that behavior? Any suggestions on how to the those values via the v4l API?

Thank you.

kekiefer commented 3 years ago

Are the results different if you use the -C switch to read a specific item?

Sergio- commented 3 years ago

Hi. Thanks for the quick reply. No, It seems to behave the same way:

[solivo@t460ocdc ~]$ v4l2-ctl -d /dev/video2 -C lep_cid_sys_aux_temperature_kel
lep_cid_sys_aux_temperature_kel: 30947
[solivo@t460ocdc ~]$ v4l2-ctl -d /dev/video2 -C lep_cid_sys_aux_temperature_kel
lep_cid_sys_aux_temperature_kel: 30947
[solivo@t460ocdc ~]$ v4l2-ctl -d /dev/video2 -C lep_cid_sys_aux_temperature_kel
lep_cid_sys_aux_temperature_kel: 30947
[solivo@t460ocdc ~]$ v4l2-ctl -d /dev/video2 -c lep_cid_rad_run_ffc=1
[solivo@t460ocdc ~]$ v4l2-ctl -d /dev/video2 -C lep_cid_sys_aux_temperature_kel
lep_cid_sys_aux_temperature_kel: 30947
[solivo@t460ocdc ~]$ v4l2-ctl -d /dev/video2 -C lep_cid_sys_fpa_temperature_kel
lep_cid_sys_fpa_temperature_kel: 31089
[solivo@t460ocdc ~]$ v4l2-ctl -d /dev/video2 -C lep_cid_sys_fpa_temperature_kel
lep_cid_sys_fpa_temperature_kel: 31089
[solivo@t460ocdc ~]$ v4l2-ctl -d /dev/video2 -C lep_cid_sys_fpa_temperature_kel
lep_cid_sys_fpa_temperature_kel: 31089
[solivo@t460ocdc ~]$ v4l2-ctl -d /dev/video2 -C lep_cid_sys_fpa_temperature_kel
lep_cid_sys_fpa_temperature_kel: 31089
[solivo@t460ocdc ~]$ v4l2-ctl -d /dev/video2 --all | grep tempe
lep_cid_sys_aux_temperature_kel 0x08030005 (int)    : min=0 max=65535 step=1 default=0 value=30947
lep_cid_sys_fpa_temperature_kel 0x08030006 (int)    : min=0 max=65535 step=1 default=0 value=31089