CN101937366A - Device and system with operating software functions and operating method thereof - Google Patents

Device and system with operating software functions and operating method thereof Download PDF

Info

Publication number
CN101937366A
CN101937366A CN2009101520089A CN200910152008A CN101937366A CN 101937366 A CN101937366 A CN 101937366A CN 2009101520089 A CN2009101520089 A CN 2009101520089A CN 200910152008 A CN200910152008 A CN 200910152008A CN 101937366 A CN101937366 A CN 101937366A
Authority
CN
China
Prior art keywords
assembly
adapter
bus
software function
parameter
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
Application number
CN2009101520089A
Other languages
Chinese (zh)
Inventor
文国耀
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN2009101520089A priority Critical patent/CN101937366A/en
Publication of CN101937366A publication Critical patent/CN101937366A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention relates to device and system with operating software functions and an operating method thereof. The device of the embodiment comprises a first component and a second component connected through a bus, wherein the first component comprises a first module storing a software function code and a first adaptor; the second component comprises a second module storing the software function code and a second adaptor and is used for modifying a parameter of the first adaptor in the first component according to the first component and the second component, receiving call information and calling the software function code connected to the bus in the first component according to the call information through the bus; and the bus is used for transmitting the information between the first component and the second component. The embodiment of the invention reduces the work load of component development and shortens the quality stable period of a new component.

Description

