A Simple and Practical Embedded Software System Architecture › publication › fulltext › A-Simple-... › publication › fulltext › A-Simple-...by YS Liu · 2020 · Related articlesIn the face of this increasingly complex demand, it is easy to think of applyi
elsevier.com/locate/proce www.elsevier.com/locate/proce dia dia
3rd 3rd International International Conference Conference on on Mechatronics Mechatronics and and Intelligent Intelligent Robotics Robotics (ICMIR-2019) (ICMIR-2019)
A Simple and Practical Embedded Software System Architecture 1,3,Jian long Shao1,*1 1,*1 Yu sheng Liu1,1,,Shao wei Wang22,Chun Xue11,Xin Ye Shao1,3 1 1
School School of of Information Information Engineering Engineering and and Automation, Automation, Kunming Kunming University University of of Science Science and and Technology, Technology, Kunming Kunming 650500, 650500, P.R.China P.R.China 2 2 Shenzhen RainDi Technology Co., Ltd., Shenzhen 518071, P.R.China Shenzhen RainDi Technology Co., Ltd., Shenzhen 518071, P.R.China 33 College College of of Engineering Engineering & & Science, Science, Florida Florida Institute Institute of of Technology, Technology, 150 150 W. W. University University Blvd. Blvd. Melbourne, Melbourne, FL FL 32901, 32901, U.S.A. U.S.A.
Abstract. Abstract. For For aa long long time, time, the the embedded embedded industry industry has has been been constrained constrained by by CPU CPU performance, performance, ROM ROM and and RAM RAM capacity capacity and and other other factors, factors, so the software scale cannot be built too large. The new embedded designers often overturn the original version so the software scale cannot be built too large. The new embedded designers often overturn the original version because because they they cannot cannot comprehend comprehend the the previous previous code. code. The The lack lack of of software software framework framework standard standard leads leads to to redundant redundant and and useless useless work. work. By By making making the the analogy analogy to to the the hierarchical hierarchical idea idea of of Android Android architecture, architecture, this this paper paper proposes proposes aa simple simple and and practical practical software software architecture architecture suitable for the embedded industry. The architecture adopts hierarchical design and each module operates suitable for the embedded industry. The architecture adopts hierarchical design and each module operates independently, independently, thus thus realizes realizes high high cohesion cohesion and and low low coupling coupling of of the the system. system. The The C C structure structure variable variable is is used used to to simulate simulate the the properties properties of of the the class, class, and and the the function function pointer pointer is is used used to to replace replace the the function function in in the the class. class. By By doing doing this, this, embedded embedded programming programming changes changes from from processprocessoriented oriented to to object-oriented. object-oriented. In In addition, addition, the the architecture architecture provides provides aa registration registration mechanism mechanism to to solve solve the the upload upload of of high-speed, high-speed, real-time changing data. real-time changing data. © 2020 The Authors. Published Elsevier B.V. © The Authors. Published by by B.V. © 2019 2019 The Authors. by Elsevier Elsevier B.V. This is an open accessPublished article under the CC BY-NC-ND license (http://creativecommons.org/licenses/by-nc-nd/4.0/) Peer-review under responsibility of organizing committee of the 3rd International Conference on Mechatronics and Intelligent Peer-review under responsibility of organizing and Intelligent Intelligent Peer-review under responsibility of the scientificcommittee committeeofofthe the3rd 3rd International International Conference Conference on on Mechatronics Mechatronics and Robotics (ICMIR-2019) Robotics (ICMIR-2019) Robotics, ICMIR-2019. Keywords: Keywords: Embedded Embedded software software system system architecture, architecture, Layered Layered thought, thought, Nested Nested encapsulation encapsulation of of structures, structures, Registration Registration mechanism mechanism
1. 1. Introduction Introduction For For aa long long time, time, the the embedded embedded industry industry (such (such as as MCU51, MCU51, ARM7, ARM7, Cortex-M3) Cortex-M3) has has been been constrained constrained by by CPU CPU performance, ROM and RAM capacity and other factors, so the software scale cannot be built too large. And performance, ROM and RAM capacity and other factors, so the software scale cannot be built too large. And there there is is not not large large enough enough number number of of needs needs for for software software in in this this industry, industry, and and that that makes makes casual casual designs designs and and poor poor plans plans become become common[1][2]. common[1][2]. For For increasingly increasingly complex complex control control requirements, requirements, many many companies companies has has built built their their own own 11 **
Corresponding Corresponding Author. Author. Tel.+(86) Tel.+(86) 18082902760 18082902760
E-mail: E-mail:
[email protected] [email protected]
2019 2019 The The Authors. Authors. Published Published by by El