The Implementation of Embedded Network Applications Based on QP and IwIP
- Author
- LouChongJun
- Advisor
- ShenZuoJing
- School
- Jilin University
- Major
- Software Engineering
- Classification
- TP311.52 Software Development
- Degree
- Master's thesis
- Year
- 2010
- Downloads
- 111
- Citations
- 0
Abstract
Embedded network applications is the inevitable outcome when the embeddeddevelopment going into the Internet age. QP platform (mainly based on the quantumframeworktechnology——QF)isrisingalongwiththehigherdemandinembeddedfield.The state machine(in QP called active object)is the introduction of the concept against thetraditionalflowtypeapplicationdevelopment,thefeaturesofembeddedfield.Quantum framework——QF is the core technical concepts of QP platform. It is theinfrastructure of a reusable, parallel execution state machine. It is an optimizedframework for professional use in the field of embedded real-time system. QF is based onactive object model, which model has many advantages in parallel execution, beyond thetraditional advantages in the use of thread. The mode of the active object (state machineobject) instance can be complicated by the implementation of each other through theinteractionsoftheeventinstanceincommunication.A reference to the state machine and in-depth, is a major feature of QP platform. Theimplementation of a hierarchical state machine, on function, is equivalent to the basicnature of the object-oriented, making the embedded development process become moreobject-oriented. The use of state and hierarchical concept has deepened the meaning ofproperty encapsulation and inheritance. It makes the application development based on theembedded QP in more modular. The nature of reusability and polymorphism, which is agoodtrend,itisatechnologicalrevolutioninthefieldofembeddedapplications.Active object based programming is usually changed from the traditionalmulti-threaded approach from, unlike traditional methods which focused on resourcesharing and synchronization mechanism concerned, it focused on the incorporation issue ofsegmentation solution idea, looking for the way to avoid the resource sharing, the minimaltraffic and segmentation solution, how to exchange events between objects of differentactivities. All of those are for the purpose of achieving a result which can minimize thecouplingbetweendifferentactiveobjectinstances.Broughtintoavoidtheissueofresourcesharing, the main strategy is to encapsulate the resources, the allocation of which iscontrolledbyspecializedactiveobject,inanactiveobjectinstances.In the framework of active object-based, QF plays an important role. It provides areal-time operating system abstraction layer service. It can be understood as a lightweightsoftware bus to carry out operations. QF also has the ability in extensions which caneffectively support for parallel execution; Based on QF, the software application development does not need the developer directly operate the critical area, the semaphoresor the other similar mechanisms. QF provides a fast, safe and reliable parallel softwarerunningmethod.SMTP functionality achieved in the two active objects (a hiberarchy state machineSMTPlwIPMGR and a hiberarchy state machine SMTPAO), in parallel execution model.Each packaged event has been used between instances for communication. This form ofcommunication is asynchronous communication. The implementation of each active objectpackages their own event queue. Through the registration system, active objects canregister themselves in the QF framework. At the same time, the definition of each activeobject carried out the way of event registration by the sense of its own interest (also a wayto register event through the P/S, publish/subscribe, way in QF). The state of an activeobject is showed in the way of a function pointer, and the state changing is by convertingfromthecurrentvalueofafunctionpointertoanother.The definition of SMTPlwIPMGR active object packaged not only the buffer a activeobject needed to run the event queue and related data, but also used to establish the lwIPsocket connection and associated transmission function interface. Thus, the active object,SMTPlwIPMGR, becomes a functional active object which used as an active object onlyfor the establishment of connection to the SMTP mail function. Each command signal, asSEND and WAIT, has been mapped into an independent state, using the idea of splitting aproblem which should have a continuous process of the implementation of the SMTPcommunication into an step-style. In this way, it makes the relationship more clearlybetweentheimplementationofcodeandtheSMTP communicationstatetransitionprocess.Thinking to another important meaning, thanks to the state native mode, when you need toadd additional functionality, developers needn’t to change the original state oftransformationprocesses, oronlywithabitchangeinthestatetransitionprocess.Usingthesimilar methods to add the module inside the active object to add new functionalityrequired. On this basis, more in depth thinking, when need to add an additional state, onlyan interface maybe provided in the active object to communicate with the outside. Bythisway,themoreconvenientfeaturestoprovideaprogramextensionhadbeengot.Through the development of Web services, we get a successful implementation of themicrocontroller on the Web publishing. Further implementation of function, the data fromtemperature sensor can be Web published. It changes the way of data accept in concept.The traditional concept of accessing data from the embedded system needs to use specificapplications and specific communication connecters such as COM port communication orwireless communication, which often limited by physical factors.The merits immediatelyhighlighted as long as Web publishing. The data can be accessed anywhere the networkreached. Through Web page design, we can even send commands directly to themicrocontroller. This change not only brought a breakthrough in the method, but also afuture trend of MCU. More can we collect data from a remote wireless sensor network, which is associated, through a basic station, with a network. The TCP/IP lightweightimplementation in lwIP is working for the spread of embedded network devices to acatalystwithextensivepracticalmeaningsintheembeddednetworkapplications.Again back to QP platform, to understand the most distinctive point between QP andothers, is the concept of minimizing the code. It has the code-centric feature and thelow-level nature of application. The development based on QP can map the concept of astate diagram directly to the program code, without the need of uinge a graphical tool. QPplatform, than other platforms, does not need to use additional tools, also no need spendinga lot of time on configuration. As modular platform combination, the user can apply somepart of QP platform module to associate with other platform. This brings the platform witha simple transplantation nature, which improves the way of platform transplantationproblem of embedded application, in QP application development platform. Although cannot be as same as the ability of platform independence with Java Virtual Machine , but itsabilityin transplant, comparing the complexityrequired in the other platform, to have beengreatlyenhanced.
Table of contents
Summary 4-7
Chapter 1 Introduction 7-11
Development and Prospects 1.1 embedded 7-8
1.2 Embedded Network Research status and significance objectives and priorities nbsp 8-10
1.3 papers ; 10-11
Chapter 2 -related concepts and technologies 11-40 <br / > 2.1 Chapter Summary 11
2.2 embedded operating system 11-13
2.2.1 non- real-time embedded operating system 11-12
2.2.2 RTOS conceptual 12-13
2.3 event-driven model 13-14
2.4 state machine concepts and technology 14-19 < br /> 2.4.1 state machine concept 14-15
2.4.2 finite state machine (FSM) 15-16
2.4.3 hierarchical state machine (HSM) and behavior inherited 16-17
2.4.4 hierarchical state machines and object-oriented programming is relatively 17-19
2.5 quantum platform (QP) technology 19-35
2.5.1 quantum event processing engine (QEP) technology 22-27
2.5.2 quantum framework (QF) technology 27-32
quantum 2.5.3 kernel (QK) 32-34
2.5.4 quantum software tracking aids (QS) technology 34-35
2.6 LWIP ( lightweight TCP / IP protocol stack ) 35-37
2.7 simple Mail transfer Protocol (SMTP) service and technical WEB 37-39
2.7.1 simple Mail Transfer Protocol (SMTP ) 37
2.7.2 Web services 37-39
2.8 Summary 39-40
Chapter 3 based embedded QP and LWIP design and implementation of network applications 40-61
3.1 chapter Summary 40
3.2 application Requirements Analysis 40-46
3.2.1 SMTP application requirements analysis and design 40-44
3.2.2 Web application requirements analysis and design 44-46
3.3 development environment and experimental platform to build 46-48 < br /> 3.4 SMTP implementations and description 48-54
3.4.1 SMTP headers and related events defined startup nbsp 48-49
3.4.2 QF framework ; 49-50
3.4.3 SMTPlwIPMGR hierarchical state machine defined definitions 50-52
3.4.4 SMTPAO hierarchical state machine 52-54 /> <br 3.5 WEB services to achieve and description 54-60
3.5.1 General Function Description 54-56
3.5.2 wrapper class etherShield main function declaration 56 - achieve 57
3.5.3 Web services 57-60
3.6 compiler and debugging process 60
3.7 Summary 60-61 <br / > Chapter 4 test QP and LWIP embedded network -based applications 61-69
4.1 Chapter Summary 61
4.2 SMTP test 61-62
4.3 WEB service test 62-66
4.3.1 Ping test 62
4.3.2 Web service test 62-63
4.3. 3 Web service mode control switch (D3) test 63-65
4.3.4 Web way to take analog ( temperature , U3) test 65-66
4.4 SMTP and combine test WEB services 66-68
4.5 summary 68-69
Chapter 5 summary and Outlook work 69-71
5.1 work summary 69
5.2 Prospects 69-71
References 71-73
Thanks 73-74
Summary 74-76
ABSTRACT 76-78
Related dissertations
- LwIP Transplantation and Application Research of Embedded WEB Based on Cortex-M3
- Desigen of Weighing Controller Based on LAN
- Design of the Embedded Internet Controller Based on STM32
- Research and Design of Information Processing System in Interferometric Fiber-optic Sensor
- The Research and Implementation of Embedded TCP/IP Stack Based on F28M35HX
- The Research of Process Gas Analysis Instruments Networking
- Design of Intelligent Household Security System Based on Android Mobile Phone Platform
- The Design of an Wireless Image Transmission System Based on WIFI
- The Design of Smart Home Based on Zigbee
- Algorithm and Implementation of H.264/SVC Multiplexing
- The Development and Research of LED Control System in WIFI Environment
- Digital On-line UPS Designation Based on Embedded Real Time Operating System
- Embedded Performance Detecting System for Automotive Switch
- And implementation of artillery information processing design based on LPC2478
- Research and Development of the Register Real-Time Monitoring System Based on F28M35x
- Design on Some Modules of Permanent Magnet MRI
- Study on the Embedded Equipment Monitoring Platform Based on μC/OS-Ⅱ and LwIP
- Embedded Web Monitoring System Based on ARM and μC/OS-Ⅱ
- The Design of Embedded Data System Based on ARM
- Design and Implementation of the Module of Uart to Modbus-TCP Client