Hi all.
Im creating a temp sensor project.
I want to have 2 devices (both pic based), 1 as the master, and 1 as the slave.
The number of slaves is going to be variable, but im just starting off with 1.
Im using c18 with Pic18f4550s, and wish to use I2c bus to allow master to talk to slaves.
I intend to make the project scalable, by allowing more functions to be added to each slave at a later date.
i need to come up with some sort of "language" that all devices can use to speak to each other.
For instance I want to be able to query a slave devices capabilities, and then react based on the slaves response.
Does anyone have any thoughts on constructing such a language, that will allow for structures of information to be sent serially?
It would be nice to have some sort of struct to serial and serial to struct conversion routines, but i need something quick to implement
Many thanks