Comments (3)
Hi Gabor!
Sorry for the delay in answering ...
I will take a look, I think it is possible but with a high memory usage cost by the bootloader. As you may have noticed, the current Timonel Tiny85 I2C driver is "slave" only. That means that, as I recall, it would have no way to check the bus available addresses. According to the I2C protocol, a "slave" can only answer when its address is placed on the bus by the "master" or upon a master's I2C general call.
A possible solution would be adding I2C "master" capabilities to the driver, and run that way to find the first available address spot and assign it to itself. As I mentioned before, that will surely take a significant amount of memory out of the user application space.
Another approach could be using a master-slave solution combination (if you have control over your master I2C driver) by using a generall call and some sort of slave randomly delayed answer. This way the master would be responsible for accounting what slave addresses are already taken and dispatching the free ones in order of slaves' replies. This last solution would take less "slave" memory but it would have two drawbacks: a) it wouldn't be an I2C-standard solution, and b) the slave wouldn't be completely independent. It would depend on the master's driver implementation to assign its address.
What do you think?
from timonel.
would it be possible to store the I2c Address in EEPROM? and program that before soldering?
from timonel.
would it be possible to store the I2c Address in EEPROM? and program that before soldering?
Hi! Yes, that is possible, but the OP is asking for some sort of "bootloader address auto-provisioning" once the chip is connected to the I2C bus. Is yours' a different requirement than the OP?
from timonel.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from timonel.