Welcome! Log In Create A New Profile

Advanced

i2c dose not work

Posted by nevtag 
i2c dose not work
September 10, 2010 05:55PM
Hi

has anyone got the I2c bus run to?
device and driver are running.
[21.718100] i2c-core: driver [dummy] registered
[23.445605] i2c / dev entries driver
[23.449343] i2c-core: driver [dev_driver] registered
[23.454561] i2c i2c-0: adapter [mv64xxx_i2c adapter] registered
[23.460720] i2c-dev: adapter [mv64xxx_i2c adapter] registered as minor 0

sensors-detect to find mv64xxx_i2c adapter and scans.
But at the pins is no signal. Tested with LOGIC PORT.
8 = TW_SDA
9 = TW_SCK

more here http://www.mikrocontroller.net/topic/187115

best regards



Edited 1 time(s). Last edit at 09/10/2010 05:57PM by nevtag.
Re: i2c dose not work
September 11, 2010 10:40AM
es ist im Deutsch, und Google Chrome does not do a great job with the translation :-(
Re: i2c dose not work
September 11, 2010 12:24PM
Yes, german forum, but pictures and code can help ;-)

I resolved the problem.

In the kernel init function sheevaplug_init
the MPP Ports should be set.
So the kernel know which outputs should be at the ports.

static unsigned int sheevaplug_mpp_config[] __initdata = {
MPP0_SPI_SCn,
MPP1_SPI_MOSI,
MPP2_SPI_SCK,
MPP3_SPI_MISO,
MPP6_SYSRST_OUTn,
MPP7_PEX_RST_OUTn,
MPP8_TW_SDA,
MPP9_TW_SCK,
MPP29_GPIO, /* USB Power Enable */
MPP46_GPIO, /* LED green */
MPP47_GPIO, /* LED orange */
0
};



Edited 1 time(s). Last edit at 09/11/2010 12:25PM by nevtag.
Attachments:
open | download - logicport-i2c.png (4.1 KB)
Re: i2c dose not work
September 11, 2010 12:43PM
I'll be brushing up my German skills as soon as I get my spare Dockstars. I see they are also working on a battery backup for the RTC.
Thank you for the lead!!!!

Gerrit
ecc
Re: i2c dose not work
September 11, 2010 12:51PM
What can the i2c support be used for on the DockStar?
Re: i2c dose not work
September 11, 2010 06:26PM
With Debian or Ubuntu stupid use is temperature mesurement with LM75 or higher level control functions like home automation, control blinds or ventilation.
You can use the board for much more than stupid bring HD to the Network.
ecc
Re: i2c dose not work
September 12, 2010 09:59AM
nevtag Wrote:
-------------------------------------------------------
> With Debian or Ubuntu stupid use is temperature mesurement with LM75
> or higher level control functions like home automation, control blinds or ventilation.

All these require hardware mods to the board, right? Are there any built-in capabilities that become available when i2c is enabled?

Do you have any pointers to home automation mods? I was planning to use a USB-to-serial cable and just control the DTR signal from software (to control some relays in a home theater).
Re: i2c dose not work
September 12, 2010 11:46AM
yes and no
you can use the internal i2c, than you must mod the board with wires or you use i2ctinyusb

take a look to i2c_io.pdf

http://dworkin-dmx.de/DMX_I2C.htm - up to 64 relays

http://www.pickeringtest.com/pdf/SIMRC%201000D.pdf
Attachments:
open | download - i2c_io.pdf (417.4 KB)
Author:

Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: