CN113568685A - Component configuration method and device, electronic device and computer equipment - Google Patents

Component configuration method and device, electronic device and computer equipment Download PDF

Info

Publication number
CN113568685A
CN113568685A CN202011541587.9A CN202011541587A CN113568685A CN 113568685 A CN113568685 A CN 113568685A CN 202011541587 A CN202011541587 A CN 202011541587A CN 113568685 A CN113568685 A CN 113568685A
Authority
CN
China
Prior art keywords
components
sub
component
control center
under
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
CN202011541587.9A
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.)
Ningbo Sunny Intelligent Technology Co Ltd
Original Assignee
Ningbo Sunny Intelligent Technology 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 Ningbo Sunny Intelligent Technology Co Ltd filed Critical Ningbo Sunny Intelligent Technology Co Ltd
Priority to CN202011541587.9A priority Critical patent/CN113568685A/en
Publication of CN113568685A publication Critical patent/CN113568685A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4482Procedural
    • G06F9/4484Executing subprograms
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4488Object-oriented

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The application provides a component configuration method, a device, an electronic device, a computer device and a storage medium, a plurality of components are obtained by instantiating a control under a control center, the attribute assignment is carried out on all the components, the binding relationship between the components and the sub-control center and the binding relationship between the components and the attribute are established, the batch configuration of all the components under the sub-control center is realized, the configuration modification of the components with huge number is simplified, thereby saving the labor cost for controlling the industrial equipment and improving the production efficiency, and other register addresses are generated by the register base address matched with the component, realizing the precise matching of the component and the register address, saving the computer resources occupied by the register address, by debugging the port of the board card control assembly, the communication between the board card and the assembly in the field can be simulated, the communication problem is checked, and the efficiency and the stability of industrial operation are improved.

Description

Component configuration method and device, electronic device and computer equipment
Technical Field
The present application relates to the field of intelligent manufacturing technologies, and in particular, to a component configuration method and apparatus, an electronic apparatus, a computer device, and a storage medium.
Background
With the development of industrial technology, the control of industrial equipment becomes more complex and changeable, and particularly when large projects are faced, numerous components instantiated by industrial controls need to be configured and managed, and in the prior art, the components are often manually configured one by one, so that the configuration process becomes complex and tedious, the labor cost is high, and the production efficiency is reduced.
No effective solution has been proposed to the problem of higher labor costs in industrial systems due to the cumbersome configuration of components.
Disclosure of Invention
The embodiment of the application provides a component configuration method, a component configuration device, an electronic device, computer equipment and a storage medium, so as to at least solve the problem of higher labor cost caused by complicated configuration of components in the related art.
In a first aspect, an embodiment of the present application provides a component configuration method, including the following steps:
instantiating all controls under a sub-control center of a target project to obtain corresponding components, and assigning the attributes of the controls to the components;
binding the components under the sub-control centers with the sub-control centers, and binding the components with the properties of the components;
when the property of any component under the sub-control center is modified, the properties of all components under the sub-control center are configured in batch according to the binding relationship between the property and all components under the sub-control center.
In some embodiments, after instantiating all controls under the sub-control center of the target project to obtain corresponding components and assigning the attributes of the controls to the components, the method further includes the following steps:
and generating other register addresses of the component according to the register base address of the component.
In some embodiments, after instantiating all controls under the sub-control center of the target project to obtain corresponding components and assigning the attributes of the controls to the components, the method further includes the following steps:
acquiring all ports of the board card corresponding to the sub-control center;
and debugging the connection state of the port and the component, and recording the port with failed debugging.
In some embodiments, the generating the other register addresses of the component according to the register base address of the component further includes:
presetting an offset value of the register base address;
and offsetting the register base address according to the offset value to generate other register addresses of the component.
In some embodiments, the binding the component under the sub-control center with the sub-control center and the binding the component with the property of the component further includes:
acquiring a unique identifier of the sub-control center, and binding the unique identifier with the component under the sub-control center;
and acquiring the unique identifier of the component, and binding the unique identifier of the component with the property of the component.
In some embodiments, different attributes are stored in different attribute tables in a database, and the batch configuration of the attributes of all the components through the binding relationship between the attributes and all the components under the sub-control center includes:
and when a plurality of attributes of any component under the sub-control center are modified, simultaneously modifying a plurality of attribute tables in the database by using multithreading.
In a second aspect, an embodiment of the present application provides a component configuring apparatus, where the apparatus includes an instantiation module, a binding module, and a batch configuration module;
the instantiation module is used for instantiating all controls of the sub-control center of the target project to obtain corresponding components and assigning the attributes of the controls to the components;
the binding module is used for binding the components under the sub-control centers with the sub-control centers and binding the components with the properties of the components;
and the batch configuration module is used for configuring the attributes of all the components in batches through the binding relationship between the attributes and all the components under the sub-control center when the attributes of any one of the components under the sub-control center are modified.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor executes the computer program to implement the component configuration simplification method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the computer program to implement the component configuration simplification method as described in the first aspect.
In a fifth aspect, the present application provides a storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the component configuration simplification method according to the first aspect.
The component configuration method, the device, the electronic device, the computer equipment and the storage medium obtain a plurality of components by instantiating the control under the control center, the attribute assignment is carried out on all the components, the binding relationship between the components and the sub-control center and the binding relationship between the components and the attribute are established, the batch configuration of all the components under the sub-control center is realized, the configuration modification of the components with huge number is simplified, thereby saving the labor cost for controlling the industrial equipment and improving the production efficiency, and other register addresses are generated by the register base address matched with the component, realizing the precise matching of the component and the register address, saving the computer resources occupied by the register address, by debugging the port of the board card control assembly, the communication between the board card and the assembly in the field can be simulated, the communication problem is checked, and the efficiency and the stability of industrial operation are improved.
The details of one or more embodiments of the application are set forth in the accompanying drawings and the description below to provide a more thorough understanding of the application.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
FIG. 1 is a diagram of an application environment for a component configuration method according to one embodiment of the invention;
FIG. 2 is a flow diagram of a component configuration method in accordance with one embodiment of the present invention;
FIG. 3 is a schematic diagram of the structure of a component deployment apparatus according to one embodiment of the present invention;
FIG. 4 is a schematic diagram of an electronic device according to an embodiment of the invention;
fig. 5 is a schematic diagram of the structure of a computer device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be described and illustrated below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments provided in the present application without any inventive step are within the scope of protection of the present application. Moreover, it should be appreciated that in the development of any such actual implementation, as in any engineering or design project, numerous implementation-specific decisions must be made to achieve the developers' specific goals, such as compliance with system-related and business-related constraints, which may vary from one implementation to another.
Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the specification. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of ordinary skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments without conflict.
Unless defined otherwise, technical or scientific terms referred to herein shall have the ordinary meaning as understood by those of ordinary skill in the art to which this application belongs. Reference to "a," "an," "the," and similar words throughout this application are not to be construed as limiting in number, and may refer to the singular or the plural. The present application is directed to the use of the terms "including," "comprising," "having," and any variations thereof, which are intended to cover non-exclusive inclusions; for example, a process, method, system, article, or apparatus that comprises a list of steps or modules (elements) is not limited to the listed steps or elements, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. Reference to "connected," "coupled," and the like in this application is not intended to be limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. Reference herein to "a plurality" means greater than or equal to two. "and/or" describes an association relationship of associated objects, meaning that three relationships may exist, for example, "A and/or B" may mean: a exists alone, A and B exist simultaneously, and B exists alone. Reference herein to the terms "first," "second," "third," and the like, are merely to distinguish similar objects and do not denote a particular ordering for the objects.
Fig. 1 is an application environment diagram of a component configuration method according to an embodiment of the present disclosure. As shown in fig. 1, the application environment includes a terminal 101 and a server 102. The terminal 101 is connected to the server 102 via a network. The terminal 101 may specifically be at least one of a mobile phone, a tablet computer, a notebook computer, and the like. The server 102 may be implemented as a stand-alone server or as a server cluster comprised of multiple servers.
Specifically, the terminal 101 adds components to a control under a sub-control center, the server 102 instantiates the control in the background to obtain a corresponding component and assigns the attribute of the control to the component, the server 102 binds the components under the sub-control center with the sub-control center and binds the components with the attribute of the components, and when the terminal 101 modifies the attribute of any component under the sub-control center, the server configures the corresponding attributes of all the components under the sub-control center in batch through the binding relationship between the attribute and all the components under the sub-control center.
The embodiment provides a component configuration method, as shown in fig. 2, including the following steps:
step S201, instantiating all controls under the sub-control center of the target project to obtain corresponding components, and assigning the attributes of the controls to the components.
The branch control center of the target project mainly classifies and manages the components according to different functions of the components. Generally, one sub-control center may correspond to one board card, and specifically may correspond to one fpga (field Programmable Gate array) development board. The board controls the action of the components through the ports, and one board can control a plurality of components, so that a plurality of components can be instantiated under one sub-control center. The instantiation of the control, for example, when a control, such as a stacker control, is configured, the stacker control is a set of virtual data of the computer, and may include attributes such as a programming resource, control port management, port details of the programming resource, a control parameter, a control behavior parameter relationship, and a control instruction. When 10 stackers of the type are needed in a project, the stackers control needs to be instantiated on a system to obtain 10 stackers, the attributes of the stackers are assigned to the 10 stackers, the 10 stackers correspond to the stackers on the project site one by one, and the control of the stackers on the project site is realized by controlling the stackers through the board card in the project.
And S202, binding the components under the sub-control center with the sub-control center, and binding the components with the properties of the components.
In order to obtain information of the sub-control center of the component, so as to conveniently perform batch configuration on the component under the sub-control center, the information of the sub-control center is bound to the instantiated component, and the background generally stores data in a database manner, so that the information of the sub-control center can be transmitted to the component table of each component under the sub-control center in a relational database. And one component has a plurality of attributes, and the categories and the number of the attributes of the plurality of components instantiated by the same control are basically consistent, so that the attributes of the components can be tabulated in a database, namely each attribute has an attribute table corresponding to the attribute, and each attribute table can contain the information of each component and the attribute information corresponding to the attribute. It should be noted that, in addition to using a conventional relational database to process the data, the binding process may also be implemented by using other data storage technologies, such as using a non-relational database.
And S203, when the attribute of any component under the sub-control center is modified, configuring the attributes of all components under the sub-control center in batches according to the binding relationship between the attribute and all components under the sub-control center.
In order to enable the components to be more suitable for actual project requirements, attribute configuration needs to be performed on instantiated components, when the attributes of a plurality of identical components need to be configured in the same sub-control center and the number of the components is excessive, the components bound with the attributes and the sub-control center to which the components belong can be obtained by selecting a batch configuration mode when the attributes needing to be adjusted on any component are modified, and the corresponding attributes in the sub-control center are modified in batches by obtaining the modified attributes.
In the steps, the control under the sub-control center is instantiated to obtain the plurality of components, attribute assignment is carried out on all the components, the binding relationship between the components and the sub-control center and the binding relationship between the components and the attributes are established, batch configuration of all the components under the sub-control center is achieved, configuration modification of the components with large quantity is simplified, accordingly, labor cost for controlling industrial equipment is saved, and production efficiency is improved.
In one embodiment, instantiating all controls under the sub-control center of the target item to obtain corresponding components, and assigning the attributes of the controls to the components, the method further includes:
in step S301, other register addresses of the component are generated according to the register base address of the component.
After the component is instantiated, a register base address is matched in the sub-control center, and according to the register base address, other register addresses of the component can be generated and used for temporarily storing various states, instructions and addresses of the component, for example, the state register address, the interrupt register address and the delay register address of the component can be generated through the register base address of the component. Similarly, based on the register base address, a control flow address and a parameter address related to the component can be generated.
In one embodiment, instantiating all controls under the sub-control center of the target item to obtain corresponding components, and assigning the attributes of the controls to the components, the method further includes:
step S401, acquiring all ports of the board card corresponding to the sub-control center.
In an actual project site, board cards exist in a control cabinet, generally speaking, one control cabinet can be composed of one to two board cards, field personnel can find a board card which the personnel want to debug through the control cabinet, ports on the board cards correspond to attributes of components one to one, one port on the board card can only be used for controlling one attribute of the components, and all port information of the board card can be inquired in a background through identification information of the board card, specifically, an ID of the board card.
Step S402, debugging the connection state of the port and the component, and recording the port with failed debugging.
Because the board software manages the ports on the board by taking 16 ports as an interval, when a certain port on the board is required to be debugged, all the ports in the interval where the port is located can be returned, each port comprises two states of 0 and 1, the port which does not need to be debugged is set to be 0, the port which needs to be debugged is set to be 1, and then the port is verified. The step can simulate the communication between the port of the board card and the component before the project is formally operated, can check out the problem port in advance, reduces the workload of field workers, also reduces the occurrence frequency of the fault of the board card interface in the field operation process, and improves the stability of the project operation.
In one embodiment, generating the other register addresses of the component from the register base address of the component comprises:
in step S501, an offset value of a register base address is preset.
The preset offset value may be a reasonable fixed value according to the field situation, for example, considering the number of base addresses available in the current project, the number of components required in the project, and the like.
Step S502 is to offset the register base address according to the offset value to generate another register address of the component.
The register base address is typically stored as a set of numbers, and a plurality of register addresses of the component can be obtained by continuously shifting the register base address by a fixed offset value. The mode of automatically generating other register addresses of the component based on the register base address of the component can realize accurate matching of the component and the register addresses, avoids the condition that the number of manually introduced register addresses cannot match the number of component attributes, and meanwhile, generates other register addresses after the component is instantiated, reduces resources occupied by registers, and reduces the manual address setting and matching labor cost.
In one embodiment, the binding of the component under the sub-control center with the sub-control center and the binding of the component with the property of the component comprises the following steps:
step S601, obtaining the unique identification of the sub-control center, and binding the unique identification with the component under the sub-control center.
The unique identifier of the sub-control center may specifically be an ID of the sub-control center in the database, and the unique identifier is bound to the component under the sub-control center, and a field may be established in the component table in the database to indicate the ID of the sub-control center to which the component belongs, that is, the component table is associated with the sub-control center through an external key of the sub-control center.
Step S602, the unique identification of the component is obtained, and the unique identification of the component is bound with the property of the component.
Likewise, the unique identification of the component may be the ID of the component in the database. In the database, each attribute of the component corresponds to one attribute table, the attribute table maintains fields of attribute ID, attribute value and component ID, and the attribute value corresponding to the component in each attribute table can be obtained through the component ID field, so that the unique identification of the component and the component attribute are bound.
In one embodiment, different attributes in the database are stored in different attribute tables, and the attributes of all the components are configured in batch through the binding relationship between the attributes and all the components under the sub-control center, further including:
and step S701, when a plurality of attributes of any component under the sub-control center are modified, simultaneously modifying a plurality of attribute tables in the database by using multiple threads.
Because the background stores different attributes in different attribute tables, and the modification of multiple attributes requires the operation of multiple attribute tables, batch modification can be realized for multiple attribute tables corresponding to the modified attributes in a multithreading mode according to the range of the component ID under the sub-control center bound by each attribute.
According to the steps, a plurality of assemblies are obtained by instantiating the control under the sub-control center, attribute assignment is carried out on all the assemblies, the binding relationship between the assemblies and the sub-control center and the binding relationship between the assemblies and the attributes are established, batch configuration of all the assemblies under the sub-control center is achieved, configuration modification of a large number of assemblies is simplified, accordingly, labor cost for controlling industrial equipment is saved, production efficiency is improved, other register addresses are generated through register base addresses matched with the assemblies, accurate matching of the assemblies and the register addresses is achieved, computer resources occupied by the register addresses are saved, communication between the board card and the assemblies in a field can be simulated by debugging ports of the board card control assemblies, communication problems are cleared, and efficiency and stability of industrial operation are improved.
In one embodiment, as shown in FIG. 3, a component configuration apparatus 30 is provided that includes an instantiation module 32, a binding module 34, and a bulk configuration module 36:
the instantiation module 32 is used for instantiating all the controls of the sub-control center of the target project to obtain corresponding components and assigning the attributes of the controls to the components;
the binding module 34 is used for binding the components under the sub-control center with the sub-control center and binding the components with the properties of the components;
and the batch configuration module 36 is configured to configure the attributes of all the components in batch through the binding relationship between the attributes and all the components in the sub-control center when the attribute of any one of the components in the sub-control center is modified.
According to the component configuration device, the control under the sub-control center is instantiated to obtain the plurality of components, attribute assignment is conducted on all the components, the binding relationship between the components and the sub-control center and the binding relationship between the components and the attributes are established, batch configuration of all the components under the sub-control center is achieved, configuration modification of a large number of the components is simplified, labor cost for controlling industrial equipment is saved, and production efficiency is improved.
In one embodiment, the component configuring apparatus 30 further includes an address generating module, and the address generating module is configured to generate other register addresses of the components according to the register base addresses of the components.
In an embodiment, the component configuring apparatus 30 further includes a port debugging module, where the port debugging module is configured to acquire all ports of the board corresponding to the sub-control center, debug the connection state between the port and the component, and record a port that fails to be debugged.
In one embodiment, the address generation module is further configured to preset an offset value of the register base address, and offset the register base address according to the offset value to generate other register addresses of the component.
In one embodiment, the instantiation module 32 is further configured to obtain a unique identifier of the sub-control center, bind the unique identifier to a component under the sub-control center, obtain a unique identifier of the component, and bind the unique identifier of the component to an attribute of the component.
In one embodiment, the batch configuration module 36 is further configured to modify multiple attribute tables in the database simultaneously using multiple threads when multiple attributes of any one component under the sub-control center are modified.
For specific limitations of the embodiment of the component configuring apparatus, reference may be made to the above limitations of the component configuring method, which are not described herein again. The respective modules in the above-described component configuring apparatus may be wholly or partially implemented by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, as shown in FIG. 4, an electronic device is provided that includes a memory and a processor. The memory has stored therein a computer program for providing computing and control capabilities to the processor of the electronic device. The memory of the electronic device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor, when executing the computer program, implements the following steps:
instantiating all controls under the sub-control center of the target project to obtain corresponding components, and assigning the attributes of the controls to the components;
binding the components under the sub-control center with the sub-control center, and binding the components with the properties of the components;
when the property of any component under the sub-control center is modified, the properties of all the components under the sub-control center are configured in batch according to the binding relationship between the property and all the components under the sub-control center.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
other register addresses for the component are generated based on the register base address for the component.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
acquiring all ports of the board card corresponding to the sub-control center;
and debugging the connection state of the port and the component, and recording the port with failed debugging.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
presetting an offset value of a register base address;
the register base address is shifted by the offset value to generate other register addresses of the components.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
acquiring a unique identifier of the sub-control center, and binding the unique identifier with a component under the sub-control center;
and acquiring the unique identifier of the component, and binding the unique identifier of the component with the property of the component.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
when a plurality of attributes of any component under the sub-control center are modified, a plurality of attribute tables in the database are modified simultaneously by using multithreading.
It should be noted that, for specific examples in this embodiment, reference may be made to examples described in the foregoing embodiments and optional implementations, and details of this embodiment are not described herein again.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 5. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing a preset configuration information set. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement the above-described component configuration method.
In one embodiment, a computer device is provided, which may be a terminal. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a component configuration method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 5 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
There is also provided in one embodiment a storage medium having a computer program stored thereon, the computer program when executed by a processor implementing the steps of:
instantiating all controls under the sub-control center of the target project to obtain corresponding components, and assigning the attributes of the controls to the components;
binding the components under the sub-control center with the sub-control center, and binding the components with the properties of the components;
when the property of any component under the sub-control center is modified, the properties of all the components under the sub-control center are configured in batch according to the binding relationship between the property and all the components under the sub-control center.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
other register addresses for the component are generated based on the register base address for the component.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
acquiring all ports of the board card corresponding to the sub-control center;
and debugging the connection state of the port and the component, and recording the port with failed debugging.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
presetting an offset value of a register base address;
the register base address is shifted by the offset value to generate other register addresses of the components.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
acquiring a unique identifier of the sub-control center, and binding the unique identifier with a component under the sub-control center;
and acquiring the unique identifier of the component, and binding the unique identifier of the component with the property of the component.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
when a plurality of attributes of any component under the sub-control center are modified, a plurality of attribute tables in the database are modified simultaneously by using multithreading.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware related to instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above examples only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method for component configuration, the method comprising:
instantiating all controls under a sub-control center of a target project to obtain corresponding components, and assigning the attributes of the controls to the components;
binding the components under the sub-control centers with the sub-control centers, and binding the components with the properties of the components;
when the property of any component under the sub-control center is modified, the properties of all components under the sub-control center are configured in batch according to the binding relationship between the property and all components under the sub-control center.
2. The method of claim 1, wherein after instantiating all controls under a sub-control center of a target item to obtain corresponding components and assigning attributes of the controls to the components, the method further comprises:
and generating other register addresses of the component according to the register base address of the component.
3. The method of claim 1, wherein after instantiating all controls under a sub-control center of a target item to obtain corresponding components and assigning attributes of the controls to the components, the method further comprises:
acquiring all ports of the board card corresponding to the sub-control center;
and debugging the connection state of the port and the component, and recording the port with failed debugging.
4. The method of claim 2, wherein generating the other register addresses of the component based on the register base address of the component comprises:
presetting an offset value of the register base address;
and offsetting the register base address according to the offset value to generate other register addresses of the component.
5. The method of claim 1, wherein the binding the component under the sub-control center with the sub-control center and the binding the component with the property of the component comprises:
acquiring a unique identifier of the sub-control center, and binding the unique identifier with the component under the sub-control center;
and acquiring the unique identifier of the component, and binding the unique identifier of the component with the property of the component.
6. The method of claim 1, wherein different properties are stored in different property tables in a database, and the configuring of the properties of all components in batch through the binding relationship between the properties and all components under the sub-control center further comprises:
and when a plurality of attributes of any component under the sub-control center are modified, simultaneously modifying a plurality of attribute tables in the database by using multithreading.
7. An apparatus for component configuration, the apparatus comprising an instantiation module, a binding module, and a bulk configuration module:
the instantiation module is used for instantiating all controls of the sub-control center of the target project to obtain corresponding components and assigning the attributes of the controls to the components;
the binding module is used for binding the components under the sub-control centers with the sub-control centers and binding the components with the properties of the components;
and the batch configuration module is used for configuring the attributes of all the components in batches through the binding relationship between the attributes and all the components under the sub-control center when the attributes of any one of the components under the sub-control center are modified.
8. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and the processor is configured to execute the computer program to perform the component configuration simplification method of any of claims 1 to 6.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor performs the component configuration method of any one of claims 1 to 6.
10. A storage medium having a computer program stored thereon, wherein the computer program is configured to perform the component configuration method of any one of claims 1 to 6 when executed.
CN202011541587.9A 2020-12-23 2020-12-23 Component configuration method and device, electronic device and computer equipment Pending CN113568685A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011541587.9A CN113568685A (en) 2020-12-23 2020-12-23 Component configuration method and device, electronic device and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011541587.9A CN113568685A (en) 2020-12-23 2020-12-23 Component configuration method and device, electronic device and computer equipment

