der_wille_zur_macht
Team RC
More than one MCP23008 on the same bus is no problem, as long as you set up the hardware address pins correctly.
mammut89,
I posted a little while back about secondary safety options. Not only reading a float valve so the AVR knows the status, but it shut off power to a pump. I was not thinking of a hacking problem, but just a lock up of the controller. I see you are thinking in sort of the same line and wonder if you have given this any thought.
Is it time perhaps to do a "last call" for suggested hardware mods?
So, uh, a bit of an aside, but... I think you'd (in the general sense) be absolutely crazy to open this up directly to the internet. I'd at least stick an authenticating proxy between it and the wild west, if not do what I do with my mythbox and completely firewall it from the outside world (I have access via an SSH tunnel from outside - SSH into my main box, and set up a tunnel to an open proxy hiding behind my firewall... and SSH is locked down pretty damn tight, since 3 incorrect logins in a row get you sent to hosts.deny, and any attempt to log in as root puts you there straight-away).another thing to think about when we decide where to put the ENC code. I would like to put it on a avr by itself. Why ? well because when we connect the ethernet to the AVR we no longer control what comes into the avr. we might get buffer overflow or some other bugs if we get packeted or some virus does some ****. If the AVR fails in that case we do NOT want some auto top off to latch in a bad position..................or other bad stuff that might happen.
What exactly are you trying to use this for?
So, uh, a bit of an aside, but... I think you'd (in the general sense) be absolutely crazy to open this up directly to the internet. I'd at least stick an authenticating proxy between it and the wild west, if not do what I do with my mythbox and completely firewall it from the outside world (I have access via an SSH tunnel from outside - SSH into my main box, and set up a tunnel to an open proxy hiding behind my firewall... and SSH is locked down pretty damn tight, since 3 incorrect logins in a row get you sent to hosts.deny, and any attempt to log in as root puts you there straight-away).
While we'd never get this project to the reliability of medical equipment, I tend to think of aquarium systems as life support, so for me it has to be as reliable and bombproof as possible. I'd even consider some kind of hardware watchdog that sounds an alarm if the AVR doesn't feed the dog every so often. IIRC, there is a built-in hardware watchdog on the AVR that will reset the proc if not fed, and with some way of determining state based on the RTC, that might be fine, but it seems to me that detecting repeated resets would be important.
(Sorry if this was covered already and I missed it. I've been following, but not so closely that I've poured over schematics and code in detail.)
Probably not - the only problem I could see is if AVR 2 ever "pings" AVR 1, rather than just listening passively, there is a very remote possibility that someone somehow manages to exploit a bug to flood the internal bus. I don't know enough about I2C to really know what problems that could cause.Fooshino: You shouldn't really have to worry about security without any code on the secondary AVR to control the main AVR should you?