Author Topic: free Linux application for the TE-Q1 camera  (Read 1192 times)

0 Members and 1 Guest are viewing this topic.

Online kirill_ka

  • Regular Contributor
  • *
  • Posts: 240
  • Country: ru
free Linux application for the TE-Q1 camera
« on: December 07, 2019, 10:56:09 pm »
This is a basic thermal camera viewer application I wrote some time ago.
Now I'm releasing it for the case someone would find it useful.
https://github.com/KIrill-ka/tkthcam/releases/download/r0.5/tkthcam.tar.gz
For now it's not packaged. In the current state it's intended for people familiar with *nix command line.
Spells like this should get you started:
Code: [Select]
mkdir tkthcam
cd tkthcam
tar xzf  ../tkthcam.tar.gz
./tkthcam.tcl
Tcl/Tk 8.6 and libtk-img should be installed...
Ok, I'd add some documentation if there's some interest.


 

Offline Klaus

  • Contributor
  • Posts: 20
  • Country: de
Re: free Linux application for the TE-Q1 camera
« Reply #1 on: August 09, 2020, 09:21:53 pm »
Hi,

I'm interessed in some more information.

I can't start it  :'(
 

Online kirill_ka

  • Regular Contributor
  • *
  • Posts: 240
  • Country: ru
Re: free Linux application for the TE-Q1 camera
« Reply #2 on: August 10, 2020, 07:31:09 am »
Hi Klaus,

Do you have some output in the terminal? Please, provide the exact sequence of commands you are entering and the output.
 

Offline Klaus

  • Contributor
  • Posts: 20
  • Country: de
Re: free Linux application for the TE-Q1 camera
« Reply #3 on: August 10, 2020, 09:16:08 pm »
Hi kirill_ka,

i tried this:

root@raspberrypi:/home/pi/tkthcam# tclsh tkthcam.tcl
couldn't load file "/tmp/libimgtools0.3.so": /tmp/libimgtools0.3.so: wrong ELF class: ELFCLASS64
    while executing
"load $tmpFileName"
    (file "./imgtools-0.3.tm" line 21)
    invoked from within
"source -encoding utf-8 ./imgtools-0.3.tm"
    ("package ifneeded imgtools 0.3" script)
    invoked from within
"package require imgtools"
    (file "tkthcam.tcl" line 10)

Best Regards
 

Online kirill_ka

  • Regular Contributor
  • *
  • Posts: 240
  • Country: ru
Re: free Linux application for the TE-Q1 camera
« Reply #4 on: August 10, 2020, 09:48:50 pm »
couldn't load file "/tmp/libimgtools0.3.so": /tmp/libimgtools0.3.so: wrong ELF class: ELFCLASS64

Ah, that binary release is for x86-64.
I'd try to make a pi version if you want one. What do you think?
 

Offline Klaus

  • Contributor
  • Posts: 20
  • Country: de
Re: free Linux application for the TE-Q1 camera
« Reply #5 on: August 10, 2020, 09:59:58 pm »
That would be nice!
I'm using a RPi 3+
 

Online kirill_ka

  • Regular Contributor
  • *
  • Posts: 240
  • Country: ru
Re: free Linux application for the TE-Q1 camera
« Reply #6 on: August 10, 2020, 10:15:55 pm »
That would be nice!
I'm using a RPi 3+

Is it a 64bit ARM? I think I have an older pi which is 32bit... This makes things more complex.
 

Offline puch650tr

  • Newbie
  • Posts: 2
  • Country: at
    • My Website
Re: free Linux application for the TE-Q1 camera
« Reply #7 on: October 14, 2020, 08:51:27 pm »
Hi,

just found your little Software for the TE-Q1 cam. Finally i can use it under Linux and don't have to boot Windows.
I have run the program at my testing/experimenting system. It's just an old laptop, but with an actual version of Debian Testing. Starts and runs fine, no issues so far.

But one question: When starting the program as normal (non root) user, the camera is not detected. As root it works fine (as mentioned above). But is there a way to get it working as a normal user?
The camera shows up with „lsusb“ but does not show up as a device in /dev. So for now i have no clue what i can do to get it detected by your program as non root user.

Thanks very much for your great work!

Vincent
 

Online kirill_ka

  • Regular Contributor
  • *
  • Posts: 240
  • Country: ru
Re: free Linux application for the TE-Q1 camera
« Reply #8 on: October 15, 2020, 07:47:49 am »
Hi Vincent,

Yes, here are some "snips" from the i3systems' SDK installation scripts.
Code: [Select]
# move i3Vendor.rules
    mv ./i3Vendor.rules /etc/udev/rules.d/
Code: [Select]
$ cat i3Vendor.rules
SUBSYSTEM=="usb", ATTRS{idVendor}=="0547", MODE="0666"
SUBSYSTEM=="usb_device", ATTRS{idVendor}=="0547", MODE="0666"

Maybe you need to restart udev to apply the changes.

Alternatively you can make teq1drv setuid root.
Something like this:
Code: [Select]
chown root teq1drv
chmod u+s teq1drv
« Last Edit: October 15, 2020, 07:57:56 am by kirill_ka »
 
The following users thanked this post: puch650tr

Offline puch650tr

  • Newbie
  • Posts: 2
  • Country: at
    • My Website
Re: free Linux application for the TE-Q1 camera
« Reply #9 on: October 15, 2020, 07:29:07 pm »
Hi,

thanks for your answer!

Just one hour ago i figured it out by myself. Now it's working fine.
Yesterday night as i tried to sleep i had an idea. I have another device which had the same issue but i was not sure about the root cause. Then after playing with the camera and instead of falling asleep i managed to connect the dots. Wrote some udev rules and now both devices are working fine  :)

Thanks again for your work. I will mention it at my website (it's not big and only in german, so i guess nobody will see it. but who knows). I hope you keep on working at it, this would be great.

Have a nice evening,
Vincent
 
The following users thanked this post: kirill_ka

Online kirill_ka

  • Regular Contributor
  • *
  • Posts: 240
  • Country: ru
Re: free Linux application for the TE-Q1 camera
« Reply #10 on: October 19, 2020, 08:01:45 pm »
Thanks, Vincent.

I'm happy to know that you find my app useful. Feel free to post you suggestions and bug reports here or on the github.
Although, I can't promise to fix everything  ;)
Also it would be nice if you share a link to your site.

EDIT: I realized that there's a link to your site in profile.
« Last Edit: October 19, 2020, 08:17:11 pm by kirill_ka »
 

Online kirill_ka

  • Regular Contributor
  • *
  • Posts: 240
  • Country: ru
Re: free Linux application for the TE-Q1 camera
« Reply #11 on: October 19, 2020, 08:05:00 pm »
That would be nice!
I'm using a RPi 3+

Is it a 64bit ARM? I think I have an older pi which is 32bit... This makes things more complex.

I realized that I do have a RPI3. So I can try to make a port for raspbian. Do you still want it?
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf