ricardolima 0 Posted January 10, 2017 Share Posted January 10, 2017 Hello everybody, I was searching on internet but didn't find any good solution about how to implement the protocol dnp3 in msp430 (FR6989). I find one solution to arduino( opendpn), it can be used, needs to be ported right? Thank you and have a nice day Quote Link to post Share on other sites
chicken 630 Posted January 10, 2017 Share Posted January 10, 2017 Welcome to 43oh. Please at least provide some links to what you found. Also, did you already try if the Arduino code work? Did you look at the errors or debug to see what does not work with Energia/MSP430? Quote Link to post Share on other sites
ricardolima 0 Posted January 11, 2017 Author Share Posted January 11, 2017 Hi, Thank you. I found this link https://github.com/automatak/dnp3/tree/2.0.1 which have the embedded solution for avr and due. This solution is in atmelstudio and i'am trying to compile that to an arduino uno but without success.Thanks for future help Quote Link to post Share on other sites
Fmilburn 446 Posted January 11, 2017 Share Posted January 11, 2017 This solution is in atmelstudio and i'am trying to compile that to an arduino uno but without success. You are referring to an issue around Atmel microcontrollers on a Texas Instruments oriented site so it is very unlikely you will get a satisfactory response to your question. Anyway, you will not get something written for an ARM processor using direct register access to compile on a 8 bit processor like the Uno. Nor will it compile on a MSP430. And it is unlikely that anyone has ported this to Arduino/Energia but the best persons to ask would be the authors of the firmware. NurseBob and energia 2 Quote Link to post Share on other sites
chicken 630 Posted January 11, 2017 Share Posted January 11, 2017 Definitely looks like a complex undertaking. But those are the best learning opportunities. You will have to get an understanding about the overall architecture of OpenDNP. As @@Fmilburn suggested, contacting the owner or main contributors of the Github repository is probably your best bet when stuck on that topic. This includes getting their implementation to build. If the AVR implementation is working, there's a good chance that the FR6989 has sufficient resources. The "embedded" link includes "adapter" sub-folders, which look like platform specific code for AtmelAVR and AtmelDue (probably referring to the boards, not the whole Arduino programming framework). I think the files in there are a good indication for what needs to be re-implemented for a new platform like MSP430. On a quick glance, the code doesn't look too extensive, which is encouraging. Also check whether they make use of Atmel libraries in the code that's not platform specific. NurseBob and energia 2 Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.