From: Daniel Mack <daniel-rDUAYElUppE@public.gmane.org>
To: 伊泽 <wxc200-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: Ayman KHAMOUMA <ayman.khamouma-qxv4g6HH51o@public.gmane.org>,
linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
pramod gurav
<pramodforum-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
Jean Delvare <khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org>
Subject: Re: Need help on selecting one (and only one) i2c bus
Date: Wed, 11 Mar 2009 11:40:50 +0100 [thread overview]
Message-ID: <20090311104050.GA28547@buzzloop.caiaq.de> (raw)
In-Reply-To: <fd6b62c10903110319w1eebd2ebs4b83e7d1247f1678-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
On Wed, Mar 11, 2009 at 06:19:18PM +0800, 伊泽 wrote:
> > Not true. You need to provide a firmware for that device and this
> > firmware selects the I2C slave address. Read the datasheet again.
>
>
> Thanks Jean, daniel,
>
> Yeah, the capsensor has the function to re-program its own slave address ,we
> did try that already. If programmed with other address, only coming out data
> "0".
>
> The capsensor with 0x00 can also work with correct data,except the phone
> hang problem.
>
> I really be confused, when i2c bus unit is blocked by some slave device, is
> it necessary to control the scl/sda by GPIO mode operation?
You need to have a master to the bus. Whether that is done by GPIO
bit-banging or with a real hardware module in some kind of processor or
peripheral device is up to you. You won't even see the difference from
the Linux API as long as your bus master is supported.
> > "The I2C address is programmable during configuration. It can be locked
> > to prevent accidental change by setting a flag in a config-uration
> > register."
> >
> > > > We met much phone hang problem with i2c,errors such as "waiting for bus
> > > > free" or "exhausted retries" are all with this sensor.
> >
> > Same reason. Without a firmware, the chips does not have its I2C core
> > set up and hence it's blocking SDA and/or SCL.
>
> I think we have the firmware, and the chips have its i2c-core set up
> already,any other situation which the device block the SDA / SCL ?
Every device connected to the bus can probably block it. If that
happens, you need to find out why (this implies at least using a
soldering iron and an oscilloscope). But as long as you're not sure
whether you have 'the firmware' or not, I'm confident nobody on this
list can help you with that.
Daniel
next prev parent reply other threads:[~2009-03-11 10:40 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-09 14:52 Need help on selecting one (and only one) i2c bus Ayman KHAMOUMA
[not found] ` <000001c9a0c6$bf92af80$b23e81a4-J7BnVcvkGbbQT0dZR+AlfA@public.gmane.org>
2009-03-10 15:30 ` Jean Delvare
[not found] ` <20090310163044.571e4aff-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
2009-03-10 15:58 ` Ayman KHAMOUMA
2009-03-10 16:03 ` Ayman KHAMOUMA
2009-03-11 10:55 ` Ayman KHAMOUMA
[not found] ` <000301c9a237$e6d3c8f0$b23e81a4-J7BnVcvkGbbQT0dZR+AlfA@public.gmane.org>
2009-03-11 11:22 ` Jean Delvare
[not found] ` <20090311122257.7c7805f0-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
2009-03-11 11:44 ` Ayman KHAMOUMA
2009-03-11 16:51 ` Ayman KHAMOUMA
[not found] ` <001301c9a269$ab95d940$b23e81a4-J7BnVcvkGbbQT0dZR+AlfA@public.gmane.org>
2009-03-11 19:09 ` Jean Delvare
2009-03-24 10:27 ` I2c message at init time Ayman KHAMOUMA
[not found] ` <000201c9ac6b$34a95300$2d3f81a4-J7BnVcvkGbbQT0dZR+AlfA@public.gmane.org>
2009-03-24 15:52 ` Jean Delvare
[not found] ` <20090324165227.0d97454c-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
2009-03-24 15:58 ` Ayman KHAMOUMA
[not found] ` <fd6b62c10903102327u426a4262meeabe2c581d7107b@mail.gmail.com>
[not found] ` <fd6b62c10903102327u426a4262meeabe2c581d7107b-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-03-11 9:15 ` Need help on selecting one (and only one) i2c bus Jean Delvare
[not found] ` <20090311101513.271f5464-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
2009-03-11 9:47 ` Daniel Mack
[not found] ` <fd6b62c10903110319w1eebd2ebs4b83e7d1247f1678@mail.gmail.com>
[not found] ` <fd6b62c10903110319w1eebd2ebs4b83e7d1247f1678-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-03-11 10:40 ` Daniel Mack [this message]
-- strict thread matches above, loose matches on Subject: below --
2009-03-09 10:58 Ayman KHAMOUMA
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=20090311104050.GA28547@buzzloop.caiaq.de \
--to=daniel-rduayeluppe@public.gmane.org \
--cc=ayman.khamouma-qxv4g6HH51o@public.gmane.org \
--cc=khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org \
--cc=linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=pramodforum-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=wxc200-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox