python smbus I2C FLIR Lepton

Hello everyone,

I would like to send messages via the I2C with a python script to the FLIR Lepton camera module. I need some help with the syntax, I read the lepton datasheet but I do not understand the terms Word start and Word end. I tried sending different messages via the smbus lib for python but I was not yet sucessful in receiving an answer via I2C. I am using the correct address 0x2a but what should follow? SPI works fine I get images.

https://cdn.sparkfun.com/assets/e/9/6/0 … Module.pdf

Kind regards

Is this guide of any help?

https://learn.sparkfun.com/tutorials/fl … l#software

Here is a video too. The user may share the code on request: https://www.youtube.com/watch?v=I03k5C-12Cs

Hello,

thank you for the reply but I have been reading through the guide already for setting up the camera. I now need control of the I2C. This is however described in the engineering datasheet but it is not clear to me what I have to do maybe I supply the lines I dont understand. First a simple example program for I2C communication.

import smbus
I2Cbus = smbus.SMBus (1)
address = 0x2a # FLIR lepton has this address

def rec(register):
    read = I2Cbus.read_byte_data(address, register)
    return read

def send (register, data):
    write = I2Cbus. write_byte_data (address, register, data)
    return

send (...What to send???...)

Datasheet table:

Telemetry Row        Word start        Word End        Number of 16Bit Words        Description
A                    0                 0               1                            Telemetry revision
A                    1                 2               2                            Time counter
A                    3                 4               2                            Status Bit

and so on. What is the register and what is data?

(I am sorry I am not so familiar with BBCode no nice table)