Ms3 read I2c data?

A forum for discussing the MegaSquirt related (but non-B&G) board development, assembly, installation, and testing.

Moderators: jsmcortina, muythaibxr

Post Reply
piledriver
Super MS/Extra'er
Posts: 1681
Joined: Tue Oct 27, 2009 6:24 am
Location: Van Alstyne, Texas

Ms3 read I2c data?

Post by piledriver »

I just registered that the RTC talks I2C.

Given an i2c bus extender chip and code, could you access for example an I2C WBO2 like one of the units from 14point7.com (or a set of them?) If all in the same chassis the extender chip would probably not be needed.

This is obviously too easy and would have been done already so what am I missing?
Always doing things the hard way, MS2 sequential w/ v1.01 mainboard, LS2 coils. 80 mile/day commuter status.
jsmcortina
Site Admin
Posts: 39619
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: Ms3 read I2c data?

Post by jsmcortina »

piledriver wrote:This is obviously too easy and would have been done already so what am I missing?
It's only part of the protocol stack. https://en.wikipedia.org/wiki/OSI_model
The existing I2C implementation covers layers 1 and 2 in general, but the upper layers are different between the different I2C devices.

In a similar way, TCP/IP networking (low level) existed long before web-browsers (high level).

James
I can repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk

My Success story: http://www.msextra.com/forums/viewtopic ... 04&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
New users, please read the "Forum Help Page".
piledriver
Super MS/Extra'er
Posts: 1681
Joined: Tue Oct 27, 2009 6:24 am
Location: Van Alstyne, Texas

Re: Ms3 read I2c data?

Post by piledriver »

Figures.

Half tempted to take a pass at it anyway since I have all the bits handy, and I'm pretty sure the 14point7.com units i2c protocol is documented.
Digital WBO2 comms with existing MS3 hardware would be be a nice feature if it could be pulled off.

There also some one-wire devices that are potentially useful as well, and very simple to talk to.

Not everyone can justify an IOX or CAN-EGT, but this would potentially a zero hardware cost upgrade for folks with several of the 14point7.com WBO2s.

I can see a trivial $5 bus extender board as an option if you have a remote box, but may not be needed in many setups.
Always doing things the hard way, MS2 sequential w/ v1.01 mainboard, LS2 coils. 80 mile/day commuter status.
jsmcortina
Site Admin
Posts: 39619
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: Ms3 read I2c data?

Post by jsmcortina »

I2C isn't particularly difficult. The existing MS3 code has I2C code in ms3_misc.c (byte wise higher level) and isr_pit.s (bit wise lower level.)

James
I can repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk

My Success story: http://www.msextra.com/forums/viewtopic ... 04&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
New users, please read the "Forum Help Page".
Post Reply