Designing a generic fieldbus framework and refactoring legacy code for multiple platforms

University essay from Lunds universitet/Avdelningen för Biomedicinsk teknik

Abstract: When working with large programming projects, one of the major problems is to write the code so it can be maintained. If you write code that is easy to maintain it is also easier to extend, change and fix bugs in the code. In this project two large, similar projects were investigated to find similarities in the code. If the similarities could be brought together in a generic solution, the code would be easier to maintain, understand and develop. The two projects are separate projects for communication with field buses, running different fieldbus protocols on different hardware platforms. The common factors in these projects are that both need to communicate over a fieldbus, somehow store the information received and then be able to communicate with a PC to send the gathered data or receive commands to send on the fieldbus. By adapting modern refactoring methods to an older programming standard, code written in C (C89) can be refactored to a more modular and extensible code standard.

  AT THIS PAGE YOU CAN DOWNLOAD THE WHOLE ESSAY. (follow the link to the next page)