CN108776621A - Communication means and device in software architecture between level - Google Patents
Communication means and device in software architecture between level Download PDFInfo
- Publication number
- CN108776621A CN108776621A CN201810552692.9A CN201810552692A CN108776621A CN 108776621 A CN108776621 A CN 108776621A CN 201810552692 A CN201810552692 A CN 201810552692A CN 108776621 A CN108776621 A CN 108776621A
- Authority
- CN
- China
- Prior art keywords
- request instruction
- software layer
- software
- request
- communication
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/545—Interprogram communication where tasks reside in different layers, e.g. user- and kernel-space
Abstract
Communication means and device between level in a kind of software architecture are disclosed in the embodiment of the present application.When using not computer programming language of the same race between the level of same stand alone software framework, by the communication mode of instruction instead of traditional function call mode, after the second request instruction for receiving the second software layer, based on pre-arranged code agreement, second request instruction is decoded, obtain the first request instruction, and execute the first request instruction, wherein, second request instruction is that the second software layer uses pre-arranged code agreement, first request instruction is encoded, first request instruction is triggered by user, second request instruction includes the mark of the first software layer.As it can be seen that the program realizes the independent operating of each software layer and exploitation in same stand alone software framework, the incompatible problem of computer programming language between level is avoided.
Description
Technical field
This application involves the communication means and dress between level in the field of medical instrument technology more particularly to a kind of software architecture
It sets.
Background technology
Currently, every field is directed to Software Architecture Design, such as medical instruments field.Blood point in medical instruments field
The instruments such as analyzer, immunity analysis instrument can be according to the demand of each service application in entire instrument not during Software Architecture Design
Together, entire service application is divided into different functional hierarchies, becomes the software architecture of layer-stepping.General layer-stepping software frame
Structure is generally three-tier architecture, as shown in Figure 1, including user interface layer, Business Logic and core processing layer.User interface layer is used
In completing, user is interactive and user instruction triggers;Business Logic is for various businesses operation and business rule processing;Core
Process layer is increased for data, is deleted, is changed, is searched for accessing database.
Each software layer in same stand alone software framework, function opposite independent and single, and realization method tends to
Code diversification, such as the realization of user interface layer can select Object-Oriented Programming Language C#, JAVA computer programming language,
The realization of Business Logic can select computer programming languages such as C++, C, JAVA etc..It is most of in general software architecture
Data interaction (or layer level communication) between software level needs to realize by function call, and which logic is simple,
It is easy to understand.
However, in order to avoid the function interface incompatibility problem as caused by computer programming language, software in above-mentioned framework
It is generally required between level using computer programming language of the same race so that there are the couplings of indivisible code between software level
Property, to realize function call, but this mode limits the scalability and independence of software layer.
Invention content
The embodiment of the present application provides the communication means and device between level in a kind of software architecture, for soft in same independence
When between the level of part framework using not computer programming language of the same race, realizes independent operating and the exploitation of each software layer, avoid
The incompatible problem of computer programming language between level.
In a first aspect, providing the communication means in a kind of software architecture between level, this method is applied to stand alone software frame
The first software layer in structure, this method may include:
The second request instruction of the second software layer in the stand alone software framework is received, the second request instruction is the second software layer
Using pre-arranged code agreement, the first request instruction is encoded, the first request instruction is triggered by user, second
Request instruction includes the mark of the first software layer;
Based on pre-arranged code agreement, the second request instruction is decoded, obtains the first request instruction;
Execute the first request instruction.
In an optional realization, the second request instruction of the second software layer is received, including:
Second request instruction of the second software layer write-in is read from default document.
In an optional realization, the second request instruction of the second software layer is received, including:
The second request instruction is obtained from default third-party application, the second request instruction is that the second software layer is answered to third party
With transmission.
In an optional realization, before the second request instruction for receiving the second software layer, this method further includes:
It establishes and communicates to connect with the second software layer;
By the socket link in communication connection, the second request instruction of the second software layer is received.
In an optional realization, when the first request instruction is to obtain the request instruction of request data, this method is also
Including:
Based on the first request instruction, request data is obtained;
Request data is sent to the second software layer.
Second aspect provides a kind of communication device, which is located in stand alone software framework, which may include:
Receiving unit, the second request instruction for receiving the second software layer in the stand alone software framework, the second request refer to
Enable be the second software layer use pre-arranged code agreement, the first request instruction is encoded, the first request instruction be by
User's triggering, the second request instruction includes the mark of the first software layer;
Decoding unit is decoded the second request instruction, obtains the first request and refer to for being based on pre-arranged code agreement
It enables;
Execution unit, for executing the first request instruction.
In an optional realization, receiving unit, specifically for reading the write-in of the second software layer from default document
Second request instruction.
In an optional realization, receiving unit refers to specifically for obtaining the second request from default third-party application
It enables, the second request instruction is what the second software layer was sent to third-party application.
In an optional realization, which further includes communication unit;
Communication unit is communicated to connect for being established with the second software layer;
By the socket link in communication connection, the second request instruction of the second software layer is received.
In an optional realization, which further includes acquiring unit;
Acquiring unit obtains request data for being based on the first request instruction;
Communication unit is additionally operable to send request data to the second software layer.
The third aspect provides a kind of electronic equipment, which includes processor, communication interface, memory and lead to
Believe bus, wherein processor, communication interface, memory complete mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes any side in above-mentioned first aspect
Method step.
Fourth aspect provides a kind of computer readable storage medium, and meter is stored in the computer readable storage medium
Calculation machine program, the computer program realize any method and step in above-mentioned first aspect when being executed by processor.
When the above embodiment of the present invention uses not computer programming language of the same race between the level of same stand alone software framework,
By the communication mode of instruction instead of traditional function call mode, in the second request instruction for receiving the second software layer, the
Two request instructions are that the second software layer uses pre-arranged code agreement, are encoded to the first request instruction, the first request
Instruction is triggered by user, and the second request instruction includes the mark of the first software layer, is based on pre-arranged code agreement, is asked to second
It asks instruction to be decoded, obtains the first request instruction, and execute the first request instruction, it is seen then that the program realizes same independence
The independent operating of each software layer and exploitation in software architecture avoid the incompatible problem of computer programming language between level.
Description of the drawings
Fig. 1 is a kind of structural schematic diagram for general layer-stepping software architecture that the prior art provides;
Fig. 2 is the flow diagram of the communication means between level in a kind of software architecture provided in an embodiment of the present invention;
Fig. 3 is a kind of side for the second request instruction that the first software layer provided in an embodiment of the present invention receives the second software layer
Formula;
Fig. 4 is the another kind for the second request instruction that the first software layer provided in an embodiment of the present invention receives the second software layer
Mode;
Fig. 5 is another for the second request instruction that the first software layer provided in an embodiment of the present invention receives the second software layer
Mode;
Fig. 6 is the flow diagram of the communication means between level in another software architecture provided in an embodiment of the present invention;
Fig. 7 is a kind of structural schematic diagram of communication device provided in an embodiment of the present invention;
Fig. 8 is the structural schematic diagram of a kind of electronic equipment provided in an embodiment of the present invention.
Specific implementation mode
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete
Site preparation describes, it is clear that described embodiment is only some embodiments of the present application, is not whole embodiment.Based on this
Apply for embodiment, every other implementation obtained by those of ordinary skill in the art without making creative efforts
Example, shall fall in the protection scope of this application.
When the present invention refers to ordinal numbers such as " first ", " second ", " third " or " the 4th ", unless based on context its
The meaning of certain order of representation, it is appreciated that being only to distinguish to be used.
Communication means in software architecture provided in an embodiment of the present invention between level can be applied in software client/service
Different according to the demand of entire service application in device (Client/Server, CS) model, which includes at least three
Software layer.Wherein, the communication of software interlayer is the communication between server in Current software layer and software layer to be communicated.
Server (Server) number for including according to each software layer, can design:The C/S communication plans of single Server
With the C/S communication plans of more Server.In the C/S communication plans of single Server, a Server is only arranged in each software layer,
All external datas are forwarded by a Server.In the C/S communication plans of more Server, each software layer is for difference
External data setting respective numbers Server.
It should be noted that can determine that target protocol is according to the factors such as different function environments or data volume size
The C/S communication plans of above-mentioned list Server or the C/S communication plans of more Server.
Computer programming language of the same race is generally used in the software architecture of traditional medical instrument between level, to avoid between level
The incompatible problem of computer programming language, however this mode limits the scalability and independence of software layer.It is based on
All computer programming languages all support network interface to program, and (i.e. socket is logical using network interface programming for the embodiment of the present invention
Believe agreement) versatility, solve the incompatible of at least three software interlayer computer programming languages in same stand alone software framework
The problem of, i.e., the communication in software architecture between level does not recall corresponding function interface, but passes through web socket
The data interaction of socket makes software layer have scalability and independence to reach being in communication with each other between level.
The second software layer in the embodiment of the present invention is primarily based on the first request instruction of user's triggering of acquisition, is compiled
The second request instruction after code, the second request instruction includes the mark of the first software layer, so that the first software layer is asked according to second
The mark in instruction is sought, determines that second request instruction is intended for oneself, the second request instruction be first asking after encoding
Ask instruction.Second software layer sends second request instruction to the first software layer, and the first software layer is based on pre-arranged code agreement, right
Second request instruction is decoded, and obtains the first request instruction, executes first request instruction later.Wherein, the first software layer
It is software layer at least three software layers in same stand alone software framework with the second software layer.
As it can be seen that the embodiment of the present invention by command communication mode instead of traditional function call mode, by between level
Communication mode (including direct communication or indirect communication), realize the independent operating of each software layer in same stand alone software framework
And exploitation, avoid the incompatible problem of computer programming language between level so that each software layer can both be used as independent
Executable program carries out exploitation debugging and maintenance, and the form that can also be used as third party library file exists and uses.
The preferred embodiment of the application is illustrated below in conjunction with Figure of description, it should be understood that described herein
Preferred embodiment only for the purpose of illustrating and explaining the present invention and is not intended to limit the present invention, and in the absence of conflict, this Shen
Please in embodiment and embodiment in feature can be combined with each other.
Fig. 2 is the flow diagram of the communication means between level in a kind of software architecture provided in an embodiment of the present invention.Such as
Shown in Fig. 2, this method is applied to the first software layer in stand alone software framework, and this method may include:
Step 210, the second request instruction for receiving the second software layer in same stand alone software framework.
First software layer is equivalent to function realization side traditionally for handling the request instruction from the second software layer.
Second software layer is equivalent to function call side traditionally, i.e. the second software layer for sending request instruction to the first software layer
To wait for the software layer communicated with the first software layer.
Before executing step 210, after the second software layer obtains the first request instruction of user's triggering, using pre-arranged code
Agreement encodes the first request instruction, obtains the second request instruction, and the second request instruction includes the mark of the first software layer
Know, can accurately obtain the second software layer for the first software layer and issue the second request instruction of oneself.First request instruction
It can be the instruction for obtaining network data, the first software layer can also be ordered to execute corresponding operating.
If the second software layer uses pre-arranged code agreement, coding failure is carried out to the first request instruction, then the second software layer
Send out the abnormal alarm of coding.
Optionally, the second request instruction that the first software layer receives the second software layer may include following manner:
Mode one establishes the communication connection of the first software layer and the second software interlayer, passes through the socket in communication connection
Link receives the second request instruction of the second software layer, as shown in Figure 3.
After the second software layer obtains the second request instruction, following steps are executed:
Step 310, the second software layer send communication connection request to the first software layer;
The communication connection request of step 320, the first software layer based on reception sends communication connection to the second software layer and rings
It answers.
The first software layer and the second software interlayer, which are established, at this time communicates to connect.First software layer and the second software layer it is pairs of
Two socket between also establish communication link, by can be between two pairs of socket of socket communication links
The transmission of row bi-directional network data.
If failure is established in the communication connection of the first software layer and the second software interlayer, 310 are returned to step, and work as and return
When the number of receipt row has reached default reconnection threshold value, the second software layer sends out the abnormal alarm of coding.
The mark of step 330, the second software layer based on the first software layer is sent by socket chains the first software layer of road direction
Second request instruction, so that the first software layer receives the second request instruction of the second software layer.
After first software layer receives the second request instruction, request-reply is sent to the second software layer.If the second software layer
The request-reply of the first software layer transmission is not received, then it is assumed that the second request instruction does not send success, returns to step at this time
330, and when the number for returning to execution has reached default reconnection threshold value, the second software layer sends out the abnormal alarm of coding.
As it can be seen that said program also largely alleviates the unstability of network communication by retransmission mechanism.
Mode two, the first software layer reads the second request instruction of the second software layer write-in from default document, such as Fig. 4 institutes
Show.
Specially:After the second software layer obtains the second request instruction, following steps are executed:
The second request instruction is written to default document in step 410, the second software layer.
Step 420, the first software layer obtain the second request instruction by reading the content for presetting document.
Wherein, the first software layer can preset document to this every preset time and be read out, can also be pre- to this in real time
If document is read out, specific reading manner can be configured according to actual needs, and the embodiment of the present invention does not limit herein.
It is to be appreciated that after the second request instruction in default document is read, default document can delete this
Two request instructions, alternatively, when the item number of the second request instruction in default document is more than default number of branches threshold value, default document can
To delete the second request instruction before preset time period (such as one day), to save space.
Mode three, the first software layer obtain the second request instruction from default third-party application, as shown in Figure 5.
Specially:After the second software layer obtains the second request instruction, following steps are executed:
Step 510, the second software layer send the second request instruction to default third-party application.
Step 520, default the second request instruction of third-party application pair store.
Step 530, the first software layer extract the second request instruction from default third-party application.
Optionally, step 530 may be replaced by the second request for executing step 540, presetting third-party application by reception
Instruction is sent to the second software layer, so that the second software layer obtains the second request instruction.
Step 220 is based on pre-arranged code agreement, is decoded to the second request instruction, obtains the first request instruction.
First software layer is based on check code, is verified to obtaining the first request instruction, judges whether successfully resolved.If solution
It analyses successfully, thens follow the steps 230, otherwise send out the abnormal alarm of decoding, and return to step 210.
Step 230 executes the first request instruction.
It should be noted that communication (including the direct communication or indirect communication) side that the above embodiment of the present invention passes through instruction
Formula realizes independent operating and the exploitation of each software layer, that is, realizes to each soft instead of traditional function call mode
Part layer can be managed individually, to reach the quick positioning to failure.
Below by taking the first software layer and the second software layer are communicated by socket communication links as an example, carry out specifically
It is bright.
Fig. 6 is the flow diagram of the communication means between level in another software architecture provided in an embodiment of the present invention.
As shown in fig. 6, this method may include:
Step 601, software layer A obtain the first request instruction of user's triggering, and the first request instruction is for obtaining number of targets
According to.
Step 602, software layer A use pre-arranged code agreement, are encoded to the first request instruction, obtain the second request and refer to
It enables.
Second request instruction includes the mark of software layer B, so that software layer B determines that second request instruction is intended for oneself
, to handle in time the second request instruction.
Optionally, software layer A judges whether coding succeeds, if so, thening follow the steps 603;If it is not, it is abnormal then to send out coding
Alarm, and return to step 601.
Step 603, software layer A send communication connection request to software layer B.
The communication connection request of step 604, software layer B based on reception sends communication connection response to software layer A.
Optionally, 603 are returned to step if software layer A does not receive the communication connection response that software layer B is sent, it is no
Then, step 605 is executed.
The mark of step 605, software layer A based on software layer B sends the second request by socket chain road direction software layers B
Instruction.
Optionally, if software layer A does not receive the request-reply that software layer B is sent, i.e. software layer A sends to software layer B and loses
Lose, then return to step 605, and if return to the number executed and be not less than default sending times, send out abnormality alarming, and return
Receipt row step 601;
If software layer A receives the request-reply that software layer B is sent, 606 are thened follow the steps.
Step 606, software layer B are based on pre-arranged code agreement, are decoded to the second request instruction, obtain the first request and refer to
It enables.
Step 607, software layer B execute the first request instruction, obtain target data.
Step 608, software layer B send the target data to software layer A.
It follows that the above embodiment of the present invention is compiled between level using computer not of the same race in same stand alone software framework
When Cheng Yuyan, by communication (including the direct communication or indirect communication) mode of instruction instead of traditional function call mode,
In the second request instruction for receiving the second software layer, the second request instruction is that the second software layer uses pre-arranged code agreement, to the
What one request instruction was encoded, the first request instruction is triggered by user, and the second request instruction includes the first software
The mark of layer is based on pre-arranged code agreement, is decoded to the second request instruction, obtains the first request instruction, and execute first
Request instruction, it is seen then that the program realizes independent operating and the exploitation of each software layer, avoids computer programming language between level
Say incompatible problem.Simultaneously by carrying out encoding and decoding to instruction, the safety of network data is improved.
Corresponding with the above method, the embodiment of the present invention also provides a kind of communication device, which is located at stand alone software frame
In structure, as shown in fig. 7, the communication device includes:Receiving unit 710, decoding unit 720 and execution unit 730.
Receiving unit 710, the second request instruction for receiving the second software layer in the stand alone software framework, the second request
Instruction is that the second software layer uses pre-arranged code agreement, is encoded to the first request instruction, the first request instruction is
By user's triggering, the second request instruction includes the mark of the first software layer;
Decoding unit 720 is decoded the second request instruction, obtains the first request for being based on pre-arranged code agreement
Instruction;
Execution unit 730, for executing the first request instruction.
Optionally, receiving unit 710, the second request specifically for reading the write-in of the second software layer from default document refer to
It enables.
Optionally, receiving unit 710, specifically for obtaining the second request instruction from default third-party application, second asks
It is what the second software layer was sent to third-party application to ask instruction.
Optionally, which further includes communication unit 740;
Communication unit 740 is communicated to connect for being established with the second software layer;
By the socket link in communication connection, the second request instruction of the second software layer is received.
Optionally, which further includes acquiring unit 750;
Acquiring unit 750 obtains request data for being based on the first request instruction;
Communication unit 740 is additionally operable to send request data to the second software layer.
The communication device of the above embodiment of the present invention uses computer not of the same race between the level of same stand alone software framework
When programming language, by communication (including direct communication or indirect communication) mode of instruction instead of traditional function call side
Formula, in the second request instruction for receiving the second software layer, the second request instruction is that the second software layer uses pre-arranged code agreement, right
What the first request instruction was encoded, the first request instruction is triggered by user, and the second request instruction includes first soft
The mark of part layer is based on pre-arranged code agreement, is decoded to the second request instruction, obtains the first request instruction, and executes the
One request instruction, it is seen then that the program realizes the independent operating of each software layer and exploitation in same stand alone software framework, avoids
The incompatible problem of computer programming language between level.Simultaneously by carrying out encoding and decoding to instruction, network data is improved
Safety.
The embodiment of the present invention additionally provides a kind of electronic equipment, as shown in figure 8, including processor 810, communication interface 820,
Memory 830 and communication bus 840, wherein processor 810, communication interface 820, memory 830 are complete by communication bus 840
At mutual communication.
Memory 830, for storing computer program;
Processor 810, processor 810 is located in the first software layer in stand alone software framework, for executing memory 830
On stored program when, realize following steps:
The second request instruction of the second software layer in the stand alone software framework is received, the second request instruction is the second software layer
Using pre-arranged code agreement, the first request instruction is encoded, the first request instruction is triggered by user, second
Request instruction includes the mark of the first software layer;
Based on pre-arranged code agreement, the second request instruction is decoded, obtains the first request instruction;
Execute the first request instruction.
Optionally, the second request instruction of the second software layer is received, including:
Second request instruction of the second software layer write-in is read from default document.
Optionally, the second request instruction of the second software layer is received, including:
The second request instruction is obtained from default third-party application, the second request instruction is that the second software layer is answered to third party
With transmission.
Optionally, it before the second request instruction for receiving the second software layer, establishes and communicates to connect with the second software layer;
By the socket link in communication connection, the second request instruction of the second software layer is received.
Optionally, the first request instruction is when obtaining the request instruction of request data, to be based on the first request instruction, and acquisition is asked
Seek data;
Request data is sent to the second software layer.
Communication bus mentioned above can be Peripheral Component Interconnect standard (Peripheral Component
Interconnect, PCI) bus or expanding the industrial standard structure (Extended Industry Standard
Architecture, EISA) bus etc..The communication bus can be divided into address bus, data/address bus, controlling bus etc..For just
It is only indicated with a thick line in expression, figure, it is not intended that an only bus or a type of bus.
Communication interface is for the communication between above-mentioned electronic equipment and other equipment.
Memory may include random access memory (Random Access Memory, RAM), can also include non-easy
The property lost memory (Non-Volatile Memory, NVM), for example, at least a magnetic disk storage.Optionally, memory may be used also
To be at least one storage device for being located remotely from aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit,
CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital Signal
Processing, DSP), it is application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), existing
It is field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete
Door or transistor logic, discrete hardware components.
The embodiment and advantageous effect solved the problems, such as due to each device of electronic equipment in above-described embodiment can join
Each step in embodiment as shown in Figure 2 realizes, therefore, the specific works mistake of electronic equipment provided in an embodiment of the present invention
Journey and advantageous effect, do not repeat again herein.
In another embodiment provided by the invention, a kind of computer readable storage medium is additionally provided, which can
It reads to be stored with instruction in storage medium, when run on a computer so that computer executes any institute in above-described embodiment
The communication means stated.
In another embodiment provided by the invention, a kind of computer program product including instruction is additionally provided, when it
When running on computers so that computer executes any communication means in above-described embodiment.
It should be understood by those skilled in the art that, the embodiment in the embodiment of the present application can be provided as method, system or meter
Calculation machine program product.Therefore, complete hardware embodiment, complete software embodiment can be used in the embodiment of the present application or combine soft
The form of the embodiment of part and hardware aspect.Moreover, it wherein includes meter to be can be used in the embodiment of the present application in one or more
The computer-usable storage medium of calculation machine usable program code (includes but not limited to magnetic disk storage, CD-ROM, optical memory
Deng) on the form of computer program product implemented.
It is with reference to according to the method for embodiment, equipment (system) and calculating in the embodiment of the present application in the embodiment of the present application
The flowchart and/or the block diagram of machine program product describes.It should be understood that can be realized by computer program instructions flow chart and/or
The combination of the flow and/or box in each flow and/or block and flowchart and/or the block diagram in block diagram.It can carry
For the processing of these computer program instructions to all-purpose computer, special purpose computer, Embedded Processor or other programmable datas
The processor of equipment is to generate a machine so that is executed by computer or the processor of other programmable data processing devices
Instruction generation refer to for realizing in one flow of flow chart or multiple flows and/or one box of block diagram or multiple boxes
The device of fixed function.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that instruction generation stored in the computer readable memory includes referring to
Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device so that count
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, in computer or
The instruction executed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Although the preferred embodiment in the embodiment of the present application has been described, once a person skilled in the art knows
Basic creative concept, then additional changes and modifications may be made to these embodiments.So appended claims are intended to explain
It is to include preferred embodiment and fall into all change and modification of range in the embodiment of the present application.
Obviously, those skilled in the art embodiment in the embodiment of the present application can be carried out various modification and variations without
It is detached from the spirit and scope of embodiment in the embodiment of the present application.If in this way, in the embodiment of the present application embodiment these modification
Within the scope of belonging in the embodiment of the present application claim and its equivalent technologies with modification, then it is also intended in the embodiment of the present application
It includes these modifications and variations.
Claims (12)
1. the communication means in a kind of software architecture between level, which is characterized in that the method is applied in stand alone software framework
The first software layer, the method includes:
The second request instruction of the second software layer in the stand alone software framework is received, second request instruction is described second
Software layer uses pre-arranged code agreement, is encoded to the first request instruction, first request instruction is by user
Triggering, second request instruction includes the mark of first software layer;
Based on the pre-arranged code agreement, second request instruction is decoded, obtains first request instruction;
Execute first request instruction.
2. the method as described in claim 1, which is characterized in that second request instruction for receiving the second software layer, including:
Second request instruction of the second software layer write-in is read from default document.
3. the method as described in claim 1, which is characterized in that second request instruction for receiving the second software layer, including:
Obtain the second request instruction from default third-party application, second request instruction is second software layer to described
What third-party application was sent.
4. method as described in any one of claims 1-3, which is characterized in that receive the second software layer the second request instruction it
Before, the method further includes:
It establishes and communicates to connect with second software layer;
By the socket link in the communication connection, the second request instruction of second software layer is received.
5. method as claimed in claim 4, which is characterized in that when first request instruction is the request for obtaining request data
When instruction, the method further includes:
Based on first request instruction, request data is obtained;
The request data is sent to second software layer.
6. a kind of communication device, which is characterized in that described device is located in stand alone software framework, and described device includes:It receives single
Member, decoding unit, execution unit
Receiving unit, the second request instruction for receiving the second software layer in the stand alone software framework, second request
Instruction is that second software layer uses pre-arranged code agreement, is encoded to the first request instruction, described first asks
Asking instruction is triggered by user, and second request instruction includes the mark of first software layer;
Decoding unit is decoded second request instruction, obtains described first for being based on the pre-arranged code agreement
Request instruction;
Execution unit, for executing first request instruction.
7. device as claimed in claim 6, which is characterized in that the receiving unit, specifically for being read from default document
Second request instruction of the second software layer write-in.
8. device as claimed in claim 6, which is characterized in that the receiving unit is specifically used for from default third-party application
The second request instruction of middle acquisition, second request instruction are what second software layer was sent to the third-party application.
9. such as claim 6-8 any one of them devices, which is characterized in that described device further includes communication unit;
Communication unit is communicated to connect for being established with second software layer;
By the socket link in the communication connection, the second request instruction of second software layer is received.
10. device as claimed in claim 9, which is characterized in that described device further includes acquiring unit;
The acquiring unit obtains request data for being based on first request instruction;
The communication unit is additionally operable to send the request data to second software layer.
11. a kind of electronic equipment, which is characterized in that the electronic equipment includes that processor, communication interface, memory and communication are total
Line, wherein processor, communication interface, memory complete mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes any method and steps of claim 1-5.
12. a kind of computer readable storage medium, which is characterized in that be stored with computer in the computer readable storage medium
Program realizes claim 1-5 any method and steps when the computer program is executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810552692.9A CN108776621A (en) | 2018-05-31 | 2018-05-31 | Communication means and device in software architecture between level |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810552692.9A CN108776621A (en) | 2018-05-31 | 2018-05-31 | Communication means and device in software architecture between level |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108776621A true CN108776621A (en) | 2018-11-09 |
Family
ID=64028344
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810552692.9A Pending CN108776621A (en) | 2018-05-31 | 2018-05-31 | Communication means and device in software architecture between level |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108776621A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109871028A (en) * | 2019-01-29 | 2019-06-11 | 华南理工大学 | A kind of unmanned aerial vehicle control system based on data service |
CN113110108A (en) * | 2021-04-28 | 2021-07-13 | 北京星途探索科技有限公司 | Implementation method for guaranteeing real-time performance of semi-physical simulation by three-layer structure |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101488926A (en) * | 2009-02-27 | 2009-07-22 | 浪潮集团山东通用软件有限公司 | Network message communication method based on XMPP protocol and SMS |
CN102158467A (en) * | 2011-01-21 | 2011-08-17 | 汕头市超声仪器研究所有限公司 | Method for receiving and controlling image of instrument in real time by intelligent handheld equipment |
CN103067269A (en) * | 2012-12-31 | 2013-04-24 | 飞天诚信科技股份有限公司 | Method and system of on-line communications |
CN105354747A (en) * | 2015-10-09 | 2016-02-24 | 徐蔚 | Information processing network and method based on uniform code sending, and sensing access equipment |
CN106027674A (en) * | 2016-07-07 | 2016-10-12 | 苏州大学 | Technology architecture of "Internet & smart manufacturing" |
CN107948683A (en) * | 2017-11-28 | 2018-04-20 | 北京潘达互娱科技有限公司 | Network direct broadcasting media stream compatibility method, network main broadcaster end and client |
-
2018
- 2018-05-31 CN CN201810552692.9A patent/CN108776621A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101488926A (en) * | 2009-02-27 | 2009-07-22 | 浪潮集团山东通用软件有限公司 | Network message communication method based on XMPP protocol and SMS |
CN102158467A (en) * | 2011-01-21 | 2011-08-17 | 汕头市超声仪器研究所有限公司 | Method for receiving and controlling image of instrument in real time by intelligent handheld equipment |
CN103067269A (en) * | 2012-12-31 | 2013-04-24 | 飞天诚信科技股份有限公司 | Method and system of on-line communications |
CN105354747A (en) * | 2015-10-09 | 2016-02-24 | 徐蔚 | Information processing network and method based on uniform code sending, and sensing access equipment |
CN106027674A (en) * | 2016-07-07 | 2016-10-12 | 苏州大学 | Technology architecture of "Internet & smart manufacturing" |
CN107948683A (en) * | 2017-11-28 | 2018-04-20 | 北京潘达互娱科技有限公司 | Network direct broadcasting media stream compatibility method, network main broadcaster end and client |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109871028A (en) * | 2019-01-29 | 2019-06-11 | 华南理工大学 | A kind of unmanned aerial vehicle control system based on data service |
CN113110108A (en) * | 2021-04-28 | 2021-07-13 | 北京星途探索科技有限公司 | Implementation method for guaranteeing real-time performance of semi-physical simulation by three-layer structure |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104246759B (en) | Application programming interfaces testing service | |
CN111865708B (en) | Performance test method, platform, equipment and storage medium of Internet of things system | |
JP2019500680A (en) | Data processing method and apparatus | |
CN111198813A (en) | Interface testing method and device | |
CN107784011A (en) | Web access method, client, web page server and programmable device | |
CN109408447A (en) | A kind of data transmission method based on SPI, device and electronic equipment | |
CN109254914A (en) | Software development kit test method, system, computer installation and readable storage medium storing program for executing | |
CN108776621A (en) | Communication means and device in software architecture between level | |
CN112631924A (en) | Automatic testing method and device, computer equipment and storage medium | |
CN110493074A (en) | A kind of test method and system of server and client | |
CN111835808B (en) | Data storage method and device, data reading method and device, and storage medium | |
CN112035350A (en) | Test method and device for block chain system and computer equipment | |
CN102866932A (en) | Method and device for providing and collecting data related to abnormal terminal | |
CN109684104B (en) | Method and equipment for realizing display of call chain between services | |
CN107704365B (en) | Monitoring data reporting method and device for mobile terminal hybrid application | |
US20180107368A1 (en) | Development support system, development support apparatus, response control method, and response control apparatus | |
CN112527678A (en) | Method, apparatus, device and storage medium for testing protocol | |
US20230144949A1 (en) | Virtual-machine cold migration method and apparatus, electronic device and storage medium | |
CN112463140B (en) | Programming method and device based on electronic building blocks, electronic equipment and storage medium | |
CN110381056A (en) | Proprietary protocol decoding method and device based on Netty | |
CN113852610B (en) | Message processing method, device, computer equipment and storage medium | |
CN114217927A (en) | Thread calling method and device, computer equipment and storage medium | |
CN114091909A (en) | Collaborative development method, system, device and electronic equipment | |
CN108845995A (en) | Data processing method, device, storage medium and electronic device | |
CN114428815A (en) | Data storage method and device, electronic equipment and computer readable medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181109 |