Skip to content

openthermalcamera/Nodejs-Module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node.js module for Open Thermal Camera

Node.js module that communicates with the Open Thermal Camera (OTC) via serialport. OTC communications protocol uses COBS, for which we have used cobs Node.js module.

Installation

Module is available on npm

$ npm install otc

Examples

There are a few examples of how to use the module in /test-otc and /test-mlx MLX90640.js is used for parameter extraction and getting temperature from bytes. It is just a JS version of original MLX90640 library published by Melexis

Interface

List of module exports. You can find the description of all interface calls on the protocol page.

  • connect: Opens serial port. If no data is passed (VID, PID), it will use defaults VID and PID of OTC
  • sendPing: interface call. Parameter: Ping value
  • getEE: interface call
  • getFrameData: interface call
  • setResolution: interface call. Should use one of resolution enums
  • getResolution: interface call
  • setRefreshRate: interface call. Should use one of refreshRate enums
  • getRefreshRate: interface call
  • setMode: interface call. Should use one of scanMode enums
  • getMode: interface call
  • setAutoFrameSending: interface call. Should use one of autoFrameSending enums
  • getFirmwareVersion: interface call
  • jumpToBootloader: interface call
  • setCallbackForNewData: In parameter you pass the function you want to be called when new temperature data is recieved. Example in /test-otc
  • getPortsList: Returns a list of all serialports available
  • refreshRate: "enum" for setRefreshRate
  • resolution: "enum" for setResolution
  • scanMode: "enum" for setMode
  • autoFrameSending: "enum" for setAutoFrameSending

About

Node.js module for Open Thermal Camera

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published