Giter VIP home page Giter VIP logo

Comments (10)

jkandasa avatar jkandasa commented on June 18, 2024

I do not have any hardware to test this feature. I believe this fix will work properly.

from mycontroller-v1-legacy.

TheCranston avatar TheCranston commented on June 18, 2024

My nodes are LowPowerLab Moteinos with DualOptiboot loaded. The alpah5 controller will now send firmware to the node which it wouldn't do before. However the boot loader does not install that new firmware on reboot, so I'm thinking that the "magic" signature was not written at the beginning. according to Felix's git pages for the boot loader, it checks for a new sketch flash image signature and size starting at address 0: FLXIMG:9999:XXXXXXXXXXX where: - 'FLXIMG' is fixed signature indicating FLASH chip contains a valid new flash image to be burned - '9999' are 4 size bytes indicating how long the new flash image is (how many bytes to read) - 'XXXXXX' are the de-hexified bytes of the flash pages to be burned - ':' colons have fixed positions (delimiters)

from mycontroller-v1-legacy.

jkandasa avatar jkandasa commented on June 18, 2024

@TheCranston Thank you to test this feature and analysis! I believe MySensors should handle image signatures(code). Nothing to do from MyController. As per my understanding, once firmware download done from MyController if our node reboots automatically definitely signature has been written

from mycontroller-v1-legacy.

TheCranston avatar TheCranston commented on June 18, 2024

I think I understand what you are saying, MyController just submits the .hex file for upload to the node and the underlying MySensors library handles it. Got it. I'm not a java programmer, so I'm a little at a loss for debugging. Thanks for the link to the code, that shows it clearly. My process was to install a new firmware into MyController and then go to node list and click on firmware upload. I can see the serial traffic via the LEDs. It didn't appear to reboot after the upload, so I manually rebooted the node. My understanding is that the reboot would trigger the DualOptiboot firmware flash process. no such luck. I'm on 1.5 API of MySensors library. A few more attempts and the same result... I'll take this over to MySensors as it appears the issue is either mine or the library. :) MyController is really sweet! Thanks for this great work.

from mycontroller-v1-legacy.

jkandasa avatar jkandasa commented on June 18, 2024

@TheCranston Thank you for your effort on this. As I do not have hardware to test this feature I'm unable to help you to resolve this issue. I'm sorry. Let me get this hardware soon and try to fix this issue (if issue with MyController side) on 0.0.2-alpha6 build.

I really appreciate your valuable time!!

from mycontroller-v1-legacy.

ghvader avatar ghvader commented on June 18, 2024

@TheCranston / Jeeva - I'm in the same situation.
however using MYScontroller this works fine.
so it can't be the mysensors library at fault.
I think there is an app that is "like" wireshark, that you can watch the
packets,
perhaps i'll look into that and see if i can't figure out what is going on.

On Wed, Oct 28, 2015 at 1:01 PM, Jeeva Kandasamy [email protected]
wrote:

@TheCranston https://github.com/TheCranston Thank you for your effort
on this. As I do not have hardware to test this feature I'm unable to help
you to resolve this issue. I'm sorry. Let me get this hardware soon and try
to fix this issue (if issue with MyController side) on 0.0.2-alpha6 build.

I really appreciate your valuable time!!


Reply to this email directly or view it on GitHub
#25 (comment)
.

from mycontroller-v1-legacy.

jkandasa avatar jkandasa commented on June 18, 2024

@ghvader Thank you!! Let me debug MyController to find out issue.

from mycontroller-v1-legacy.

TheCranston avatar TheCranston commented on June 18, 2024

@ghvader / @jkandasa
I found the issue.. At least for my script. I was using the watchdog timer directly and that was causing the reboot after firmware load to fail. I took out my watchdog code in the script and everything now works correctly. I'm not sure what the interaction was that caused the failure, but at least now I can do OTA updates of the code on my nodes.

from mycontroller-v1-legacy.

jkandasa avatar jkandasa commented on June 18, 2024

@TheCranston OTA updates working good with DualOptiboot-bootloader + MyController?

from mycontroller-v1-legacy.

TheCranston avatar TheCranston commented on June 18, 2024

@jkandasa It sure is. my sketch was directly using the watchdog which was causing it to fail. I removed my watchdog code and everything started to work correctly.

from mycontroller-v1-legacy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.