A method, device, electronic device and storage medium for generating a perception scene
By building multi-layer business containers and business logic mappings and dynamically loading interface components, the differentiated problem of scenario configuration in the Internet of Things platform is solved, the rapid deployment and personalized configuration of complex IoT scenarios are realized, and the scenario linkage and deployment are simplified. process.
Patent Information
- Application Number
- CN202311787734.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-22
- Publication Date
- 2024-12-31
- Estimated Expiration
- 2043-12-22
AI Technical Summary
In the IoT platform, the lack of a unified scenario configuration method leads to matching problems in different project scenarios at the horizontal level. The definitions at each level are different during data visualization, which increases the workload and lacks framework guidance, making it difficult to achieve rapid deployment of scenarios and Personalized configuration.
By building a layer-by-layer nested scene framework based on multi-layer business containers, establishing business logic mapping, separating data, dynamically loading interface components, and mapping and unlocking according to permission levels, generating perceptual scenes, and abstracting the implementation methods and frameworks of scene containers Template, realizes dedifferentiation and patterned expression of complex IoT scenarios.
It realizes rapid deployment and personalized configuration of complex IoT scenarios, facilitates the replication module to create specific scenarios as needed, clearly and quickly locate problem areas and equipment, standardizes scene-level rule configuration, and simplifies the scene linkage and deployment process.
Smart Images

