c++ - Over-the-Air / Over-the-Wire automated Software Update (hot-code-loading) strategy -
c++ - Over-the-Air / Over-the-Wire automated Software Update (hot-code-loading) strategy -
have linux scheme (as part of project), might have hot-code-loading, i.e. update parts of software, over-the-air (s.a. downloading software on wifi) or over-the-wire (over lan). there 2 parts of software, 1 part written in c++ , in erlang. c++ part talks external entities on tcp/ip (a set of 6-7 odd proprietary protocols). part need hot-loading of, c++ part talks external entities. c++ part talks erlang on ports (under development currently), alter nifs (sometime in future).
can suggest strategies hot-code-loading of c++ functionality. aware of erlang's ability do, understanding functionality doesn't extend on part written in c++.
also, need ensure c++ module containing proprietary protocol implementation, "valid source". might right strategy ?
i guess, requirements not uncommon, if such modules, frameworks, libraries exist, happy pointed those.
don't know existing libraries this. code loading in c/c++ in cases done using dynamic libraries can load code using dlopen. can find addresses of symbols using dlsym. notice c++ name mangling can create hard find symbols. best create normal functions wrapped in extern "c" create objects can utilize other object.
if want code valid should public/private key cryptography. sign code private key (basically create encrypted hash of binary) , software loading code checks signature using public key.
c++ erlang upgrade ota software-update
Comments
Post a Comment