CN112748679B - Data processing method and device - Google Patents

Data processing method and device Download PDF

Info

Publication number
CN112748679B
CN112748679B CN201911056437.6A CN201911056437A CN112748679B CN 112748679 B CN112748679 B CN 112748679B CN 201911056437 A CN201911056437 A CN 201911056437A CN 112748679 B CN112748679 B CN 112748679B
Authority
CN
China
Prior art keywords
point location
equipment
logical
physical
physical point
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911056437.6A
Other languages
Chinese (zh)
Other versions
CN112748679A (en
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.)
Beijing Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum 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 Beijing Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201911056437.6A priority Critical patent/CN112748679B/en
Publication of CN112748679A publication Critical patent/CN112748679A/en
Application granted granted Critical
Publication of CN112748679B publication Critical patent/CN112748679B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/25Pc structure of the system
    • G05B2219/25257Microcontroller

Abstract

The invention discloses a data processing method and a data processing device. The method comprises the following steps: after receiving a device adding instruction, determining reference devices with the same types as the devices to be added; acquiring a level where a logical point location of the reference equipment is located, and a mapping relation between the logical point location and a physical point location of the reference equipment; responding to the equipment adding instruction, executing the copying operation of the logic point location of the reference equipment to obtain the logic point location of the new equipment, and adding the logic point location of the new equipment at the same level position of the logic point location of the reference equipment; and acquiring the physical point location of the new equipment, and establishing the mapping relation between the physical point location of the new equipment and the logical point location of the new equipment by taking the mapping relation between the logical point location of the reference equipment and the physical point location as a template. By the method and the device, the effect of improving the configuration efficiency of the physical point locations and the logical point locations in the intelligent building control is achieved.

Description

