Questions tagged [smbus]

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.

88 questions
11
votes
4 answers

I²C bytes received out of order using Raspberry Pi Python SMBus

I am setting up a Raspberry Pi to record data (CO2, humidity, and temperature) from the Sensirion SCD30 sensor. My code is in Python 3, using the SMBus library to communicate with the sensor over the I²C pins in the Raspberry Pi's GPIO. There is a…
Aeolus
  • 996
  • 1
  • 8
  • 22
9
votes
2 answers

Getting IOError: [Errno 121] Remote I/O error with smbus on python (raspberry) while trying to get data over I2C from Arduino

I am facing problems, that pyhton throws me on my raspberry pi 3 sometimes this IOError during starting a script which is requesting data from an Arduino over I2C. Electrical connection is perfect so this is not the issues. Furthermore I also dont…
d s
  • 237
  • 1
  • 2
  • 11
4
votes
0 answers

Is the second release from SMbus correct?

I want to import the SMbus package: Link (I use Python 3.7) I tried running it with my cmd window on win10 and inside Visual Code. (pip install smbus) It was possible run install "smbus2" ! But this package also needs "smbus" :( I always get this…
JulianS
  • 41
  • 3
4
votes
0 answers

smbus access in pcie under windows

I'm looking for a way to control smbus line in PCIe slot of my PC. There's some device connected via PCIe in that slot. And I wanna access it via the SMBus line under Windows. But cannot find any API to use for that. Can you suggest me how to do…
4
votes
1 answer

SMBUS on the RPI gives IOError: [Errno 121] Remote I/O error

I have tried communication between RPi3 and stm32 over I2C. First of all I have installed i2c-tools and python-smbus. All in All I have used python script on the RPI as below: import smbus bus = smbus.SMBus(1) address = 0x0A data =…
J. Doe
  • 77
  • 1
  • 1
  • 8
3
votes
1 answer

I2C userspace communication on ArchLinux

I am trying to implement an application that will allow me to access the i2c bus from the user space similar to this https://www.kernel.org/doc/Documentation/i2c/dev-interface. Here it is stated that using smbus commands is preferred over using…
yash
  • 31
  • 3
3
votes
2 answers

python 3.7 import smbus ModuleNotFoundError no module named 'smbus'

I successfully built python 3.7 on my raspberry pi zero. now when I run my program using: python3 DungeonCube.py I get the following error: import smbus ModuleFoundError: No module named 'smbus' I have searched for solutions and it seems no one has…
Garry Osborne
  • 87
  • 2
  • 4
  • 11
3
votes
0 answers

SMBus write_i2c_block_data() command

So I started a project on a microcontroler that uses I2C communication a month ago with no knowledge about anything but python. I have to talk to a peristaltic pump that uses ASCII strings for communication. So my setup currently consists of a…
Kwang2846
  • 39
  • 1
  • 5
3
votes
1 answer

Reading motherboard sensors with Java Device I/O

OpenJDK has the Device I/O (DIO) library, which can be used to read hardware sensors. One supported bus in the DIO library is I2C. I have heard that desktop motherboard sensors are behind SMBus, basically a more restricted version of the I2C bus.…
Tuupertunut
  • 741
  • 7
  • 9
3
votes
0 answers

IOError: Errno 110 Connection timed out

I've try to connect a Heart Rate Sensor with raspberry pi Zero. to do it, I use the I2C port communication. I have a sensor in 0x50 adress and work correctly, but when I did a loop for a long time, the error appear (110). For example, I put a while…
2
votes
1 answer

Unreliable PEC on stm32 smbus

I've got a problem with PEC on STM32 SMBUS, which i use to read data from a MLX90614 IR thermometer. When i start the device, either the PECERR flag is set and continues to be set, for all transmissions, even though the data from the IR thermometer…
2
votes
0 answers

STM32 how to recover from lock up

I am trying to communicate with an SMBus battery. That has 2 sections so I am using 2 I2C modules. After the first I2C module makes a successful communication second module gets stuck. And it gets stuck in Busy. In that case I thought I need to…
2
votes
2 answers

Intel Z370 - SMBus on PCIe

I have here a card that fits in an PCIe slot, with some SMBus controllable chips on it. The card is self layouted and works fine in some older mainboard. In a newer mainboard (ASUS PRIME Z370-A) it is not working. The card is not using the PCIe…
Hans Müller
  • 71
  • 1
  • 5
2
votes
1 answer

I2C: Raspberry Pi (Master) read Arduino (Slave)

I would like to read a block of data from my Arduino Mega (and also from an Arduino Micro in another project) with my Raspberry Pi via I2C. The code has to be in Perl because it's sort of a plug-in for my Home-Automation-Server. I'm using the…
Julian M.
  • 21
  • 4
1
vote
0 answers

PI4IOE5V96248 communication with an Orange Pi zero 2 - Python

As you know there are almost none Raspberry Pi on the market (sold out, not available) where I got an Orange Pi zero 2 and for increasing the GPIOs I bought a PI4IOE5V96248 Expander. (48-bit I/O pins ) This communicates by I2C, Was created the next…
Electro
  • 11
  • 1
1
2 3 4 5 6