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
1
vote
0 answers

python cmbus2 block read starting with 2nd memory address on EEPROM

I am interfacing with 24LC512 and 47C16 EEProm/EERam I have stored multiple bytes starting at location 0 on both chips. on the 24LC512 I get these results - notice when I execute a block read using bus.read_i2c_block_data, it starts with the 2nd…
Kurt
  • 35
  • 4
1
vote
1 answer

How to access (read/write) EEPROM device via SMBus/I2C in a pci device? (LINUX)

I have a PCI device with EEPROM in it that supports SMBus/I2C. I would like to create a userspace application (Linux) that can read and write to target EEPROM. Similar to what IPMI is doing in querying VPD information on every SSD/NVME device.…
starz
  • 11
  • 1
  • 5
1
vote
0 answers

Building I2C Structs

Hello I am looking at this documentation. https://www.kernel.org/doc/html/v4.11/driver-api/i2c.html My goal is simply to write some data to an EEPROM using an I2C bus. I am a bit confused on which functions to use and how to populate the structures…
John Frye
  • 255
  • 6
  • 22
1
vote
1 answer

Operating the AD5272 with Python 3 and smbus2 on Raspberry Pi 3 B+

I have a problem operating the AD5272 using Python 3 on Raspberry Pi 3 B+. AD5272 is the digitally controlled rheostat with I2C interface (my part has resistance 20 kOhm). The problem is following: The resistance between A and W terminals doesn't…
Araneus0390
  • 556
  • 1
  • 5
  • 18
1
vote
1 answer

How i write multiple float data to Arduino from Rpi as master via i2c?

I read many post how Rpi receives float data via Arduino via i2c, with Rpi as master. But i need write floats values to arduino and i don't found any example. I want to use python smbus. Any one have a example? Thanks a lot!
1
vote
0 answers

Bitbanging I2C with /dev/i2c-%d

Is it possible to control the data/clock pins of i2c for bitbanging with /dev/i2c-%d? if no, What other options are available for controling those pins of i2c that are connected to the machine? I've tried SMBus but according to SMBus Protocol…
Konk Wory
  • 83
  • 7
1
vote
0 answers

Add own sensor to lm_sensors?

I have a PCIe connected to my linux server and want to use SMBus pins to communicate via I2C to a slave uC (atmega128). This slave will, similarly, read some temperature also via I2C (the wires are multiplexed by a signal controlled by the uC, so it…
Angel
  • 71
  • 1
  • 1
  • 5
0
votes
0 answers

i2c_smbus_write_byte_data not working on the Raspberry Pi 3

I am trying to access the mpu6050 with a C program in userspace and I have 2 helper functions to let this take place: unsigned char readMPU(unsigned char reg) { unsigned char res; /* Using SMBus command */ res =…
0
votes
0 answers

Get the SMBus device address on the terminal and set the clock frequency

How can I identify the SMBus device address on the terminal? Also, I would like to know how to set the clock frequency in the i2c.h file. I attempted to use i2cdetect -y 6, but unfortunately, it did not work. Are there any alternative methods for…
0
votes
2 answers

python i2c smbus erro, data sending

here is an programe from github https://github.com/karabek/OrangePi-OLED/blob/master/oled/device.py , it's for sending data to i2c oled device. I'm trying to make it work on my system. I changed the program a litle bit to let it work on port 3 and…
james
  • 1
  • 2
0
votes
1 answer

read/write on eeprom from linux userspace

I am working on an custom embedded device based on iMX8MP MPU. I need to read the first 16 bits of the EEPROM connected to address 0x50 on the i2c-0 bus in Linux from user space. In the first place, I wrote on my eeprom thanks to u-boot as…
void_brain
  • 642
  • 2
  • 13
0
votes
1 answer

Is it possible in smbus2 to have start and stop conditions as you wish?

I am using my own processor and SMBUS2 to communicate with an external device over i2c. I have to follow the procedure below to be able to read the IDCODE of the device. Is it possible in smbus2 to have start and stop conditions as you wish? I2C…
Tahseen
  • 87
  • 2
  • 9
0
votes
0 answers

What's the difference between a dma_addr_t and a bus address?

Ok, here's what I'm doing. Get vendor ID and device ID of my SMBus and use it in pci_get_dev() to get pdev. Get the dev using &pdev->dev and save it to struct device *smbus_dev Map a page to DMA using dma_map_page(smbus_dev,…
Allan Almeida
  • 13
  • 1
  • 5
0
votes
2 answers

Raspberry pi pip install illegal instruction erorr

I was trying to install smbus2 with pip3 in raspberrypi 4(raspberry pi os 64bit). But it says "Illegal instruction". Why does it happen and How can I solve it? pi@raspberrypi:~ $ pip3 install smbus2 Illegal instruction
0
votes
1 answer

Getting "OSError: [Errno 121] Remote I/O error" when trying to access LCD screens over I2C (python in raspberry)

I have been updating an old raspberry intercom project I found on Github a while ago as a beginner project, everything was working good on the handheld stations until I got to the Operator basestation, witch has 4 LCD screens connected to my…
Frenchman
  • 1
  • 1