SMBus (System Management Bus) provides a control bus for the system to pass the messages to/from devices instead of using an individual control lines, this control helps to reduce pin count and system wires.
Questions tagged [smbus]
88 questions
0
votes
0 answers
How to operate at24c32 by smbus in linux?
What if the EEPROM used is greater than 32K, such as at24c32, and the register address is 16bit? It seems that smbus only supports 8bit registers?
I can read 0xff, but the written content will return - 5, which fails.
I want to know whether the…

lugc1
- 1
- 1
0
votes
0 answers
Getting UV-A and UV-B Light Intensity from a VEML6075 I2C Sensor
According to the spec sheet, the VEML6075 sensor from manufacturer Vishay delivers UV-A and UV-B intensity. And since the sensor, a photodiode, has cross sensitivity to visible and infrared light, the sensor offers additional signals, which…

ullix
- 333
- 1
- 3
- 14
0
votes
0 answers
Getting IOError: [Errno 121] Remote I/O error with I2C python (raspberry)
I know the problem has been treated many times...but I'm not able to resolve it...
I have a Raspberry with Python script to communicate with a custom board in I2C and I always have this Errno 121
In the terminal I tried sudo i2cdetect -y 1 and the…

SamPirate
- 11
- 3
0
votes
0 answers
ImportError: no module named 'smbus2'. In pip manager package seems installed but when i use it, it gives error
#!/usr/bin/env micropython
from ev3dev2.sensor import INPUT_1
from ev3dev2.port import LegoPort
from smbus2 import SMBus
from time import sleep
#preparing Port_1 for pixy
in1 = LegoPort(INPUT_1)
in1.mode = 'other-i2c'
sleep(2)
#connecting pixy
bus…

Yakup Mete Mağden
- 41
- 1
- 1
- 2
0
votes
1 answer
Unable to access SPD information on AMD EPYC
Background
I'm trying to access the Serial Presence Detect Data via i2c on CentOS 7 Linux. I'm mainly looking for the SPD Revision located in byte 1 and is consistent on DDR3 and DDR4 charts. The SPD Revision can not be found through dmidecode,…

jw-smc
- 23
- 5
0
votes
1 answer
I2c format causing problem: Raspberry Pi not reading ADC
I am unable to read an ADC (LTC2453) over i2c using a Raspberry Pi and python. I believe the problem is a mismatch between what SMBus outputs and what the ADC expects.
In my python program (copied below) I call for an ADC read with the…

user3026317
- 1
- 2
0
votes
1 answer
TypeError: object with buffer protocol required - trying to write to SMBus
I'm using a raspberry pi pico to read data from a SHT3x sensor using the I2C protocol. I'm quite new to (micro)python so I used this example. This example is for a regular Raspberry Pi since I didn't find any for the Pico. However, the SMBus library…

Bas de Jong
- 13
- 2
- 4
0
votes
1 answer
Raspi I2c IOError: [Errno 121] Remote I/O error
I'm trying to get data from i2c but it shows with IOError: [Errno 121] Remote I/O error. I would know which part went wrong and how to fix it.
import time
import smbus
import math
# define BMP388 Device I2C address
I2C_ADD_BMP388_AD0_LOW = …

matrunaydo
- 19
- 1
- 2
0
votes
1 answer
MCP3424 ADC Problem: Not saving config byte / Reads not according to datasheet
I am having a bit of a hard time with an MCP3424 ADC. (datasheet)
Setup
The device is connected via I2C (100kB/s), the address is "1101000" (A1 and A2 tied to GND).
I can communicate with the device and write the configuration byte according to the…

namor
- 1
- 1
0
votes
1 answer
#include file not found
In my qt program I include the headers for i2c/smbus (as I did for other projects, also with yocto but different SoC vendor).
Kernel 4.14.24
extern "C"
{
#include
#include
#include << FAIL:…

codeshredder726b
- 53
- 10
0
votes
2 answers
Using SMBUS_EEPROM in qemu
I am trying to emulate and use a smbus_eeprom device in QEMU. The smbus_eeprom implementation is already part of the open source QEMU code base.
And I am giving the following parameter in the launch command to use the same:
-device…

nerd
- 339
- 1
- 5
- 16
0
votes
1 answer
Linux: writing to the i2c/SMBus
I have a problem with the i2c/SMBus on a Linux System with an Intel Apollo Lake processor. I am trying to read/write from/to an EEPROM but I face some issues. My EEPROM is located at the address 0x56, and I am able to watch the Bus with my Logic…

mates868
- 31
- 1
- 7
0
votes
1 answer
Python27 binary MSB LSB manipulate
I've got this simple question that i can't crack.
I do a readout from a chip that gives med MSB and LSB using SMBus in Python2.7.
I need to remove the 2 first bit in MSB and then combine it with the last 8 bit fron LSB.
Like:
MSB =…

RAJensen
- 65
- 1
- 8
0
votes
2 answers
Can't compile i2c_smbus_write_byte on Raspberry Pi 4
Has anybody tried using the i2c_smbus_write_byte or any similar function on Raspberry Pi 4?
I can't get it to compile; it fails at the linking with not finding it.
I'm using it as described here:…

mjarvas
- 11
- 1
- 8
0
votes
1 answer
Linux SMBus Block transaction types
The latest SMBus spec V3.0 20th Dec 2014 shows only one type of block write/read (excluding block process call):
6.5.7 Block Write/Read
Write: Address(Wr), Command, Count = N, Byte 1, Byte 2, ..., Byte N [, PEC]
Read: Address(Wr), Command,…

boot-and-bonnet
- 731
- 2
- 5
- 16