Page 1 of 1
I2C Slave Mode
Posted: Thu Dec 03, 2015 11:33 am
by neums
Hi,
will there be an official I2C Driver with an implemented slave mode in future?
Thanks.
Re: I2C Slave Mode
Posted: Thu Dec 03, 2015 11:34 am
by Giovanni
Hi,
I am evaluating the proposals, no final decision yet. I am not yet sure about an API able to cover all cases.
Giovanni
Re: I2C Slave Mode
Posted: Thu Dec 03, 2015 11:39 am
by Giovanni
In the meanwhile:
viewtopic.php?f=16&t=3020Giovanni
Re: I2C Slave Mode
Posted: Fri Dec 04, 2015 7:20 pm
by steved
Giovanni wrote: I am not yet sure about an API able to cover all cases.
I've found that genosensor's interface has worked well for me - I've got an I2C slave which uses it quite heavily, and its pretty solid.
There are basically three scenarios which have to be handled:
1. Return a message on a read [consider as a 'status' request]
2. Accept a message, process it, and return a response [consider as a 'poll' or 'acknowledged command']
3. Accept a message and process it [consider as an 'unacknowledged command']
Number 2 is the most demanding, since the I2C bus generally has to be held in a wait state while processing the received message
Not finding I2C to be the ideal inter-processor communication method, but it's all that was available to me!