smbus

Reading motherboard sensors with Java Device I/O

♀尐吖头ヾ 提交于 2019-12-24 00:48:31
问题 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. Can I use DIO to read sensor data from my motherboard - for example, the CPU temperature? If so, how? 来源: https://stackoverflow.com/questions/42539556/reading-motherboard-sensors-with-java-device-i-o

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

余生颓废 提交于 2019-12-12 04:39:12
问题 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: After many tests, i can exchange multiple data between arduino as slave and Raspberry pi3 as master. Arduino code: #include <Wire.h> byte data[12]; int command; typedef struct processData{ float temp1; float temp2; float temp3; float temp4; float vazao_quente; float

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

与世无争的帅哥 提交于 2019-12-08 00:31:27
问题 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 = [1,2,3,4,5,6,7,8] bus.write_i2c_block_data(address, 0, data) When I run script, I can see following error: IOError: [Errno 121] Remote I/O error STM32 is configured as I2C slave, both device are connected correctly(SDA, SCL and GND). How do I know that? I have made

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

前提是你 提交于 2019-12-06 10:55:45
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 = [1,2,3,4,5,6,7,8] bus.write_i2c_block_data(address, 0, data) When I run script, I can see following error: IOError: [Errno 121] Remote I/O error STM32 is configured as I2C slave, both device are connected correctly(SDA, SCL and GND). How do I know that? I have made program using BCM2835 library. C program worked correctly. C program sent buffer without any errors.