CN104346219B - A kind of method and apparatus of system call - Google Patents
A kind of method and apparatus of system call Download PDFInfo
- Publication number
- CN104346219B CN104346219B CN201410653254.3A CN201410653254A CN104346219B CN 104346219 B CN104346219 B CN 104346219B CN 201410653254 A CN201410653254 A CN 201410653254A CN 104346219 B CN104346219 B CN 104346219B
- Authority
- CN
- China
- Prior art keywords
- equipment
- task
- intermediate layer
- bottom submodule
- submodule
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
An embodiment of the present invention provides a kind of method and apparatus of system call, applied in communication class software architecture, to solve existing communication class software by the way of serialized software framework, interdepend between each task, the change of one variable is possible to that the unstable of whole system can be caused, and the maintenance work of system is difficult to.The method of system call in the embodiment of the present invention, including:After the top layer of equipment receives control instruction input by user, dock received control instruction and pre-processed to obtain control message, control message is handed down to the intermediate layer of equipment;The intermediate layer of equipment generates at least one task according to the control message received, and task is handed down to at least one bottom submodule of corresponding equipment, wherein each type of task corresponds to a different bottom submodule;Bottom submodule is handled according to the task for receiving intermediate layer transmission.
Description
Technical field
The present invention relates to communication class software architecture technical field, more particularly to a kind of method and apparatus of system call.
Background technology
With the continuous development of communication products and constantly widening for application field, types of applications scene is to communication class software
Requirement it is also increasing.In order to meet many application scenarios, the design of communication class software increasingly complicates variation.At present,
The mode of communication class software generally use serialized software framework, and as the increased function of software is more and more, serialized software frame
Structure mode may can influence another function it is possible that the function of much interlocking when opening one of function, because
And the mode of this serialized software framework is increasingly difficult to undertake increasingly hard work task, at the same it is mutual between each task
Dependence also make it that whole system framework is more intricate, and this complicated system makes maintenance work more be difficult to out
Exhibition, the change of a variable is possible to that the unstable of whole system can be caused, and is difficult to be found.
In conclusion communication class software is interdepended by the way of serialized software framework between each task at present, one
The change of variable is possible to that the unstable of whole system can be caused, and the maintenance work of system is difficult to.
The content of the invention
The embodiment of the present invention provides a kind of method of system call, existing to solve applied in communication class software architecture
The mode of some communication class software architectures, interdepends between each task, and the change of a variable is possible to cause whole
Unstable, the problem of maintenance work of system is difficult to of system.
Based on the above problem, a kind of method of system call provided in an embodiment of the present invention, including:
After the top layer of equipment receives control instruction input by user, dock the received control instruction and pre-processed
Control message is obtained, the control message is handed down to the intermediate layer of equipment;
The intermediate layer of the equipment generates at least one task according to the control message received, and by described in
Task is handed down at least one bottom submodule of the corresponding equipment, wherein each type of task corresponds to one
A different bottom submodule;
The bottom submodule is handled according to the task for receiving the intermediate layer transmission.
Since the method for system call provided by the invention is that equipment divide into three top layer, intermediate layer and bottom layers
Level, wherein, top layer is merely responsible for the work of user oriented and data, and intermediate layer then takes charge of the explanation order and generation task, each bottom
Straton intermodule is separate, does not depend on mutually, and by intermediate layer United Dispatching, having well defined power and responsibility between three levels, Each performs its own functions, so
Compared with prior art communication class software is by the way of the serialized software framework, the stability of system is improved, and reduce
The difficulty of software maintenance work.
It is preferred that the received control instruction is pre-processed to obtain control message by the top layer of the equipment, including:
The received control instruction is packaged by the top layer of the equipment in a manner of cell, obtains control message;
The intermediate layer of the equipment generates at least one task according to the control message received, including:
The intermediate layer of the equipment decapsulates the received control message, obtains control instruction, and according to institute
State control instruction and generate at least one task.
It is preferred that after the top layer of the equipment receives control instruction input by user, further include:
The top layer of the equipment forms configuration file, and configure text by described according to the parameter information interacted with database
Part is handed down to the intermediate layer of equipment with the control message in the lump;
The intermediate layer of the equipment decapsulates the received control message, obtains control instruction, including:
The intermediate layer of the equipment unseals the received control message according to the configuration file received
Dress, obtains control instruction.
It is preferred that before the intermediate layer of the equipment generates at least one task according to the control instruction, also wrap
Include:
The control instruction that the intermediate layer of the equipment can be obtained according to decapsulation, task is carried out to the bottom submodule
When time and the bottom submodule when carrying out task system resource used be scheduled.
It is preferred that the bottom submodule is handled according to the task for receiving the intermediate layer transmission, also wrap
Include:
During the bottom submodule is handled according to the task for receiving the intermediate layer transmission, to institute
The intermediate layer for stating equipment reports the status information of itself;
This method further includes:
The intermediate layer of the equipment monitors the working status of the bottom submodule according to the received status information;
The equipment is determining the bottom submodule of abnormality, and the bottom submodule of abnormality without
After method is voluntarily recovered, recovery operation is carried out to the bottom submodule of abnormality.
It is preferred that the intermediate layer of the equipment after following situations generation, determines that there are the bottom of abnormality
Module, and the bottom submodule of abnormality can not voluntarily recover:
The intermediate layer of the equipment does not receive on the bottom submodule for handling task within the set duration
The status information of report.
Since each bottom submodule is able to maintain that the stabilization of itself, the exception of itself is repaired, while intermediate layer can supervise
The working status of each bottom submodule is surveyed, recovery operation is carried out to the abnormal bottom submodule that can not voluntarily recover, thus is had
The guarantee of the power stability of whole software systems.
A kind of equipment of system call provided in an embodiment of the present invention, applied in communication class software, including:
Top-level module, after receiving control instruction input by user, the received control instruction of docking carries out pre-
Processing obtains control message, and the control message is handed down to the middle layer module of equipment;
Middle layer module, for generating at least one task according to the control message received, and by described in
Task is handed down at least one bottom submodule of the corresponding equipment, wherein each type of task corresponds to one
A different bottom submodule;
Bottom submodule, for being handled according to the task for receiving the middle layer module transmission.
It is preferred that the top-level module is specifically used for:
When being pre-processed to obtain control message by the received control instruction, by the received control instruction with
Cell mode is packaged, and obtains control message;
The middle layer module is specifically used for:
The received control message is decapsulated, obtains control instruction, and according to the control instruction generate to
A few task.
It is preferred that the top-level module is additionally operable to:
After control instruction input by user is received, according to the parameter information interacted with database, configuration file is formed,
And the configuration file and the control message are handed down to the middle layer module of equipment in the lump;
The middle layer module is specifically used for:
The received control message is decapsulated according to the configuration file received, obtains control instruction.
It is preferred that the middle layer module is additionally operable to:
The received control message is decapsulated, can be according to the obtained control of decapsulation after obtaining control instruction
System instruction, time and the bottom submodule when task is carried out to the bottom submodule carry out system used during task
Resource is scheduled.
It is preferred that the bottom submodule is additionally operable to:
When according to receiving the task that the middle layer module sends and being handled, according to receiving the centre
During the task that layer module is sent is handled, the state of itself is reported to believe to the middle layer module of the equipment
Breath;
The middle layer module is additionally operable to:
The working status of the bottom submodule is monitored according to the received status information;Determining abnormality
The bottom submodule, and after the bottom submodule of abnormality can not voluntarily recover, to the bottom of abnormality
Submodule carries out recovery operation.
It is preferred that the middle layer module is additionally operable to, after following situations generation, the bottom there are abnormality is determined
Straton module, and the bottom submodule of abnormality can not voluntarily recover:
Do not receive within the set duration and handling the status information that the bottom submodule of task reports.
Brief description of the drawings
Fig. 1 is the three-decker schematic diagram of the method for system call provided in an embodiment of the present invention;
Fig. 2 is the flow chart of the method for system call provided in an embodiment of the present invention;
Fig. 3 is the top layer work flow diagram of equipment provided in an embodiment of the present invention;
Fig. 4 is the intermediate layer work flow diagram of equipment provided in an embodiment of the present invention;
Fig. 5 is the bottom work flow diagram of equipment provided in an embodiment of the present invention;
Fig. 6 is the specific implementation flow chart of the method for system call provided in an embodiment of the present invention in a device;
Fig. 7 is the structure diagram of the equipment of system call provided in an embodiment of the present invention.
Embodiment
After the top layer of equipment receives control instruction input by user in the embodiment of the present invention, received control instruction is docked
Pre-processed to obtain control message, control message is handed down to the intermediate layer of equipment;The intermediate layer of equipment is according to receiving
Control message generates at least one task, and task is handed down to at least one bottom submodule of corresponding equipment
Block, wherein each type of task corresponds to a different bottom submodule;Bottom submodule is according to receiving intermediate layer
The task of transmission is handled.Since the method for system call provided by the invention is that equipment divide into top layer, centre
Layer and three levels of bottom, wherein, top layer is merely responsible for the work of user oriented and data, and intermediate layer then take charge of the explanation order and
Generation task, does not depend on mutually, by intermediate layer United Dispatching, has well defined power and responsibility between three levels between each bottom submodule independently of each other
Each performs its own functions, improves the stability of system, and reduces the difficulty of software maintenance work.
The preferred embodiment of the present invention is illustrated below in conjunction with Figure of description, it will be appreciated that described herein
Preferred embodiment is merely to illustrate and explain the present invention, and is not intended to limit the present invention.And in the case where there is no conflict, this Shen
Please in embodiment and embodiment in feature can be mutually combined.
System scheduling method provided in an embodiment of the present invention, based on the theory of multi-process distributed management, using three layers points
Level structure is realized, as shown in Figure 1, the three-decker schematic diagram of the method for system call provided in an embodiment of the present invention.Equipment
Top layer be responsible for receiving control instruction input by user and pre-processed to obtain control message, while top layer is interacted with database
Configuration file is formed, and configuration file and control message are handed down to the intermediate layer of equipment in the lump;The intermediate layer of equipment is according to top
Control message and configuration file the generation task that layer issues, and the task of generation is distributed to corresponding bottom submodule
Block;The bottom submodule of equipment receives and completes the task of intermediate layer distribution.Wherein, the bottom of equipment is each by multiple functions
Different bottom submodule is formed, and communication mechanism is not present between all bottom submodules, independently of one another work.In actual production
In manufacturing process, at least one hardware of the corresponding management of each bottom submodule or software resource, bottom submodule can bases
The task handled selects corresponding hardware resource to be handled.
Such as Network Interface Submodule manages each network interface;Routing module manages IP layers of resource;Radio configuration module tubes
Manage radiolink configuration resource etc..
Below in conjunction with the accompanying drawings, method and apparatus provided by the invention is described in detail with specific embodiment.
The method of a kind of system call provided in an embodiment of the present invention, as shown in Fig. 2, specifically including following steps:
After S201, the top layer of equipment receive control instruction input by user, dock received control instruction and located in advance
Reason obtains control message, and control message is handed down to the intermediate layer of equipment;
S202, the intermediate layer of equipment generate at least one task according to the control message received, and work are appointed
Business is handed down at least one bottom submodule of corresponding equipment, wherein each type of task corresponds to a different bottom
Straton module;
S203, bottom submodule are handled according to the task for receiving intermediate layer transmission.
Equipment be divide into three top layer, intermediate layer and bottom levels in the embodiment of the present invention, wherein, top layer is merely responsible for face
Work to user and data, and intermediate layer then takes charge of the explanation order and generation task, between each bottom submodule independently of each other, mutually
Do not depend on, by intermediate layer United Dispatching, having well defined power and responsibility between three levels, Each performs its own functions, improves the stability of system, and drops
The difficulty of low software maintenance work.
The method of the system call of the embodiment of the present invention is applied in communication class software architecture, wherein communication class software architecture
Can be the software architecture in WLAN software framework, embedded control system, the framework in base station system software, 3G/4G systems
In software architecture etc..
Equipment in the embodiment of the present invention can be wireless router, wireless exchange board, wireless base station, 3G/4G base stations etc..
Specifically, the top layer of equipment is pre-processed received control instruction to obtain control message, including:
Received control instruction is packaged by the top layer of equipment in a manner of cell, obtains control message;
The intermediate layer of equipment generates at least one task according to the control message received, including:
The intermediate layer of equipment decapsulates received control message, obtains control instruction, and give birth to according to control instruction
Into at least one task.
It is preferred that after the top layer of equipment receives control instruction input by user, further include:
The top layer of equipment forms configuration file, and by configuration file and control according to the parameter information interacted with database
Message is handed down to the intermediate layer of equipment in the lump;
The intermediate layer of equipment decapsulates received control message, obtains control instruction, including:
The intermediate layer of equipment decapsulates received control message according to the configuration file received, obtains control and refers to
Order.
In force, the top layer of equipment will be connect after the control instruction received with the data mode arranged with intermediate layer
Received control instruction is packaged, and obtains control message;The intermediate layer of equipment after the control message is received, according to top layer
The data mode of agreement docks received control message and is decapsulated, and obtains control instruction.
In force, the top layer of equipment includes that the parameter of user can be shown to according to the parameter information interacted with database
Information and Internal system parameters information when being operated to system, the top layer of equipment is according to the parameter information interacted with database
Configuration file is formed, and configuration file and control message are handed down to the intermediate layer of equipment in the lump, wherein configuration file is top layer
The text generated with specific coded format appointed with intermediate layer, the intermediate layer of equipment is according to the coding lattice arranged with top layer
Formula identifies configuration file, and received control message is decapsulated according to configuration file, obtains control instruction, according to obtaining
Control instruction generate at least one task.For example, configuration file use specific coding form can be top layer and in
What interbed was appointed has the coded format of a certain specific prefix.
It is preferred that as shown in figure 3, for equipment provided in an embodiment of the present invention top layer work flow diagram, specifically include with
Lower step:
Step 301, the top layer of equipment realized using user oriented mode, receive control instruction input by user it
Afterwards, step 302 and/or step 303 are performed;
Step 302, the top layer of equipment dock received control instruction and are pre-processed, the control instruction that will be received with
Cell mode encapsulates, and obtains control message, and perform step 304;
Step 303, the top layer of equipment to instruction after pretreatment completion is carried out, to data by way of memory read-write
Storehouse interaction parameter information, then forms configuration file according to the parameter information interacted with database, and performs step 304;
Step 304, the top layer of equipment issue configuration file and control message in the lump by message queue mechanism to intermediate layer.
In force, step 302 and step 303 may be performed simultaneously, and can also perform respectively, i.e., step 301 has performed
Afterwards, step 302 and step 303 are may be performed simultaneously, step 302 and step 303 can also be performed respectively, and order is regardless of elder generation
Afterwards.
In force, the top layer of equipment is realized using user oriented mode, that is to say, that equipment can show user couple
The interface that equipment is controlled, such as user can select equipment to realize the function of router, after the completion of user's selection, then equipment
Just relevant operation can be carried out according to the selection of user.
In force, system scheduling method provided in an embodiment of the present invention has the function of that bilayer voluntarily recovers, Neng Gouyou
The stability of the whole software systems of guarantee of power, lower mask body introduction.
Specifically, bottom submodule is handled according to the task for receiving intermediate layer transmission, further include:
During bottom submodule is handled according to the task for receiving intermediate layer transmission, to the centre of equipment
Layer reports the status information of itself;
This method further includes:
The intermediate layer of equipment monitors the working status of bottom submodule according to received status information;
Equipment is determining the bottom submodule of abnormality, and the bottom submodule of abnormality can not voluntarily recover
Afterwards, recovery operation is carried out to the bottom submodule of abnormality.
In force, each type of task of the intermediate layer generation of equipment corresponds to a different bottom submodule
Block, intermediate layer issue the task for completing the type after task is generated, according to the type of task
The bottom submodule of task.The task type that the intermediate layer received due to different bottom submodules is sent not phase
Together, also differed so docking the mode that received task is handled.For example, the work that bottom submodule receives is appointed
Business is that port is configured, then bottom submodule can match somebody with somebody corresponding port accordingly according to the content of task
Put;If the task that bottom submodule receives is to open third party software, bottom submodule can be according to task
Content opens corresponding third party software.
In force, bottom submodule may need to start some corresponding components when completing task, such as into
Required port the etc. during processing of row task.The status information of itself is periodically reported to the intermediate layer of equipment in bottom submodule
When, the status information reported includes the information of all components started, these information are probably the working status of all parts
Whether the information such as normal.
For example, bottom submodule can report certain started during its work by the specific data message to intermediate layer
Whether the working status of Single port is normal, if exception occurs in the working status, bottom submodule reports itself to intermediate layer
During status information, the port working can be reported abnormal;If bottom submodule makes the abnormal port extensive by voluntarily recovering function
Return to work work, then bottom submodule can report the port working state as just when reporting oneself state information to intermediate layer next time
Often.
It is preferred that the intermediate layer of equipment determines the bottom submodule there are abnormality after following situations generation, and it is different
The bottom submodule of normal state can not voluntarily recover:
The intermediate layer of equipment does not receive the state that the bottom submodule of task reports that handling within the set duration
Information.
For example, it is assumed that during bottom submodule is handled according to the task for receiving intermediate layer transmission, bottom
Straton module just reported once the working status of oneself by message queue mode every 3 seconds to intermediate layer, if wherein some is just
Processing task bottom submodule more than 3 seconds to intermediate layer uploaded state, then it is sub to will be considered to the bottom for intermediate layer
Module is in working condition exception.
In force, each bottom submodule in equipment bottom, by way of message queue receiving intermediate layer issues
Task, realize a certain independent function, the underlying resource for organizing oneself to administer completes received task, together
When, multiple bottom submodules are run parallel, are cooperated.After the bottom submodule task that interbed issues in the reception, open
Oneself life cycle is started from, in life cycle, completes the task that issues of intermediate layer, after life cycle, bottom
Module can automatic power cut-off process, discharge internal resource.
In force, during carry out task, intermediate layer can monitor bottom submodule according to received status information
The working status of bottom submodule, and the progress that bottom submodule completes task is recorded, but bottom submodule may be because
Cause its own working status abnormal for some reasons, for example, a bottom submodule needs to use in carry out task processing
To some port, but the port can not work normally at this time, and then may result in the work shape of the bottom submodule of the work
State is abnormal.During carry out task, each bottom submodule can use the operation of itself of single line range monitoring, so as to maintain
The stability of itself, while intermediate layer can monitor the state of bottom submodule, to submodule that is abnormal and cannot voluntarily recovering
Carry out abnormality processing and state is recovered, the stability for the whole software systems of framework form more powerful guarantee that bilayer voluntarily recovers.
In force, abnormal bottom submodule can voluntarily recover its working status by modes such as restartings;If
Abnormal bottom submodule state because the reason such as locked can not voluntarily resume work, then intermediate layer can help the abnormal bottom
Straton module carries out state recovery, for example, intermediate layer can force abnormal bottom submodule power cut-off process, and makes its heavy
It is new to open process, after abnormal bottom submodule is forced to reopen process by intermediate layer, can be recorded according to intermediate layer its
The job schedule reopened into Cheng Qian continues to complete its unfinished task.
It is preferred that the intermediate layer of equipment decapsulates received control message, after obtaining control instruction, further include:
The control instruction that the intermediate layer of equipment can be obtained according to decapsulation, carries out bottom submodule time during task
And system resource used is scheduled during bottom submodule progress task.
In force, scheduling of the intermediate layer of equipment to bottom submodule includes, time during to bottom submodule task
System resource used is scheduled.The intermediate layer of equipment can be scheduled bottom submodule by scheduling information.Scheduling
Information includes time scheduling information and system resource scheduling information.
Scheduling information can send jointly to bottom submodule with task, can also be placed in task and be sent to
Bottom submodule.
When receiving time scheduling information of the bottom submodule after scheduling information in scheduling information and determining corresponding
Between, and system resource scheduling information in scheduling information determines corresponding system resource, and reached in the definite time
Task is handled by definite system resource afterwards.
In order to ensure working status and stability of each bottom submodule in the life cycle when carrying out task processing,
During the intermediate layer of equipment decapsulates the control message that top layer issues, it is contemplated that multiple bottom submodule couplings
The order that situation, i.e. top layer issue may relate to multiple bottom submodules, and such as there may be different time to need to different bottoms
Submodule initiates the situation of a certain task successively;And for example there may be synchronization to need what multiple bottom submodules cooperated
Situation.When intermediate layer explains order, according to order to each bottom submodule of demand planning in each bottom submodule sequential
The job start time of block, ensures the dependence between each independent bottom submodule.
For example, it is assumed that equipment only has an available network interface, if there is two bottom submodules to be required for using this in bottom
Network interface, then when producing task, meeting determine two bottom submodules network interface according to control message in the intermediate layer of equipment
Sequencing;Assuming that there is two tasks to complete something at the same time, then the intermediate layer of equipment when producing task,
The bottom submodule completed corresponding to the two tasks can be told according to control message, the two tasks start suitable
Sequence is to start successively, or is started at the same time.
In force, it is preferred that after the top layer of equipment issues configuration file and control message in the embodiment of the present invention, equipment
Intermediate layer be responsible for receiving, explaining the control message that top layer issues, according between each bottom submodule dependence generation it is multiple
Subtask, is handed down to the bottom submodule of each Various Functions, lower mask body introduction.
As shown in figure 4, for the intermediate layer work flow diagram of equipment provided in an embodiment of the present invention, following step is specifically included
Suddenly:
Step 401, the intermediate layer of equipment are receiving hair configuration file that top layer issues and control disappears by message queue
After breath, step 402 is performed;
Step 402, the intermediate layer of equipment are according to the configuration file received by the control message of the cell form received
Unsealed, obtain the control instruction that solution is honored as a queen, by response cell tell equipment top layer configuration file and control message
Through receiving, and perform step 403;
The control instruction that step 403, the intermediate layer of equipment are obtained according to deblocking generates at least one task;
At least one task of generation is distributed to pair by step 404, the intermediate layer of equipment using message queue mechanism
The bottom submodule answered.
As shown in figure 5, for the bottom work flow diagram of equipment provided in an embodiment of the present invention, following steps are specifically included:
Step 501, bottom submodule receive the task that intermediate layer issues;
Step 502, bottom submodule perform the task that the intermediate layer received issues, and perform step 503 at the same time
With 504;
Step 503, bottom submodule can keep, from calming, safeguarding the stability of itself within the cycle of the task of progress,
The operation of itself is monitored by using individual threads, itself exception occurs if finding, repairs itself abnormal, execution step
502;
Step 504, bottom submodule complete the task that intermediate layer issues.
It is preferred that the method for system call provided in an embodiment of the present invention is in a device when it is implemented, high-level can
Control low-level, low-level anti-cannot cross control high-level, and low-level can only be to high-level reporting message, such as intermediate layer can be with
Bottom is controlled, bottom cannot control intermediate layer, the working status of itself can only be reported to intermediate layer.As shown in fig. 6, it is the present invention
The specific implementation flow chart of the method for the system call that embodiment provides in a device.
Based on same inventive concept, the embodiment of the present invention additionally provides a kind of equipment of system call, by the equipment institute
The principle solved the problems, such as is similar to the method that aforementioned system is dispatched, therefore the implementation of the equipment may refer to the reality of preceding method
Apply, overlaps will not be repeated.
As shown in fig. 7, a kind of equipment of system call provided in an embodiment of the present invention, applied in communication class software, is wrapped
Include:
A kind of equipment of system call provided in an embodiment of the present invention, applied in communication class software, including:
Top-level module 701, after receiving control instruction input by user, docks received control instruction and is located in advance
Reason obtains control message, and control message is handed down to the middle layer module 702 of equipment;
Middle layer module 702, for generating at least one task according to the control message received, and work is appointed
Business is handed down at least one bottom submodule 703 of corresponding equipment, wherein each type of task corresponds to a difference
Bottom submodule 703;
Bottom submodule 703, for being handled according to the task for receiving the transmission of middle layer module 702.
It is preferred that top-level module 701 is specifically used for:
When being pre-processed to obtain control message by received control instruction, by received control instruction in a manner of cell
It is packaged, obtains control message;
Middle layer module 702 is specifically used for:
Received control message is decapsulated, obtains control instruction, and at least one work is generated according to control instruction
Make task.
It is preferred that top-level module 701 is additionally operable to:
After control instruction input by user is received, according to the parameter information interacted with database, configuration file is formed,
And configuration file and control message are handed down to the middle layer module 702 of equipment in the lump;
Middle layer module 702 is specifically used for:
Received control message is decapsulated according to the configuration file received, obtains control instruction.
It is preferred that middle layer module 702 is additionally operable to:
Received control message is decapsulated, after obtaining control instruction, can be referred to according to the control that decapsulation obtains
Order, time and bottom submodule 703 when task is carried out to bottom submodule 703 carry out during task system resource used into
Row scheduling.
It is preferred that bottom submodule 703 is additionally operable to:
When being handled according to the task for receiving the transmission of middle layer module 702, according to receiving intermediate layer mould
During the task that block 702 is sent is handled, the status information of itself is reported to the middle layer module 702 of equipment;
Middle layer module 702 is additionally operable to:
The working status of bottom submodule 703 is monitored according to received status information;Determining the bottom of abnormality
Submodule 703, and after the bottom submodule 703 of abnormality can not voluntarily recover, to the bottom submodule 703 of abnormality into
Row recovery operation.
It is preferred that middle layer module 702 is additionally operable to, after following situations generation, determine that there are the bottom of abnormality
Module 703, and the bottom submodule 703 of abnormality can not voluntarily recover:
Do not receive within the set duration and handling the status information that the bottom submodule 703 of task reports.
In the embodiment of the present invention, since the method for the system call of offer is that equipment divide into top layer, intermediate layer and bottom
Three level of layer, wherein, top layer is merely responsible for the work of user oriented and data, and intermediate layer then takes charge of the explanation order and generation is appointed
Business, does not depend on mutually between each bottom submodule independently of each other, by intermediate layer United Dispatching, have well defined power and responsibility between three levels each department its
Duty, so compared with prior art communication class software is by the way of the serialized software framework, improves the stability of system, and
The structure type of three levels reduces the difficulty of software maintenance work.
Through the above description of the embodiments, those skilled in the art can be understood that the embodiment of the present invention
The mode of necessary general hardware platform can also be added to realize by software by hardware realization.Based on such understanding,
The technical solution of the embodiment of the present invention can be embodied in the form of software product, the software product can be stored in one it is non-
In volatile storage medium (can be CD-ROM, USB flash disk, mobile hard disk etc.), including some instructions are used so that a computer
Equipment (can be personal computer, server, or network equipment etc.) performs the method described in each embodiment of the present invention.
It will be appreciated by those skilled in the art that attached drawing is the schematic diagram of a preferred embodiment, module or stream in attached drawing
Journey is not necessarily implemented necessary to the present invention.
It will be appreciated by those skilled in the art that the module in embodiment in equipment can describe to be distributed according to embodiment
In the equipment of embodiment, respective change can also be carried out and be disposed other than in one or more equipment of the present embodiment.It is above-mentioned
The module of embodiment can be merged into a module, can also be further split into multiple submodule.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
God and scope.In this way, if these modifications and changes of the present invention belongs to the scope of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to comprising including these modification and variations.
Claims (8)
- A kind of 1. method of system call, applied in communication class software architecture, it is characterised in that including:After the top layer of equipment receives control instruction input by user, the control instruction received is carried out in a manner of cell Encapsulation, obtains the control message, the control message is handed down to the intermediate layer of equipment;The top layer of the equipment receives use After the control instruction of family input, further include:The top layer of the equipment forms configuration text according to the parameter information interacted with database Part, and the configuration file and the control message are handed down to the intermediate layer of equipment in the lump;The intermediate layer of the equipment decapsulates the received control message according to the configuration file received, obtains At least one task is generated to the control instruction, and according to the control instruction, and the task is handed down to At least one bottom submodule of the corresponding equipment, wherein each type of task corresponds to different bottom Module;The bottom submodule is handled according to the task for receiving the intermediate layer transmission.
- 2. the method as described in claim 1, it is characterised in that the intermediate layer of the equipment to the received control message into Row decapsulation, after obtaining control instruction, further includes:The intermediate layer of the equipment can be according to the obtained control instruction of decapsulation, when carrying out task to the bottom submodule Time and the bottom submodule system resource used when carrying out task are scheduled.
- 3. the method as described in claim 1, it is characterised in that the bottom submodule is sent according to the intermediate layer is received Task handled, further include:During the bottom submodule is handled according to the task for receiving the intermediate layer transmission, set to described Standby intermediate layer reports the status information of itself;This method further includes:The intermediate layer of the equipment monitors the working status of the bottom submodule according to the received status information;The equipment is determining the bottom submodule of abnormality, and the bottom submodule of abnormality can not be certainly After row recovers, recovery operation is carried out to the bottom submodule of abnormality.
- 4. method as claimed in claim 3, it is characterised in that the intermediate layer of the equipment determines after following situations generation The bottom submodule there are the bottom submodule of abnormality, and abnormality can not voluntarily recover:The intermediate layer of the equipment does not receive within the set duration is handling what the bottom submodule of task reported Status information.
- A kind of 5. equipment of system call, applied in communication class software, it is characterised in that including:Top-level module, after receiving control instruction input by user, is pre-processed by the received control instruction When obtaining control message, the received control instruction is packaged in a manner of cell, obtains control message, by the control Message is handed down to the middle layer module of equipment;The top-level module is additionally operable to:After control instruction input by user is received, according to the parameter information interacted with database, configuration file is formed, and will The configuration file is handed down to the middle layer module of equipment with the control message in the lump;Middle layer module, for being decapsulated according to the configuration file received to the received control message, obtains At least one task is generated to control instruction, and according to the control instruction, and the task is handed down to correspondence The equipment at least one bottom submodule, wherein each type of task correspond to a different bottom submodule Block;Bottom submodule, for being handled according to the task for receiving the middle layer module transmission.
- 6. equipment as claimed in claim 5, it is characterised in that the middle layer module is additionally operable to:The received control message is decapsulated, after obtaining control instruction, can be referred to according to the control that decapsulation obtains Order, time and the bottom submodule when task is carried out to the bottom submodule carry out system resource used during task It is scheduled.
- 7. equipment as claimed in claim 5, it is characterised in that the bottom submodule is additionally operable to:When according to receiving the task that the middle layer module sends and being handled, according to receiving the intermediate layer mould During the task that block is sent is handled, the status information of itself is reported to the middle layer module of the equipment;The middle layer module is additionally operable to:The working status of the bottom submodule is monitored according to the received status information;Determining described in abnormality Bottom submodule, and after the bottom submodule of abnormality can not voluntarily recover, to the bottom submodule of abnormality Block carries out recovery operation.
- 8. equipment as claimed in claim 7, it is characterised in that the middle layer module is additionally operable to, after following situations generation, Determine the bottom submodule there are abnormality, and the bottom submodule of abnormality can not voluntarily recover:Do not receive within the set duration and handling the status information that the bottom submodule of task reports.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410653254.3A CN104346219B (en) | 2014-11-17 | 2014-11-17 | A kind of method and apparatus of system call |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410653254.3A CN104346219B (en) | 2014-11-17 | 2014-11-17 | A kind of method and apparatus of system call |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104346219A CN104346219A (en) | 2015-02-11 |
CN104346219B true CN104346219B (en) | 2018-05-01 |
Family
ID=52501904
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410653254.3A Active CN104346219B (en) | 2014-11-17 | 2014-11-17 | A kind of method and apparatus of system call |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104346219B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105786502B (en) * | 2016-02-26 | 2019-09-03 | 成都雅骏新能源汽车科技股份有限公司 | A kind of scheduling formula embedded application software framework and its implementation |
CN107168789B (en) * | 2016-03-08 | 2021-05-11 | 创新先进技术有限公司 | Multitask serial scheduling method and device |
WO2018072085A1 (en) * | 2016-10-18 | 2018-04-26 | 中兴通讯股份有限公司 | Multi-device collaborative operation method and devices, and computer storage medium |
CN107247594B (en) * | 2017-06-12 | 2020-10-16 | 武汉斗鱼网络科技有限公司 | Logic system, implementation method thereof, computing device and computer-readable storage medium |
CN110134074B (en) * | 2018-02-02 | 2022-03-01 | 华中科技大学 | Production line control system and control method thereof |
CN114390083B (en) * | 2021-12-27 | 2024-03-01 | 杭州电子科技大学 | Distributed modular electrical safety control terminal |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101630271A (en) * | 2009-06-26 | 2010-01-20 | 湖南大学 | Middleware supporting system for simulating and calculating earthquake in grid environment |
US9063779B2 (en) * | 2010-01-06 | 2015-06-23 | Mindspeed Technologies, Inc. | Task list generation, parallelism templates, and memory management for multi-core systems |
CN102467415B (en) * | 2010-11-03 | 2013-11-20 | 大唐移动通信设备有限公司 | Service facade task processing method and equipment |
EP2783287A4 (en) * | 2011-11-23 | 2014-12-03 | Ericsson Telefon Ab L M | Method and apparatus for distributed processing tasks |
CN103906257B (en) * | 2014-04-18 | 2017-09-08 | 北京邮电大学 | LTE wide-band communication system computing resource schedulers and its dispatching method based on GPP |
-
2014
- 2014-11-17 CN CN201410653254.3A patent/CN104346219B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN104346219A (en) | 2015-02-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104346219B (en) | A kind of method and apparatus of system call | |
EP3852077B1 (en) | Robot control method, device, and remote control system | |
CN105007304B (en) | The exchange of corporate information technology system data based on SOA framework and integration system | |
CN105589748A (en) | Service request processing method and apparatus | |
TW201816598A (en) | Task switching method and related device | |
CN100377538C (en) | Construction of protocol testing platform for supporting TD SCDMA terminal protocol | |
CN109062681A (en) | A kind of execution method, system, device and the storage medium of periodic cycle task | |
CN104468826A (en) | Distributed rendering method, device and system | |
WO2006129277A2 (en) | Method and hardware node for customized upgrade control | |
CN104462243A (en) | Data verification combined ETL scheduling system and method | |
WO2019108769A8 (en) | Distributed wireless network operating system | |
CN105117270A (en) | Sensor simulation method and apparatus | |
CN104821889B (en) | A kind of processing method and equipment of backup message | |
CN108763017A (en) | Application of software data processing method, server-side and the storage medium of financial business | |
CN106487469B (en) | A kind of timing node switching method and system | |
CN107025126B (en) | Resource scheduling method, NFVO and system | |
CN117170799A (en) | Container migration method, device, computer equipment and storage medium | |
CN106844093A (en) | The method and device of Backup Data | |
Quintanilla et al. | Implementation framework for cloud-based holonic control of cyber-physical production systems | |
US20200198136A1 (en) | Information processing apparatus, information processing method, and program | |
CN103309730B (en) | The method of striding course readjustment and device | |
CN108476036A (en) | Communication equipment, communication processing method, communication processing apparatus and communication system | |
CN103186420A (en) | Cluster tool controller and scheduling method thereof | |
Hristozov et al. | Resilient architecture framework for robotic systems | |
CN105306508A (en) | Service processing method and service processing device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder | ||
CP01 | Change in the name or title of a patent holder |
Address after: 510663 No. 10 Shenzhou Road, Science City, Luogang District, Guangzhou City, Guangdong Province Patentee after: Jingxin Network System Co.,Ltd. Address before: 510663 No. 10 Shenzhou Road, Science City, Luogang District, Guangzhou City, Guangdong Province Patentee before: Comba Telecom System (China) Ltd. |