Publications (1)

Publication Number Publication Date
CN113568685A true CN113568685A (en) 2021-10-29

Family

ID=78158814

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011541587.9A Pending CN113568685A (en) 2020-12-23 2020-12-23 Component configuration method and device, electronic device and computer equipment

Country Status (1)

Country Link
CN (1) CN113568685A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103425778A (en) * 2013-08-16 2013-12-04 国家电网公司 Intelligent development platform for database application system
CN107066240A (en) * 2016-10-08 2017-08-18 阿里巴巴集团控股有限公司 The implementation method and device of assembly function
CN108632403A (en) * 2018-03-30 2018-10-09 天津麒麟信息技术有限公司 A kind of MAC and IP address transmission method based on Feiteng processor
CN110113093A (en) * 2019-04-18 2019-08-09 中国科学院国家空间科学中心 A kind of modularization payload floor synthetic test macro
US20200319613A1 (en) * 2019-04-04 2020-10-08 William B. Pappas Automation of self-lifting forklift
CN212008820U (en) * 2019-12-06 2020-11-24 上海盈智电器有限公司 Vehicle fuel supply on demand controller PCBA program burning and detecting device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103425778A (en) * 2013-08-16 2013-12-04 国家电网公司 Intelligent development platform for database application system
CN107066240A (en) * 2016-10-08 2017-08-18 阿里巴巴集团控股有限公司 The implementation method and device of assembly function
CN108632403A (en) * 2018-03-30 2018-10-09 天津麒麟信息技术有限公司 A kind of MAC and IP address transmission method based on Feiteng processor
US20200319613A1 (en) * 2019-04-04 2020-10-08 William B. Pappas Automation of self-lifting forklift
CN110113093A (en) * 2019-04-18 2019-08-09 中国科学院国家空间科学中心 A kind of modularization payload floor synthetic test macro
CN212008820U (en) * 2019-12-06 2020-11-24 上海盈智电器有限公司 Vehicle fuel supply on demand controller PCBA program burning and detecting device

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
M.PESARESI, ET AL: "The FC7 AMC for generic DAQ control applications in CMS", 《JOURNAL OF INSTRUMENTATION》, pages 1 - 12 *
丁辉,等: "某型通信设备中多路端口适配器的设计", 《信息技术与信息化》, pages 140 - 142 *
张庆全;余迎;: "基于C/S与B/S混合体系结构的林业管护经营监控系统的设计", 《测绘与空间地理信息》, no. 01, pages 1 - 5 *