A kind of device and system and operation method with operating software function
Technical field
The present invention relates to communication and computer realm, relate in particular to a kind of device and system and operation method with operating software function.
Background technology
Improve and revise corresponding function to adapt to user's needs in order to solve software systems, and reduce influence that total system is caused, incremental development method based on existing assembly has been proposed at present, it is the increment modification that the modification of system is converted to some functional module, incremental development method based on existing assembly mainly adopts brand-new exploitation and the exploitation of transplanting formula at present, described brand-new exploitation is that the function code of New Parent and adapter are required whole recompiles, and the exploitation of described transplanting formula is to make amendment on the basis of the function code of developer component and add the exploitation that new function code is realized New Parent.
In realizing process of the present invention, the inventor finds that there are the following problems at least in the prior art:
The mode of described brand-new exploitation because code all is layout again, causes the assembly development workload bigger, and has defective easily, thereby cause the stable period of New Parent quality longer; The mode of described transplanting formula exploitation, owing on the basis of the function code of developer component, make amendment, introduce defective easily, be difficult in case go wrong to determine that the new function code that adds still is that the function code of developer component goes wrong, also can cause the stable period of New Parent quality longer.
Summary of the invention
Embodiments of the invention provide a kind of device and system and operation method with operating software function, have reduced the assembly development workload, and have shortened the stable period of New Parent quality.
The embodiment of the invention provides a kind of device with operating software function, comprising:
First assembly comprises the module one and first adapter of storing software function code;
Second assembly comprises the module two and second adapter that store the software function code;
Bus connects first adapter of first assembly and second adapter of second assembly, is used to transmit the information between described first assembly and described second assembly;
Described second assembly, be used for parameter according to described first assembly of the location updating of described first assembly and described second assembly first adapter, receive recalls information, and call software function code in described first assembly that is connected on the bus by described bus according to described recalls information.
The embodiment of the invention provides a kind of system with operating software function, comprises external bus and the device with operating software function, wherein,
Described external bus is used to obtain recalls information, and described recalls information is used to the assembly of indicating current needs to call;
Described device with operating software function comprises first assembly, second assembly and bus, and described first assembly comprises the module one and first adapter of storing software function code; Described second assembly comprises the module two and second adapter that stores the software function code; Described bus connects first adapter of first assembly and second adapter of second assembly, is used to transmit the information between described first assembly and described second assembly; Described second assembly is according to the parameter of first adapter in described first assembly of the location updating of described first assembly and described second assembly, and, call the software function code that is connected in the above first assembly of bus by bus according to the recalls information that described external bus obtains.
The embodiment of the invention provides a kind of method of operating software function, and described method is applied to comprise in the device with operating software function of first assembly and second assembly, and each assembly comprises module and the adapter that stores the software function code, comprising:
Described second assembly is according to the parameter of first adapter in described first assembly of the location updating of described first assembly and second assembly;
Described second assembly obtains recalls information, and described recalls information is used to the assembly of indicating current needs to call;
Described second assembly is according to the recalls information of obtaining, and the bus of first adapter by connecting described first assembly and second adapter of described second assembly is called the software function code on described first assembly.
The technical scheme that is provided by the embodiment of the invention described above as can be seen, it adopts and links to each other by bus containing the assembly that needs the software function code, each software function code is isolated mutually, reduced the assembly development workload, and shortened the stable period of New Parent quality.
Description of drawings
In order to be illustrated more clearly in the technical scheme of the embodiment of the invention, the accompanying drawing of required use is done to introduce simply in will describing embodiment below, apparently, accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the described a kind of structural representation with device of operating software function of the embodiment of the invention;
Fig. 2 is the described specific embodiment one described a kind of structural representation with device of operating software function of the embodiment of the invention;
Fig. 3 is the described a kind of structural representation with system of operating software function of the embodiment of the invention;
Fig. 4 is the schematic flow sheet of the method for the described a kind of operating software function of the embodiment of the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
A kind of device that makes up New Parent that the embodiment of the invention provides as shown in Figure 1, comprises
First assembly 1 comprises the module 1 and first adapter 12 of storing software function code;
Second assembly 2 comprises the module 2 21 and second adapter 22 that store the software function code;
Bus 3 connects first adapter 12 of first assembly 1 and second adapter 22 of second assembly 2, is used to transmit the information between described first assembly 1 and described second assembly 2;
Described second assembly 2, be used for parameter according to described first assembly of the location updating of described first assembly 1 and described second assembly 21 first adapter 12, receive recalls information, and call software function code in described first assembly 1 that is connected on the bus 3 by described bus 3 according to described recalls information.
In the said apparatus, can also comprise external adapter 4, described external adapter 4 is used to receive recalls information.
In the said apparatus, described second assembly 2 can also comprise:
Administration module 23 is used for the described recalls information according to external adapter 4 receptions, calls the software function code that is connected in bus 3 the above first assembly 1 or described second assembly 2 by bus 3.
In the said apparatus, the parameter of described first adapter comprises address parameter and port parameter, detailed process according to the parameter of first adapter 12 in described first assembly 1 of the location updating of described first assembly 1 and described second assembly 2 can comprise, if described second assembly 2 and described first assembly 1 are deployed on same the computing machine, then revise the port parameter of first adapter 12 in described first assembly 1, if described second assembly 2 is deployed on the different computing machines with described first assembly 1, then revise the address parameter of first adapter 12 in described first assembly 1.
For example, if described second assembly 2 and described first assembly 1 are deployed on same the computing machine, then revise the port parameter of first adapter 12 in described first assembly 1, and keep consistent with the address parameter of second adapter 22 in second assembly 2, it is concrete if the address parameter of second adapter 22 is 192.168.0.10 in described second assembly 2, port parameter is 9901, and the port parameter of then revising first adapter 12 in described first assembly 1 is 9902, and address parameter is 192.168.0.10; If described second assembly 2 is deployed on the different computing machines with described first assembly 1, then revise the address parameter of first adapter 12 in described first assembly 1, and keep consistent with the port parameter of second adapter 22 in second assembly 2, it is concrete if the address parameter of second adapter 22 is 192.168.0.10 in described second assembly 2, port parameter is 9901, the address parameter of then revising first adapter 12 in described first assembly 1 is 192.168.0.11, and port parameter is 9901.
Specific embodiment one, as shown in Figure 2,
This specific embodiment is to contain software function E1 code module (111), the assembly A (101) of software function E2 code module (112) and adapter A (121), contain software function E3 code module (113), the assembly B (102) of software function E4 code module (114) and adapter B (122) and contain software function E5 code module (211), the assembly C (201) of second adapter (22) and administration module (23) makes up has operating software function E1, E2, E3, the device of E4 and E5 is an example, at first with the interface message of software function E1 code module (111), the interface message of software function E2 code module (112), the interface message of software function E3 code module (113), the interface message of the interface message of software function E4 code module (114) and software function E5 code module (211) is registered to administration module (23), when external adapter (4) receives invocation component C, administration module (23) is registered in the interface message of administration module (23) according to the corresponding described software function E5 code module of described invocation component C (211), directly calls the code of software function E5.When external adapter (4) receives invocation component A, administration module (23) is registered in the interface message of administration module (23) or the interface message that described software function E2 code module (112) is registered in administration module (23) according to the corresponding described software function E1 code module of described invocation component A (111), calls software function E1 code or software function E2 code among the assembly A (101) that is connected on the bus (3) by bus (3) by second adapter (22) among the assembly C (201).When external adapter (4) receives invocation component B, administration module (23) is registered in the interface message of administration module (23) or the interface message that described software function E4 code module (114) is registered in administration module (23) according to the corresponding described software function E3 code module of described invocation component B (113), calls software function E3 code or software function E4 code among the assembly B (102) that is connected on the bus (3) by bus (3) by second adapter (22) among the assembly C (201).
In the above-described embodiments, when assembly A (101), when assembly B (102) and assembly C (201) are deployed on same the computing machine, then revise the port parameter of adapter B (122) among middle adapter A (121) of described assembly A (101) and the described assembly B (102), and keep the middle adapter A (121) of described assembly A (101) consistent with the address parameter of second adapter (22) among the described assembly C (201) with the address parameter of the middle adapter B (122) of described assembly B (102), it is concrete if the address parameter of second adapter (22) is 192.168.0.10 among the assembly C (201), port parameter is 9901, the port parameter of then revising adapter A (121) among the assembly A (101) is 9902, address parameter is 192.168.0.10, the port parameter of revising adapter B (122) among the described assembly B (102) is 9903, and address parameter is 192.168.0.10.When assembly A (101) and assembly B (102) are deployed on same the computing machine, and be deployed on the different computing machines with assembly C (201), then revise the address parameter of adapter A (121) among the described assembly A (101), and maintenance is consistent with the address parameter of second adapter (22) in described second assembly 2, and address parameter and the port parameter of the middle adapter B (122) of modification assembly B (102), it is concrete if the address parameter of second adapter (22) is 192.168.0.10 among the assembly C (201), port parameter is 9901, the address parameter of then revising adapter A (121) among the assembly A (101) is 192.168.0.11, port parameter is 9901, the address parameter of revising adapter B (122) among the assembly B (102) is 192.168.0.11, and port parameter is 9902.When assembly A (101) all is deployed on the different computing machines with assembly B (102) with assembly C (201), then revise the address parameter of adapter A (121) among the described assembly A (101) and the address parameter of the middle adapter B (122) of assembly B (102), and maintenance is consistent with the port parameter of second adapter (22) among the described assembly C (201), it is concrete if the address parameter of second adapter (22) is 192.168.0.10 among the assembly C (201), port parameter is 9901, the address parameter of then revising adapter A (121) among the assembly A (101) is 192.168.0.11, port parameter is 9901, the address parameter of revising adapter B (122) among the assembly B (102) is 192.168.0.12, and port parameter is 9901.
A kind of system with operating software function as shown in Figure 3, comprises external bus 5 and the device with operating software function, wherein,
Described external bus 5 is used to obtain recalls information, and described recalls information is used to the assembly of indicating current needs to call;
Described device with operating software function comprises first assembly 1, second assembly 2 and bus 3, and described first assembly 1 comprises the module 1 and first adapter 12 of storing software function code; Described second assembly 2 comprises the module 2 21 and second adapter 22 that stores the software function code; Described bus 3 connects first adapter 12 of first assembly 1 and second adapter 22 of second assembly 2, is used to transmit the information between described first assembly 1 and described second assembly 2; Described second assembly 2 is according to the parameter of first adapter 12 in described first assembly 1 of the location updating of described first assembly 1 and described second assembly 2, and the recalls information of obtaining according to described external bus 5, call the software function code that is connected in bus 3 the above first assembly 1 by bus 3, the parameter of described first adapter 12 comprises address parameter and port parameter.
In said system, determine that according to described second assembly 2 and the position of described external bus 5 described bus 3 adopts many instance modes or single instance mode.Described bus is a kind of message-oriented member, is the channel of interacting message between the peer-entities in the component communication, is used for the mutual of message between the bearing assembly.Further, if described external bus 5 and described second assembly 2 are deployed on same the computing machine, can determine that then described bus 3 adopts many instance modes; If described external bus 5 is deployed on the different computing machines with described second assembly 2, can determine that then described bus 3 adopts many instance modes, can determine that also described bus 3 adopts single instance mode.Described many instance modes are meant that same total sequence of threads can move a plurality of case process simultaneously on same computing machine, and each case process is intercepted different ports; Described single instance mode is meant that same total sequence of threads can move a case process on same computing machine, and this case process is intercepted a fixed port.
For example, when described external bus 5 and described second assembly 2 are deployed on same the computing machine, then described external bus 5 is identical with the IP address that described bus 3 is determined, the listening port difference, it is concrete if the IP address of described external bus 5 is 192.168.0.10, listening port is 9901, determines that then the IP address of described bus 3 is 192.168.0.10, and listening port is 9902.When described external bus 5 is deployed on the different computing machines with described second assembly 2, then described bus 3 can adopt single instance mode also can adopt many instance modes, if described bus 3 adopts single instance mode, it is concrete if the IP address of described external bus 5 is 192.168.0.10, listening port is 9901, the IP address of then described bus 3 is 192.168.0.11, and listening port is 9901; If described bus 3 adopts many instance modes, concrete listening port is 9901 if the IP address of described external bus 5 is 192.168.0.10, determines that then the IP address of described bus 3 is 192.168.0.10, and listening port is 9902.
The embodiment of the invention provides a kind of method of operating software function, as shown in Figure 4, described method is applied to comprise in the device with operating software function of first assembly and second assembly, and each assembly comprises module and the adapter that stores the software function code, comprising:
Step 1, described second assembly are according to the parameter of first adapter in described first assembly of the location updating of described first assembly and second assembly, and the parameter of described first adapter comprises address parameter and port parameter;
Step 2, described second assembly obtain recalls information, and described recalls information is used to the assembly of indicating current needs to call;
Step 3, described second assembly be according to the recalls information of obtaining, and the bus of first adapter by connecting described first assembly and second adapter of described second assembly is called the software function code on described first assembly.
In said method.Can also comprise: obtain recalls information by external bus; Described second assembly obtains recalls information and comprises: described second assembly obtains recalls information from described external bus.
The specific implementation of the function that each step that comprises in the said method is finished is described in before device and system embodiment, no longer is repeated in this description at this.。
One of ordinary skill in the art will appreciate that all or part of flow process that realizes in the foregoing description method, be to instruct relevant hardware to finish by computer program, described program can be stored in the computer read/write memory medium, this program can comprise the flow process as the embodiment of above-mentioned each side method when carrying out.Wherein, described storage medium can be magnetic disc, CD, read-only storage memory body (Read-Only Memory, ROM) or at random store memory body (Random Access Memory, RAM) etc.
The embodiment of the invention adopt will stay-in-gradely develop contain the assembly that needs the software function code or contain the assembly of newly-increased software function code continuous by bus, directly call the software function code or call the software function code by bus by bus, avoided code layout again or directly revise code and introduce defective, and be difficult to determine it is the situation that the software function code of which assembly goes wrong in case go wrong actually, reduce the assembly development workload, and shortened the stable period of New Parent quality.
The above; only for the preferable embodiment of the present invention, but protection scope of the present invention is not limited thereto, and anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of claim.

