The architecture of embedded open platform
The present invention relates to a kind of and the fixing relevant field of embedded technology of computing technique and mobile computing, relate more specifically to a kind of architecture that the embedded open platform of rounded system framework is provided for general embedded OS.
Existing traditional mobile computing and communication facilities are a kind of architectures of complete closed, and this traditional mobile phone is not mostly supported browsing data relevant with Internet and service, so can't insert internet world.Even in this kind equipment, embedded the relevant agreement of supporting the internet, because this computation structure itself is totally enclosed, the application of each mobile phone inside all has cured, and the user also can't change fortune or custom application according to the personal needs of oneself and the specific demand of mobile e-business.
The WAP mobile phone of nearest release is compared with the mobile phone of traditional totally-enclosed architecture and has been opened a lot, can be called the mobile computing and the communication facilities of semi-open architecture.This semi-open architecture has had some improvement to traditional architecture, but the computing architecture that from the angle of technical development, still belongs to a transition period, still have following defective: all application all are based on the application of browser, the ability of mobile computing device can't be maximally utilised, also Protean customer demand can't be satisfied.
Existing embedded platform all concentrates on embedded OS itself, and for example Orion of Microsoft etc. is not a kind of comprehensive solution, and major defect is as follows:
1. development language is not abundant;
2. application model is in the majority with static state;
3. software configuration is not open;
4. can not take into account the requirement of real-time and non real-time simultaneously;
5. the agreement support is not abundant.
The object of the invention provides a kind of embedded open platform architecture that enterprise, bank, government and individual are needed, safe, efficient, low-cost, high availability, can run on the end product under the network environment that is suitable for, and respectively at different field such as e-government implementation, office, long-distance education, tele-medicine, ecommerce, can develop customized product, various application solutions are provided.
Architecture according to a kind of embedded open platform of the present invention, comprise: hardware abstraction layer 1, embedded real time operating system kernel 2, non real-time operating system nucleus 3, protocol dialog layer 4, application frame layer 5, application module 6,7,8,9 and the DLL (dynamic link library) 10 of public control, it is characterized in that, hardware abstraction layer 1 is that framework is on various hardware platforms, adopt the mode of driver to extract one deck public hardware pattern and DLL (dynamic link library), hardware abstraction layer 1 is used by above-mentioned each layer structure as system call, embedded real time operating system kernel 2 is used for realizing the various real-time responses relevant with real-time, non real-time operating system nucleus 3 is used for realizing various non real-time sexual functions, embedded real time operating system kernel 2 adopts the shared drive mode to communicate by letter with non real-time operating system nucleus 3, call the interface of hardware abstraction layer 1, make full use of hardware capability, and, above-mentioned each layer structure call and DLL (dynamic link library) for providing dynamic system, protocol dialog layer 4 is framework application level protocols on TCP, protocol dialog layer 4 is ties of application program networking, adopt the embedded real time operating system kernel 2 and the system call of non real-time operating system nucleus 3 to finish bottom communication, and for above-mentioned each layer structure provides dynamic link libraries and application programming interface, application frame layer 5 framework are on protocol dialog layer 4, also directly framework on the operating system that embedded real time operating system kernel 2 and non real-time operating system nucleus 3 are formed, application frame layer 5 is composition frameworks of all application functions, operating system or protocol dialog layer 4 that application frame layer 5 uses embedded real time operating system kernel 2 and non real-time operating system nucleus 3 to form by system call or dynamic link libraries, and offer various application with application model or DLL (dynamic link library), application module 6,7,8, the 9th, the concrete application module of framework on application frame layer 5 application framework layer, support the browser of WAP (wireless application protocol) and HTML (Hypertext Markup Language) simultaneously, be used to explain the virtual machine of application program, application module 6,7,8,9 all defer to the application framework of application frame layer 5, adopt dynamic link libraries and calling of systems programming interface to visit protocol conversation layer 4 and operating system layer, public control and DLL (dynamic link library) 10 can be adopted by above-mentioned entire infrastructure, also can be adopted by above-mentioned part-structure.
The architecture of embedded open platform of the present invention possesses following advantage:
1. various development language;
2. dynamic application model;
3. Kai Fang software configuration;
4. take into account the requirement of real-time and non real-time simultaneously;
5. the agreement support is abundant.
Fig. 1 is the structural representation of the architecture of embedded open platform of the present invention;
Fig. 2 is the structural representation of the architecture embodiment of embedded open platform of the present invention.
Be described in detail below in conjunction with the architecture of accompanying drawing embedded open platform of the present invention.
As shown in Figure 1, the architecture of embedded open platform of the present invention comprises four functional layers and a function plane.This hierarchical design is referred to the seven layer model of OSI, the function plane comprise public DLL (dynamic link library), control and middleware, specifically describe as follows:
Hardware abstraction layer 1 is that framework is on various hardware platforms, adopt the mode of driver to extract public hardware pattern and the DLL (dynamic link library) of distinguishing of one deck, hardware abstraction layer is used by above each layer structure as system call, hardware abstraction layer 1 can use public control and DLL (dynamic link library) 10, realizes the hardware capability that some are concrete.Embedded real time operating system kernel 2 is used for realizing the various real-time responses relevant with real-time.Non real-time operating system nucleus 3, promptly traditional operating system nucleus is used for realizing various non real-time sexual functions, for example various rich data business.Embedded real time operating system kernel 2 and non real-time operating system nucleus 3 are one of cores of the architecture of whole embedded open platform, adopt the shared drive mode to communicate by letter, call the interface of hardware abstraction layer, make full use of hardware capability, and call and DLL (dynamic link library) for above each layer structure provides dynamic system, embedded real time operating system kernel 2 can be realized the operation system function that some are concrete with the DLL (dynamic link library) 10 of public control with non real-time operating system nucleus 3.Protocol dialog layer 4 framework are by embedded real time operating system kernel 2 and non real-time operating system nucleus 3, on the operating system of forming, comprise each protocol stack, all protocol stacks all can dynamic load, and these agreements are meant that all framework is at the application level protocol of transmission frame on TCP.Protocol dialog layer 4 is ties of application program networking, adopts the embedded real time operating system kernel 2 and the system call of non real-time operating system nucleus 3 to finish the bottom communication, and provides dynamic link libraries and application programming interface for above each layer structure.Protocol dialog layer 4 can use public control and DLL (dynamic link library) 10 to realize the protocol stack that some are concrete, application frame layer 5 can framework on structure 4 protocol dialog layers, also directly framework on the operating system that embedded real time operating system kernel 2 and non real-time operating system nucleus 3 are formed.Application frame layer 5 is composition frameworks of all application functions, comprises the system resource management device, application manager, application information database and multilingual mapping etc.Operating system or protocol dialog layer that the application frame layer uses embedded real time operating system kernel 2 and non real-time operating system nucleus 3 to form by system call or dynamic link libraries, and offer various application with application model or DLL (dynamic link library).Application frame layer 5 can use public control and DLL (dynamic link library) 10 to realize the application function that some are concrete.Application module the 6,7,8, the 9th, the framework concrete application module on the application framework layer.For example, support the browser of WAP (wireless application protocol) and HTML (Hypertext Markup Language) simultaneously, be used to virtual machine of explaining application program or the like.Module 8 representatives and module 6, module 7 similar other application program modules.Module 6, module 7, module 8, module 9 is all deferred to the application framework of application framework layer 5, adopts dynamic link libraries and calling of systems programming interface to visit protocol conversation layer and operating system layer.Module 6, module 7, module 8, module 9 can use public control and DLL (dynamic link library) 10 to realize the application that some are special.
Fig. 2 is the structural representation of information terminal that adopts the architecture of embedded open platform of the present invention, and the hardware environment of this information terminal is as follows:
1. kernel processor chip: the efficient processing core that adopts the reduced instruction set computer of Intel company
Sheet;
2. address bus buffer memory: address bus is 32, and supports high-speed data slow
Deposit the district;
3. code translator and flash memory: address decoder can be explained the information on the bus efficiently,
Flash memory uses as the storer of similar hard disk;
4. microphone and loudspeaker: microphone is the phonetic entry microphone, and loudspeaker is that voice are defeated
Go out loudspeaker;
5. LCD: LCD can be supported the resolution of 1024*768.
6. serial parallel channel: promptly common serial ports/parallel port communication port;
7. network adapter: i.e. network interface card;
8. standard input keyboard: the i.e. keyboard of using on the common computer.
This information terminal adopts the architecture of embedded open platform, specific implementation four functional layers, now be described below one by one:
Structure 11 is specific implementations of hardware abstraction layer.It comprises input/output driver, serial communication drivers program, sound driver and network driver.Input/output driver refers to keyboard drive and display driver.Display driver is supported very just showing of high resolution.Serial/parallel mouthful of driver on serial communication drivers program and the conventional personal computer is identical.Sound driver is meant the driver of the input and output of sound.The network driver also network driver with conventional personal computer is identical.Structure 12 is specific implementations of embedded real time operating system.It comprises a concrete real-time module and a real-time abstraction interface.Structure 13 is specific implementations of non-embedded real time operating system.It is an embedded OS that traditional process is cut out.Mode by shared drive is communicated by letter with the embedded real time operating system of structure 12.Structure 14 is specific implementations of protocol dialog layer.It comprises TCP, WAP (wireless application protocol), online chat agreement, stock exchange agreement and online game agreement.TCP is the standard of Internet.WAP (wireless application protocol) is a kind of novel wireless application standard.The online chat agreement is a kind of message based agreement, is adopted widely at present.The stock exchange agreement is a kind of and securities broker company binds together, and is used for the agreement of stock exchange.Online game protocol package includes network bridge, the communication protocol of other online games such as network Chinese chess.Structure 15 is specific implementations of application frame layer.It comprises the system resource management device, application manager and application information database.The system resource management device is meant the management of icon, font, language etc.Application manager be meant application program startup, close, the management of communication etc.The application information database is meant the management of registration, position, association of application program etc.Structure 16 is specific implementations of browser.It comprises the support to TCP and WAP (wireless application protocol).Structure 17 is specific implementations of virtual machine.It is the interpreter and the running environment of an interpretative code and script.Structure 18 is specific implementations of media player.It is an application program that is used for multimedia, playback of songs for example, and image is play or the like.Structure 19 is specific implementations of online game device.It is the container of an online game, comprises the client-side interface of multiple network recreation.
The architecture of embedded open platform be based on safety in the commercial activity that Internet is engaged in, efficiently, development tool cheaply, determined on certain program whether ecommerce can be achieved at a state (area), also objectively determined the online logical real feasibility that waits the ecommerce form, can directly promote the development of Electronic Commerce in China and Financial Informationization, have great social significance, also will bring huge economic benefit.