General OTA quesetions

Started by brolly759, March 29, 2017, 05:20:44 PM

brolly759

End Nodes:

1. End nodes require the optiboot firmware. Is there anything else special that needs to be in the run code and new run code you send when updating?
2. How long does it take to do a full OTA on an end node?
3. What is the power consumption with adding the external Flash in sleep mode?
4. Besides the Flash "W25X40" Is there a cheaper, smaller size option recommended that is low power?
4. I'm having the end node always sleep, wake up on an interval and do sensor readings, get a response back from the hub that it will do an OTA (or does this happen automatically) and the system will stay on for the OTA process until its finished. All node ID, Network Pass, Channel will be saved in EEPROM and read from EEPROM on reboot. Is this the right way to go? Does the EEPROM get cleared when doing an OTA?

Gateway:
1. I am having some issues comprehending this one. I was hoping to add the RFM69CW directly to a Raspberry Pi (over SPI) and talk / OTA through the python script written. In looking at the Python script it looks like it communicates over Serial which would mean I need an Atmega328 + RFM69CW. Is this true?
2. Do I have to flash the Atmega328 with an OTA run code before doing an OTA on an end device or can that be part of the "Gateway" code?


Thanks for the help, I am trying to streamline and simplify the process as much as possible.

Felix

I think if you try to do this, 90% of your questions will be answered. Also most of those questions are answered by reading the guide and looking at other topics in the forum.
https://lowpowerlab.com/guide/moteino/wireless-programming/

EEPROM is not affected. The given FLASH MEM chip is the default supported. If you want to use something else you will need to do the leg work of adapting any commands that do not match and adjust the libraries to accomodate it. Generally not worth your trouble.
OTA is not automatic. Your end node has to be in RX mode to intercept the OTA request. This might change to support sleeping nodes.
You will need a Moteino + Pi to run a gateway as shown by LPL guide(s), cant do it with just the radio.
Yes your listening node has to have an OTA ready sketch to be further OTA-ble.