Python Forum
Thread Rating:
  • 2 Vote(s) - 1.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SMBUS Support
#1
I would like to transfer five integer values from Python to an Arduino using SMBus, but I have run into a lack of useful documentation on SMBus. The best I have found is at wiki:linux:python:smbus:doc, but that still leaves questions.

Many of the functions require a 'cmd' parameter and the only example that they show is: b.read_byte_data(0x2f,0x58) where 0x2f is the address and 0x58 is cmd. What command is a hex 0x58? Where can I find a list of the other commands in values in hex? Other SMBus functions call for a 'char cmd' - would they be the character equivalents of the hex values?
Reply
#2
Don't know if this will help, but here's some sample code
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  SMBUS 'no such file or directory' hcccs 2 5,929 Jan-31-2021, 04:47 PM
Last Post: hcccs
  smbus contention handling PatM 1 2,435 Sep-21-2017, 07:13 PM
Last Post: PatM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020