Linux C script to read sensor data from I2C bus

Closed

Description

I need a simple C script to read sensor data from a INA219 chip via I2C ( [url removed, login to view] ).

Everything is already written and documented for the 3.x kernel module ( [url removed, login to view] )

I use 2.6.32-5-486 Kernel and dont need a kernel module, simple c code that uses the #include and reads the data is enough.

I am currently stuck because all examples and kernel modules i found use i2c_read functions but due to kernel and smbus in i2c-dev.h I have to use i2c_smbus_read_i2c functions.

I am not a C programmer - I can already read registers but it seems that I mismatch datatypes, bits and bytes.

Skills: C Programming, C# Programming, Linux

See more: linux read sensor, ina219 i2c, i2c linux, script read, ina219 code, i2c linux code, read sensor data linux, ti programming, linux programming pdf, linux kernel programming pdf, i need a linux programmer, free c programming, c# programming pdf, c programming pdf, C Programming Linux, c programming free, c# programming examples, c programming examples, c# code free, c code examples, chip programmer, c++ code examples, sensor, lit, Linux SCript

Project ID: #4758825

Awarded to:

happycrab

I am a Linux kernel engineer, and am very skillful with Linux driver development. I can solve your problem sooner, believe me.

$15 USD in 1 day
(0 Reviews)
0.0

7 freelancers are bidding on average $24 for this job

akhila27

##### YOUR SEARCH ENDS HERE! ##### GET IT RIGHT THE FIRST TIME!. Contact us. SI Team.

$206 USD in 5 days
(12 Reviews)
6.2
LuisFelipe

Hi, I can provide you the user space application for reading the registers of the I2C-device, but need some additional information. Please see PMB. Thanks. Regards, Luis

$50 USD in 1 day
(1 Review)
2.8
jigneshbiren

Hi MrFlo, As per your description, I can understand no need modification in the linux device driver of INA219 (assumed its working file), Just we need to play at linux application level, as I looked in to driver code More

$11 USD in 2 days
(0 Reviews)
0.0
jemin

Can do this. See PM.

$20 USD in 7 days
(0 Reviews)
0.0
jainamber9

check my PM...!!!

$11 USD in 3 days
(0 Reviews)
0.0
the1storacle

please check PM

$25 USD in 3 days
(0 Reviews)
0.0
lankajayachandra

I am Buses Drivers developer in a reputed MNC which designs mobile chipsets. I have hands on experience on I2c, SPI, UART (serial buses) over LA (Linux Android), and I freelance during my spare time. If you are interes More

$35 USD in 2 days
(0 Reviews)
0.0