Claims (10)

1. the device with operating software function is characterized in that, comprising:
First assembly comprises the module one and first adapter of storing software function code;
Second assembly comprises the module two and second adapter that store the software function code;
Bus connects first adapter of first assembly and second adapter of second assembly, is used to transmit the information between described first assembly and described second assembly;
Described second assembly, be used for parameter according to described first assembly of the location updating of described first assembly and described second assembly first adapter, receive recalls information, and call software function code in described first assembly that is connected on the bus by described bus according to described recalls information.
2. device according to claim 1 is characterized in that described device also comprises external adapter, and described external adapter is used to receive recalls information.
3. device according to claim 2 is characterized in that, described second assembly also comprises:
Administration module is used for the described recalls information according to the external adapter reception, calls the software function code that is connected in the above first assembly of bus or described second assembly by bus.
4. according to each described device of claim 1 to 3, it is characterized in that the parameter of described first adapter comprises address parameter and port parameter.
5. the system with operating software function is characterized in that, comprises external bus and the device with operating software function, wherein,
Described external bus is used to obtain recalls information, and described recalls information is used to the assembly of indicating current needs to call;
Described device with operating software function comprises first assembly, second assembly and bus, and described first assembly comprises the module one and first adapter of storing software function code; Described second assembly comprises the module two and second adapter that stores the software function code; Described bus connects first adapter of first assembly and second adapter of second assembly, is used to transmit the information between described first assembly and described second assembly; Described second assembly is according to the parameter of first adapter in described first assembly of the location updating of described first assembly and described second assembly, and, call the software function code that is connected in the above first assembly of bus by bus according to the recalls information that described external bus obtains.
6. system according to claim 5 is characterized in that the parameter of described first adapter comprises address parameter and port parameter.
7. system according to claim 5 is characterized in that, determines that according to the position of described second assembly and described external bus described bus adopts many instance modes or single instance mode.
8. the method for an operating software function is characterized in that, described method is applied to comprise in the device with operating software function of first assembly and second assembly, and each assembly comprises module and the adapter that stores the software function code, comprising:
Described second assembly is according to the parameter of first adapter in described first assembly of the location updating of described first assembly and second assembly;
Described second assembly obtains recalls information, and described recalls information is used to the assembly of indicating current needs to call;
Described second assembly is according to the recalls information of obtaining, and the bus of first adapter by connecting described first assembly and second adapter of described second assembly is called the software function code on described first assembly.
9. method according to claim 8 is characterized in that the parameter of described first adapter comprises address parameter and port parameter.
10. according to Claim 8 or 9 described methods, it is characterized in that described method also comprises:
Obtain recalls information by external bus;
Described second assembly obtains recalls information and comprises: described second assembly obtains recalls information from described external bus.
CN2009101520089A 2009-07-02 2009-07-02 Device and system with operating software functions and operating method thereof Pending CN101937366A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009101520089A CN101937366A (en) 2009-07-02 2009-07-02 Device and system with operating software functions and operating method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009101520089A CN101937366A (en) 2009-07-02 2009-07-02 Device and system with operating software functions and operating method thereof

