* Re: i2c-tools available commands
[not found] <BN4PR12MB0753BFBF4E74CD966C61449CE6230@BN4PR12MB0753.namprd12.prod.outlook.com>
@ 2015-10-28 12:53 ` Jean Delvare
[not found] ` <BN4PR12MB0753763D8979E33B80683D92E62C0@BN4PR12MB0753.namprd12.prod.outlook.com>
0 siblings, 1 reply; 3+ messages in thread
From: Jean Delvare @ 2015-10-28 12:53 UTC (permalink / raw)
To: Stephen Davis; +Cc: linux-i2c@vger.kernel.org
Hi Stephen,
Le Monday 26 October 2015 à 23:52 +0000, Stephen Davis a écrit :
> I have just started to use i2c-tools via the rasp2c module using
> nodejs on my Raspberry Pi. I have not been able to track down the
> commands that are available to i2c-tools. Is there a place where I can
> find this information?
I have no idea what rasp2c and nodejs are.
Commands included in i2c-tools are i2cdetect, i2cdump, i2cget and
i2cset. They all come with a manual page. Also included are
i2c-stub-from-dump, ddcmon, decode-dimms and decode-vaio but probably of
lesser interest to you.
The exact list of commands included in your specific case depends what
the packager decided to do. I suppose that commands that are not
relevant on the Raspberry Pi are not included in the package.
--
Jean Delvare
SUSE L3 Support
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: i2c-tools available commands
[not found] ` <BN4PR12MB0753763D8979E33B80683D92E62C0@BN4PR12MB0753.namprd12.prod.outlook.com>
@ 2015-11-02 14:07 ` Jean Delvare
2015-11-02 18:50 ` Wolfram Sang
0 siblings, 1 reply; 3+ messages in thread
From: Jean Delvare @ 2015-11-02 14:07 UTC (permalink / raw)
To: Stephen Davis; +Cc: Wolfram Sang, Linux I2C
Stephen,
Please keep the list on Cc and don't top-post.
Le Monday 02 November 2015 à 13:23 +0000, Stephen Davis a écrit :
> Thanks for the response. What I'm trying to do is use the i2c port on the Pi. I've
> seen how it can be done with Python, but we are trying to do it without it
> (if possible). I've got a slew of microcontrollers on the i2c bus and am an in
> the process of writing our comm protocol so I really just need a read and write
> from the Pi's i2c. Is this possible? I'm running Raspbian Wheezy (Desbian).
If your micro-controllers are connected to the I2C port of the Pi, you
should indeed be able to talk to them from user-space. Anyway if it
worked with python you can definitely do it without it. Depending on the
exact protocol required by the micro-controllers, i2cget and i2cset may
be enough (if the micro-controllers only use basic SMBus-compliant
commands) or you may need Wolfram Sang's upcoming i2ctransfer tool (I
reviewed it some times ago, no news since, Wolfram where are we with
it?)
If even that isn't enough, you may have to write your code in C
directly, linking with the upcoming libi2c library. It's a bit difficult
at the moment though with the hosting website being down.
> Is this the i2cget and i2cset functions? Those seem to want an
> internal address of the slave devices (seems more geared towards
> external memory).
i2cget and i2cset want a slave address function. Your micro-controllers
need to have a slave I2C address if you want to be able to talk to them
from the Pi. Check the python code and the hardware documentation, the
slave address is certainly mentioned there.
--
Jean Delvare
SUSE L3 Support
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: i2c-tools available commands
2015-11-02 14:07 ` Jean Delvare
@ 2015-11-02 18:50 ` Wolfram Sang
0 siblings, 0 replies; 3+ messages in thread
From: Wolfram Sang @ 2015-11-02 18:50 UTC (permalink / raw)
To: Jean Delvare; +Cc: Stephen Davis, Linux I2C
[-- Attachment #1: Type: text/plain, Size: 91 bytes --]
> reviewed it some times ago, no news since, Wolfram where are we with
> it?)
-EBUSY :(
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-11-02 18:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <BN4PR12MB0753BFBF4E74CD966C61449CE6230@BN4PR12MB0753.namprd12.prod.outlook.com>
2015-10-28 12:53 ` i2c-tools available commands Jean Delvare
[not found] ` <BN4PR12MB0753763D8979E33B80683D92E62C0@BN4PR12MB0753.namprd12.prod.outlook.com>
2015-11-02 14:07 ` Jean Delvare
2015-11-02 18:50 ` Wolfram Sang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).