Similar Documents

Publication Publication Date Title
CN108804618B (en) Database configuration method, device, computer equipment and storage medium
CN109032824A (en) Database method of calibration, device, computer equipment and storage medium
CN114531477B (en) Method and device for configuring functional components, computer equipment and storage medium
CN111651178A (en) Container configuration updating method and device, computer equipment and storage medium
CN109144487B (en) Method, device, computer equipment and storage medium for developing business of parts
CN110888797A (en) Test data generation method and device, computer equipment and storage medium
CN111723148A (en) Data storage method and device, storage medium and electronic device
CN110704095A (en) Workflow-based configuration processing method and device, computer equipment and storage medium
CN109408032A (en) A kind of customized Fast implementation of BIOS, device, terminal and storage medium
CN115964131A (en) Simulation model management system supporting multiple simulation engines and simulation model scheduling method
CN114143090B (en) Firewall deployment method, device, equipment and medium based on network security architecture
CN113138776A (en) Template-based cluster automatic deployment method, device, equipment and medium
CN112433953A (en) Embedded automatic testing method, device, equipment and medium based on network game client
CN113568685A (en) Component configuration method and device, electronic device and computer equipment
CN104657218A (en) Multi-operation system operation method and device and terminal
CN116720206A (en) Authority management method and device, electronic equipment and storage medium
CN116319492A (en) Switch testing method and device, storage medium and electronic equipment
CN109361543A (en) A kind of whole machine cabinet monitoring method, device, terminal and storage medium
CN110609707A (en) Online data processing system generation method, device and equipment
CN115202907A (en) Application program interface operation method, system, computer equipment and medium
CN112789596A (en) Processing method and device for task processing request and block chain node equipment
CN114625459A (en) Method, system, device and medium for switching page theme style
CN113110982A (en) Data access layer verification method and device, storage medium and electronic device
CN114579250A (en) Method, device and storage medium for constructing virtual cluster
CN114944990B (en) Verification and exception handling method and device for virtualized network function module package

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