Publications (1)

Publication Number Publication Date
CN101937366A true CN101937366A (en) 2011-01-05

Family

ID=43390711

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009101520089A Pending CN101937366A (en) 2009-07-02 2009-07-02 Device and system with operating software functions and operating method thereof

Country Status (1)

Country Link
CN (1) CN101937366A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107656725A (en) * 2017-09-29 2018-02-02 山东东润仪表科技股份有限公司 A kind of implementation method of multiparameter water quality analyzer software
CN108134683A (en) * 2016-12-01 2018-06-08 腾讯科技(深圳)有限公司 A kind of implementation method of terminal and bus architecture

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101311903A (en) * 2007-05-22 2008-11-26 国际商业机器公司 Method and device for reusing component of software system based on component

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101311903A (en) * 2007-05-22 2008-11-26 国际商业机器公司 Method and device for reusing component of software system based on component

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108134683A (en) * 2016-12-01 2018-06-08 腾讯科技(深圳)有限公司 A kind of implementation method of terminal and bus architecture
CN107656725A (en) * 2017-09-29 2018-02-02 山东东润仪表科技股份有限公司 A kind of implementation method of multiparameter water quality analyzer software
CN107656725B (en) * 2017-09-29 2021-09-17 山东东润仪表科技股份有限公司 Method for realizing multi-parameter water quality analyzer software

