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
0
votes
3 answers

Difference I2C Sensor Reading Raspberry Pi and Arduino

I am using the Sensirion SFM3300 flow sensor and can read the correct values with the Arduino with the following code (I2C): #include void setup() { // put your setup code here, to run once: Wire.begin(); Serial.begin(115200); …
0
votes
0 answers

How to read a block of data from MPU6050 by I2C using C++

I use the MPU6050 device and get accelerometer and gyroscope data. Now I need to read a block of data from the MPU6050 using cpp language. It was easy to do this in Python: data_tmp = bus.read_i2c_block_data(Device_Address, ACCEL_XOUT_H, 14) This…
Natal04ka
  • 45
  • 6
0
votes
0 answers

How do I emulate I2C_RDWR ioctl with the help of I2C_SMBUS ioctl?

The underlying driver on my system does not support I2C_RDWR ioctl. It only supports I2C_SMBUS. My requirement is to support single message I2C_RDWR ioctl with I2C_SMBUS either in user or kernel space. How can I achieve this?
tsk
  • 1
  • 2
0
votes
1 answer

Is there any way to read/write more than 32 bytes on Linux based SMBus interface?

I am trying to access an I2C based device through SMBus ioctls on Linux. I need write more than 32 bytes. I2C_SMBUS ioctl limits the size to 32 bytes. The underlying driver does not support I2C_RDWR ioctl and direct read()/write() calls. I have…
tsk
  • 1
  • 2
0
votes
0 answers

Python smbus read data

Is it possible to read 3 parameters over Smbus? First, I say which 8 bit are to read or write: bus.write_byte_data(0x08, 0x4E, 0x30) I write follow command (3 parameters): bus.write_byte_data(0x08, 0x4D, 0x10) but I can only read all 8 bits…
Alitai
  • 3
  • 2
0
votes
1 answer

Convert from mbus protocol to modbusIP

Im trying to convert mbus protocol to modbus IP protocol with a raspberry. Im new on this, just doing bcs my boss asked. I´ve been searching on all google, but I found nothing. Any help would be helpful. I´ve tried to read mbus bytes to convert, but…
javiertxu18
  • 207
  • 1
  • 9
0
votes
0 answers

using smbus to send array of values

I have a piece of code that sends commands to a board using the i2ctransfer command. This command is called inside python using subprocess.Popen and I'm rewriting the code to use some builtin python package like smbus, however I'm having…
user2261062
0
votes
1 answer

Turning One Raspberry Pi I2C Connected Relay On Turns the Other Relay Off

Currently, I have two, 2-Channel 1 Amp SPDT Signal Relay Controllers connected to my Raspberry Pi 3 via I2C, and when I currently run the function to turn one relay on, the other one will shut off at the same time (one or the other is on). In…
user10576065
0
votes
2 answers

Host SMBus controller is not enabled

I have maked a backup from my VMWare Virtual Machine. I have imported it into the source folder. At the first time i can start the VM, it shows me the error, but i can start it. But when i reboot the VM, the error shows me, but the VM dont start.…
user11532543
0
votes
1 answer

PIC I2C PPS configuration

I will be communicating with some device via SMBus. I use PIC18F26K83 and I will use RB1 and RB2 pins as SCL and SDA pins. My question is about PPS mapping. In datasheet it says that I need to set both of these pins to both input and output. As PPS…
0
votes
0 answers

Why are multiple print statements speeding up following IO read loop?

I have an I2C device connected to my Raspberry Pi 3. The I2C device is storing 9 samples in its FIFO buffer at 104Hz. I poll the device for the amount of samples stored. Each sample is 2 bytes. When the FIFO buffer reaches 2016 samples I read all…
Ketil
  • 21
  • 3
0
votes
1 answer

SMBus v1.1 voltage threshhold value

I am planning to use PIC18F26K83 and communicate with a smart battery that uses SMBus ver 1.1. So from the datasheet of PIC it says I need to choose appropriate input threshhold for SMBus from RxyI2C register. Bit 0 and 1 are being used for choosing…
0
votes
1 answer

SMBus Address and BaudRate

I need to communicate with some batteries ( BT-70791CK from BrenTronics). They use SMBus ver 1.1 for communication, but in datasheet of the batteries there is no information about the SMBus address they have or the baudrate. I asked them and they…
0
votes
1 answer

Fail to retrieve info through SMBus to Atmel chip

This is my setup, Atmel chip (SAMD20E18A-MUT) SM bus two pins connected to Host PC via SMBus/USB adapter chip CP2112). On host side, managed to scan the SMBus (6) through i2c-tools and see the Atmel device at slave address 0x6a. send 1 byte data to…
ninja pn
  • 1
  • 2
0
votes
1 answer

Writebyte and Readbyte esp QMC5883 on Python (Beaglebone Black) appear Errno 110

I could not find the suitable code for this BBB Python as many source codes would express more on Raspberry Pi and Arduino. I am using VMware and Ubuntu_18 to run the linux terminal in order to run my BBB. This are my starting few lines code to try…
Azriel Tan
  • 61
  • 1
  • 5