dkirkby / athomeleaf Goto Github PK
View Code? Open in Web Editor NEWMicrocontroller code for a leaf node in the uci@home system
Home Page: http://athome.ps.uci.edu/
Microcontroller code for a leaf node in the uci@home system
Home Page: http://athome.ps.uci.edu/
Leaf reports average of 2048 temperature ADC samples but these tend to "stick" at half-degree F increments, corresponding to the single-sample ADC 1-bit resolution.
This should at least be a config option.
Otherwise, leaf does not know that it is disconnected and needs to request a new config.
Symptom is that the LEDs are inactive and no messages are received by the hub.
Power cycling fixes the problem (therefore a watchdog reset would also be effective).
Seems to be related to a weak wireless link? At least, I never saw this with a strong link and now it has happened twice in two days when the hub is further away from the device.
TODO: look at possible ways the device could crash after receiving garbage config data. Could this be related to the fact that the hub records "config reloaded" when it should be "invalid config"? (ie, device is using config that it knows is invalid?)
If the leaf does not reset the watchdog once per ~3s cycle, the MCU should automatically reset itself.
It would be good if the MCU knows it was reset like this and can transmit this status info to the hub after it resets.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.