Figure CN117891556B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a perception scene generation method, device, electronic device and storage medium. Background Art
[0002] As the pace of digitalization accelerates, the Internet of Things platform is promoted nationwide. Urban transportation management services, transportation and urban construction, park management, water conservancy and water affairs and other industries have a large demand for the construction of the Internet of Things platform. During the implementation process, the application and display of specific scenarios have always been the most concerned content of customers. However, due to the lack of framework guidance and the lack of a unified scenario configuration method, different project scenarios have matching problems at the horizontal level, and the definitions of each level are different when visualizing data, which increases the workload when transferring messages when connecting the platform. Summary of the invention
[0003] The present invention aims to solve one of the technical problems in the related art at least to a certain extent. To this end, the present invention proposes a perception scene generation method, device, electronic device and storage medium, which can efficiently generate perception scenes.
[0004] On the one hand, an embodiment of the present invention provides a method for generating a perception scene, including:
[0005] According to the inclusion relationship of scenarios in the target industry, a nested scenario framework is built based on multi-layer business containers; each layer of business container is built based on hierarchical space;
[0006] Determine the attribution relationship of the multi-layer business containers according to the inclusion relationship, and establish the business logic mapping between the multi-layer business containers based on the attribution relationship;
[0007] Separate the data of the scene framework, and then obtain the template framework based on the multi-layer business container;
[0008] Based on the template framework, combined with the routing and status of the target object, the interface components are dynamically loaded;
[0009] Obtain the permission level of the target object, and based on the permission level and in combination with the preset routing rules, map and unlock the target interface components to generate a target perception scene.
[0010] Optionally, the inclusion relationship corresponds to scenes, monitoring areas, monitoring sites and devices in descending order; according to the inclusion relationship of scenes in the target industry, a nested scene framework is constructed based on multi-layer business containers, including:
[0011] Point each layer of business containers from large to small in the multi-layer business container to the scene, monitoring area, monitoring site and equipment in turn, and build a nested target scene framework;
[0012] Among them, the scene includes at least one monitoring area; a single monitoring area includes at least one monitoring site; a single monitoring site includes at least one device.
[0013] Optionally, determining the attribution relationship of the multi-layer service containers according to the inclusion relationship, and establishing the service logic mapping between the multi-layer service containers based on the attribution relationship includes:
[0014] Determine the ownership relationship of each layer of business containers in the multi-layer business container according to the inclusion relationship; the inclusion relationship corresponds to the scene, monitoring area, monitoring site and equipment from large to small; each layer of business containers in the multi-layer business container from large to small points to the scene, monitoring area, monitoring site and equipment in turn;
[0015] Based on the attribution relationship, two adjacent layers of business containers in the multi-layer business container establish a mapping relationship from small to large, and then establish a layer-by-layer mapping relationship in the multi-layer business container.
[0016] Optionally, the business logic mapping is constructed based on a layer-by-layer mapping relationship of each layer of business containers from small to large in the multi-layer business containers; the method further includes:
[0017] Establish the alarm penetration logic of the target scenario framework based on business logic mapping.
[0018] Optionally, the alarm penetration logic of the target scenario framework is established based on the business logic mapping, including:
[0019] The bottom-level business container in the multi-layer business container is used as the target container;
[0020] Perform alarm partition aggregation on the target container, and obtain alarm statistics and data pointers based on the alarm partition aggregation results;
[0021] The alarm statistics and data pointers are stored in the next layer of business container; the next layer of business container is used as the target container; and then the step of performing alarm partition aggregation on the target container is returned until the topmost business container in the multi-layer business container obtains the alarm statistics and data pointer of the upper layer.
[0022] Optionally, data separation is performed on the scene framework, and then a template framework is obtained based on the multi-layer business container, including:
[0023] Separate business code from logic code, dynamic data from static data, and share code units in the scene framework;
[0024] Based on the processed scenario framework, a multi-layer business container is defined to obtain a template framework.
[0025] Optionally, based on the permission level, the mapping and unlocking of the target interface component is performed in combination with the preset routing rules, including:
[0026] Build routing rules based on the access path and URL structure of the target object;
[0027] Adjust and expand routing rules according to the permission level to obtain definition rules;
[0028] Based on the definition rules, the target interface component of the access path and URL structure mapping is specified in all interface components, and the target interface component is mapped and unlocked.
[0029] On the other hand, an embodiment of the present invention provides a perception scene generation device, including:
[0030] The first module is used to build a nested scenario framework based on multi-layer business containers according to the inclusion relationship of scenarios in the target industry; each layer of business containers is built based on hierarchical space;
[0031] The second module is used to determine the ownership relationship of the multi-layer business containers according to the inclusion relationship, and establish the business logic mapping between the multi-layer business containers based on the ownership relationship;
[0032] The third module is used to separate the data of the scene framework and then obtain the template framework based on the multi-layer business container;
[0033] The fourth module is used to dynamically load interface components based on the template framework and in combination with the routing and status of the target object;
[0034] The fifth module is used to obtain the permission level of the target object, and based on the permission level, the mapping and unlocking of the target interface components are performed in combination with the preset routing rules to generate a target perception scene.
[0035] Optionally, the business logic mapping is constructed based on a layer-by-layer mapping relationship of each layer of business containers from small to large in the multi-layer business containers, and the device further includes:
[0036] The sixth module is used to establish the alarm penetration logic of the target scenario framework based on business logic mapping.
[0037] On the other hand, an embodiment of the present invention provides an electronic device, including: a processor and a memory; the memory is used to store programs; the processor executes the program to implement the above-mentioned perception scene generation method.
[0038] On the other hand, an embodiment of the present invention provides a computer storage medium, which stores a program executable by a processor, and the program executable by the processor is used to implement the above-mentioned perception scene generation method when executed by the processor.
[0039] The embodiment of the present invention builds a nested scene framework based on multi-layer business containers according to the inclusion relationship of scenes in the target industry; each layer of business containers is built based on the hierarchical space; the ownership relationship of the multi-layer business containers is determined according to the inclusion relationship, and the business logic mapping between the multi-layer business containers is established based on the ownership relationship; the scene framework is data separated, and then the template framework is obtained based on the multi-layer business container; based on the template framework, the interface components are dynamically loaded in combination with the routing and status of the target object; the permission level of the target object is obtained, and the mapping and unlocking of the target interface components are performed based on the permission level and the preset routing rules to generate the target perception scene. The embodiment of the present invention extracts the commonality of scenes by induction, abstracts a set of implementation methods and framework templates of scene containers, realizes the de-differentiation and pattern expression of complex IoT scenes, thereby solving the problem of rapid deployment of scenes in the platform and facilitating the copying module to create personalized specific scenes on demand. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] The accompanying drawings are used to provide a further understanding of the technical solution of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the technical solution of the present invention and do not constitute a limitation on the technical solution of the present invention.
[0041] Figure 1 It is a schematic diagram of an implementation environment for generating a perception scene provided by an embodiment of the present invention;
[0042] Figure 2 It is a flowchart of a perception scene generation method provided by an embodiment of the present invention;
[0043] Figure 3 A schematic diagram of the expansion process of the business logic mapping provided by an embodiment of the present invention;
[0044] Figure 4 A schematic diagram of the expansion process of mapping unlocking provided by an embodiment of the present invention;
[0045] Figure 5 A schematic diagram of a hierarchical framework of a scene template provided by an embodiment of the present invention;
[0046] Figure 6 A schematic diagram of the nested relationship of scene templates provided in an embodiment of the present invention;
[0047] Figure 7 An example schematic diagram of a waterlogging scenario provided by an embodiment of the present invention;
[0048] Figure 8 A schematic diagram of the structure of a perception scene generation device provided by an embodiment of the present invention;
[0049] Fig. 9 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention;
[0050] Fig.10 A block diagram of the computer system structure of an electronic device suitable for implementing the embodiment of the present invention is provided for the embodiment of the present invention. DETAILED DESCRIPTION
[0051] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0052] It should be noted that, although the functional modules are divided in the system schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the system or the order in the flowchart. The terms "first / S100", "second / S200", etc. in the specification, claims and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0053] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0054] It is understandable that the perception scene generation method provided in the embodiment of the present invention can be applied to any computer device with data processing and computing capabilities, and this computer device can be various terminals or servers. When the computer device in the embodiment is a server, the server is an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud data blocks, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. Optionally, the terminal is a smart phone, a tablet computer, a laptop computer, a desktop computer, etc., but is not limited to this.
[0055] like Figure 1 FIG. 1 is a schematic diagram of an implementation environment provided by an embodiment of the present invention. Figure 1The implementation environment includes at least one terminal 102 and a server 101. The terminal 102 and the server 101 can be connected to a network wirelessly or wired to complete data transmission and exchange.
[0056] Server 101 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers. It can also be a cloud server that provides basic cloud computing services such as cloud services, cloud data blocks, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), as well as big data and artificial intelligence platforms.
[0057] In addition, the server 101 can also be a node server in the blockchain network. Blockchain is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, and encryption algorithm.
[0058] The terminal 102 may be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, etc., but is not limited thereto. The terminal 102 and the server 101 may be directly or indirectly connected via wired or wireless communication, which is not limited in the embodiment of the present invention.
[0059] Based on the example Figure 1 In the implementation environment shown, an embodiment of the present invention provides a perception scene generation method, which is described below using the perception scene generation method applied in the server 101 as an example. It can be understood that the perception scene generation method can also be applied in the terminal 102.
[0060] Reference Figure 2 , Figure 2 The flowchart of the perception scene generation method applied to the server provided in the embodiment of the present invention, the execution subject of the perception scene generation method can be any of the aforementioned computer devices (including servers or terminals). Figure 2 , the method comprises the following steps:
[0061] S100. According to the inclusion relationship of the scenarios in the target industry, a nested scenario framework is constructed based on multi-layer business containers;
[0062] It should be noted that each layer of business container is built based on the hierarchical space; specifically, container: the container in the embodiment of the present invention refers to an independent hierarchical space; wherein, the inclusion relationship corresponds to scenes, monitoring areas, monitoring sites and devices in descending order; in some embodiments, step S100 may include: pointing each layer of business containers from large to small in the multi-layer business container to scenes, monitoring areas, monitoring sites and devices in turn, to construct a nested target scene framework; wherein, the scene includes at least one monitoring area; a single monitoring area includes at least one monitoring site; a single monitoring site includes at least one device.
[0063] Exemplarily, in some specific embodiments, the construction of the scenario framework: construct a general scenario framework based on multi-layer business containers to achieve de-differentiation and pattern expression of complex scenarios, summarize commonalities, extract general frameworks, and achieve one-to-one correspondence between multi-layer containers and scenario scopes. The scope of each layer of the business framework is different, from large to small, pointing to the scene-monitoring area-monitoring site (also called monitoring station or monitoring point)-equipment, nested layer by layer, the scene contains multiple monitoring areas, a monitoring area contains multiple sites, and a site may have multiple devices. After standardizing the inclusion relationship of each layer, the design of each scene can be made more unified and clear during development, and it is more convenient to configure the logic of the corresponding level.
[0064] S200, determining the attribution relationship of the multi-layer business containers according to the inclusion relationship, and establishing a business logic mapping between the multi-layer business containers based on the attribution relationship;
[0065] It should be noted that in some embodiments, Figure 3 As shown, step S200 may include: S201, determining the attribution relationship of each layer of business containers in the multi-layer business container according to the inclusion relationship; the inclusion relationship corresponds to the scene, monitoring area, monitoring site and equipment from large to small; each layer of business containers from large to small in the multi-layer business container points to the scene, monitoring area, monitoring site and equipment in turn; S202, building a mapping relationship from small to large for two adjacent layers of business containers in the multi-layer business container based on the attribution relationship, and then building a layer-by-layer mapping relationship in the multi-layer business container.
[0066] The business logic mapping is constructed based on the layer-by-layer mapping relationship of each business container in the multi-layer business container from small to large. In some embodiments, the method may further include: establishing an alarm penetration logic of the target scenario framework based on the business logic mapping.
[0067] Among them, in some embodiments, the alarm penetration logic of the target scenario framework is established based on the business logic mapping, including: taking the bottom-level business container in the multi-layer business container as the target container; performing alarm partition aggregation on the target container, and obtaining alarm statistics and data pointers based on the results of the alarm partition aggregation; storing the alarm statistics and data pointers in the next-level business container; taking the next-level business container as the target container; and then returning to the step of performing alarm partition aggregation on the target container until the top-level business container in the multi-layer business container obtains the alarm statistics and data pointers of the upper layer.
[0068] Exemplarily, in some specific embodiments, logical mapping: business logic mapping is built based on the attribution relationship of multi-layer business containers to achieve mapping and penetration display of business status, reflecting the layer-by-layer mapping relationship of alarms / statuses, etc. When an alarm occurs in the underlying sensor data, the information is fed back layer by layer: the corresponding equipment alarm enters the business process; the corresponding monitoring site alarms, and the location is clearly defined; the monitoring area alarms and is displayed on the scene screen. Any problem in the small level is displayed in the previous level, and then summarized and displayed on the scene page, such as: the scene page shows 2 (determined by the alarm statistics), then there are problems in two monitoring areas; the two monitoring areas show 1 and 2 respectively, then there are 1 and 2 monitoring points (also called monitoring stations) in the corresponding area respectively. Check the 3 problematic sites, and you can see which specific alarm devices are there (locate the specific alarm area / equipment through the data pointer). In this way, layer-by-layer penetration is achieved, and different functions and permissions are configured in each level, which is convenient for the large level to manage the small level, issue work orders and issue instructions, and also convenient for locating problems and locations, and contacting relevant personnel to investigate and solve them in time.
[0069] S300, separating data from the scene framework, and then obtaining a template framework based on the multi-layer business container;
[0070] It should be noted that, in some embodiments, step S300 may include: separating business code from logic code, separating dynamic data from static data, and sharing code units in the scene framework; based on the processed scene framework, defining a multi-layer business container to obtain a template framework.
[0071] For example, in some specific embodiments, a template is defined: a multi-layer container is defined as a template, and by copying the template and changing the alias of each module, a specific scene and application module can be created on demand. This part can be implemented using a template engine: by separating business code from logic code, separating dynamic data from static data, and sharing code units, the user interface and related functions can be made more flexible and customizable. According to the scene-monitoring area-monitoring site-equipment-sensor establishment module and framework, a replicable scene container framework can be quickly created.
[0072] S400, based on the template framework, dynamically loads interface components in combination with the routing and status of the target object;
[0073] Exemplarily, in some specific embodiments, generation of the interface: dynamic routing plays the role of a "navigator" in the interface generation process. According to the user's current route and status, the corresponding interface components can be dynamically loaded and displayed, and a flexible and scalable user interface can be created.
[0074] S500, obtaining the permission level of the target object, mapping and unlocking the target interface component based on the permission level and in combination with preset routing rules, and generating a target perception scene.
[0075] It should be noted that in some embodiments, Figure 4 As shown, mapping and unlocking the target interface component based on the permission level and in combination with the preset routing rules may include: S501, building routing rules according to the access path and URL structure of the target object; S502, adjusting and extending the routing rules according to the permission level to obtain definition rules; S503, based on the definition rules, specifying the target interface component for mapping the access path and URL structure in all interface components, and mapping and unlocking the target interface component.
[0076] Exemplarily, in some specific embodiments, menu authority allocation: routing rules are defined based on the user's access path and URL structure, and these rules can be adjusted and expanded according to different user roles, authority levels or business needs. By defining these rules, paths and parameters, we can clearly specify which URL paths map to which interface components or pages. For example, administrators and ordinary users have different hierarchical permissions when drilling down scenes, so the displayed menu options are different. Administrators can see all menu options, while ordinary users can only see some menu options. In the case of clear hierarchical scenes, recursive components can be used to generate menus. According to the scene hierarchy relationship corresponding to the route, it is determined whether each route should display a submenu, and according to the role or permission of the current user, menu options that do not need to be displayed are hidden.
[0077] In order to explain the principle of the technical solution of the present invention in detail, the overall process of the present invention is described below in combination with some specific embodiments. It is easy to understand that the following is an explanation of the technical principle of the present invention and cannot be regarded as a limitation of the present invention.
[0078] First of all, it should be noted that the present invention provides a complete set of scene construction templates by summarizing the commonalities of scenes. It has strong applicability, can be copied and used in various projects, and supports setting aliases to meet personalized scene configuration. Figure 5 and Figure 6As shown in the figure, a five-layer nested framework is constructed: industry-scenario-monitoring area-monitoring site-various devices in the site. Adjacent two-layer containers can be bidirectionally mapped to clearly and quickly locate problems and alarms. In order to implement this technical solution, the following technical points are required:
[0079] 1. Construction of scenario framework: A general scenario framework is constructed based on multi-layer business containers to achieve de-differentiation and pattern expression of complex scenarios, summarize commonalities, extract general frameworks, and achieve one-to-one correspondence between multi-layer containers and scenario scopes. The scope of each layer of the business framework is different, from large to small, pointing to the scene-monitoring area-monitoring site (also called monitoring station or monitoring point)-equipment, nested layer by layer, the scene contains multiple monitoring areas, a monitoring area contains multiple sites, and a site may have multiple devices. After standardizing the inclusion relationship of each layer, the design of each scene can be made more unified and clear during development, and it is more convenient to configure the logic of the corresponding level.
[0080] 2. Logical mapping: Build business logic mapping based on the ownership relationship of multi-layer business containers to achieve mapping and penetration display of business status, reflecting the layer-by-layer mapping relationship of alarms / statuses, etc. When an alarm occurs in the underlying sensor data, the information is fed back layer by layer: the corresponding equipment alarm enters the business process; the corresponding monitoring site alarm is clearly located; the monitoring area alarm is displayed on the scene screen. Any problem in the small level is displayed in the previous level, and then summarized and displayed on the scene page. For example, if 2 is displayed on the scene page, there are problems in two monitoring areas; if 1 and 2 are displayed in the two monitoring areas respectively, there are problems in 1 and 2 monitoring points (also called monitoring stations) in the corresponding areas; by checking the 3 problematic sites, you can see which specific alarm devices are inside. In this way, layer-by-layer penetration is achieved, and different functions and permissions are configured in each level, which is convenient for the large level to manage the small level, issue work orders and issue instructions, and also convenient for locating problems and locations, and contacting relevant personnel for timely investigation and resolution.
[0081] 3. Define templates: Define multi-layer containers as templates. By copying the templates and changing the aliases of each module, you can create specific scenarios and application modules on demand. This part can be implemented using a template engine: by separating business code from logic code, separating dynamic data from static data, and sharing code units, the user interface and related functions can be made more flexible and customizable. Establish modules and frameworks according to the scenario-monitoring area-monitoring site-equipment-sensor to quickly create a replicable scenario container framework.
[0082] 4. Interface generation: Dynamic routing plays the role of "navigator" in the interface generation process. According to the user's current route and status, we can dynamically load and display the corresponding interface components, and create a flexible and scalable user interface.
[0083] 5. Menu permission allocation: Define routing rules based on the user's access path and URL structure. These rules can be adjusted and expanded according to different user roles, permission levels or business needs. By defining these rules, paths and parameters, we can clearly specify which URL paths map to which interface components or pages. For example, administrators and ordinary users have different hierarchical permissions when drilling down scenes, so the displayed menu options are different. Administrators can see all menu options, while ordinary users can only see some menu options. When the scenes are clearly layered, recursive components can be used to generate menus. Based on the scene hierarchy corresponding to the route, determine whether each route should display a submenu, and hide menu options that do not need to be displayed based on the current user's role or permission.
[0084] like Figure 7 As shown in the figure, taking the waterlogging scene as an example, the industry, scene, monitoring area, and monitoring site of the scene template are set with aliases, and scenes can be created quickly. The monitoring area is divided into streets under unified jurisdiction, and the site is narrowed down (such as the flood-prone point in the western section). There are multiple devices in the site, such as water level meter, rain gauge, flow meter, LED screen, camera, etc. One device collects one or more corresponding sensor data.
[0085] In summary, current technologies emphasize the linkage of scenarios, pay attention to coordination with other ministries and commissions, message flow with upper and lower IoT platforms, and response when rules are triggered. Scenario is used as a link in the rule engine, without starting from the creator’s perspective and reflecting the logical nested relationship from an internal and external perspective. The implementation method and framework template of the scene container in the embodiment of the present invention can quickly deploy complex IoT scenarios, and facilitate the copy module to create personalized specific scenarios on demand. At the same time, through the nested multi-layer container mapping relationship, the problem area, monitoring site and equipment can be quickly located, and the rule configuration of the scene level can be standardized, which can be more convenient and time-saving when the various departments carry out scene linkage. Dynamic routing, template engine and other technologies are used to realize rapid creation and replication of scenes and multi-layer mapping, and realize the penetrating display of business process configuration and status / alarm.
[0086] The present invention aims to solve the problem of quickly building diversified scenarios in the platform, adapting to customers' personalized needs for perceived scenarios, and gradually refining large scenarios into specific businesses. By summarizing and extracting the commonalities of the scenarios, a set of implementation methods and framework templates for scene containers are abstracted to achieve dedifferentiation and patterned expression of complex IoT scenarios, thereby solving the problem of rapid deployment of scenarios in the platform and facilitating the copying of modules to create personalized specific scenarios on demand. The embodiment of the present invention clearly displays the two-way penetration of alarm reporting and status alarms through nested multi-layer container mapping relationships, so as to quickly locate problem areas, monitoring sites and equipment. Standardizing the configuration of scene-level rules can be more convenient and time-saving when departments are linked to scenes, and can be clearer when displaying scenes.
[0087] Compared with the prior art, the present invention has at least the following beneficial effects:
[0088] 1. Extract commonalities and quickly create templates: The system extracts common problems in practice, builds scene containers at each layer, and achieves dedifferentiation and pattern expression of complex IoT scenes. The scope boundary of each layer is clarified, and the framework can be flexibly defined, templates can be created, and aliases can be changed by copying modules to form the required scenes.
[0089] 2. Logical mapping and layer-by-layer penetration: Adopt nested multi-layer container mapping to achieve five-layer penetration of scene-monitoring area-monitoring site-equipment-sensor, and analyze the hierarchical relationship from large scenes to specific terminals, data and services. Build a business logic hierarchy, display two-way layer-by-layer mapping of alarm and status information, and facilitate the configuration of business processes and rules at specific levels and the location of scene and equipment problems.
[0090] 3. Convenient configuration and deployment: Standardized scenario-level rule configuration enables rapid deployment, maintenance and linkage of complex IoT scenarios. According to the hierarchical configuration of scenario-monitoring area-monitoring site-equipment-sensor, the same level has commonality, and the level can be referenced for docking when connecting businesses between different platforms, which also facilitates the construction of the database.
[0091] On the other hand, Figure 8 As shown, an embodiment of the present invention provides a perception scene generation device 800, including: a first module 810, which is used to construct a nested scene framework based on multi-layer business containers according to the inclusion relationship of scenes in the target industry; each layer of business containers is built based on a hierarchical space; a second module 820, which is used to determine the ownership relationship of the multi-layer business containers according to the inclusion relationship, and establish a business logic mapping between the multi-layer business containers based on the ownership relationship; a third module 830, which is used to separate the data of the scene framework, and then obtain a template framework based on the multi-layer business container; a fourth module 840, which is used to dynamically load interface components based on the template framework in combination with the routing and status of the target object; a fifth module 850, which is used to obtain the authority level of the target object, and based on the authority level, perform mapping and unlocking of the target interface components in combination with preset routing rules to generate a target perception scene.
[0092] In some embodiments, the business logic mapping is constructed based on a layer-by-layer mapping relationship from small to large for each layer of business containers in a multi-layer business container. The device may also include: a sixth module for establishing an alarm penetration logic for a target scenario framework based on the business logic mapping.
[0093] The contents of the method embodiments of the present invention are all applicable to the device embodiments. The functions specifically implemented by the device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0094] On the other hand, Fig. 9 As shown, an embodiment of the present invention further provides an electronic device 900, which includes at least one processor 910 and at least one memory 920 for storing at least one program; taking one processor 910 and one memory 920 as an example.
[0095] The processor 910 and the memory 920 may be connected via a bus or in other ways.
[0096] The memory 920, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory 920 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory 920 may optionally include a memory remotely arranged relative to the processor, and these remote memories may be connected to the device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0097] The electronic device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0098] Specifically, Fig.10 The structure block diagram of a computer system of an electronic device for implementing an embodiment of the present invention is schematically shown.
[0099] It should be noted that Fig.10 The computer system 1000 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0100] like Fig.10As shown, the computer system 1000 includes a central processing unit 1001 (CPU), which can perform various appropriate actions and processes according to the program stored in the read-only memory 1002 (ROM) or the program loaded from the storage part 1008 to the random access memory 1003 (RAM). Various programs and data required for system operation are also stored in the random access memory 1003. The central processing unit 1001, the read-only memory 1002 and the random access memory 1003 are connected to each other through a bus 1004. The input / output interface 1005 (Input / Output interface, i.e., I / O interface) is also connected to the bus 1004.
[0101] The following components are connected to the input / output interface 1005: an input section 1006 including a keyboard, a mouse, etc.; an output section 1007 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1008 including a hard disk, etc.; and a communication section 1009 including a network interface card such as a LAN card, a modem, etc. The communication section 1009 performs communication processing via a network such as the Internet. A drive 1010 is also connected to the input / output interface 1005 as needed. A removable medium 1011, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1010 as needed so that a computer program read therefrom is installed into the storage section 1008 as needed.
[0102] In particular, according to an embodiment of the present invention, the processes described in the various method flow charts can be implemented as computer software programs. For example, an embodiment of the present invention includes a computer program product, which includes a computer program carried on a computer readable medium, and the computer program contains program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication part 1009, and / or installed from a removable medium 1011. When the computer program is executed by the central processor 1001, various functions defined in the system of the present invention are executed.
[0103] It should be noted that the computer-readable medium shown in the embodiment of the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer readable signal media may also be any computer readable medium other than computer readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0104] Another aspect of an embodiment of the present invention further provides a computer-readable storage medium, wherein the storage medium stores a program, and the program is executed by a processor to implement the above method.
[0105] The contents of the method embodiments of the present invention are all applicable to the computer-readable storage medium embodiments. The functions specifically implemented by the computer-readable storage medium embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0106] The embodiment of the present invention also discloses a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device can read the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the above method.
[0107] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0108] It should be noted that, although several modules of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to an embodiment of the present invention, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.
[0109] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present invention can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the implementation of the present invention.
[0110] In some selectable embodiments, the function / operation mentioned in the block diagram may not occur in the order mentioned in the operation diagram. For example, depending on the function / operation involved, the two boxes shown in succession can actually be executed substantially simultaneously or the boxes can sometimes be executed in reverse order. In addition, the embodiment presented and described in the flow chart of the present invention is provided by way of example, for the purpose of providing a more comprehensive understanding of technology. The disclosed method is not limited to the operation and logic flow presented herein. Selectable embodiments are expected, wherein the order of various operations is changed and the sub-operation of a part for which is described as a larger operation is performed independently.
[0111] In addition, although the present invention is described in the context of functional modules, it should be understood that, unless otherwise specified, one or more of the functions and / or features can be integrated into a single physical device and / or software module, or one or more functions and / or features can be implemented in a separate physical device or software module. It is also understood that a detailed discussion of the actual implementation of each module is unnecessary for understanding the present invention. More specifically, in view of the properties, functions and internal relationships of the various functional modules in the device disclosed herein, the actual implementation of the module will be understood within the conventional skills of the engineer. Therefore, those skilled in the art can implement the present invention set forth in the claims without excessive experimentation using ordinary techniques. It is also understood that the specific concepts disclosed are merely illustrative and are not intended to limit the scope of the present invention, which is determined by the full scope of the appended claims and their equivalents.
[0112] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0113] The logic and / or steps represented in the flowchart or otherwise described herein, for example, may be considered as an ordered list of executable instructions for implementing logical functions, and may be embodied in any computer-readable medium for use by an instruction execution device, apparatus or device (such as a computer-based device, a device including a processor, or other device that can fetch instructions from an instruction execution device, apparatus or device and execute the instructions), or in conjunction with such instruction execution device, apparatus or device. For purposes of this specification, "computer-readable medium" may be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution device, apparatus or device, or in conjunction with such instruction execution device, apparatus or device.
[0114] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or processing in another suitable manner as necessary, and then stored in a computer memory.
[0115] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution device. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0116] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.
[0117] Although the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the claims and their equivalents.
[0118] The above is a specific description of the preferred implementation of the present invention, but the present invention is not limited to the embodiments. Those skilled in the art can make various equivalent modifications or substitutions without violating the spirit of the present invention. These equivalent modifications or substitutions are all included in the scope defined by the claims of the present invention.
Claims
1. A perception scene generation method, characterized in that: include: According to the inclusion relationship of the scenarios in the target industry, a nested scenario framework is constructed based on multi-layer business containers; each layer of the business container is built based on a hierarchical space; The inclusion relationship corresponds to scenes, monitoring areas, monitoring sites and equipment in descending order; the nested scene framework is constructed based on multi-layer business containers according to the inclusion relationship of scenes in the target industry, including: Pointing each layer of the business containers in the multiple layers from large to small to the scene, the monitoring area, the monitoring site and the device in turn, to construct a nested target scene framework; Wherein, the scene includes at least one monitoring area; a single monitoring area includes at least one monitoring site; a single monitoring site includes at least one device; Determine the attribution relationship of the multiple layers of the business containers according to the inclusion relationship, and establish the business logic mapping between the multiple layers of the business containers based on the attribution relationship; The determining the attribution relationship of the multiple layers of the business containers according to the inclusion relationship, and establishing the business logic mapping between the multiple layers of the business containers based on the attribution relationship, includes: Determine the attribution relationship of the business containers in each layer of the multi-layer business containers according to the inclusion relationship; the inclusion relationship corresponds to the scene, the monitoring area, the monitoring site and the device in descending order; the business containers in each layer of the multi-layer business containers in descending order point to the scene, the monitoring area, the monitoring site and the device in turn; Based on the attribution relationship, two adjacent layers of the business containers in the multi-layer business containers establish a mapping relationship from small to large, and then establish a layer-by-layer mapping relationship in the multi-layer business containers; Separating data from the scene framework, and then obtaining a template framework based on multiple layers of the business container; Based on the template framework, combined with the routing and status of the target object, the interface components are dynamically loaded; The permission level of the target object is obtained, and based on the permission level and in combination with preset routing rules, the mapping and unlocking of the target interface component is performed to generate a target perception scene.
2. The perception scene generation method according to claim 1, characterized in that: The business logic mapping is constructed based on the layer-by-layer mapping relationship of each layer of business containers from small to large in the multiple layers of business containers; the method also includes: The alarm penetration logic of the target scenario framework is established based on the business logic mapping.
3. The perception scene generation method according to claim 2, characterized in that: The alarm penetration logic of establishing the target scenario framework based on the business logic mapping includes: Taking the bottommost service container among the multiple service containers as the target container; Performing alarm partition aggregation on the target container, and obtaining alarm statistics and data pointers based on the alarm partition aggregation results; The alarm statistics and the data pointer are stored in the business container of the next layer; the business container of the next layer is used as the target container; and then the step of partitioning and aggregating the alarms for the target container is returned to, until the topmost business container among the multiple layers of business containers obtains the alarm statistics and the data pointer of the upper layer.
4. The perception scene generation method according to claim 1, characterized in that: The step of separating data from the scene framework and obtaining a template framework based on multiple layers of the business container includes: Separating business code from logic code, separating dynamic data from static data, and sharing code units in the scenario framework; Based on the processed scenario framework, multiple layers of the business container are defined to obtain a template framework.
5. The perception scene generation method according to claim 3, characterized in that: The mapping and unlocking of the target interface component based on the permission level and in combination with the preset routing rules includes: A routing rule is obtained according to the access path and URL structure of the target object; Adjusting and expanding the routing rules according to the authority level to obtain definition rules; Based on the definition rule, the target interface component mapped with the access path and the URL structure is specified in all the interface components, and the mapping and unlocking of the target interface component is performed.
6. A perception scene generation device, characterized in that: include: The first module is used to build a nested scenario framework based on multi-layer business containers according to the inclusion relationship of scenarios in the target industry; each layer of the business container is built based on a hierarchical space; The inclusion relationship corresponds to scenes, monitoring areas, monitoring sites and equipment in descending order; the nested scene framework is constructed based on multi-layer business containers according to the inclusion relationship of scenes in the target industry, including: Pointing each layer of the business containers in the multiple layers from large to small to the scene, the monitoring area, the monitoring site and the device in turn, to construct a nested target scene framework; Wherein, the scene includes at least one monitoring area; a single monitoring area includes at least one monitoring site; a single monitoring site includes at least one device; A second module is used to determine the attribution relationship of the multiple layers of the business containers according to the inclusion relationship, and establish a business logic mapping between the multiple layers of the business containers based on the attribution relationship; The determining the attribution relationship of the multiple layers of the business containers according to the inclusion relationship, and establishing the business logic mapping between the multiple layers of the business containers based on the attribution relationship, includes: Determine the attribution relationship of the business containers in each layer of the multi-layer business containers according to the inclusion relationship; the inclusion relationship corresponds to the scene, the monitoring area, the monitoring site and the device in descending order; the business containers in each layer of the multi-layer business containers in descending order point to the scene, the monitoring area, the monitoring site and the device in turn; Based on the attribution relationship, two adjacent layers of the business containers in the multi-layer business containers establish a mapping relationship from small to large, and then establish a layer-by-layer mapping relationship in the multi-layer business containers; The third module is used to separate the data of the scene framework, and then obtain the template framework based on the multiple layers of the business container; The fourth module is used to dynamically load the interface component based on the template framework in combination with the route and state of the target object; The fifth module is used to obtain the permission level of the target object, and based on the permission level, perform mapping and unlocking of the target interface component in combination with preset routing rules to generate a target perception scene.
7. An electronic device, characterized in that: including a processor and a memory; The memory is used to store programs; The processor executes the program to implement the method according to any one of claims 1 to 5.
8. A computer storage medium storing a program executable by a processor, characterized in that: The program executable by the processor is used to implement the method according to any one of claims 1 to 5 when executed by the processor.