Similar Documents

Publication Publication Date Title
CN110648054B (en) Task parallel processing method and device for robot flow automation
CN103109271B (en) The implementation method of migrate application and system between a kind of platform
CN101150463B (en) Testing method and system
CN101630297B (en) Converter and control system
CN102023867B (en) A kind of terminal secondary development device and secondary developing platform construction method
CN101998227B (en) Service routing method, device and system
CN101719097A (en) Debug method and system of automation test script and automation application server
CN103401909A (en) Data interaction method and system based on BS (browser/server), client end and server
CN102035683A (en) Control method and system for switching of main board and standby board
CN101937366A (en) Device and system with operating software functions and operating method thereof
CN103002489A (en) Neighbor node discovery table item updating method and node device
CN114244654A (en) URL forwarding method, device, equipment and computer storage medium
CN105138365A (en) Upgrading method and device for interface converter
EP3703342B1 (en) Dynamic load balancing in network centric process control systems
CN102231684B (en) Interface board state detection method, multi-core central processing unit, interface board and router
JP2024501727A (en) Multi-adapter compatible library file modules, calling methods, calling systems and devices
CN113810402B (en) Multi-protocol adaptation method and system, computer device, storage medium
CN110958139A (en) Network control method, orchestrator, controller, and computer-readable storage medium
CN103809938A (en) Python function operation information automatic recording method and system
CN101582040B (en) Application program loading system and loading method based on ARM system
CN114356811A (en) Communication link updating method, device and related equipment
US11796975B2 (en) Network centric process control
CN114253870A (en) Method, system, device and medium for updating L2P table
CN111078616A (en) Port control method, device, equipment and storage medium of USB hub
CN102780731A (en) Client-side communication method and 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
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20110105