Data processing method and device
Technical Field
The present invention relates to the field of data processing, and in particular, to a data processing method and apparatus.
Background
In an intelligent building control system, collected physical equipment and physical point locations cannot be directly applied, and logical relations among buildings, equipment, point locations and the like need to be organized and constructed according to project actual conditions. For example, the project includes several buildings, each building has several floors, each floor has a functional area, several energy consuming systems, which devices are provided, which points of interest under the devices are provided, and the like, so that logical point locations need to be established to manage and analyze the operation conditions of the devices, and the logical point locations need to be manually configured when the mapping relationship between the logical point locations and the physical point locations is established, which is inefficient.
Aiming at the problem of low efficiency of physical point location and logical point location configuration in intelligent building control in the related art, no effective solution is provided at present.
Disclosure of Invention
The invention mainly aims to provide a data processing method and a data processing device, which are used for solving the problem of low efficiency of physical point location and logical point location configuration in intelligent building control.
In order to achieve the above object, according to an aspect of the present invention, there is provided a data processing method including: after receiving a device adding instruction, determining reference devices with the same types as the devices to be added; acquiring a hierarchy of the logical point location of the reference device and a mapping relation between the logical point location of the reference device and a physical point location, wherein the physical point location is represented by parameter information of the device, the logical point location is obtained by converting the parameter information of the corresponding physical point location, and the hierarchy of the logical point location is set according to the position and the hierarchy of the device; responding to the equipment adding instruction, executing copy operation on the logic point location of the reference equipment to obtain the logic point location of new equipment, and adding the logic point location of the new equipment at the same level position of the logic point location of the reference equipment; and acquiring the physical point location of the new equipment, and establishing the mapping relation between the physical point location of the new equipment and the logical point location of the new equipment by taking the mapping relation between the logical point location of the reference equipment and the physical point location as a template.
Further, before obtaining a hierarchy where the logical point location of the reference device is located and a mapping relationship between the logical point location of the reference device and a physical point location, the method further includes: receiving a mapping relation establishing instruction, wherein the mapping relation establishing instruction is used for indicating establishment of a mapping relation between a physical point location and a logical point location of the reference device; acquiring attribute information of a physical point location of the reference device, wherein the attribute information comprises a plurality of dimensions; converting the attribute information of each dimensionality of the physical point location of the reference equipment into attribute information of a corresponding dimensionality of the logical point location according to a preset conversion rule; and establishing a mapping relation between the attribute information of each dimensionality of the physical point location of the reference equipment and the attribute information of the corresponding dimensionality of the logical point location to obtain the mapping relation between the logical point location and the physical point location of the reference equipment.
Further, the obtaining of the attribute information of the physical point location of the reference device includes: obtaining attribute information of the physical point location of the reference device through the path id of the physical point location of the reference device, and converting the attribute information of each dimensionality of the physical point location of the reference device into attribute information of a corresponding dimensionality of the logical point location according to a preset conversion rule includes: and converting the attribute information corresponding to the path id of the physical point location of the reference equipment into the attribute information corresponding to the path id of the logical point location according to a preset conversion rule.
Further, before acquiring the physical point location of the new device, the method further includes: judging whether the physical point location exists or not; if yes, the step of obtaining the physical point location of the new equipment is executed; and if the mapping relation does not exist, creating the virtual physical point position of the new equipment so as to establish the mapping relation between the virtual physical point position and the logical point position of the new equipment.
Further, after creating the virtual physical point location, the method further comprises: distributing a path id for the virtual physical point location; and/or creating a calculation formula for calculating parameters of the virtual physical point location, wherein the calculation formula is used for calculating the parameters of the virtual physical point location according to the parameters of at least one physical point location or the parameters of the logical point location.
In order to achieve the above object, according to another aspect of the present invention, there is also provided a data processing apparatus comprising: the device adding unit is used for adding a device to be added to the device to be added; a first obtaining unit, configured to obtain a hierarchy where a logical point location of the reference device is located, and a mapping relationship between the logical point location of the reference device and a physical point location, where the physical point location is represented by parameter information of the device, the logical point location is obtained by converting the parameter information of a corresponding physical point location, and the hierarchy of the logical point location is set according to the location and the hierarchy of the device; the copying unit is used for responding to the equipment adding instruction, executing copying operation on the logic point location of the reference equipment to obtain the logic point location of new equipment, and adding the logic point location of the new equipment at the same level position of the logic point location of the reference equipment; and the processing unit is used for acquiring the physical point location of the new device, and establishing the mapping relationship between the physical point location of the new device and the logical point location of the new device by taking the mapping relationship between the logical point location of the reference device and the physical point location as a template.
Further, the apparatus further comprises: a receiving unit, configured to receive a mapping relationship establishing instruction before obtaining a hierarchy where a logical point location of the reference device is located and a mapping relationship between the logical point location and a physical point location of the reference device, where the mapping relationship establishing instruction is used to instruct to establish a mapping relationship between the physical point location and the logical point location of the reference device; a second obtaining unit, configured to obtain attribute information of a physical point location of the reference device, where the attribute information includes multiple dimensions; a conversion unit, configured to convert, according to a preset conversion rule, attribute information of each dimension of a physical point location of the reference device into attribute information of a corresponding dimension of the logical point location; and the establishing unit is used for establishing a mapping relationship between the attribute information of each dimensionality of the physical point location of the reference equipment and the attribute information of the corresponding dimensionality of the logical point location to obtain the mapping relationship between the logical point location and the physical point location of the reference equipment.
Further, the second obtaining unit is configured to: obtaining attribute information of the physical point location of the reference device through a path id of the physical point location of the reference device, where the conversion unit is configured to: and converting the attribute information corresponding to the path id of the physical point location of the reference equipment into the attribute information corresponding to the path id of the logical point location according to a preset conversion rule.
In order to achieve the above object, according to another aspect of the present invention, there is also provided a storage medium including a stored program, wherein when the program runs, a device in which the storage medium is located is controlled to execute the data processing method according to the present invention.
In order to achieve the above object, according to another aspect of the present invention, there is also provided an apparatus, which includes at least one processor, and at least one memory and a bus connected to the processor, wherein the processor and the memory complete communication with each other through the bus, and the processor is configured to call program instructions in the memory to execute the data processing method according to the present invention.
After receiving a device adding instruction, determining reference devices with the same types as the devices to be added; acquiring a hierarchy of the logic point location of the reference equipment and a mapping relation between the logic point location of the reference equipment and a physical point location, wherein the physical point location is represented by parameter information of the equipment, the logic point location is obtained by converting the parameter information of the corresponding physical point location, and the hierarchy of the logic point location is set according to the position and the hierarchy of the equipment; responding to the equipment adding instruction, executing the copying operation of the logic point location of the reference equipment to obtain the logic point location of the new equipment, and adding the logic point location of the new equipment at the same level position of the logic point location of the reference equipment; the method comprises the steps of obtaining physical point locations of new equipment, establishing a mapping relation between the physical point locations of the new equipment and the logical point locations of the new equipment by taking the mapping relation between the logical point locations of the reference equipment and the physical point locations as a template, solving the problem of low configuration efficiency of the physical point locations and the logical point locations in the intelligent building control, and further achieving the effect of improving the configuration efficiency of the physical point locations and the logical point locations in the intelligent building control.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate embodiments of the invention and, together with the description, serve to explain the invention and not to limit the invention. In the drawings:
FIG. 1 is a flow diagram of a data processing method according to an embodiment of the invention;
FIG. 2 is a schematic view of a configuration interface according to an embodiment of the invention;
FIG. 3 is a schematic illustration of template fabrication according to an embodiment of the present invention;
FIG. 4 is a schematic view of a replication interface of an embodiment of the invention;
FIG. 5 is a schematic diagram of a virtual point location configuration interface according to an embodiment of the invention;
FIG. 6 is a schematic diagram of a data processing apparatus according to an embodiment of the present invention; and
fig. 7 is a block diagram of an apparatus according to an embodiment of the present invention.
Detailed Description
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The invention will be described in detail below with reference to the accompanying drawings and examples.
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be used. Moreover, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The embodiment of the invention provides a data processing method.
Fig. 1 is a flowchart of a data processing method according to an embodiment of the present invention, as shown in fig. 1, the method including the steps of:
step S102: after receiving a device adding instruction, determining reference devices with the same types as the devices to be added;
step S104: acquiring a hierarchy of the logic point location of the reference equipment and a mapping relation between the logic point location of the reference equipment and a physical point location, wherein the physical point location is represented by parameter information of the equipment, the logic point location is obtained by converting the parameter information of the corresponding physical point location, and the hierarchy of the logic point location is set according to the position and the hierarchy of the equipment;
step S106: responding to the equipment adding instruction, executing the copying operation of the logic point location of the reference equipment to obtain the logic point location of the new equipment, and adding the logic point location of the new equipment at the same level position of the logic point location of the reference equipment;
step S108: and acquiring the physical point location of the new equipment, and establishing the mapping relation between the physical point location of the new equipment and the logical point location of the new equipment by taking the mapping relation between the logical point location of the reference equipment and the physical point location as a template.
In the embodiment, after a device adding instruction is received, reference devices with the same type as the devices to be added are determined; acquiring a hierarchy of the logic point location of the reference equipment and a mapping relation between the logic point location of the reference equipment and the physical point location, wherein the physical point location is represented by parameter information of the equipment, the logic point location is obtained by converting the parameter information of the corresponding physical point location, and the hierarchy of the logic point location is set according to the position and the hierarchy of the equipment; responding to the equipment adding instruction, executing the copying operation of the logic point location of the reference equipment to obtain the logic point location of the new equipment, and adding the logic point location of the new equipment at the same level position of the logic point location of the reference equipment; the method comprises the steps of obtaining physical point locations of new equipment, establishing a mapping relation between the physical point locations of the new equipment and the logical point locations of the new equipment by taking the mapping relation between the logical point locations of the reference equipment and the physical point locations as a template, solving the problem of low configuration efficiency of the physical point locations and the logical point locations in the intelligent building control, and further achieving the effect of improving the configuration efficiency of the physical point locations and the logical point locations in the intelligent building control.
The technical scheme of the embodiment of the invention can be applied to quickly configuring the mapping relation between the physical point location and the logical point location in an intelligent building control system, after an equipment template is made in advance, the point locations of equipment of the same type can be added in batch through a copying function, after a copying instruction is received, reference equipment of the same type as the equipment to be added is determined, information such as the logical point location level of the equipment to be copied, the mapping relation between the logical point location and the physical point location is determined, target equipment of the same type as the reference equipment is added into a peer directory of the current equipment point location, the physical point location is represented by parameter information of the equipment, the logical point location is obtained through parameter information conversion of the physical point location, the point location information in the logical point location directory of each newly added target equipment is also the same as the logical point location information of the reference equipment, a specific application scene is taken as an example, to copy the logical point of the air-cooled heat pump equipment of a certain layer, the air-cooled heat pump can be selected, then a clone or copy button is clicked to send a copy instruction, then a clone information input box is popped up, a reference device XF1 is determined to be in a BASE URL input box through dragging, a target device (which can be selected more) XF2-XF5 is dragged to a clone area again, the system can automatically create logical equipment in the same-level directory of the template equipment according to the selected target physical device, the point under the template equipment is copied under each logical device, and meanwhile, the mapping relation between the target logical point and the target physical point is generated according to the name matching rule and the mapping relation between the template logical point and the reference physical point, so that the function of cloning multiple equipment by one key is realized, and the repeated labor of an automatic control engineer can be greatly reduced.
It should be noted that, in the cloning or copying process of the present application, when point location information of a target device is copied with reference to point location information of a template device, the point location information is not completely the same as the template device, and a name of the copied point location information is modified according to the point location information of the target device, and if the name is completely the same as the template device, a problem of point location matching confusion may occur.
Optionally, before obtaining a hierarchy where the logical point location of the reference device is located and a mapping relationship between the logical point location of the reference device and the physical point location, receiving a mapping relationship establishment instruction, where the mapping relationship establishment instruction is used to instruct establishment of the mapping relationship between the physical point location and the logical point location of the reference device; acquiring attribute information of a physical point location of reference equipment, wherein the attribute information comprises a plurality of dimensions; converting the attribute information of each dimensionality of the physical point location of the reference equipment into attribute information of a corresponding dimensionality of the logical point location according to a preset conversion rule; and establishing a mapping relation between the attribute information of each dimensionality of the physical point location of the reference equipment and the attribute information of the corresponding dimensionality of the logical point location to obtain the mapping relation between the logical point location and the physical point location of the reference equipment.
When a template is initially established, a mapping relationship between a logical point location and a physical point location needs to be matched, attribute information of the physical point location of a reference device is obtained, each attribute information includes multiple dimensions, such as a point location name, a parameter type which can be acquired by the point location, and the like, each dimension of the attribute information of the physical point location is converted into attribute information of a corresponding dimension of the logical point location according to a predefined rule, then the mapping relationship is established, and the mapping relationship is stored as the template.
Optionally, the obtaining of the attribute information of the physical point location of the reference device includes: acquiring attribute information of a physical point location of a reference device through a path id of the physical point location of the reference device, and converting the attribute information of each dimensionality of the physical point location of the reference device into attribute information of a corresponding dimensionality of a logical point location according to a preset conversion rule, wherein the attribute information comprises: and converting the attribute information corresponding to the path id of the physical point location of the reference equipment into the attribute information corresponding to the path id of the logical point location according to a preset conversion rule.
When different physical point locations are distinguished, the physical point locations are distinguished through id information of the physical point locations, so that the attribute information of the physical point locations is obtained through id when the attribute information of the physical point locations is obtained, and the converted attribute information of the logical point locations is distinguished from corresponding point locations through path id.
Optionally, before acquiring the physical point location of the new device, determining whether the physical point location exists; if yes, the step of acquiring the physical point location of the new equipment is executed; and if the mapping relation does not exist, creating a virtual physical point location of the new device so as to establish the mapping relation between the virtual physical point location and the logical point location of the new device.
Optionally, after the virtual physical point location is created, a path id is allocated to the virtual physical point location; and creating a calculation formula for calculating parameters of the virtual physical point location, wherein the calculation formula is used for calculating the parameters of the virtual physical point location according to the parameters of at least one physical point location or the parameters of the logical point location.
Besides the mapping relation established between the device point location and the logical point location of the entity, some logical point locations are obtained through operation or setting of other physical point locations or logical point locations, so that virtual physical point locations need to be created, when the virtual physical point locations are created, the virtual physical point locations can be dragged and added into a calculation formula from a left tree or a right tree, and a background program starts a timing task to calculate the value of each virtual point location.
The embodiment of the present invention also provides a preferred implementation manner, and the following describes technical solutions of the embodiments of the present invention with reference to the preferred implementation manner.
The embodiment of the invention mainly constructs the logic relationship rapidly by methods of manufacturing equipment templates, cloning equipment, configuring virtual point positions and the like.
Fig. 2 is a schematic diagram of a configuration interface according to an embodiment of the present invention, where an automation engineer may add a building, a floor, a functional partition, a system, and a device node according to a project actual situation through a configuration tool, and then implement a method of making a device template, cloning a device, configuring a virtual point location, and the like to rapidly configure a mapping relationship between a physical point location and a logical point location.
1) Template of manufacturing equipment
Fig. 3 is a schematic diagram illustrating template making according to an embodiment of the present invention, as shown in fig. 3, the physical device and the point location information are accessed through a configuration tool, and displayed in a tree form (right tree), after a physical point location is selected, a mouse is held and dragged to a device node of the left tree, at this time, the attribute information of the physical point location is converted into attribute information of a logical point location according to a predefined conversion rule, and a mapping relationship is established with the physical point location. The name, type, description, precision and other attributes of the logical point location can be modified according to the actual configuration.
2) Device replication and cloning
Fig. 4 is a schematic diagram of a replication interface according to an embodiment of the present invention, and after a device template is configured, devices of the same type may be added in batch through a device cloning function. Firstly, selecting equipment to be cloned or copied on a left tree, clicking a [ clone ] button, selecting (singly selecting) referenced physical equipment on the right tree to drag the equipment into a BASE URL input box, then selecting (multiply selecting) target physical equipment to drag the equipment into a list area below, automatically creating logic equipment in a same-level directory of template equipment by the system according to the selected target physical equipment, copying point positions under the template equipment under each logic equipment, and simultaneously generating a mapping relation between the target logic point positions and the target physical point positions according to a mapping relation between the template logic point positions and the reference physical point positions according to a name matching rule, thereby realizing the function of cloning a plurality of equipment by one key. Greatly reducing the repeated labor of the automatic control engineer.
3) Configuring virtual point locations
The first two steps implement mapping between physical point locations and logical point locations, but some virtual point locations also exist in actual services, that is, there is no corresponding physical point location, but some physical point locations or logical point locations are obtained through operation or setting, fig. 5 is a schematic diagram of a virtual point location configuration interface according to an embodiment of the present invention, when a virtual point location is created, the virtual point location can be dragged and added to a calculation formula from a left tree or a right tree, and a background program starts a timing task to calculate a value of each virtual point location.
The configuration mode of the embodiment of the invention can help the automatic control engineer to rapidly configure the mapping relation between the physical point location and the logical point location and provide data support for subsequent service application.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowcharts, in some cases, the steps illustrated or described may be performed in an order different than presented herein.
The embodiment of the invention provides a data processing device, which can be used for executing the data processing method of the embodiment of the invention.
Fig. 6 is a schematic diagram of a data processing apparatus according to an embodiment of the present invention, as shown in fig. 6, the apparatus including:
the determining unit 10 is configured to determine, after receiving the device adding instruction, a reference device of the same type as the device to be added;
the first obtaining unit 20 is configured to obtain a hierarchy where a logical point location of the reference device is located, and a mapping relationship between the logical point location of the reference device and a physical point location, where the physical point location is represented by parameter information of the device, the logical point location is obtained by converting the parameter information of the corresponding physical point location, and the hierarchy of the logical point location is set according to the location and the hierarchy of the device;
the replication unit 30 is configured to, in response to the device addition instruction, perform a replication operation on a logical point location of the reference device to obtain a logical point location of the new device, and add the logical point location of the new device at the same hierarchical position of the logical point location of the reference device;
and the processing unit 40 is configured to obtain a physical point location of the new device, and establish a mapping relationship between the physical point location of the new device and the logical point location of the new device by using a mapping relationship between the logical point location of the reference device and the physical point location as a template.
The embodiment adopts a determining unit 10, configured to determine, after receiving a device adding instruction, a reference device of the same type as a device to be added; the first obtaining unit 20 is configured to obtain a hierarchy where a logical point location of the reference device is located, and a mapping relationship between the logical point location of the reference device and a physical point location, where the physical point location is represented by parameter information of the device, the logical point location is obtained by converting the parameter information of the corresponding physical point location, and the hierarchy of the logical point location is set according to the location and the hierarchy of the device; the replication unit 30 is configured to, in response to the device addition instruction, perform a replication operation on a logical point location of the reference device to obtain a logical point location of the new device, and add the logical point location of the new device at the same hierarchical position of the logical point location of the reference device; the processing unit 40 is configured to obtain a physical point location of the new device, and establish a mapping relationship between the physical point location of the new device and a logical point location of the new device by using a mapping relationship between a logical point location of the reference device and the physical point location as a template, so that a problem of low configuration efficiency of the physical point location and the logical point location in the intelligent building control is solved, and an effect of improving configuration efficiency of the physical point location and the logical point location in the intelligent building control is achieved.
Optionally, the apparatus further comprises: the device comprises a receiving unit and a processing unit, wherein the receiving unit is used for receiving a mapping relation establishment instruction before acquiring the hierarchy of the logic point position of the reference equipment and the mapping relation between the logic point position and the physical point position of the reference equipment, and the mapping relation establishment instruction is used for indicating the establishment of the mapping relation between the physical point position and the logic point position of the reference equipment; the second obtaining unit is used for obtaining attribute information of the physical point location of the reference device, and the attribute information comprises a plurality of dimensions; the conversion unit is used for converting the attribute information of each dimensionality of the physical point location of the reference equipment into attribute information of a corresponding dimensionality of the logical point location according to a preset conversion rule; the establishing unit is configured to establish a mapping relationship between attribute information of each dimension of the physical point location of the reference device and attribute information of a corresponding dimension of the logical point location, so as to obtain a mapping relationship between the logical point location and the physical point location of the reference device.
Optionally, the second obtaining unit is configured to: obtaining attribute information of the physical point location of the reference device through the path id of the physical point location of the reference device, wherein the conversion unit is configured to: and converting the attribute information corresponding to the path id of the physical point location of the reference equipment into the attribute information corresponding to the path id of the logical point location according to a preset conversion rule.
The data processing device comprises a processor and a memory, wherein the first receiving unit, the determining unit, the adding unit and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to be one or more than one, and the configuration efficiency of physical point locations and logical point locations in the intelligent building control is improved by adjusting kernel parameters.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
An embodiment of the present invention provides a storage medium on which a program is stored, the program implementing the data processing method when executed by a processor.
The embodiment of the invention provides a processor, which is used for running a program, wherein the data processing method is executed when the program runs.
An embodiment of the present invention provides an apparatus, as shown in fig. 7, an embodiment of the present invention provides an apparatus, where the apparatus includes at least one processor, and at least one memory and a bus connected to the processor; the processor and the memory complete mutual communication through a bus; the processor is used for calling the program instructions in the memory so as to execute the data processing method. The device herein may be a server, a PC, a PAD, a mobile phone, etc.
The present application further provides a computer program product adapted to perform a program for initializing the following method steps when executed on a data processing device: after receiving a device adding instruction, determining reference devices with the same types as the devices to be added; acquiring a hierarchy of the logic point location of the reference equipment and a mapping relation between the logic point location of the reference equipment and a physical point location, wherein the physical point location is represented by parameter information of the equipment, the logic point location is obtained by converting the parameter information of the corresponding physical point location, and the hierarchy of the logic point location is set according to the position and the hierarchy of the equipment; responding to the equipment adding instruction, executing the copying operation of the logic point location of the reference equipment to obtain the logic point location of the new equipment, and adding the logic point location of the new equipment at the same level position of the logic point location of the reference equipment; and acquiring the physical point location of the new equipment, and establishing the mapping relation between the physical point location of the new equipment and the logical point location of the new equipment by taking the mapping relation between the logical point location of the reference equipment and the physical point location as a template.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Disks (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A data processing method, comprising:
after receiving a device adding instruction, determining reference devices with the same types as the devices to be added;
acquiring a hierarchy of the logical point location of the reference device and a mapping relation between the logical point location of the reference device and a physical point location, wherein the physical point location is represented by parameter information of the device, the logical point location is obtained by converting the parameter information of the corresponding physical point location, and the hierarchy of the logical point location is set according to the position and the hierarchy of the device;
responding to the equipment adding instruction, executing copy operation on the logic point location of the reference equipment to obtain the logic point location of new equipment, and adding the logic point location of the new equipment at the same level position of the logic point location of the reference equipment;
and acquiring the physical point location of the new equipment, and establishing the mapping relation between the physical point location of the new equipment and the logical point location of the new equipment by taking the mapping relation between the logical point location of the reference equipment and the physical point location as a template.
2. The method according to claim 1, wherein before obtaining the level of the logical point location of the reference device and the mapping relationship between the logical point location and the physical point location of the reference device, the method further comprises:
receiving a mapping relation establishing instruction, wherein the mapping relation establishing instruction is used for indicating establishment of a mapping relation between a physical point location and a logical point location of the reference device;
acquiring attribute information of a physical point location of the reference device, wherein the attribute information comprises a plurality of dimensions;
converting the attribute information of each dimensionality of the physical point location of the reference equipment into attribute information of a corresponding dimensionality of the logical point location of the reference equipment according to a preset conversion rule;
and establishing a mapping relation between the attribute information of each dimensionality of the physical point location of the reference equipment and the attribute information of the corresponding dimensionality of the logical point location of the reference equipment to obtain the mapping relation between the logical point location and the physical point location of the reference equipment.
3. The method of claim 2,
acquiring attribute information of the physical point location of the reference device includes: acquiring attribute information of the physical point location of the reference device through the path id of the physical point location of the reference device,
converting the attribute information of each dimensionality of the physical point location of the reference device into the attribute information of the corresponding dimensionality of the logical point location of the reference device according to a preset conversion rule comprises: and converting the attribute information corresponding to the path id of the physical point location of the reference equipment into the attribute information corresponding to the path id of the logical point location of the reference equipment according to a preset conversion rule.
4. The method of claim 1, wherein prior to obtaining the physical point location of the new device, the method further comprises:
judging whether a physical point location of the new equipment exists or not;
if yes, the step of obtaining the physical point location of the new equipment is executed;
and if the mapping relation does not exist, creating the virtual physical point position of the new equipment so as to establish the mapping relation between the virtual physical point position and the logical point position of the new equipment.
5. The method of claim 4, wherein after creating the virtual physical point location, the method further comprises:
distributing a path id for the virtual physical point location; and/or the presence of a gas in the gas,
and creating a calculation formula for calculating the parameters of the virtual physical point location, wherein the calculation formula is used for calculating the parameters of the virtual physical point location according to the parameters of at least one physical point location or the parameters of the logical point location.
6. A data processing apparatus, comprising:
the device adding unit is used for adding a device to be added to the device to be added;
a first obtaining unit, configured to obtain a hierarchy where a logical point location of the reference device is located, and a mapping relationship between the logical point location of the reference device and a physical point location, where the physical point location is represented by parameter information of the device, the logical point location is obtained by converting the parameter information of a corresponding physical point location, and the hierarchy of the logical point location is set according to the location and the hierarchy of the device;
the copying unit is used for responding to the equipment adding instruction, executing copying operation on the logic point location of the reference equipment to obtain the logic point location of new equipment, and adding the logic point location of the new equipment at the same level position of the logic point location of the reference equipment;
and the processing unit is used for acquiring the physical point location of the new device, and establishing the mapping relationship between the physical point location of the new device and the logical point location of the new device by taking the mapping relationship between the logical point location of the reference device and the physical point location as a template.
7. The apparatus of claim 6, further comprising:
a receiving unit, configured to receive a mapping relationship establishing instruction before obtaining a hierarchy where a logical point location of the reference device is located and a mapping relationship between the logical point location and a physical point location of the reference device, where the mapping relationship establishing instruction is used to instruct to establish a mapping relationship between the physical point location and the logical point location of the reference device;
a second obtaining unit, configured to obtain attribute information of a physical point location of the reference device, where the attribute information includes multiple dimensions;
the conversion unit is used for converting the attribute information of each dimensionality of the physical point location of the reference equipment into attribute information of a corresponding dimensionality of the logical point location of the reference equipment according to a preset conversion rule;
the establishing unit is configured to establish a mapping relationship between attribute information of each dimension of the physical point location of the reference device and attribute information of a corresponding dimension of the logical point location of the reference device, so as to obtain a mapping relationship between the logical point location of the reference device and the physical point location.
8. The apparatus of claim 7,
the second obtaining unit is configured to: acquiring attribute information of the physical point location of the reference device through the path id of the physical point location of the reference device,
the conversion unit is used for: and converting the attribute information corresponding to the path id of the physical point location of the reference equipment into the attribute information corresponding to the path id of the logical point location of the reference equipment according to a preset conversion rule.
9. A storage medium, characterized in that the storage medium comprises a stored program, wherein when the program runs, a device in which the storage medium is located is controlled to execute the data processing method according to any one of claims 1 to 5.
10. An apparatus, characterized in that the apparatus comprises at least one processor, and at least one memory and a bus connected with the processor, wherein the processor and the memory are in communication with each other through the bus, and the processor is configured to call program instructions in the memory to execute the data processing method according to any one of claims 1 to 5.
CN201911056437.6A 2019-10-31 2019-10-31 Data processing method and device Active CN112748679B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911056437.6A CN112748679B (en) 2019-10-31 2019-10-31 Data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911056437.6A CN112748679B (en) 2019-10-31 2019-10-31 Data processing method and device

Publications (2)

Publication Number Publication Date
CN112748679A CN112748679A (en) 2021-05-04
CN112748679B true CN112748679B (en) 2022-05-27

Family

ID=75645659

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911056437.6A Active CN112748679B (en) 2019-10-31 2019-10-31 Data processing method and device

Country Status (1)

Country Link
CN (1) CN112748679B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101547543A (en) * 2008-03-26 2009-09-30 松下电工株式会社 Illumination instruments
CN104408135A (en) * 2014-11-27 2015-03-11 北京国双科技有限公司 Webpage thermodynamic diagram loading method and device
CN104731051A (en) * 2015-01-19 2015-06-24 成都创信云通科技有限公司 Method for achieving sensor point position objectification
CN106471478A (en) * 2014-06-24 2017-03-01 Arm 有限公司 For executing multiple device controllers writing affairs and method in non-volatile data storage in the way of atom
EP3445021A2 (en) * 2007-03-29 2019-02-20 Philips Lighting Holding B.V. Networked control system using logical addresses

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3445021A2 (en) * 2007-03-29 2019-02-20 Philips Lighting Holding B.V. Networked control system using logical addresses
CN101547543A (en) * 2008-03-26 2009-09-30 松下电工株式会社 Illumination instruments
CN106471478A (en) * 2014-06-24 2017-03-01 Arm 有限公司 For executing multiple device controllers writing affairs and method in non-volatile data storage in the way of atom
CN104408135A (en) * 2014-11-27 2015-03-11 北京国双科技有限公司 Webpage thermodynamic diagram loading method and device
CN104731051A (en) * 2015-01-19 2015-06-24 成都创信云通科技有限公司 Method for achieving sensor point position objectification

Also Published As

Publication number Publication date
CN112748679A (en) 2021-05-04

Similar Documents

Publication Publication Date Title
US10700947B2 (en) Life cycle management method and device for network service
CN111176788B (en) Deployment method and system for main nodes of Kubernetes cluster
CN107844274B (en) Hardware resource management method, device and terminal based on super-fusion storage system
CN112615905B (en) Method, device and equipment for scheduling block chain fragments and storage medium
CN110020353B (en) Method and device for constructing webpage form
CN104239156A (en) External service call method and system
US20160345283A1 (en) Method and apparatus for adjacent node registration, and method and system for cross-node registration
CN110633959A (en) Method, device, equipment and medium for creating approval task based on graph structure
CN111142849B (en) Flow processing method, device, storage medium and processor
CN111124382A (en) Attribute assignment method and device in Java and server
CN112748679B (en) Data processing method and device
CN108124021B (en) Method, device and system for obtaining Internet Protocol (IP) address and accessing website
CN111209074B (en) Browser view loading method, device and system and server
CN108804210B (en) Resource configuration method and device of cloud platform
CN111753011A (en) Intelligent contract execution node selection method, equipment and medium based on block chain
CN111984259A (en) Interface creating method, device, equipment and storage medium
CN110971642B (en) Data processing method and device for cloud computing platform
CN112583864B (en) Data migration method and device
CN110532457B (en) Method and system for acquiring network segment ID
CN113010263A (en) Method, system, equipment and storage medium for creating virtual machine in cloud platform
CN108366003B (en) Home service framework creating method, calling method, device, server and medium
CN112560403A (en) Text processing method and device and electronic equipment
CN112749229A (en) Data conversion method, device, storage medium and electronic equipment
US11675627B1 (en) Method and system for integrating multiple cloud platforms with diagraming tools
CN115664971B (en) Cloud resource operation and maintenance method, device and medium based on hierarchical fault domain

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
GR01 Patent grant
GR01 Patent grant