Hello guys,
As RPi doesn't work as slave due to the linux kernel, does any one know an I2C slave driver (linux independent) or is that also impossible?
As jdb points out the problem will be in reacting fast enough to the bus signals.ilaam wrote:That seems hard while I'm nothing but a beginner![]()
hampi : you're right I saw some similar questions but there are no answers neither tutorials for making an RPi function as a slave. It is true that a ship with a powerful processor isn't made to be a slave but in some cases (the mine for example) that is needed. In fact, I "wish" to use RPi to simulate many sensors and really many. So making all simulated sensors work together isn't easy for a microcontroller with modest capabilities.
I never developped a driver but I'll give it a try
Just because some of us think it might be impossible from Linux doesn't make it true. I'd certainly try the kernel module approach first.ilaam wrote:Yes my masters handle clock stretching properly and I'll be working on 100Kbs.. Thanks for the tip I'll see what I can do with bare metal programming
I think the present i2c implementation in linux support only 7-bit addressing and if you need 10-bits you will probably need to write something new.ilaam wrote:In fact, I "wish" to use RPi to simulate many sensors and really many. So making all simulated sensors work together isn't easy for a microcontroller with modest capabilities.