User Tools

Site Tools


tools

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tools [2018/07/31 16:15] atherytools [2021/07/30 10:56] (current) – [FLIR camera] damien
Line 61: Line 61:
  
  
-===== Use CANUSB module =====+===== CANUSB module =====
  
 To use the CANUSB module : To use the CANUSB module :
Line 68: Line 68:
  
 In brief : In brief :
-  * To bind the CANUSB device (on port **/dev/ttyUSB0**) to the slcan interface (**slcan0**) and set up baud rate to 1Mbit/s (**-s8**) :+  * Install **can-utils** package : 
 +<code> 
 +sudo apt-get install can-utils 
 +</code> 
 +  * Check if the kernel modules "can", "can_raw" and "slcan" are already loaded using **lsmod**. If not  
 +<code> 
 +sudo modprobe can 
 +sudo modprobe can_raw 
 +sudo modprobe slcan 
 +</code> 
 +Make them load automatically : 
 +<code> 
 +sudo nano /etc/modules 
 +</code> 
 +Add the three modules "can", "can_raw" and "slcan" to the list (each goes in one line). 
 +  * Bind the CANUSB device (on port **/dev/ttyUSB0**) to the slcan interface (**slcan0**) and set up baud rate to 1Mbit/s (**-s8**) :
 <code> <code>
 sudo slcand -o -c -f -s8 /dev/ttyUSB0 slcan0 sudo slcand -o -c -f -s8 /dev/ttyUSB0 slcan0
 </code> </code>
-  * To bring the slcan interface up :+  * Bring the slcan interface up :
 <code> <code>
 sudo ifconfig slcan0 up sudo ifconfig slcan0 up
Line 86: Line 101:
  
  
 +===== USB-I2C (USB-ISS) module =====
 +
 +from [[https://www.robot-electronics.co.uk/htm/usb_iss_tech.htm]]
 +
 +To be used with [[https://github.com/milidam/devantech | i2c-devantech-iss]] kernel module, to access a dedicated ''/dev/i2c-x'' device on one's Linux desktop.
 +
 +Then you can use the ''/dev/i2c-x'' device directly, or request another kernel module to use it:
 +<code>
 +echo <your_module> <device_address> > /sys/bus/i2c/devices/i2c-<x>/new_device
 +</code>
 +
 +When using ''zsh'', the latest command may result into failure ''zsh: file exists: /sys/bus/i2c/devices/i2c-<x>/new_device''; in that case, just switch to //bash//, and the same command will succeed.
 +
 +===== FLIR cameras =====
 +==== PureThermal2 USB module ====
 +
 +https://groupgets.com/manufacturers/getlab/products/purethermal-2-flir-lepton-smart-i-o-module
 +https://lepton.flir.com/getting-started/
 +
 +On Ubuntu, can be used with the [[https://github.com/groupgets/GetThermal|GetThermal interface]].
 +
 +
 +==== FLIR ONE PRO ====
 +
 +Normally foressen to work with Android.
 +
 +But can be used on Linux using [[https://source.dpin.de/nica/flir-gtk|flir-gtk]]((on Ubuntu < 20.04, this requires the amnual install of https://github.com/DaveGamble/cJSON)).
 +
 +See also https://www.dpin.de/nf/thermal-camera-on-linux-flir-one-pro/.
tools.1533046520.txt.gz · Last modified: 2018/07/31 16:15 by athery