Scene interaction method and device, electronic device and storage medium
By deploying scenarios with input and output interfaces in the server to process and collaborate the data flows of heterogeneous devices and systems, the problem of real-time and debugging difficulty of the system platform is solved, and efficient digital management and data flow organization are achieved.
Patent Information
- Application Number
- CN202111020597.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-01
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2041-09-01
AI Technical Summary
In application scenarios with multiple heterogeneous devices and systems, the system platform has high real-time requirements and is difficult to build and debug. It is difficult for existing technology to effectively process and coordinate the data flows of heterogeneous devices and systems.
A scene interaction technology is proposed. By deploying scenes in the server, each scene has an input interface and an output interface, performs corresponding processing according to the category of the input information, and outputs the processing results through the output interface, realizing the organization and management of data flow, and supporting Association between scenes and command delivery.
It achieves efficient digital management and data flow organization, reduces the difficulty of system platform construction and debugging, and improves the collaborative processing capabilities of heterogeneous devices and systems.
Smart Images

Figure CN113741910B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a scene interaction method and device, an electronic device, and a storage medium. Background Art
[0002] With the development of technologies such as cloud computing, the Internet of Things, 5G, and artificial intelligence, people are gradually able to recognize, control, and collaborate on various application scenarios in a fully digital, collaborative, and intelligent way, making the processing of various application scenarios more active, efficient, and meticulous. These application scenarios may include overall application scenarios such as urban operations and urban governance, as well as application scenarios in sub-sectors such as smart transportation, smart communities, smart fire protection, smart medical care, and education.
[0003] However, there are usually numerous heterogeneous devices / systems in application scenarios. Various intelligent hardware, sensor data, and structured information in different scenarios need to be connected to the system platform (such as the Internet of Things platform, digital twin platform, etc.) and processed. The system platform needs to achieve the coordination of many heterogeneous devices / systems, and has high real-time requirements. The construction and debugging of the system platform are relatively difficult. Summary of the invention
[0004] The present disclosure proposes a scene interaction technology solution.
[0005] According to one aspect of the present disclosure, a scene interaction method is provided, which is applied to a server, wherein at least one service process is running in the server, each service process is deployed with at least one scene, and each scene includes an input interface and an output interface, and the method includes:
[0006] When the input interface of the first scenario receives input information, corresponding processing is performed on the input information according to the category of the input information to obtain a processing result; wherein the first scenario is any one of the scenarios deployed in the service process, and the input information includes at least one of the access information of the terminal, the device status information of the terminal, the external data information, the first event information, and the first alarm information; when the processing result includes output information, the output information is output through the output interface of the first scenario.
[0007] In a possible implementation, the input information is processed accordingly based on its category to obtain a processing result, including: when the input information includes access information of the terminal, the configuration information of the terminal is confirmed to obtain a configuration confirmation result, the configuration information includes at least one of the device identification of the terminal, geographic location information, basic device information, alarm category, real-time requirement information, and collection interval information, and the processing result includes the configuration confirmation result.
[0008] In a possible implementation, the input information is processed accordingly based on its category to obtain a processing result, including: when the input information includes device status information of the terminal, judging whether the terminal is in an abnormal state based on the device status information; when the terminal is in an abnormal state, generating second alarm information, and the processing result includes the second alarm information; outputting the second alarm information in the first scene through the output device of the first scene; wherein, when the processing result includes output information, outputting the output information through the output interface of the first scene, including: outputting the second alarm information through the output interface of the first scene based on scene organization information of the first scene, and the scene organization information indicates the association relationship between the first scene and other scenes.
[0009] In a possible implementation, the input information is processed accordingly based on its category to obtain a processing result, including: when the input information includes external data information, the data information is processed based on the data information and scene configuration information of the first scene to obtain second event information corresponding to the data information, and the processing result includes the second event information; the second event information is output in the first scene through an output device of the first scene; wherein, when the processing result includes output information, the output information is output through an output interface of the first scene, including: according to scene organization information of the first scene, the second event information is output through the output interface of the first scene, and the scene organization information indicates an association relationship between the first scene and the second scene.
[0010] In a possible implementation, the input information is processed accordingly based on its category to obtain a processing result, including: when the input information includes the first event information and / or the first alarm information, an output mode of the first event information and / or the first alarm information is determined based on scene configuration information and scene organization information of the first scene, and the output mode includes scene internal output or scene external output; wherein, when the processing result includes output information, the output information is output through an output interface of the first scene, including: when the output mode is scene external output, the first event information and / or the first alarm information is output through the output interface of the first scene.
[0011] In one possible implementation, the first scenario also includes a command input interface and a command output interface, and the method also includes: in a case where the command input interface of the first scenario receives command information, determining whether the command information is command information for the first scenario based on scenario configuration information of the first scenario; and in a case where the command information is command information for the first scenario, sending the command information to a terminal associated with the first scenario so that the terminal executes the command information.
[0012] In one possible implementation, the method further includes: when the command input interface of the first scene receives command information, determining whether the command information meets the forwarding condition based on the scene organization information of the first scene; and when the command information meets the forwarding condition, outputting the command information through the command output interface of the first scene.
[0013] In one possible implementation, the method further includes: in response to a scene creation operation, assigning a scene identifier to a first scene to be created; in response to a configuration operation on the first scene, determining scene configuration information of the first scene, the scene configuration information including device organization information and scene basic information of the first scene; in response to an association operation between the first scene and the second scene, determining scene organization information of the first scene, the scene organization information indicating an association relationship between the first scene and the second scene; deploying the first scene to a preset service process; wherein the device organization information includes at least one of a device type of a terminal corresponding to the first scene, commands receivable by the device, device functions, and interface parameters of the device; and the scene basic information includes at least one of an input interface, an output interface, a scene identifier, a scene type, a scene name, and scene function information of the first scene.
[0014] According to one aspect of the present disclosure, a scene interaction device is provided, which is applied to a server, wherein at least one service process is running in the server, each service process is deployed with at least one scene, each scene includes an input interface and an output interface, and the device includes:
[0015] an information processing module, configured to, when an input interface of a first scenario receives input information, perform corresponding processing on the input information according to the category of the input information to obtain a processing result; wherein the first scenario is any scenario deployed in the service process, and the input information includes at least one of terminal access information, terminal device status information, external data information, first event information, and first alarm information;
[0016] An information output module is used to output the output information through the output interface of the first scene when the processing result includes the output information.
[0017] In one possible implementation, the information processing module is used to: when the input information includes the access information of the terminal, confirm the configuration information of the terminal to obtain a configuration confirmation result, the configuration information including the device identification of the terminal, geographic location information, basic device information, alarm category, real-time requirement information, and at least one of collection interval information, and the processing result includes the configuration confirmation result.
[0018] In a possible implementation, the information processing module is used to: when the input information includes device status information of the terminal, determine whether the terminal is in an abnormal state according to the device status information; when the terminal is in an abnormal state, generate second alarm information, and the processing result includes the second alarm information; output the second alarm information in the first scene through the output device of the first scene;
[0019] The information output module is used to output the second alarm information through the output interface of the first scene according to the scene organization information of the first scene, and the scene organization information indicates the association relationship between the first scene and other scenes.
[0020] In one possible implementation, the information processing module is used to: when the input information includes external data information, process the data information according to the data information and scene configuration information of the first scene to obtain second event information corresponding to the data information, and the processing result includes the second event information; output the second event information in the first scene through an output device of the first scene; wherein the information output module is used to: output the second event information through an output interface of the first scene according to scene organization information of the first scene, and the scene organization information indicates the association relationship between the first scene and the second scene.
[0021] In one possible implementation, the information output module is used to: when the input information includes the first event information and / or the first alarm information, determine the output mode of the first event information and / or the first alarm information according to the scene configuration information and scene organization information of the first scene, and the output mode includes scene internal output or scene external output; wherein the information output module is used to: when the output mode is scene external output, output the first event information and / or the first alarm information through the output interface of the first scene.
[0022] In a possible implementation, the first scenario also includes a command input interface and a command output interface, and the device also includes: a command information determination module, which is used to determine whether the command information is command information for the first scenario based on the scenario configuration information of the first scenario when the command information is received by the command input interface of the first scenario; and a command execution module, which is used to send the command information to a terminal associated with the first scenario when the command information is command information for the first scenario, so that the terminal executes the command information.
[0023] In one possible implementation, the device also includes: a condition determination module, which is used to determine whether the command information meets the forwarding condition based on the scene organization information of the first scene when the command information is received at the command input interface of the first scene; and a command output module, which is used to output the command information through the command output interface of the first scene when the command information meets the forwarding condition.
[0024] In one possible implementation, the device also includes: a scene identifier allocation module, which is used to allocate a scene identifier for a first scene to be created in response to a scene creation operation; a scene configuration module, which is used to determine the scene configuration information of the first scene in response to a configuration operation on the first scene, and the scene configuration information includes device organization information and scene basic information of the first scene; a scene organization module, which is used to determine the scene organization information of the first scene in response to an association operation between the first scene and the second scene, and the scene organization information indicates the association relationship between the first scene and the second scene; a scene deployment module, which is used to deploy the first scene to a preset service process; wherein the device organization information includes at least one of the device type of the terminal corresponding to the first scene, the commands receivable by the device, the device functions, and the interface parameters of the device; the scene basic information includes at least one of the input interface, output interface, scene identifier, scene type, scene name, and scene function information of the first scene.
[0025] According to one aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to call the instructions stored in the memory to execute the above method.
[0026] According to one aspect of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored, and the computer program instructions implement the above method when executed by a processor.
[0027] In an embodiment of the present disclosure, a scene is deployed in the service process, and the scene includes an input interface and an output interface. The scene can receive input information through the input interface, perform corresponding processing according to the category of the input information, and obtain a processing result; when the processing result includes output information, it is output through the output interface, so that the data flow flows according to the organizational form defined by the scene, thereby realizing efficient digital management.
[0028] It should be understood that the above general description and the following detailed description are exemplary and explanatory only and do not limit the present disclosure. Other features and aspects of the present disclosure will become clear from the following detailed description of exemplary embodiments with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present disclosure and are used to illustrate the technical solutions of the present disclosure together with the specification.
[0030] Figure 1 A flow chart of a scene interaction method according to an embodiment of the present disclosure is shown.
[0031] Figure 2 A schematic diagram showing a scene interaction process according to an embodiment of the present disclosure.
[0032] Figure 3 A block diagram of a scene interaction device according to an embodiment of the present disclosure is shown.
[0033] Figure 4 A block diagram of an electronic device according to an embodiment of the present disclosure is shown.
[0034] Figure 5 A block diagram of an electronic device according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0035] Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. The same reference numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise specified.
[0036] The word “exemplary” is used exclusively herein to mean “serving as an example, example, or illustration.” Any embodiment described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments.
[0037] The term "and / or" herein is only a description of the association relationship of the associated objects, indicating that there may be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the term "at least one" herein represents any combination of at least two of any one or more of a plurality of. For example, including at least one of A, B, and C can represent including any one or more elements selected from the set consisting of A, B, and C.
[0038] In addition, in order to better illustrate the present disclosure, numerous specific details are given in the following specific embodiments. It should be understood by those skilled in the art that the present disclosure can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the subject matter of the present disclosure.
[0039] Among the related technologies, digital twin technology can be used to digitally manage application scenarios. For example, digital twin technology can be used in smart city construction to support the high-quality development of real cities through pre-construction, pre-judgment, and prevention of digital cities. Digital twin cities based on digital twin technology add urban information model mapping to the traditional smart city construction platforms such as the Internet of Things platform, big data platform, and AI technology empowerment and application support platform, which can realize accurate and real-time cognition, control, and coordination of macroscopic multi-heterogeneous systems. Among them, the focus of digital twin construction is on the coordination of numerous heterogeneous devices / systems, and the construction and debugging of the system platform is relatively difficult.
[0040] According to the scene interaction method of the embodiment of the present disclosure, the overall application scene can be divided into multiple scenes, and the multiple scenes are cross-stereoscopically combined into the overall application scene. In the same space, there can be multiple scenes for different types of people, things, etc. The digital twin corresponding to each scene has its own configuration information and scene data. These configuration information serve as the organizational information of the digital twin, corresponding each smart device, sensor and scene. A simple scene can be composed of several sensors, devices or products; a larger and more complex scene can be composed of multiple simple scenes. After the definition of the scene is completed, the data reporting and commands in the scene are transmitted according to the interface, and the data flow flows according to the organizational form defined by the scene. The digital twin of the scene can be indexed according to the scene identifier SID, and then displayed, control commands are sent, etc., so as to achieve efficient digital management.
[0041] Figure 1 A flow chart of a scene interaction method according to an embodiment of the present disclosure is shown. The method can be applied to a server, such as a cloud server, etc. At least one service process is running in the server, and at least one scene is deployed in each service process, and each scene includes an input interface and an output interface.
[0042] like Figure 1 As shown, the scene interaction method includes:
[0043] In step S11, when the input interface of the first scene receives input information, corresponding processing is performed on the input information according to the category of the input information to obtain a processing result;
[0044] The first scenario is any scenario deployed in the service process, and the input information includes at least one of terminal access information, terminal device status information, external data information, first event information, and first alarm information;
[0045] In step S12, when the processing result includes output information, the output information is output through the output interface of the first scene.
[0046] For example, at least one service process may be running in the server, and the service process may be, for example, a digital twin service process, which is used to run a digital scene corresponding to a real scene to realize the digitization of the real scene. It should be understood that the service process may also be other types of service processes, and the present disclosure does not limit this.
[0047] In one possible implementation, at least one scene is deployed in the service process, including a digital scene (also referred to as a virtual scene) corresponding to a real scene, for example, a smart elevator scene and a door building security scene corresponding to a real elevator scene.
[0048] In one possible implementation, multiple scenarios can be defined for the overall application scenarios managed by the server to achieve automatic information flow with various sensors and devices in the actual physical space, and realize the goals of state perception, real-time collection, and precise execution.
[0049] Among them, the physical devices (terminals) corresponding to each scene in the digital twin service process, their data upload control, command issuance control, etc., are all mapped through multiple layers of scenes and encapsulated layer by layer within the scenes. The upper layer is simplified, easy to display and understand, and the lower layer has more details and is easy to check problems, so as to achieve efficient digital management.
[0050] In a possible implementation, when a user creates a new scene, the system may uniquely assign a scene identifier SID (resource identifier) to the scene.
[0051] In one possible implementation, the user can configure the scene and determine the scene configuration information of the scene. The scene configuration information includes device organization information and scene basic information. The device organization information includes the device type of the terminal corresponding to the scene, the commands that the device can receive, the device function, the interface parameters of the device, etc. For example, in the smart elevator scene, it includes terminals such as elevators, cameras, and voice acquisition devices; the device function of the elevator is to transport people and / or objects, and the commands that can be received include opening the elevator door, closing the elevator door, going to the set floor, etc.; the system is accessed through a wired / wireless connection.
[0052] In a possible implementation, the basic scene information includes the scene's input interface, output interface, scene identifier, scene type, scene name, scene function information, etc. The scene identifier is the SID assigned by the system to the scene; the scene name is, for example, the smart elevator scene, door and building safety scene; the scene type is, for example, door and building management, community / region management, etc.; the scene function information is the function implemented by the scene, such as face recognition, etc.
[0053] In one possible implementation, the input interface is used to indicate the source of information that can be received by the scene (such as the source address), the receiving method, the receiving parameters, etc., so that the scene can receive information through the input interface, such as the access information of the terminal, the device status information of the terminal, the external data information, the events / alarms sent by other scenes, etc.
[0054] In one possible implementation, the input interface is used to indicate the destinations (e.g., destination addresses), sending methods, and sending parameters to which the scenario can send information, so that the scenario can send information through the output interface, such as events / alarms generated by the scenario, generated processing results, forwarded events / alarms, etc.
[0055] The present disclosure does not restrict the content of device organization information and scene basic information, the types and limitation methods of input interfaces and output interfaces, etc.
[0056] In a possible implementation, the user can associate the scene with other scenes. For example, if smart elevator scenes A11 and A12 are created previously, corresponding to two elevators in a building, the building management scene A1 of the building can be associated with smart elevator scenes A11 and A12 as the upper scene of smart elevator scenes A11 and A12. Afterwards, the regional management scene A can be created, and the regional management scene A can be associated with the building management scene A1 as the upper scene of the building management scene A1.
[0057] In a possible implementation, after association, the scene organization information of the scene can be obtained, which is used to indicate the association relationship between the scene and other scenes, that is, the relationship information between the upper and lower layers of the scene, including the lower layer scene (or downstream scene), the upper layer scene (or upstream scene), etc. Among them, the upper layer scene can be associated with multiple lower layer scenes, and each scene is indexed by the scene identifier SID.
[0058] In a possible implementation, the scene configuration information (including device organization information and scene basic information), scene organization information and other definition information may be stored in a configuration database of the server, and the present disclosure does not impose any restrictions on this.
[0059] After the scene is created, it can be deployed to the service process for execution. Each service process can run one scene or multiple scenes of a certain type. The present disclosure does not limit the number of scenes in the service process and the deployment method.
[0060] For any scene deployed in any service process (which may be referred to as a first scene), interaction with other devices / scenes may be performed through the input interface and output interface of the first scene.
[0061] In step S11, when the input interface of the first scene receives input information, the input information is processed accordingly according to the category of the input information to obtain a processing result. The input information includes at least one of the access information of the terminal, the device status information of the terminal, the external data information, the first event information, and the first alarm information. In step S12, when the processing result includes output information, the output is output information through the output interface of the first scene, that is, the output information is output to an external device or other scene.
[0062] In a possible implementation, the input information includes the access information of the terminal. Among them, various sensors, devices and other terminals in the actual physical space can be connected to the platform according to the connection requirements of the platform (such as the Internet of Things platform, applied to the cloud server). The platform obtains the device identifier DID, geographic location information, basic device information, etc.
[0063] In a possible implementation, the first scenario can detect whether a new physical device (terminal) corresponding to the first scenario is connected through the input interface. If a new terminal is connected, the access information of the terminal will be received through the input interface. In this case, the first scenario can handshake and confirm the configuration information of the terminal, such as the device identifier DID of the terminal, geographic location information, basic device information, alarm category, real-time requirement information, collection interval information, etc., one by one, to obtain the configuration confirmation result, so as to interact with the terminal in subsequent processing.
[0064] In a possible implementation, the input information includes device status information of the terminal. For a connected terminal, the first scenario can obtain the device status information of the terminal through the input interface. According to the device status information, it is determined whether the terminal is in an abnormal state, for example, whether the device temperature is within a normal range, whether the camera is capturing images normally, etc. If the terminal is in an abnormal state, a corresponding alarm information can be generated.
[0065] In one possible implementation, the first scene can complete the output at this layer in a predefined output format through an output device corresponding to the first scene (such as a display device, a database, etc.), such as outputting alarm information to a display interface of a display device, writing it into a database for storage, etc.
[0066] In a possible implementation, if the alarm information needs to be output to an external device or other scenes, the first scene can transmit the alarm information to the external device or upper-level scene through the output interface in step S12 according to a predefined output format.
[0067] In a possible implementation, the input information includes external data information, such as data collected by the terminal (such as images collected by a camera, voice collected by a microphone), data input by an Internet of Things platform, data input by humans, data input by other scenarios, etc. When the first scenario receives external data information through the input interface, the data information can be processed according to the scenario configuration information of the first scenario to obtain second event information corresponding to the data information.
[0068] For example, in the access control scene, the scene function included in the scene configuration information is to perform face recognition and determine whether to open the access control based on the recognition result. When the first scene receives the face image captured by the camera through the input interface, it can perform face recognition on the face image and automatically match the person information; if the person information in the face database is matched, it can be determined that the corresponding second event information is a normal person and is allowed to enter.
[0069] In this case, on the one hand, the output can be completed at this level through the output device corresponding to the access control scene, such as controlling the opening of the access control, saving the historical record of the person's entry in the database, and displaying the entry of the person on the display interface of the access control device; on the other hand, in step S12, the second event information can be output through the output interface of the access control scene according to the scene organization information of the access control scene, for example, the second event information can be sent to the associated upper-level scene (such as the attendance management scene, the building management scene, etc.) through the output interface.
[0070] In a possible implementation, the input information includes first event information and / or first alarm information, such as event information and / or alarm information of the terminal, event information and / or alarm information of other scenes (which may be referred to as second scenes), etc. When the first scene receives the first event information and / or the first alarm information through the input interface, the output mode of the first event information and / or the first alarm information may be determined according to the scene configuration information and scene organization information of the first scene, including scene internal output (output completed at this layer) or scene external output (output to other scenes).
[0071] In one possible implementation, if the output method is scene internal output, it is directly output to the display interface of the display device, written into the database for storage, etc.; if the output method is scene external output, then in step S12, it is output to the associated upper-level scene through the output interface of the first scene.
[0072] In a possible implementation, the first scenario may also process the first event information and / or the first alarm information before outputting it, and the present disclosure does not impose any limitation on this.
[0073] According to an embodiment of the present disclosure, a scene is deployed in a service process, and the scene includes an input interface and an output interface. The scene can receive input information through the input interface, perform corresponding processing according to the category of the input information, and obtain a processing result; when the processing result includes output information, it is output through the output interface, so that the data flow flows according to the organizational form defined by the scene, thereby realizing efficient digital management.
[0074] The scene interaction method according to the embodiment of the present disclosure is described in detail below.
[0075] As mentioned above, the overall application scenario can be divided into multiple scenarios to achieve automatic information flow with various sensors and devices in the actual physical space. Before executing steps S11-S12, each scenario can be created.
[0076] In a possible implementation, the scene interaction method according to an embodiment of the present disclosure may further include:
[0077] In response to the scene creation operation, assigning a scene identifier to a first scene to be created;
[0078] In response to a configuration operation on the first scene, determining scene configuration information of the first scene, the scene configuration information including device organization information and scene basic information of the first scene;
[0079] In response to an association operation between the first scene and the second scene, determining scene organization information of the first scene, the scene organization information indicating an association relationship between the first scene and the second scene;
[0080] Deploy the first scenario to a preset service process;
[0081] Among them, the device organization information includes at least one of the device type of the terminal corresponding to the first scene, the commands receivable by the device, the device functions, and the interface parameters of the device; the scene basic information includes at least one of the input interface, output interface, scene identifier, scene type, scene name, and scene function information of the first scene.
[0082] For example, a scene creation function may be provided in the server, and users (such as developers and maintenance personnel of the digital twin service process) may log in to the server through the client to create scenes.
[0083] In a possible implementation, when the user wants to create a new scene, he can perform a scene creation operation, such as clicking a corresponding scene creation control. In response to the scene creation operation, the server can uniquely assign a scene identifier SID to the scene to be created (referred to as the first scene).
[0084] In one possible implementation, the user can perform configuration operations on the first scene, such as selecting a terminal corresponding to the first scene, setting interface parameters between the terminal, setting commands that the terminal can receive, setting data acquisition parameters of the terminal, etc., to configure the device organization information; and, for example, setting the scene name, scene type, input interface and output interface parameters, etc., to configure the basic information of the scene.
[0085] In a possible implementation, the server may determine the scene configuration information of the first scene in response to the configuration operation of the user, including device organization information and scene basic information, the device organization information including at least one of the device type of the terminal corresponding to the first scene, the command receivable by the device, the device function, and the interface parameter of the device; the scene basic information includes at least one of the input interface, output interface, scene identifier, scene type, scene name, and scene function information of the first scene. The present disclosure is not limited to this.
[0086] In a possible implementation, the user can associate the first scene with other scenes (referred to as the second scene). For example, if smart elevator scenes A11 and A12 are created previously, corresponding to two elevators in a building, the building management scene A1 of the building can be associated with the smart elevator scenes A11 and A12 as the upper scene of the smart elevator scenes A11 and A12. Afterwards, a regional management scene A can also be created, and the regional management scene A can be associated with the building management scene A1, and the building management scene A1 can be used as the lower scene of the regional management scene A.
[0087] In a possible implementation, the server determines the scene organization information of the first scene in response to the scene association operation of the user, and the scene organization information indicates the association relationship between the first scene and the second scene, that is, the relationship information between the upper and lower layers of the scene, including the lower layer scene, the upper layer scene, etc. Among them, the upper layer scene can be associated with multiple lower layer scenes, and each scene is indexed by the scene identifier SID.
[0088] It should be understood that the user may also perform other setting operations on the first scene, and the present disclosure does not limit this.
[0089] In a possible implementation, the scene configuration information (including device organization information and scene basic information), scene organization information and other definition information may be stored in a configuration database of the server, and the present disclosure does not impose any restrictions on this.
[0090] In this way, the scene creation and organization process can be realized, so that data can be transmitted between scenes and terminals, and between scenes through pre-defined organizational relationships, achieving efficient digital management.
[0091] After the scene is created, it can be deployed to the service process for execution. Each service process can run one scene or multiple scenes of a certain type. The present disclosure does not limit the number of scenes in the service process and the deployment method.
[0092] For any scene (first scene) deployed in any service process, the input interface and output interface of the first scene can be used to interact with other devices / scenes to execute the processing of steps S11-S12.
[0093] In a possible implementation, step S11 may include:
[0094] In the case where the input information includes access information of the terminal, confirming the configuration information of the terminal to obtain a configuration confirmation result,
[0095] The configuration information includes at least one of the device identification of the terminal, geographic location information, basic device information, alarm category, real-time requirement information, and collection interval information, and the processing result includes the configuration confirmation result.
[0096] For example, various sensors, devices and other terminals in the actual physical space can be connected to the platform according to the connection requirements of the platform (such as the Internet of Things platform, applied to the cloud server). The platform obtains the device identifier DID, geographic location information, basic device information, etc.
[0097] In a possible implementation, the first scenario can detect whether a new physical device (terminal) corresponding to the first scenario is connected through the input interface. If a new terminal is connected, the access information of the terminal will be received through the input interface. In this case, the first scenario can handshake and confirm the configuration information of the terminal, such as the device identifier DID of the terminal, geographic location information, basic device information, alarm category, real-time requirement information, collection interval information, etc.
[0098] In one possible implementation, if all the configuration information of the terminal can be confirmed, the configuration confirmation result can be determined as the terminal access is passed, and normal interaction with the terminal can be performed in subsequent processing; if there is configuration information that cannot be confirmed, such as the interface protocol of the terminal is not supported, etc., then corresponding operations can be performed, such as output to the output device corresponding to the first scene (output to the display interface for relevant personnel to view), or the configuration information of the terminal can be modified, etc., and the present disclosure does not limit this.
[0099] In this way, the configuration confirmation process of the new access terminal can be implemented, so as to interact with the terminal in the subsequent process and manage the terminal through the scenario.
[0100] In a possible implementation, step S11 may include:
[0101] In a case where the input information includes device status information of the terminal, judging whether the terminal is in an abnormal state according to the device status information;
[0102] When the terminal is in an abnormal state, generating second alarm information, the processing result including the second alarm information;
[0103] Outputting the second alarm information in the first scene through an output device of the first scene;
[0104] Accordingly, step S12 may include: outputting the second alarm information through an output interface of the first scene according to scene organization information of the first scene, wherein the scene organization information indicates an association relationship between the first scene and other scenes.
[0105] For example, for a connected terminal, the first scenario can obtain the device status information of the terminal through the input interface. According to the device status information, it is determined whether the terminal is in an abnormal state, such as whether the device temperature is within the normal range, whether the camera is collecting images normally, etc. If the terminal is in an abnormal state, corresponding alarm information (called second alarm information) can be generated.
[0106] In one possible implementation, the first scene can complete the output at this layer in a predefined output format through an output device corresponding to the first scene (such as a display device, a database, etc.), such as outputting alarm information to a display interface of a display device, writing it into a database for storage, etc.
[0107] In a possible implementation, based on the scene organization information of the first scene, it can be determined whether the second alarm information needs to be output to an external device or other scenes. If the second alarm information needs to be output, the first scene can transmit the second alarm information to an external device or other scenes through the output interface according to the scene organization information and the data transmission requirements of the output interface in step S12.
[0108] For example, in the smart elevator scenario, if the elevator door is detected to be abnormally open or the elevator is overweight, corresponding alarm information can be generated. On the one hand, the alarm information is output through the output devices corresponding to the smart elevator scenario, such as the speaker and display screen in the elevator, and the alarm sound is emitted, the alarm voice is broadcast, and the alarm content is displayed; on the other hand, according to the scene organization information of the smart elevator scenario, the alarm information is sent to the upper scene of the smart elevator scenario, such as the building management scene, through the output interface.
[0109] In this way, the device status information of the terminal can be managed through scenarios.
[0110] In a possible implementation, step S11 may include:
[0111] In a case where the input information includes external data information, the data information is processed according to the data information and the scene configuration information of the first scene to obtain second event information corresponding to the data information, and the processing result includes the second event information;
[0112] outputting the second event information in the first scene through an output device of the first scene;
[0113] Accordingly, step S12 may include: outputting the second event information through an output interface of the first scene according to scene organization information of the first scene, wherein the scene organization information indicates an association relationship between the first scene and the second scene.
[0114] For example, input information includes external data information, such as data collected by the terminal (such as images collected by a camera, voice collected by a microphone), data input by the Internet of Things platform, data input by humans, data input by other scenarios, etc. When the first scenario receives external data information through the input interface, all data can be automatically saved in time sequence according to the settings. Moreover, the data information can be processed according to the scene configuration information of the first scenario to obtain second event information corresponding to the data information.
[0115] For example, in the access control scene, the scene function included in the scene configuration information is to perform face recognition and determine whether to open the access control based on the recognition result. When the first scene receives the face image captured by the camera through the input interface, it can perform face recognition on the face image and automatically match the person information; if the person information in the face database is matched, it can be determined that the corresponding second event information is a normal person and is allowed to enter.
[0116] In this case, on the one hand, the output can be completed at this level through the output device corresponding to the access control scene, such as controlling the opening of the access control, saving the historical record of the person's entry in the database, and displaying the entry of the person on the display interface of the access control device; on the other hand, in step S12, the second event information can be output through the output interface of the access control scene according to the scene organization information of the access control scene, for example, the second event information can be sent to the associated upper-level scene (such as the attendance management scene, the building management scene, etc.) through the output interface.
[0117] In the example, if the person information in the face database is not matched, the corresponding second event information can be determined as an abnormal person and entry is prohibited. In this case, on the one hand, the output can be completed at this layer through the output device corresponding to the access control scene, such as saving the history of the person's abnormal access in the database and displaying that the person is prohibited from entering on the display interface of the access control device; on the other hand, in step S12, according to the scene organization information of the access control scene, the second event information can be output through the output interface of the access control scene, for example, the second event information can be sent to the associated upper-level scene (such as the attendance management scene, the building management scene, etc.) through the output interface.
[0118] In a possible implementation, the input interface of the upper scene may be smaller than the output interface of the lower scene, that is, the upper scene may discard some data. That is, when the first scene receives data input by the lower scene, some data may be discarded according to the scene configuration information. For example, if the frame rate of the input video stream is high and the data volume is large, and the processing of the first scene does not require so much data to complete the corresponding function, only part of the video stream data may be selected for processing, and useless video stream data may be discarded.
[0119] In this way, external data information can be managed through scenarios.
[0120] In a possible implementation, step S11 may include:
[0121] In a case where the input information includes the first event information and / or the first alarm information, determining an output mode of the first event information and / or the first alarm information according to the scene configuration information and scene organization information of the first scene, the output mode including scene internal output or scene external output;
[0122] Accordingly, step S12 may include:
[0123] When the output mode is scene external output, the first event information and / or the first alarm information is output through the output interface of the first scene.
[0124] For example, the input information includes first event information and / or first alarm information, such as event information and / or alarm information of the terminal, event information and / or alarm information of other scenes (second scenes), etc. When the first scene receives the first event information and / or the first alarm information through the input interface, the output mode of the first event information and / or the first alarm information can be determined according to the scene configuration information and scene organization information of the first scene, including scene internal output (output completed at this layer) and / or scene external output (output to other scenes).
[0125] In one possible implementation, if the output method is scene internal output, it is directly output to the display interface of the display device, written into the database for storage, etc.; if the output method is scene external output, then in step S12, it is output to the associated upper-level scene through the output interface of the first scene.
[0126] In a possible implementation, the first scene may also process the first event information and / or the first alarm information according to the scene configuration information before outputting it, and the present disclosure does not impose any restrictions on this.
[0127] In this way, event information and alarm information can be managed through scenarios.
[0128] In a possible implementation, the first scenario further includes a command input interface and a command output interface, which are used to receive and send commands, respectively.
[0129] In one possible implementation, the process of command issuance and alarm upload may be opposite. A scene command is sent to a destination scene. The destination scene can query the sub-scenes and devices under the destination scene, and then send the command to the sub-scenes and / or devices. Among them, commands that the device does not care about will be ignored and will not be actually sent to the device. The destination scene queries the commands that the sub-scene cares about and sends them to the sub-scene; the sub-scene continues to query the devices and grandchild scenes under the sub-scene, check them in turn, and finally send the commands that need to be issued to the IoT platform, which then sends them to the actual processing device.
[0130] In a possible implementation, the scene interaction method according to an embodiment of the present disclosure further includes:
[0131] When the command input interface of the first scene receives command information, determining, according to the scene configuration information of the first scene, whether the command information is command information for the first scene;
[0132] In a case where the command information is command information for the first scenario, the command information is sent to a terminal associated with the first scenario, so that the terminal executes the command information.
[0133] For example, the first scenario may also be provided with a command input interface and a command output interface for receiving and sending command information. The command input interface may be a part of the input interface or an independent interface; similarly, the command output interface may be a part of the output interface or an independent interface, and the present disclosure does not limit this.
[0134] In a possible implementation, when command information is sent to the first scene due to business needs, the command information can be sent to the command input interface of the first scene of the service process. After receiving the command information from the command interface address, the command input interface of the first scene can determine whether the command information is command information for the first scene according to the scene configuration information of the first scene, for example, whether the scene identifier corresponding to the command information is the scene identifier of the first scene.
[0135] In a possible implementation, if the command information is for the first scenario, the terminal that needs to process the commands can be retrieved, and it can be determined whether the terminal has a corresponding interface. If the terminal has a corresponding interface, the command information is forwarded to the interface of the terminal according to the requirements of the interface definition. The interface can also be a command issuing interface of the Internet of Things platform, or even an output display device configured in the scenario, etc., which is not limited by the present disclosure.
[0136] For example, in a smart elevator scenario, the command information received from the command input interface includes: controlling the elevator to go to a target floor, then the smart elevator scenario can send the command information to the corresponding elevator to make the elevator go to the target floor, and open the elevator door after reaching the target floor. The present disclosure does not limit the specific content of the command information.
[0137] In a possible implementation, the first scenario may also send the command information to a certain service executor according to the scenario configuration information, and the present disclosure does not impose any limitation on this.
[0138] In this way, commands can be received and executed through scenes.
[0139] In a possible implementation, the scene interaction method according to an embodiment of the present disclosure further includes:
[0140] In the case where the command input interface of the first scenario receives command information, determining whether the command information meets a forwarding condition according to the scenario organization information of the first scenario;
[0141] When the command information meets the forwarding condition, the command information is output through the command output interface of the first scenario.
[0142] For example, after receiving the command information from the command interface address, the command input interface of the first scene can determine whether the command information meets the forwarding condition according to the scene organization information of the first scene. The forwarding condition includes, for example, that the command information is a command for the upper scene of the first scene, and that the command information specifies multiple scenes to be executed.
[0143] In a possible implementation, if the command information meets the forwarding condition, the command information can be sent to the command input interface of other scenes through the command output interface of the first scene based on the scene organization information of the first scene. Generally speaking, the command is transmitted from the upper scene to the lower scene, and it does not exclude that the command of the lower scene is sent to the upper scene for execution. The present disclosure does not limit the specific transmission method of the command.
[0144] In this way, commands can be forwarded and transmitted through scenes.
[0145] The following uses the smart elevator scenario in a smart city as an example to illustrate.
[0146] Among them, the elevator is equipped with a camera inside. The elevator, as a smart device, can be added to the door building safety scene or the smart elevator scene. The backend administrator can create the door building safety scene and the smart elevator scene respectively. Configure the alarm event, command interface address and parameters, and assign the alarm and command to the corresponding scene.
[0147] In the example, upper-level scenes of the smart elevator scene can be set, such as door building safety scenes and residential building smart elevator scenes. These upper-level scenes may receive elevator call alarms, people taking the elevator events, and elevator abnormal status alarms.
[0148] In the example, when the elevator is put into use, both the door building safety scene and the smart elevator scene can receive the elevator's access information, and handshake and confirm the elevator's equipment identification, geographic location information, basic equipment information, alarm category, real-time requirement information, collection interval information and other configuration information, thereby corresponding the elevator to the door building safety scene and the smart elevator scene respectively.
[0149] In the example, during the operation of the elevator, the device status information of the elevator itself will be reported, such as the elevator door status, elevator operation status, acceleration data, etc. The smart elevator scene obtains the device status information through the input interface. If it is judged that the elevator is in an abnormal state, such as the elevator door is in an abnormal open state, or the elevator is in an overweight state, the scene generates an alarm message and sends it to the external device or other scenes through the output interface. The upper-level scenes corresponding to the smart elevator scene, such as the door safety scene and the residential building smart elevator scene, will receive the alarm information.
[0150] In the example, when someone scans their face in the elevator to control the elevator, a face scanning event may be generated inside the elevator. The elevator can send the collected image, face image, or face detection result to the smart elevator scene; the smart elevator scene obtains the data of the face scanning event through the input interface and performs corresponding processing, such as face recognition and automatic matching of personnel information. If a resident in the face library is matched, it can be determined that the face is a resident. The smart elevator scene can send a command to control the elevator to automatically transport the resident to his floor or to the first floor.
[0151] In the example, if the resident in the face database is not matched, or the abnormal person database (such as a person with a history of theft) is matched, an alarm message can be generated and sent. The smart elevator scene can send the alarm message to the door building security scene through the output interface so that the door building security scene can process it. The door building security scene may notify the security personnel to go to the elevator, or report the alarm, etc.
[0152] In the example, the smart elevator scenario can also send the alarm information to a database for storage, and send it to the elevator to enable the elevator to perform corresponding operations, such as voice broadcasting of the alarm information.
[0153] In this way, through the smart elevator scene and its upper-level scene, digital management of various application scenarios related to elevators can be realized, thereby improving the efficiency of digital management.
[0154] Figure 2 FIG. 1 is a schematic diagram showing a scene interaction process according to an embodiment of the present disclosure. Figure 2 As shown, the digital twin service process is deployed with scenes 1, 2, and 3. Scene 3 is the upper scene of scenes 1 and 2. Each scene is provided with an input interface, an output interface, a command output interface, and a command input interface (some interfaces are not shown). Scene 1 and scene 2 are connected to the Internet of Things platform through the input interface and the output interface respectively, and the terminals (various smart devices, sensors, etc.) in the real scene are connected through the Internet of Things platform.
[0155] like Figure 2 As shown, in the example, scenario 1 can generate an event / alarm. For example, based on the acquired device status information, when it is determined that the terminal is in an abnormal state, an event / alarm can be generated. On the one hand, it is sent to the data lake (also called database / data warehouse) for storage through the output interface, and on the other hand, it is sent to the input interface of scenario 3 through the output interface.
[0156] In the example, scenario 2 can receive events / alarms sent by the IoT platform through the input interface. After analysis and processing, the received events / alarms are sent to the data lake through the output interface for storage, and the received events / alarms are sent to the input interface of scenario 3 through the output interface.
[0157] In the example, scenario 3 can receive events / alarms from scenario 1, scenario 2, or the data lake through the input interface, and after analysis and processing, send them to the application layer / display layer, or other scenarios (not shown) through the output interface. For example, the event / alarm information is sent to relevant personnel through the application layer; the event / alarm information is displayed on the corresponding display interface through the display layer, and sent to other scenarios.
[0158] In the example, scene 3 receives commands from the application layer / presentation layer through the command input interface; executes and / or forwards the command according to the scene configuration information and scene organization information; and forwards the command to the corresponding scene through the command output interface when forwarding is required. Figure 2 In the example, the command is sent to the command input interface of scene 1.
[0159] In the example, after scene 1 receives the command through the command input interface, it executes and / or forwards the command according to the scene configuration information and scene organization information; when execution is required, it can send the command to the IoT platform through the command output interface so that the IoT platform executes the command, or send the command to the terminal corresponding to scene 1 for execution.
[0160] In this way, efficient digital management can be achieved, and the data lake can only store data that is meaningful to the actual business, reducing dirty data.
[0161] According to the scene interaction method of the embodiment of the present disclosure, digital management of various application scenarios can be achieved through service processes in accordance with the scene definition method; scene indexing and reference can be achieved through uniformly defined scene identification. After reference, the scene can access each device according to the interface description and organize information and report data according to the scene.
[0162] According to the scene interaction method of the embodiment of the present disclosure, it can be applied to application scenarios such as smart cities, and digital management and operation and maintenance can be performed through the digital twin service process. Data can be transmitted between scenes and devices, and between scenes through pre-defined interfaces and organizational relationships, thereby improving management efficiency and operation and maintenance efficiency. In addition, the background can dynamically enable or disable various scenes, and can map each scene or the key information of the scene onto a virtual map according to geographic information, or map it after making a 3D rendering, thereby improving the convenience and intuitiveness of management and operation and maintenance.
[0163] It can be understood that the above-mentioned various method embodiments mentioned in the present disclosure can be combined with each other to form a combined embodiment without violating the principle logic. Due to space limitations, the present disclosure will not repeat them. It can be understood by those skilled in the art that in the above-mentioned method of the specific implementation method, the specific execution order of each step should be determined according to its function and possible internal logic.
[0164] In addition, the present disclosure also provides a scene interaction device, an electronic device, a computer-readable storage medium, and a program, all of which can be used to implement any scene interaction method provided by the present disclosure. The corresponding technical solutions and descriptions are referred to in the corresponding records of the method part and will not be repeated here.
[0165] Figure 3 A block diagram of a scene interaction device according to an embodiment of the present disclosure is shown. The device is applied to a server, in which at least one service process is running, each service process is deployed with at least one scene, and each scene includes an input interface and an output interface. Figure 3 As shown, the device comprises:
[0166] The information processing module 31 is used to perform corresponding processing on the input information according to the category of the input information when the input interface of the first scenario receives the input information, and obtain a processing result; wherein the first scenario is any scenario deployed in the service process, and the input information includes at least one of the access information of the terminal, the device status information of the terminal, the external data information, the first event information, and the first alarm information;
[0167] The information output module 32 is used to output the output information through the output interface of the first scene when the processing result includes the output information.
[0168] In one possible implementation, the information processing module is used to: when the input information includes the access information of the terminal, confirm the configuration information of the terminal to obtain a configuration confirmation result, the configuration information including the device identification of the terminal, geographic location information, basic device information, alarm category, real-time requirement information, and at least one of collection interval information, and the processing result includes the configuration confirmation result.
[0169] In a possible implementation, the information processing module is used to: when the input information includes device status information of the terminal, determine whether the terminal is in an abnormal state according to the device status information; when the terminal is in an abnormal state, generate second alarm information, and the processing result includes the second alarm information; output the second alarm information in the first scene through the output device of the first scene;
[0170] The information output module is used to output the second alarm information through the output interface of the first scene according to the scene organization information of the first scene, and the scene organization information indicates the association relationship between the first scene and other scenes.
[0171] In one possible implementation, the information processing module is used to: when the input information includes external data information, process the data information according to the data information and scene configuration information of the first scene to obtain second event information corresponding to the data information, and the processing result includes the second event information; output the second event information in the first scene through an output device of the first scene; wherein the information output module is used to: output the second event information through an output interface of the first scene according to scene organization information of the first scene, and the scene organization information indicates the association relationship between the first scene and the second scene.
[0172] In one possible implementation, the information output module is used to: when the input information includes the first event information and / or the first alarm information, determine the output mode of the first event information and / or the first alarm information according to the scene configuration information and scene organization information of the first scene, and the output mode includes scene internal output or scene external output; wherein the information output module is used to: when the output mode is scene external output, output the first event information and / or the first alarm information through the output interface of the first scene.
[0173] In a possible implementation, the first scenario also includes a command input interface and a command output interface, and the device also includes: a command information determination module, which is used to determine whether the command information is command information for the first scenario based on the scenario configuration information of the first scenario when the command information is received by the command input interface of the first scenario; and a command execution module, which is used to send the command information to a terminal associated with the first scenario when the command information is command information for the first scenario, so that the terminal executes the command information.
[0174] In one possible implementation, the device also includes: a condition determination module, which is used to determine whether the command information meets the forwarding condition based on the scene organization information of the first scene when the command information is received at the command input interface of the first scene; and a command output module, which is used to output the command information through the command output interface of the first scene when the command information meets the forwarding condition.
[0175] In one possible implementation, the device also includes: a scene identifier allocation module, which is used to allocate a scene identifier for a first scene to be created in response to a scene creation operation; a scene configuration module, which is used to determine the scene configuration information of the first scene in response to a configuration operation on the first scene, and the scene configuration information includes device organization information and scene basic information of the first scene; a scene organization module, which is used to determine the scene organization information of the first scene in response to an association operation between the first scene and the second scene, and the scene organization information indicates the association relationship between the first scene and the second scene; a scene deployment module, which is used to deploy the first scene to a preset service process; wherein the device organization information includes at least one of the device type of the terminal corresponding to the first scene, the commands receivable by the device, the device functions, and the interface parameters of the device; the scene basic information includes at least one of the input interface, output interface, scene identifier, scene type, scene name, and scene function information of the first scene.
[0176] In some embodiments, the functions or modules included in the device provided by the embodiments of the present disclosure can be used to execute the method described in the above method embodiments. The specific implementation can refer to the description of the above method embodiments, and for the sake of brevity, it will not be repeated here.
[0177] The embodiment of the present disclosure also provides a computer-readable storage medium on which computer program instructions are stored, and the computer program instructions implement the above method when executed by a processor. The computer-readable storage medium can be a volatile or non-volatile computer-readable storage medium.
[0178] An embodiment of the present disclosure further proposes an electronic device, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to call the instructions stored in the memory to execute the above method.
[0179] The embodiments of the present disclosure also provide a computer program product, including a computer-readable code, or a non-volatile computer-readable storage medium carrying the computer-readable code. When the computer-readable code runs in a processor of an electronic device, the processor in the electronic device executes the above method.
[0180] The electronic device may be provided as a terminal, a server, or a device in other forms.
[0181] Figure 4 A block diagram of an electronic device 800 according to an embodiment of the present disclosure is shown. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, or the like.
[0182] Reference Figure 4 , the electronic device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output (I / O) interface 812 , a sensor component 814 , and a communication component 816 .
[0183] The processing component 802 generally controls the overall operation of the electronic device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.
[0184] The memory 804 is configured to store various types of data to support operations on the electronic device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0185] The power supply component 806 provides power to the various components of the electronic device 800. The power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 800.
[0186] The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the electronic device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0187] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the electronic device 800 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.
[0188] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.
[0189] The sensor assembly 814 includes one or more sensors for providing various aspects of status assessment for the electronic device 800. For example, the sensor assembly 814 can detect the open / closed state of the electronic device 800, the relative positioning of the components, such as the display and keypad of the electronic device 800, and the sensor assembly 814 can also detect the position change of the electronic device 800 or a component of the electronic device 800, the presence or absence of contact between the user and the electronic device 800, the orientation or acceleration / deceleration of the electronic device 800, and the temperature change of the electronic device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include an optical sensor, such as a complementary metal oxide semiconductor (CMOS) or a charge coupled device (CCD) image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0190] The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 can access a wireless network based on a communication standard, such as a wireless network (WiFi), a second generation mobile communication technology (2G) or a third generation mobile communication technology (3G), or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0191] In an exemplary embodiment, the electronic device 800 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.
[0192] In an exemplary embodiment, a non-volatile computer-readable storage medium is also provided, such as a memory 804 including computer program instructions, which can be executed by a processor 820 of an electronic device 800 to perform the above method.
[0193] Figure 5 1 is a block diagram of an electronic device 1900 according to an embodiment of the present disclosure. For example, the electronic device 1900 may be provided as a server. Figure 5 , the electronic device 1900 includes a processing component 1922, which further includes one or more processors, and a memory resource represented by a memory 1932 for storing instructions executable by the processing component 1922, such as an application. The application stored in the memory 1932 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 1922 is configured to execute instructions to perform the above method.
[0194] The electronic device 1900 may also include a power supply component 1926 configured to perform power management of the electronic device 1900, a wired or wireless network interface 1950 configured to connect the electronic device 1900 to a network, and an input / output (I / O) interface 1958. The electronic device 1900 may operate based on an operating system stored in the memory 1932, such as a Microsoft Server operating system (Windows Server 2003). TM), a graphical user interface operating system launched by Apple (Mac OSX TM ), a multi-user, multi-process computer operating system (Unix TM ), a free and open source Unix-like operating system (Linux TM ), an open source Unix-like operating system (FreeBSD TM ) or similar.
[0195] In an exemplary embodiment, a non-volatile computer-readable storage medium is also provided, such as a memory 1932 including computer program instructions, which can be executed by the processing component 1922 of the electronic device 1900 to perform the above method.
[0196] The present disclosure may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present disclosure.
[0197] Computer readable storage medium can be a tangible device that can hold and store instructions used by an instruction execution device. Computer readable storage medium can be, for example, (but not limited to) an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination thereof. More specific examples (non-exhaustive list) of computer readable storage medium include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, for example, a punch card or a convex structure in a groove on which instructions are stored, and any suitable combination thereof. The computer readable storage medium used here is not interpreted as a transient signal itself, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagated by a waveguide or other transmission medium (for example, a light pulse by an optical fiber cable), or an electrical signal transmitted by a wire.
[0198] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.
[0199] The computer program instructions for performing the operation of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be personalized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present disclosure.
[0200] Various aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.
[0201] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0202] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0203] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of the module, program segment or instruction includes one or more executable instructions for realizing the specified logical function. In some alternative implementations, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or action, or can be implemented with a combination of special hardware and computer instructions.
[0204] The computer program product may be implemented in hardware, software or a combination thereof. In one optional embodiment, the computer program product is embodied as a computer storage medium, and in another optional embodiment, the computer program product is embodied as a software product, such as a software development kit (SDK) and the like.
[0205] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A scene interaction method, characterized in that: Applied to a server, wherein at least one service process is running in the server, at least one scenario is deployed in each service process, and each scenario includes an input interface and an output interface. The method includes: When the input interface of the first scenario receives input information, performing corresponding processing on the input information according to the category of the input information to obtain a processing result; The first scenario is any scenario deployed in the service process, the input information includes at least one of the access information of the terminal, the device status information of the terminal, the external data information, the first event information, and the first alarm information; the processing result includes at least one of the following: the second alarm information generated according to the device status information, the second event information obtained according to the data information and the scene configuration information of the first scenario, and the output mode of the first event information and / or the first alarm information determined according to the scene configuration information and scene organization information of the first scenario, the scene configuration information includes the device organization information and scene basic information of the first scenario, and the scene organization information indicates the association relationship between the first scenario and other scenarios; When the processing result includes output information, the output information is output through the output interface of the first scene, and the output information includes at least one of the following: the second alarm information, the second event information, the first event information, and the first alarm information.
2. The method according to claim 1, characterized in that: The performing corresponding processing on the input information according to the category of the input information to obtain a processing result includes: In the case where the input information includes access information of the terminal, confirming the configuration information of the terminal to obtain a configuration confirmation result, The configuration information includes at least one of the device identification of the terminal, geographic location information, basic device information, alarm category, real-time requirement information, and collection interval information, and the processing result includes the configuration confirmation result.
3. The method according to claim 1, characterized in that: The performing corresponding processing on the input information according to the category of the input information to obtain a processing result includes: In a case where the input information includes device status information of the terminal, judging whether the terminal is in an abnormal state according to the device status information; When the terminal is in an abnormal state, generating second alarm information, the processing result including the second alarm information; Outputting the second alarm information in the first scene through an output device of the first scene; Wherein, when the processing result includes output information, outputting the output information through the output interface of the first scenario includes: The second alarm information is output through an output interface of the first scene according to the scene organization information of the first scene.
4. The method according to claim 1, characterized in that: The performing corresponding processing on the input information according to the category of the input information to obtain a processing result includes: In a case where the input information includes external data information, the data information is processed according to the data information and the scene configuration information of the first scene to obtain second event information corresponding to the data information, and the processing result includes the second event information; outputting the second event information in the first scene through an output device of the first scene; Wherein, when the processing result includes output information, outputting the output information through the output interface of the first scenario includes: The second event information is output through an output interface of the first scene according to the scene organization information of the first scene.
5. The method according to claim 1, characterized in that: The performing corresponding processing on the input information according to the category of the input information to obtain a processing result includes: In a case where the input information includes the first event information and / or the first alarm information, determining an output mode of the first event information and / or the first alarm information according to the scene configuration information and scene organization information of the first scene, the output mode including scene internal output or scene external output; Wherein, when the processing result includes output information, outputting the output information through the output interface of the first scenario includes: When the output mode is scene external output, the first event information and / or the first alarm information is output through the output interface of the first scene.
6. The method according to claim 1, characterized in that: The first scenario also includes a command input interface and a command output interface, and the method further includes: When the command input interface of the first scene receives command information, determining, according to the scene configuration information of the first scene, whether the command information is command information for the first scene; In a case where the command information is command information for the first scenario, the command information is sent to a terminal associated with the first scenario, so that the terminal executes the command information.
7. The method according to claim 6, characterized in that: The method further comprises: In a case where the command input interface of the first scenario receives command information, determining whether the command information meets a forwarding condition according to the scenario organization information of the first scenario; When the command information meets the forwarding condition, the command information is output through the command output interface of the first scenario.
8. The method according to claim 1, characterized in that: The method further comprises: In response to the scene creation operation, assigning a scene identifier to a first scene to be created; In response to a configuration operation on the first scene, determining scene configuration information of the first scene; In response to an association operation between the first scene and the second scene, determining scene organization information of the first scene; Deploy the first scenario to a preset service process; Among them, the device organization information includes at least one of the device type of the terminal corresponding to the first scene, the commands receivable by the device, the device functions, and the interface parameters of the device; the scene basic information includes at least one of the input interface, output interface, scene identifier, scene type, scene name, and scene function information of the first scene.
9. A scene interaction device, characterized in that: Applied to a server, wherein at least one service process is running in the server, at least one scene is deployed in each service process, and each scene includes an input interface and an output interface. The device includes: An information processing module, configured to, when the input interface of the first scene receives input information, perform corresponding processing on the input information according to the category of the input information to obtain a processing result; The first scenario is any scenario deployed in the service process, the input information includes at least one of the access information of the terminal, the device status information of the terminal, the external data information, the first event information, and the first alarm information; the processing result includes at least one of the following: the second alarm information generated according to the device status information, the second event information obtained according to the data information and the scene configuration information of the first scenario, and the output mode of the first event information and / or the first alarm information determined according to the scene configuration information and scene organization information of the first scenario, the scene configuration information includes the device organization information and scene basic information of the first scenario, and the scene organization information indicates the association relationship between the first scenario and other scenarios; An information output module is used to output the output information through the output interface of the first scene when the processing result includes output information, and the output information includes at least one of the following: the second alarm information, the second event information, the first event information, and the first alarm information.
10. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to call the instructions stored in the memory to execute the method described in any one of claims 1 to 8.
11. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, the method according to any one of claims 1 to 8 is implemented.
