Menu

Executing code remotely

Jarek
2016-04-03
2016-04-07
  • Jarek

    Jarek - 2016-04-03

    Hello,

    is it possible to upload and execute code remotely (over network like wifi or bluetooth)?

    You say you do not support reflection, so I have doubts this is possible but I couldn't find an answer.

    I can implement my own code which receives the program code (as bytearray), but then the question is if I can execute it somehow?

    Thanks
    Jarek

     
    • genom2

      genom2 - 2016-04-04

      Hello Jarek,

      no it is not possible to upload and run bytecode. Take a look here:
      http://haiku-vm.sourceforge.net/#[[What%20is%20it%3F]]

      Haikufying is all about transforming bytecode to a native binary (using a C/C++ compiler and linker for the target machine). The binary result (a HEX file in case of AVR machines) may then be uploaded to the target.

      Kind regards
      Bob Genom

       

      Last edit: genom2 2016-04-04
  • Jarek

    Jarek - 2016-04-07

    Thank you for your response.

    I didn't mean to upload a bytecode. I meant to upload a native code executable module (as a stream/bytearray), which is already transformed from java to HEX on the PC side.

    Something like that should be technically possible (by jumping to the program code saved in local byte array which is used as program code), but I do understand this kind of flexibility may be too much to ask for something so small as Arduino.

    Thanks
    Jarek

     

    Last edit: Jarek 2016-04-07

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.