From: mhoffman@lightlink.com (Mark M. Hoffman)
To: lm-sensors@vger.kernel.org
Subject: Python bindings to i2c-dev
Date: Thu, 19 May 2005 06:25:28 +0000 [thread overview]
Message-ID: <20050102222545.GE17759@jupiter.solarsys.private> (raw)
In-Reply-To: <20041229050526.GA5431@jupiter.solarsys.private>
Hi MDS:
> Mark M. Hoffman wrote:
> >After a couple false starts and some hair-pulling, here is a Python module
> >which allows SMBus access through the I2C /dev interface. I would like to
> >eventually add this to the lm_sensors project.
(...)
* Mark D. Studebaker <mds4@verizon.net> [2004-12-31 18:25:54 -0500]:
> what was the motivation for this?
(1) to learn some of the internals of Python. (2) to have a quicker
and more nimble way than C code to control (and therefore test) a bus
adapter. It's very convenient to fire up the Python shell and be able
to slam out bus transactions as one-liners. As I suggested in another
thread, it would make a good tool for prototyping chip drivers.
> do you have any interesing i2c Python programs to share with us?
Heh, not yet. As you know, I've been playing with SMBus/ARP in Python...
but not because I think it should be implemented that way. It's just
the only thing I have in this system that responds to block reads/writes;
and thus the only thing I can use to test those xfers in the new i2c-i801
driver (when I get that far).
Why not port smbus-arp.c to kernel 2.6? I don't see much point in doing
that, at least not in its present form. IMHO proper SMBus 2.0 support
would require some slave support in the bus adapter (required by spec),
as well as some coordination and extension of i2c-core to handle the
details. I'd like to work on that, but I don't have the time right now.
And to answer what has become a FAQ: even though I'm not the biggest fan
of Perl, I do *not* plan on re-writing sensors-detect in Python. Even
if someone jumped up and volunteered, I would argue against doing it.
However, it might be useful to make a Perl module with similar intent to
these Python bindings, separate from sensors-detect (cut-n-pasted from it
even).
Regards,
--
Mark M. Hoffman
mhoffman@lightlink.com
next prev parent reply other threads:[~2005-05-19 6:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-19 6:25 Python bindings to i2c-dev Mark M. Hoffman
2005-05-19 6:25 ` Jean Delvare
2005-05-19 6:25 ` Mark M. Hoffman [this message]
2005-05-19 6:25 ` Mark Studebaker
2005-05-19 6:25 ` Mark M. Hoffman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050102222545.GE17759@jupiter.solarsys.private \
--to=mhoffman@lightlink.com \
--cc=lm-sensors@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.