Data interaction method and device and electronic equipment
By realizing the activation and stopping of data reporting of detection equipment in a specific interactive state in the terminal device, the problems of excessive communication burden and waste of resources in the existing detection system are solved, and timely data presentation and network communication burden are achieved.
Patent Information
- Application Number
- CN202510309275.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-14
- Publication Date
- 2025-06-10
AI Technical Summary
The existing detection systems have limitations in the data interaction methods of information interaction, resulting in excessive communication burden, waste of resources and network performance impact.
By enabling activation and stopping of detection device data reporting in a specific interactive state in the terminal device, we ensure that relevant information is presented in a timely manner in a specific interactive state, and stopping data reporting when a specific interactive state is cancelled.
While ensuring data accuracy and real-time, it reduces the burden of network communication and avoids unnecessary waste of communication and resources.
Smart Images

Figure CN120128949A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of the Internet of Things, and particularly to a data interaction method, apparatus, and electronic device. Background Art
[0002] With the development of Internet of Things (IoT) technology, detection systems based on wireless communication networks are widely used in fields such as smart homes, industrial monitoring, and health management. In these application scenarios, detection devices (such as human sensors, environmental sensors, health monitoring devices, etc.) usually need to report detection results to electronic devices through wireless communication networks (such as Bluetooth Mesh, Zigbee, Wi-Fi, etc.) to support user interface information presentation or further data interaction.
[0003] However, existing technologies usually adopt a fixed reporting method, that is, the detection device continuously reports data according to a fixed strategy after startup, without considering the actual needs of users and the actual interaction status of the electronic device. This method can lead to excessive communication burden and resource waste, and can also affect network performance.
[0004] It can be seen that there are still certain limitations in the data interaction method of the existing detection system. Summary of the Invention
[0005] An object of the present disclosure is to provide a data interaction method, apparatus, and electronic device, in which the terminal device can activate the specific data reporting of the detection device in a specific interaction state to ensure the timely presentation of relevant information in the specific interaction state, and when the specific interaction state is released, the detection device stops reporting the specific data to avoid unnecessary communication burden. Overall, this method can reduce the network communication burden while ensuring data accuracy and real-time performance.
[0006] Another object of the present disclosure is to provide a data interaction method, apparatus, and electronic device, in which a remote temporary session is a short-term data interaction connection established between the terminal device and the detection device in a specific interaction state of the processing entity. This remote temporary session supports real-time transmission of detection data of the detection device to ensure that specific detection data can be visually presented in the specific interaction state of the terminal device. Moreover, different from ordinary sessions, this remote temporary session is established and released on demand.
[0007] Another object of the present disclosure is to provide a data interaction method, apparatus, and electronic device, in which the convenience and feedback mechanism for optimizing the parameter adjustment of the detection device are provided, a parameter configuration interface is provided, enabling users to intuitively adjust the performance parameters of the detection device, and feedback is provided through real-time updated detection data to ensure the effectiveness of parameter adjustment and improve operation efficiency.
[0008] Another object of the present disclosure is to provide a data interaction method, apparatus and electronic device. By periodically sending request instructions to control the data reporting behavior of the detection device and combining with an effective reporting period mechanism, the continuity of data update is ensured while reducing the network communication burden.
[0009] To achieve at least one of the above objects, according to a first aspect of the present disclosure, there is provided an electronic device applied to a terminal device, including a memory storing instructions; a processor configured to execute the instructions in the memory to cause the electronic device to perform the following operations: based on a received first interaction instruction, cause a processing entity executing an interaction logic to enter a specific interaction state; send a request instruction to a detection device to cause the detection device to report detection data meeting a preset condition through a network; receive the detection data in the specific interaction state of the processing entity and dynamically adjust the presentation of relevant information; when receiving a second interaction instruction, perform at least one of the following: send a stop instruction to prompt the detection device to stop providing the detection data; adjust the sending strategy of the request instruction to cause the detection device to stop providing the detection data when meeting specific constraint conditions; wherein the second interaction instruction is used to guide the processing entity to exit the specific interaction state.
[0010] According to an embodiment of the present disclosure, the processor is further configured to execute the instructions in the memory to cause the electronic device to perform the following operations: interact with the detection device through a remote communication device to establish a remote temporary session with the detection device through a request instruction in a specific interaction state; the first interaction instruction is used to guide the processing entity to enter a specific interaction state based on a specific interaction interface; and / or, the second interaction instruction instructs to exit the specific interaction interface to cause the processing entity to exit the specific interaction state.
[0011] According to an embodiment of the present disclosure, the specific interaction interface is a configuration interface for adjusting the operation parameters of the detection device, including an information presentation area and a parameter configuration area; after entering the configuration interface, the processor is further configured to execute the instructions in the memory to cause the electronic device to perform the following operations: respond to an operation of the user in the parameter configuration area, generate and transmit configuration data for adjusting the performance of the detection device; obtain the adjusted detection data and update the display of the information presentation area.
[0012] According to an embodiment of the present disclosure, the request instruction prompts the detection device to generate and report detection data when meeting a preset condition; the preset condition is based on the sensing rules of each detection sub-region determined by the configuration data; the detection sub-region is obtained by dividing the target detection range of the detection device; the processor updates the display of the information presentation area, specifically for: visually presenting the target detection status of each detection sub-region according to the detection data.
[0013] According to an embodiment of the present disclosure, the processor sends a request instruction to the detection device, specifically for: periodically sending a request instruction to the detection device, each sending triggering the detection device to enter an effective reporting period, and reporting detection data according to a predetermined rule within the effective reporting period; the duration of the effective reporting period is greater than or equal to the sending period of the request instruction.
[0014] According to an embodiment of the present disclosure, when the processor receives a second interaction instruction, it adjusts the sending strategy of the request instruction to cause the detection device to stop providing detection data when meeting specific constraint conditions, specifically for: after the processing entity exits the specific interaction interface, stop sending the request instruction, so that the detection device stops providing detection data when the most recent effective reporting period ends and no new request instruction is received.
[0015] To achieve at least one of the above purposes, according to a second aspect of the present disclosure, there is provided an electronic device, applied to a detection device, including: a memory storing instructions; a processor configured to execute the instructions in the memory, so that the electronic device performs the following operations: receiving a request instruction; the request instruction is sent by the terminal device after receiving a first interaction instruction to cause the processing entity executing the interaction logic to enter a specific interaction state; in response to the request instruction, reporting detection data that meets preset conditions for dynamically adjusting the presentation of relevant information on the terminal device; stopping reporting detection data in any of the following cases: receiving a stop instruction; determining that specific constraint conditions are met; wherein, the stop instruction is sent by the terminal device after receiving a second interaction instruction; the specific constraint conditions are met only after adjusting the sending strategy of the request instruction, and the adjustment of the sending strategy of the request instruction is performed after the terminal device receives the second interaction instruction; the second interaction instruction is used to guide the processing entity of the terminal device to exit the specific interaction state.
[0016] According to an embodiment of the present disclosure, the processor is further configured to execute the instructions in the memory, so that the electronic device performs the following operations: interacting with the terminal device through a remote communication device, so that after the processing entity of the terminal device enters the specific interaction state, a temporary remote session is established between the terminal device and the remote communication device through the request instruction; the specific interaction state is formed after the terminal device responds to the first interaction instruction and guides the processing entity to enter a specific interaction interface; and / or, exiting the specific interaction state is formed after the terminal device responds to the second interaction instruction and guides the processing entity to exit the specific interaction interface.
[0017] According to an embodiment of the present disclosure, the processor is further configured to execute instructions in the memory to cause the electronic device to perform the following operations: obtain configuration data, which is generated and sent by the terminal device in response to a user's operation in the parameter configuration area; wherein, the specific interaction interface is a configuration interface for adjusting the operation parameters of the detection device, including an information presentation area and the parameter configuration area; adjust the operation parameters according to the configuration data; report the adjusted detection data to update the display in the information presentation area of the configuration interface.
[0018] According to an embodiment of the present disclosure, the processor receives a request instruction, specifically for: receiving a request instruction periodically sent by the detection device; in response to each received request instruction, entering an effective reporting period, and reporting detection data according to a predetermined rule within the effective reporting period; wherein, the duration of the effective reporting period is greater than or equal to the sending period of the request instruction.
[0019] According to an embodiment of the present disclosure, the processor is further configured to execute instructions in the memory to cause the electronic device to perform the following operations: when the most recent effective reporting period ends and no new request instruction is received, determine that a specific constraint condition is met, and stop providing detection data; wherein, the stop of the request instruction is triggered after the processing entity of the terminal device exits the interaction interface.
[0020] According to an embodiment of the present disclosure, the processor is further configured to execute instructions in the memory to cause the electronic device to perform the following operations: when a new request instruction is received within the effective reporting period, reset the effective reporting period; when a new request instruction is received after the effective reporting period ends, restart the effective reporting period.
[0021] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. The above-mentioned inventive concepts can be combined arbitrarily, and these and other purposes of the present disclosure will be fully embodied by the following detailed description and the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure or the prior art, the following will briefly introduce the drawings required for the description of the embodiments or the prior art. The drawings here are incorporated into the specification and form a part of this specification, showing the embodiments that conform to the present application, and are used together with the specification to explain the principles of the present application. Obviously, the drawings in the following description are only some embodiments of the present disclosure, and those of ordinary skill in the art can obtain other drawings without creative efforts based on these drawings.
[0023] Figure 1It is a schematic diagram of an exemplary network environment including a detection device and a terminal device in an embodiment of the present disclosure;
[0024] Figure 2 It is a schematic block diagram of an exemplary configuration of an electronic device in an embodiment of the present disclosure;
[0025] Figure 3 It is a schematic diagram of the data interaction method flow on the terminal device side in an embodiment of the present disclosure Figure 1 ;
[0026] Figure 4 It is a schematic diagram of a specific interaction state in an embodiment of the present disclosure;
[0027] Figure 5 It is a schematic diagram of a configuration interface in an embodiment of the present disclosure;
[0028] Figure 6 It is a schematic diagram of the data interaction principle in an embodiment of the present disclosure Figure 1 ;
[0029] Figure 7 It is a schematic diagram of the data interaction principle in an embodiment of the present disclosure Figure 2 ;
[0030] Figure 8 It is a schematic diagram of the data interaction principle in an embodiment of the present disclosure Figure 3 ;
[0031] Figure 9 It is a schematic diagram of the data interaction method flow on the terminal device side in an embodiment of the present disclosure Figure 2 ;
[0032] Figure 10 It is a schematic diagram of the operation interface of a third interaction instruction in an embodiment of the present disclosure Figure 1 ;
[0033] Figure 11 It is a schematic diagram of the display interface operation in an embodiment of the present disclosure;
[0034] Figure 12 It is a schematic diagram of the operation interface of a third interaction instruction in an embodiment of the present disclosure Figure 2 ;
[0035] Figure 13 It is a schematic diagram of the induction record interface in an embodiment of the present disclosure Figure 1 ;
[0036] Figure 14 It is a schematic diagram of the induction record interface in an embodiment of the present disclosure Figure 2 ;
[0037] Figure 15 It is a schematic diagram of the structure of a data interaction device in an embodiment of the present disclosure;
[0038] Figure 16 Schematic flow of the data interaction method on the detection device side in an embodiment of the present disclosure Figure 1 ;
[0039] Figure 17 Schematic flow of the data interaction method on the detection device side in an embodiment of the present disclosure Figure 2 。 Detailed implementation manners
[0040] Hereinafter, embodiments of the present disclosure will be described in detail with reference to the accompanying drawings.
[0041] Figure 1 Schematic diagram showing an example network environment 100 including a detection device 101 and a terminal device 103 according to an embodiment of the present disclosure.
[0042] The example network environment 100 may include a detection device 101, a controlled device 106, a network access device 102, and one or more terminal devices 103.
[0043] The network access device 102 is used to provide network connections for the detection device 101 and the controlled device 106. Specifically, the network access device 102 may receive / route various types of communications from the detection device 101 and the controlled device 106 and / or transmit / route various types of communications to the detection device 101 and the controlled device 106.
[0044] In some embodiments, the network access device 102 only provides an internal network 104 (such as a wired network or a wireless local area network (LAN)) connection, and all the detection devices 101 and the controlled devices 106 connected to the network access device 102 are in the same internal network 104 and can communicate with each other directly. In further embodiments, the network access device 102 is also connected to an external network 105, so that the detection device 101 and the controlled device 106 can access the external network 105 via it. The network access device 102 may be, for example, a hardware device such as a router 107 or a gateway 108. The controlled device 106 can access the external network 105 through the network access device 102 and then communicate with a remote communication device. The remote communication device may be, for example, a server, such as an IOT cloud device of an Internet of Things platform (hereinafter also abbreviated as "cloud"), which has the authority to manage and configure the accessed electronic devices. When the terminal device 103 accesses the remote server through the external network 105, the server can display an interaction interface of the controlled device 106 and the detection device 101 through the terminal device 103.
[0045] When the network access device 102 is the router 107, a gateway 108 can also be set up in this network environment. The gateway 108 and the router 107 can receive data from electronic devices such as the controlled device 106, the detection device 101, and the terminal device 103 (the data can be received through wireless signals, such as Bluetooth mesh, Zigbee, etc.), and provide data interaction and transfer services for these electronic devices, such as conversion between different communication protocols, processing and forwarding of data, etc.
[0046] In addition, in the scenario where there is a cloud in the example network environment 100, in order to enable the detection device 101 to have the ability to connect to the cloud, it needs to be networked. After the networking is completed, the detection device 101 can directly connect to the Internet and then communicate with the cloud. Based on this, in some solutions, as Figure 1 shown, direct communication can also be achieved between the detection device 101 and the terminal device 103, such as in the way of Bluetooth direct connection or WIFI hotspot connection, so as to facilitate the transmission of networking information when the terminal device 103 configures the network for the detection device 101. Similarly, for other controlled devices 106, networking can also be achieved through the direct connection with the terminal device 103.
[0047] The terminal device 103 can be any electronic device with at least one network interface. For example, the terminal device 103 can be: a desktop computer, a laptop computer, a server, a mainframe computer, a cloud-based computer, a tablet computer, a smart phone, a smart watch, a wearable device, a consumer electronic device, a portable computing device, and / or other electronic devices.
[0048] An application program corresponding to the detection device 101 (such as a mobile phone APP) can be pre-installed on the terminal device 103. Then, the application program can provide a configuration interface for the user, so that the user can perform at least one operation such as status viewing, parameter configuration, control, and networking on the detection device 101 based on the configuration interface. The terminal device 103 can also access the external network 105 through the gateway 108 (such as Bluetooth), the router 107 (such as WIFI), or cellular data, etc., and then communicate with the remote server, and communicate with the detection device 101 and other controlled devices 106 through the remote server (such as issuing commands, configuring parameters of the detection device 101, etc.) to achieve the purpose of remote control.
[0049] The external network 105 can include various types of wired or wireless networks, internal networks or public networks, such as other local area networks or wide area networks (WANs) (such as the Internet). Note that the present disclosure does not specifically limit the type of the external network 105.
[0050] The controlled device 106 can be understood as other smart home devices that are connected to the same network access device 102 or remote server as the detection device 101, such as smart lights, smart curtains, smart window pushers, smart thermostats, smart wall switches, etc.
[0051] The detection device 101 can be understood as an electronic device that can sense, measure, analyze, and output data on the specific state or attribute characteristics of a target object. In different application scenarios, the type and function of the detection device 101 may vary. For example, in a smart home environment, the detection device 101 can be a human body sensor, an environmental temperature and humidity sensor, an air quality sensor, etc.; in a security system, the detection device 101 can be a door magnetic sensor, etc.
[0052] Taking the human body sensor as an example of the detection device 101 for further illustration: The human body sensor is a detection device 101 for detecting at least one of the information such as the presence of a human body, movement trend, position, and behavior characteristics. According to different working principles, the human body sensor can include: Passive Infrared (PIR) sensor: Using infrared detection technology to sense the thermal radiation emitted by the human body and judge whether the human body is moving within the detection area; Microwave radar sensor: Detecting the presence or movement state of the human body by transmitting microwave signals and receiving the changes in their reflected signals; Pressure sensor: Judging whether the human body touches a certain surface, such as a seat, floor, etc., by detecting pressure changes.
[0053] Taking the human body sensor based on the microwave radar principle for the following illustration: The microwave radar human body sensor performs human body detection based on the Doppler effect or FMCW (Frequency Modulated Continuous Wave) technology. It emits microwave signals (usually in the 24GHz or 60GHz frequency band), then receives the signals reflected from the human body, and analyzes the changes in frequency or phase to judge the presence or absence of the human body, position, movement trend, etc. The microwave radar can sense minute movements, such as a person's breathing and heartbeat, to achieve static personnel detection. When the human body moves within the radar detection range, the reflection pattern of the radar signal changes significantly, and the sensor can identify the human body activity state.
[0054] Figure 2 An exemplary configuration block diagram of an electronic device 200 according to an embodiment of the present disclosure is illustrated. The electronic device 200 can be used to implement Figure 1 the detection device 101 and / or the terminal device 103 in
[0055] As Figure 2 shown, the electronic device 200 includes a user interface 20, a network interface 21, a power supply 22, an external network interface 23, a memory 24, and a processor 26.
[0056] The user interface 20 may include, but is not limited to, buttons, keyboards, keypads, LCDs, CRTs, TFTs, LEDs, HDs, or other similar interactive components, including display devices having touchscreen capabilities enabling interaction between the user and the detection device 101. In some embodiments, the user interface 20 may be used to present a graphical user interface (GUI) to receive user input.
[0057] The network interface 21 may include various network cards and circuitry implemented in software and / or hardware to enable communication with a network access device 102 using wired or wireless protocols. Wired communication protocols are, for example, any one or more of the Ethernet protocol, the MoCA specification protocol, the USB protocol, or other wired communication protocols. Wireless protocols are, for example, any IEEE 802.11 Wi-Fi protocol, the Bluetooth protocol, the Bluetooth Low Energy (BLE), or other short-range protocols operating according to wireless technology standards for exchanging data over short distances using any licensed or unlicensed frequency band (such as the Citizen Broadband Radio Service (CBRS) band, the 2.4 GHz band, the 5 GHz band, the 6 GHz band, or the 60 GHz band), the RF4CE protocol, the ZigBee protocol, the Z-Wave protocol, or the IEEE 802.15.4 protocol. In the case where the network interface 21 uses a wireless protocol, the electronic device 200 may be connected to an internal network (e.g., Figure 1 the internal network 104) provided by the network access device 102 through the network interface 21.
[0058] The power supply 22 supplies power to the internal components of the electronic device 200 through the internal bus 27. The power supply 22 may be a self-contained power supply, such as a battery pack, whose interface is powered by a charger connected to a socket (e.g., directly or through other devices). The power supply 22 may also be connected to the live and neutral wires and / or powered through an adapter.
[0059] The external network interface 23 may include various network cards and circuitry implemented in software and / or hardware to enable communication between the electronic device 200 and a provider of an external network (e.g., Figure 1 the external network 105 in) (such as an Internet service provider or a multi-system operator (MSO)).
[0060] The memory 24 includes a single memory or one or more memories or storage locations, including but not limited to random access memory (RAM), dynamic random access memory (DRAM), static random access memory (SRAM), read-only memory (ROM), EPROM, EEPROM, flash memory, logic blocks of an FPGA, a hard disk, or any other layer of a memory hierarchy. The memory 24 may be used to store any type of instructions, software, or algorithms, including instructions 25 for controlling the general functions and operations of the electronic device 200.
[0061] The processor 26 controls the general operation of the electronic device 200 and performs management functions related to other devices in the network, such as the controlled device 106. The processor 26 may include, but is not limited to, a CPU, a hardware microprocessor, a hardware processor, a multi-core processor, a single-core processor, a microcontroller, an application specific integrated circuit (ASIC), a DSP, or other similar processing devices capable of executing any type of commands, instructions, algorithms, and / or software for controlling the operation and functions of the electronic device 200 according to the embodiments described in the present disclosure. These commands, instructions, algorithms, and / or software may be stored in the memory, and the processor is configured to execute these commands, instructions, algorithms, and / or software so that the electronic device performs corresponding operations and realizes corresponding functions. The processor 26 may be various implementations of a digital circuit system, an analog circuit system, or a mixed-signal (combination of analog and digital) circuit system that performs functions in a computing system. The processor 26 may include, for example, an integrated circuit (IC), a portion or circuit of a separate processor core, an entire processor core, a separate processor, a programmable hardware device such as a field programmable gate array (FPGA), and / or a system including multiple processors.
[0062] The electronic device 200 further includes a sensor 28. When the electronic device 200 is implemented as the detection device 101, the sensor 28 is used to measure a target object in the environment (such as a human body, rainwater, etc.), and the type of the sensor 28 varies according to different application scenarios of the electronic device 200. For example, in a smart home environment, the sensor 28 may be a radar-based or infrared-based human body sensor; in a security system, the detection device may be a magnetic field induction-based door magnetic sensor, etc.
[0063] The components of the electronic device 200 may communicate with each other through an internal bus 27.
[0064] Although specific components are used to describe the electronic device 200, in alternative embodiments, different components may exist in the electronic device 200. For example, the electronic device 200 may include one or more additional controllers, memories, network interfaces, external network interfaces, and / or user interfaces. Additionally, one or more of the components may not exist in the electronic device 200.
[0065] Furthermore, in some embodiments, the electronic device 200 may include one or more components not shown in Figure 2 In addition, although in Figure 2Separate components are shown, but in some embodiments, some or all of a given component may be integrated into one or more of the other components in the electronic device 200. Additionally, any combination of analog and / or digital circuits may be used to implement the circuits and components in the electronic device 200.
[0066] In embodiments of the present disclosure, when Figure 2 the electronic device in is used to implement Figure 1 the terminal device 103 in, the electronic device 200 may be a terminal device with specific interaction capabilities and display capabilities such as a mobile phone, a personal digital assistant, a tablet computer, etc.; when Figure 2 the electronic device in is used to implement Figure 1 the detection device 101 in, the electronic device 200 may be a detection device such as a rain sensor, a pressure sensor, a human body sensor, etc., where the human body sensor may include at least one of the following: a sensor based on microwave radar, a sensor based on infrared, a sensor based on pressure, etc. The present disclosure does not limit this.
[0067] It should be understood that in the description of all embodiments of the present disclosure, the terms "first" and "second" are only used for descriptive purposes and cannot be construed as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, features defined with "first" and "second" may explicitly or implicitly include one or more of such features. For those of ordinary skill in the art, the specific meanings of the above terms in the present disclosure may be understood according to specific circumstances. The symbol " / " indicates the meaning of having two functions simultaneously. And for the symbol "A and / or B", it indicates that the combination between the front and rear objects connected by this symbol includes three cases: "A", "B", and "A and B".
[0068] In addition, the technical features involved in the various embodiments of the present disclosure described below can be combined with each other as long as they do not conflict with each other.
[0069] As mentioned above, existing detection devices usually report data without discrimination according to a fixed strategy after startup, without considering the actual needs of users and the actual interaction status of the electronic device. This information interaction method may but is not limited to the following problems:
[0070] 1. The network communication burden is too heavy, affecting network stability. Especially in a wireless ad hoc network, continuous reporting by a large number of detection devices may cause network congestion and affect the normal communication of other devices. For example, in a Bluetooth Mesh network, excessive reporting messages may cause message transmission delay or loss, thereby reducing network communication efficiency. Too many reporting messages will also affect the stability of the mesh network.
[0071] 2. Resource waste and reduced energy efficiency of devices. Many detection data are only meaningful when the user is in a specific interaction state (such as viewing the detection result interface). If continuous reporting still occurs when the user is not paying attention, it not only occupies communication bandwidth but also increases the power consumption of the detection device. If the detection device relies on battery power supply, it will also lead to a decrease in the device's battery life.
[0072] 3. Delayed data presentation or interference from irrelevant data. Due to the ineffective synchronization between the interaction logic of the electronic device and the reporting strategy of the detection device, it may lead to the display of outdated or irrelevant data on the user interface. For example, when the user enters a specific interface, the device still needs to wait for data in the next reporting cycle, resulting in untimely information update; or when the user exits the interface, the detection device still continues to report, generating meaningless data streams.
[0073] In summary, the existing detection systems still have certain limitations in the data processing method of information interaction. In view of this, the embodiments of the present disclosure provide a data interaction method for various applicable device entities in the above detection system to intelligently adjust the information interaction between device entities to solve at least one of the above problems. Through the collaborative work of the terminal device and the detection device, the detection device realizes an intelligent reporting strategy for specific data. Users can flexibly start and stop data acquisition according to their needs, reducing the communication burden while ensuring data accuracy and timeliness.
[0074] Next, the data interaction method described in the embodiments of the present disclosure will be described in detail. Exemplarily, reference can be made to Figure 3 , Figure 3 which shows a flowchart of the data interaction method according to an embodiment of the present disclosure. The method 30 can be applied to Figure 1 the terminal device 103 or the electronic device 200 as shown in Figure 2 .
[0075] Next, the method 30 will be described by taking the application to the terminal device as an example. Refer to Figure 3 ,the data interaction method 30 at least includes steps S31 to S34 and is applied to the electronic device on the terminal device side. In the following exemplary description, a mobile phone is mainly used as a specific example of the terminal device, but it is not limited to a mobile phone.
[0076] As shown in Figure 3 , at step S31, the terminal device, based on the received first interaction instruction, prompts the processing entity that executes the interaction logic to enter a specific interaction state.
[0077] Here, the processing entity that executes the interaction logic can be understood as a functional unit in the terminal device that can execute corresponding processing logic according to interaction instructions and perform information interaction with external devices. The processing entity can be composed of at least one of hardware circuits, integrated chips, software modules, application programs, embedded control logic, and other computing units with interaction control capabilities.
[0078] The processing entity that executes the interaction logic can, but is not limited to: parsing various user operation instructions to execute corresponding operations; generating / sending / receiving corresponding information to interact with external devices; and adjusting the presentation manner of corresponding information to optimize the user interaction experience.
[0079] Exemplarily, when the terminal device is a mobile phone, the processing entity that executes the interaction logic can be an application program running on the mobile phone. This application program can be a dedicated client program for the detection device or a comprehensive management program provided by the Internet of Things platform for managing the detection device. This application program can receive user input and establish communication with an external detection device according to the input instruction to obtain and process detection data.
[0080] In step S32, the terminal device sends a request instruction to the detection device so that the detection device reports detection data that meets preset conditions through the network.
[0081] The network here can be understood as a network that the detection device has established or joined in advance, and the detection device communicates externally based on this network.
[0082] Exemplarily, the network supports multi-hop communication, that is, even if the detection device and the terminal device are no longer within the direct communication range, data can still be transmitted through a relay device (such as a remote communication device).
[0083] Exemplarily, the network belongs to an ad-hoc network, that is, the detection device of the present disclosure uses a wireless communication network based on an ad-hoc network. Among them, the detection device does not need to establish a fixed one-to-one connection with the terminal device and can perform relay communication through other nodes in the network. Therefore, the communication between the detection device and the terminal device does not depend on the direct connection between the devices, can support dynamic adjustment of the data reporting mode among multiple devices, and the communication range is not limited, which can meet the requirements of low-power large-scale distributed detection.
[0084] In a specific example, the network can be, for example, a network based on Bluetooth Mesh or Zigbee. Taking Bluetooth Mesh as an example, the detection device supports Bluetooth Mesh communication and can obtain communication interaction with a Bluetooth gateway by joining a Bluetooth mesh network with a Bluetooth gateway component, and then achieve indirect communication with other devices through the Bluetooth gateway.
[0085] In step S33, the terminal device receives the detection data in a specific interaction state of the processing entity and dynamically adjusts the presentation of relevant information.
[0086] It can be seen that the reported detection data is provided to the processing entity in a specific interaction state. The detection data is specific, and its specificity lies in that it is used for the processing entity to dynamically adjust the information presentation associated with the specific interaction state.
[0087] In step S34, when receiving a second interaction instruction, the terminal device adjusts the sending strategy of the request instruction, so that the detection device stops providing the detection data when meeting specific constraint conditions; or, the terminal device actively sends a stop instruction to make the detection device stop providing the detection data.
[0088] Among them, when the terminal device adjusts the sending strategy of the request instruction, for example: adjust the sending state of the request instruction, such as changing from periodic sending to stop sending; adjust the sending frequency of the request instruction, such as changing from sending once every 20 seconds to sending three times every 1 second. In short, the adjusted sending strategy can be recognized by the detection device and can directly or indirectly trigger the detection device to determine that it meets specific constraint conditions. In other words, the specific constraint conditions for the detection device to stop providing detection data are closely related to the adjustment of the sending strategy of the request instruction. Only when the sending strategy of the request instruction is adjusted as expected can it trigger the satisfaction of the specific constraint conditions, and then the detection device stops providing the detection data.
[0089] Among them, when the terminal device actively sends a stop instruction, for example: when receiving a second interaction instruction, send a stop instruction, which is edited based on a predetermined data format, so that the detection device can parse and execute it to trigger the detection device to immediately stop providing the detection data. This method can achieve the immediate stop of detection data when the specific interaction state is released.
[0090] Of course, in some embodiments, when receiving a second interaction instruction, the terminal can also both actively send a stop instruction and adjust the sending strategy of the request instruction, so that the detection device enters the detection state of specific constraint conditions based on the stop instruction. Once it detects that it meets the specific constraint conditions, it immediately stops providing detection data.
[0091] In the above embodiments, the second interaction instruction is used to guide the processing entity to exit the specific interaction state, and the stop instruction is generated after the user triggers a specific interaction control.
[0092] It can be seen that the solution provided by the embodiments of the present disclosure can improve the problems of waste of communication resources and increased network burden caused by the out-of-sync of the reporting of specific detection data of the detection device and the interaction state of the terminal device.
[0093] Based on the above solution, the terminal device can activate the specific data reporting of the detection device in a specific interaction state, ensuring the timely presentation of relevant information in the specific interaction state. When the specific interaction state is released, the detection device stops reporting specific data, avoiding unnecessary communication burdens. Overall, this method can reduce the network communication burden while ensuring data accuracy and real-time performance.
[0094] In some embodiments, the terminal device communicates with a remote communication device and interacts with the detection device through the remote communication device to establish a remote temporary session with the detection device through a request instruction in a specific interaction state.
[0095] A remote communication device can be understood as a device capable of receiving, storing, processing, and remotely transmitting data. It usually serves as the center for data exchange, storage, or processing, and is responsible for coordinating information interaction among multiple devices. The core functions of the remote communication device include, but are not limited to, at least one of the following: data reception and transmission, data storage, data processing and calculation, and instruction issuance.
[0096] The remote communication device has networking capabilities and can communicate with other devices through Wi-Fi, cellular networks (4G / 5G), LoRa, NB-IoT, Bluetooth, etc.
[0097] Exemplarily, if the detection device communicates externally through a Bluetooth mesh network, the remote communication device at least includes a Bluetooth gateway. After the detection device sends the detection data to the Bluetooth gateway through the Bluetooth mesh network, the Bluetooth gateway directly or indirectly distributes it to the terminal device. In this scenario, the remote communication device can also include a cloud to provide longer-distance data transmission. The cloud is a remote communication device deployed on a cloud computing platform. Compared with traditional physical servers, it has advantages such as elastic expansion, high availability, and distributed storage, and can adapt to the needs of large-scale concurrent data processing. The detection device joins the Bluetooth mesh network composed of the Bluetooth gateway and then communicates with the Bluetooth gateway through this network. The Bluetooth gateway is connected to the corresponding router after pre-network configuration and is connected to the cloud through the router. After the terminal device is connected to the cloud through cellular data, Wi-Fi, etc., the communication connection between the detection device and the terminal device can be achieved.
[0098] In a Bluetooth Mesh network environment, excessive reporting messages may affect network stability. Based on the solution provided by the embodiment of the present disclosure, in the specific interaction state of the processing entity, the terminal device sends a request instruction to the detection device, and the request instruction is used to trigger the detection device to report the detection results that meet the preset conditions through the Bluetooth Mesh network; when receiving the second interaction instruction, the sending strategy of the first control information is adjusted so that the detection device stops reporting the detection data through the Bluetooth Mesh network when the specific constraint conditions are met.
[0099] To this end, the disclosed embodiment proposes a mechanism for reporting specific detection data of a detection device based on a specific interactive state control. When the electronic device enters a specific interactive state, the detection device sends corresponding control information (i.e., a request instruction) to enable it to report the detection results that meet the preset conditions through the Bluetooth Mesh network, thereby ensuring that the information in the specific interactive state can be presented in a timely manner. When the electronic device exits the specific interactive state, the detection device is controlled to terminate the reporting of the detection data to avoid unnecessary data transmission and reduce the network communication burden.
[0100] It can be seen that in the disclosed embodiment, the remote temporary session is a short-term data interaction connection established between the terminal device and the detection device in a specific interaction state of the processing entity. The remote temporary session supports the real-time transmission of the detection data of the detection device, ensuring that the specific detection data can be visualized in the specific interaction state of the terminal device. Moreover, unlike an ordinary session, the remote temporary session is established and released on demand. Here, an ordinary session can be understood as a conventional connection maintained by the detection device and a remote communication device and / or a terminal device, which is mainly used to report basic detection data (such as the state of presence / absence of a target), while a remote temporary session is only established in a specific interaction state of the processing entity, and is released after the specific interaction state is released, so as to provide more efficient data interaction support in a specific interaction state, and can significantly reduce communication after release.
[0101] In addition, the first interaction instruction involved in the above embodiment can be understood as an interface interaction operation imposed by the user on the terminal device, which prompts the application to enter a specific interaction state, such as causing the application to enter a specific interface or activate a certain function. The second interaction instruction is used to release (exit, terminate, etc.) the specific interaction state, such as causing the application to exit a specific interface or terminate the corresponding function. It can be seen that the first interaction instruction is used to trigger and maintain a specific interaction state, while the second interaction instruction is used to revoke or terminate the state, thereby jointly constituting a complete interaction process, ensuring that the detection device can dynamically adjust the interaction logic according to external needs.
[0102] In some embodiments, the first interaction instruction is used to guide the processing entity into a specific interaction state based on a specific interaction interface; and / or, the second interaction instruction instructs to exit the specific interaction interface, causing the processing entity to exit the specific interaction state.
[0103] In the specific implementation, the first interaction instruction and the second interaction instruction can be implemented based on the entry into and exit from the same specific interaction interface, which is one of the multiple interaction interfaces of the application. When the user operates the application to enter the specific interaction interface, the first interaction instruction is triggered. When the user operates the application to exit (dismiss, terminate) the specific interaction interface, the second interaction instruction is triggered.
[0104] On this basis, when the second interaction instruction is received, the terminal device adjusts the sending strategy of the request instruction (for example, stops sending the request instruction), so that the detection device stops providing the detection data when meeting specific constraint conditions.
[0105] Furthermore, the first interaction instruction and the second interaction instruction are closely associated with the entry into and exit from the specific interaction interface. Without the need for the user to perform additional specific operations (such as manually activating or deactivating the controls on a certain page), the corresponding data processing flow can be automatically triggered.
[0106] It should be noted that since the second interaction instruction is triggered when the user exits the specific interaction interface, there is no need to worry about invalid data transmission when the user forgets to operate and does not stay in the specific interaction interface. When the user exits the specific interaction interface (for example, switches to other interaction interfaces, closes the application, locks the screen, shuts down, etc.), the second interaction instruction will be automatically triggered, thus ensuring that the reporting of the detection data can stop.
[0107] Taking a mobile phone as the terminal device and a smart home App as the processing entity, the specific description is as follows: As Figure 4 shown, when the user clicks on the "Function Configuration" control item in the smart home App, the App will enter the configuration interface 400, which is a specific interaction interface, thus triggering the first interaction instruction and causing the smart home App to enter and remain in the specific interaction state. Subsequently, the terminal device sends a request instruction to the detection device to prompt it to report the detection data. When the user exits the configuration interface 400, the second interaction instruction will be triggered, causing the smart home App to exit the specific interaction state, and at the same time, the terminal device stops sending the request instruction, thereby terminating the data reporting of the detection device.
[0108] Further, the specific interaction interface is a configuration interface 400 for adjusting the operation parameters of the detection device, including an information presentation area 401 and a parameter configuration area 402 (as Figure 4 shown).
[0109] The operating parameters of the detection device can be understood as configuration parameters for adjusting the operating state and detection performance of the detection device. The processing entity of the interaction logic (such as an application) can dynamically adjust these parameters according to different detection requirements to optimize the detection effect.
[0110] Specifically, the configuration parameters include but are not limited to the following detection performance-related parameters:
[0111] Sensitivity: Used to control the response threshold of the detection device. For example, the sensitivity level (low / medium / high) or specific value (0 - 100) of a microwave radar for detecting human movement.
[0112] Detection range: Used to define the effective detection area. For example, the detection coverage of a microwave radar or the infrared detection angle of a PIR sensor (such as 120°, 180°).
[0113] Sampling frequency: Determines the time interval at which the detection device performs data acquisition. For example, once per second or ten times per second, to balance detection accuracy and power consumption.
[0114] Among them, the parameter configuration area 402 is used for the user to adjust the operating parameters of the detection device. For example, in a human presence sensor based on a microwave radar, the sensitivity parameter directly determines the detection ability of the sensor for human targets. The higher the sensitivity, the farther distance or more subtle movement the sensor can detect, while when the sensitivity is low, it only responds to target changes at close range or that are more obvious.
[0115] The information presentation area 401 is used to dynamically display the real-time detection results of the detection device. Its content is determined by the detection data reported by the detection device and can be updated in real time as the parameters in the parameter configuration area 402 are adjusted, so that the user can intuitively understand the impact of different configurations on the detection effect.
[0116] Based on this, after the terminal device enters the configuration interface, the method further includes step S35 and step S36.
[0117] At step S35, in response to the user's operation in the parameter configuration area, generate and transmit configuration data for adjusting the performance of the detection device.
[0118] The user can adjust the sensitivity parameter in the parameter configuration area of the application through a slider, button selection, voice command, etc. The sensitivity parameter is used to control the detection range of the sensor and the response threshold to target movement. When the user finishes the adjustment, the processing entity of the interaction logic sends the updated configuration data to the detection device to make the adjusted sensitivity parameter effective.
[0119] At step S36, obtain the adjusted detection data and update the display in the information presentation area to provide feedback on parameter adjustment to the user.
[0120] It can be seen that in this embodiment, the interaction interface for triggering the specific interaction state of the processing entity is specific, which has the capabilities of detecting device configuration and data display. Through this interface, the user can prompt the processing entity of the interaction logic to adjust the detection performance of the detecting device and provide the real-time presentation and operation capabilities for the detection data.
[0121] Taking the microwave radar human body sensor as an example, this specific interaction interface can display information such as the human body detection status and position, and at the same time allows the user to adjust the sensitivity of the detecting device. When the user enters the configuration interface, the processing entity of the interaction logic sends a request instruction to the detecting device, prompting the detecting device to start reporting the detection data and triggering the content update of the information presentation area, enabling the user to intuitively view the current detection status. When the user adjusts the parameters of the detecting device (such as sensitivity, detection mode, etc.) in the parameter configuration area, the detecting device adjusts the detection strategy according to the new parameters and generates new detection data, and the information presentation area changes dynamically accordingly, providing instant feedback. When the user exits this configuration interface, the processing entity of the interaction logic sends an instruction to stop data reporting to the detecting device, and the content update of the information presentation area also terminates accordingly, thus avoiding unnecessary resource consumption.
[0122] Furthermore, through the above solution, the convenience of optimizing the parameter adjustment of the detecting device and the feedback mechanism are provided. A parameter configuration interface is provided, enabling the user to intuitively adjust the performance parameters of the detecting device and providing feedback through the real-time updated detection data to ensure the effectiveness of the parameter adjustment and improve the operation efficiency.
[0123] Further, the request instruction causes the detecting device to generate and report detection data when a preset condition is met; the preset condition is based on the sensing rules of each detection sub-region determined by the configuration data; the detection sub-region is obtained by dividing the target detection range of the detecting device; updating the display of the information presentation area includes: visually presenting the target detection status of each detection sub-region according to the detection data.
[0124] In the embodiment of the present disclosure, the detecting device generates and reports detection data when a preset condition is met to achieve real-time monitoring of the detection target. The preset condition is determined by the configuration data and includes the sensing rules for different detection sub-regions within the target detection range of the detecting device. The detecting device processes the detection data of each detection sub-region according to these sensing rules and reports the corresponding detection data when the conditions determined by the sensing rules are met.
[0125] To improve the detection accuracy and adaptability, embodiments of the present disclosure divide the target detection range into multiple detection sub-regions, enabling the detection device to apply different perception rules to different detection sub-regions respectively. The perception rules are used to determine the detection criteria of the detection device within each detection sub-region, such as the intensity threshold, which is used to set the minimum signal intensity threshold for each detection sub-region. Only when the radar echo signal exceeds this threshold is the target considered to exist.
[0126] Exemplarily, in a human presence detection scheme based on a microwave radar, the target detection range can be divided into multiple detection sub-regions, and different sensitivity thresholds or detection modes can be set for each detection sub-region respectively to meet the requirements of different application scenarios.
[0127] The information presentation area is used to visually display the real-time detection data of the detection device, especially the target detection status of different detection sub-regions. When preset conditions are met, the detection device generates detection data and sends it to the processing entity of the interaction logic. Subsequently, the information presentation area is dynamically updated based on the received detection data, enabling the user to intuitively obtain the target detection status of each detection sub-region.
[0128] When the user enters the configuration interface of the detection device, the terminal device sends a request instruction to the detection device, causing it to report detection data according to the set perception rules to ensure that the information presentation area can display the current detection status in real time. During the interaction process, the user can adjust the perception rules of the detection sub-region through the parameter configuration area, such as increasing the detection sensitivity of a certain detection sub-region. The terminal device will send the new configuration data to the detection device and adjust the display effect of the information presentation area in real time based on the updated detection data, enabling the user to intuitively perceive the adjusted detection status. When the user exits a specific interaction interface, the reporting of detection data stops to reduce system resource consumption and terminate the dynamic update of the information presentation area to avoid unnecessary data refreshing.
[0129] For example Figure 5 as shown, the information presentation area can be, for example, Figure 5 the real-time status display area in []. It can be seen that when a target is detected in a certain detection sub-region, the color or brightness of the corresponding part of the information presentation area changes (such as Figure 5 0.75m - 3m in []), to indicate that the area is currently occupied. When the target leaves the detection range or the detection signal does not reach the threshold set by the perception rules, the information presentation area is automatically updated to display, returning the corresponding detection sub-region to its initial state. After the user adjusts the sensitivity in the parameter configuration area, the detection device updates the perception rules of the detection sub-region in real time and generates new detection data, causing the display of the information presentation area to be adjusted accordingly.
[0130] Furthermore, as Figure 5As shown, the parameter configuration area includes interaction controls for adjusting the sensitivity of each detection sub - area; in response to user operations in the parameter configuration area, configuration data (updated sensitivity parameters) for adjusting the performance of the detection device is generated and transmitted; specifically including:
[0131] In response to user operations, updated sensitivity parameters are generated and transmitted to the detection device, enabling individual setting of the detection sensitivity of each detection sub - area, so as to form independent specific perception rules for each detection sub - area based on the individually set detection sensitivity.
[0132] In the embodiments of the present disclosure, interaction controls are provided through the parameter configuration area, enabling users to independently adjust the detection sensitivity of each detection sub - area, thereby achieving more refined detection control. This solution enables the detection device to apply different sensitivity settings according to the environmental characteristics and detection requirements of different areas to improve detection accuracy and reduce false detections or missed detections.
[0133] As Figure 5 shown, the sensitivity adjustment control can be a slider: users can increase or decrease the sensitivity of a certain detection sub - area by dragging the slider, making the detection ability of this area stronger or weaker for the target. As Figure 5 shown, the range is divided into 8 detection sub - areas: 0 - 0.75m, 0.75m - 1.5m, 1.5m - 2.25m, 2.25m - 3m, 3m - 3.75m, 3.75m - 4.5m, 4.5m - 5.25m, 5.25m - 6m. Each detection sub - area provides a sensitivity adjustment slider. Users can arbitrarily adjust one or more sliders to independently adjust the sensitivity of each detection sub - area. The sliding range of each slider is 0 - 100%, and different sliding values represent different sensitivities, thereby determining the specific perception rules for the corresponding detection sub - areas.
[0134] Specifically, when the user operates in the parameter configuration area (such as adjusting the slider), the processing entity of the terminal device will perform the following processing steps:
[0135] Parse user input: The processing entity obtains the specific content of the user operation, identifies which detection sub - area the user has adjusted, and parses the corresponding change in the sensitivity parameter.
[0136] Generate updated configuration data: Based on the user's operation, new sensitivity parameters are generated and encapsulated into configuration data according to the established data format. This configuration data contains the independent sensitivity values of each detection sub - area to ensure that different areas can adopt personalized perception rules.
[0137] Transmission to the detection device: The processing entity sends the generated configuration data to the detection device through the communication interface, enabling the detection device to apply the new sensitivity settings in real time.
[0138] After the detection device receives the new configuration data, it will perform the following operations:
[0139] Parse the configuration data and extract the updated sensitivity parameters for each detection sub-region.
[0140] According to the updated sensitivity parameters, adjust the detection thresholds for each detection sub-region respectively, so that different regions adopt different signal processing criteria during target detection.
[0141] During subsequent detection, independent perception rules are formed based on the adjusted sensitivity parameters. For example:
[0142] The high-sensitivity sub-region can detect weaker motion signals and is suitable for monitoring slight movements (such as gestures or subtle displacements).
[0143] The low-sensitivity sub-region requires stronger signal changes to trigger the reporting of detection data and is suitable for scenarios where environmental interference is reduced (such as avoiding the influence of factors like curtain swings on detection results).
[0144] To improve the user experience, the information display area dynamically updates the display content according to the application of the new sensitivity parameters of the detection sub-regions, enabling users to intuitively perceive the effect of the configuration adjustment.
[0145] Through this solution, the present invention realizes the independent setting of the sensitivity of each detection sub-region, enabling the detection device to apply different perception rules based on different detection requirements, thereby improving the accuracy, flexibility, and adaptability of detection.
[0146] In some embodiments, the size of the detection data reported by the detection device is limited to less than 32 bytes, and the size of the configuration data sent by the terminal device is limited to less than 16 bytes.
[0147] In particular, the size of the detection data reported by the detection device is determined according to the specific number of detection sub-regions, that is, this solution compresses and encodes the detection data based on the division of the detection sub-regions to transmit the complete target detection state with the smallest amount of data. For example, if the target detection range of the detection device is divided into N detection sub-regions, the size of the detection data can be optimized to N / 8 bytes, and each bit corresponds to the status information of a detection sub-region.
[0148] Taking a microwave radar-based human presence sensor as an example, its target detection range is divided into 8 detection sub-regions, and each detection sub-region independently determines whether a human is present. Therefore, the detection device can use 1 byte (8 bits) to encode the states of all detection sub-regions, and the value of each bit represents the human detection result of that sub-region. For example:
[0149] "1" indicates that a human is detected in this detection sub-region;
[0150] "0" indicates that no human is detected in this detection sub-region.
[0151] Assume that the target detection range is divided into 8 detection sub-regions, and humans are detected in the 1st, 3rd, and 6th regions, while no humans are detected in the remaining regions. Then the detection data encoding is as follows:
[0152] Detection sub-region number: 87654321
[0153] Detection status (bit): 00100101 (total 1 byte, binary: 00100101, hexadecimal: 0x25);
[0154] After receiving this detection data, the terminal device can directly parse the value of each bit and update the human presence status of each detection sub-region in the information display area in real time to achieve a visual display of the detection results.
[0155] Similarly, during the parameter configuration process, to reduce the instruction overhead sent by the terminal device to the detection device, the size of the configuration data is limited to less than 16 bytes. For a microwave radar detection device, the configuration data is mainly used to adjust the sensitivity of the detection sub-regions or other detection parameters. For example, the sensitivity of each detection sub-region can be encoded using 4 bits (e.g., 16-level sensitivity adjustment, 8 trigger sensitivities for detecting a human, 8 sustain sensitivities for detecting a human). Then, for 8 detection sub-regions, only 4 bytes (8 × 4 bits) are needed to completely represent the sensitivity configuration of all regions.
[0156] After the terminal device sends this data to the detection device, the detection device parses the sensitivity parameters of each detection sub-region and adjusts the detection sensitivity of each region accordingly to form independent sensing rules.
[0157] Since the amount of data transmitted each time is small, the reporting frequency of the detection data can be higher, enabling the terminal device to perceive changes in the target state faster and achieve low-latency interaction.
[0158] This solution can be extended to larger-scale detection sub-region scenarios, such as 16 detection sub-regions (2 bytes), or 24 detection sub-regions (3 bytes), with good flexibility and applicability.
[0159] In summary, through data compression and coding optimization, this solution significantly improves the transmission efficiency and real-time performance of detection data, while reducing the energy consumption of the device, enabling the human presence detection based on microwave radar to operate more efficiently.
[0160] In some embodiments, the terminal device sends a request instruction, specifically including:
[0161] The terminal device periodically sends a request instruction to the detection device. Each time the request instruction is sent, it triggers the detection device to enter an effective reporting period. During the effective reporting period, the detection device reports the detection data according to a predetermined rule; the duration T1 of the effective reporting period is greater than or equal to the sending period T2 of the request instruction.
[0162] In the embodiments of the present disclosure, in order to ensure that the detection device can stably report detection data as needed, the terminal device periodically sends a request instruction to the detection device to maintain the effectiveness of data reporting. Specifically, each time the request instruction is sent, it triggers the detection device to enter an effective reporting period. During this period, the detection device reports the detection data according to a predetermined rule to ensure the continuity and reliability of the data.
[0163] The duration T1 of the effective reporting period needs to satisfy T1≥T2, that is, T1 is greater than or equal to the sending period T2 of the request instruction. In this way, when the terminal device sends the request instruction according to the period T2, the detection device is always in the effective reporting period (as shown in Figure 6 ), thus avoiding the detection device entering a non-reporting state due to too long an interval between request instructions and improving the stability of data reporting.
[0164] It can be seen that this solution controls the data reporting behavior of the detection device by periodically sending request instructions, combined with the effective reporting period mechanism, to ensure the continuity of data update and reduce the network communication burden (that is, ensure that the device provides data only when key changes occur and reduce unnecessary data transfer).
[0165] Furthermore, the predetermined rule during the effective reporting period includes one of the following rules:
[0166] Report at a set time period, and the period is not greater than the effective reporting period (for example, collect data every 500 ms and upload it as needed).
[0167] Report only when the detection data meets the preset change condition, otherwise do not report.
[0168] Furthermore, the preset change condition includes at least one of the following:
[0169] The target presence status changes; for example, it changes from 00000000 (no human body exists in all 8 detection sub-regions, i.e., no-person state) to 00000001 (a human body exists in the 8th detection sub-region, i.e., person state).
[0170] The target position changes; for example, it changes from 00000001 (a human body exists in the 8th detection sub-region) to 10000000 (a human body exists in the 1st detection sub-region).
[0171] The target quantity changes; for example, it changes from 10000000 (1 detection sub-region triggers the presence of a person) to 11100001 (4 detection sub-regions trigger the presence of a person).
[0172] Furthermore, based on a data screening mechanism of predetermined rules and preset change conditions, data reporting can be accurately triggered according to requirements, further reducing irrelevant data streams.
[0173] In some embodiments, when the terminal device runs an application program (processing entity) but does not enter a specific interaction interface, the terminal device has not yet established the remote temporary session. At this time, only the ordinary session is maintained. When entering the specific interaction interface, the remote communication device will establish a remote temporary session between the terminal device and the detection device through a request instruction for: obtaining real-time detection data for dynamically updating the display content of the interaction interface, and receiving configuration data of the interrupt device and adjusting the detection performance of the detection device.
[0174] When the application program body remains in a specific interaction state of the specific interaction interface, the remote communication device periodically sends the request instruction of the terminal device to the detection device to maintain the active state of the remote temporary session. When the application program exits the specific interaction interface, the sending of the request instruction stops, causing the detection device to automatically exit the remote temporary session after the end of the most recent effective reporting period. After exiting the remote temporary session, the detection device resumes to the ordinary session state, reducing the communication burden.
[0175] Assume that the detection device is a microwave radar-based human presence sensor, and its target detection range is divided into 8 detection sub-regions. In a normal session, only the presence information of the human body is transmitted, including: when at least one of the 8 detection sub-regions detects a person, it is considered that there is a person present, and then the result of the presence of a person is reported to the remote communication device. When no person is detected in all 8 detection sub-regions, it is considered that there is no person present, and then the result of no person present is reported to the remote communication device. As for which specific detection sub-region among the 8 detection sub-regions triggers the presence of a person, it will not be transmitted in a normal session. Therefore, when the detection sub-region that triggers the presence of a person changes, since the detection result is still that there is a person present, there will be no re-reporting in a normal session. During a remote temporary session, when the detection device detects any change in the human presence state (for example, the presence of a person changes to the absence of a person, or the absence of a person changes to the presence of a person), location (for example, the presence of a person is triggered by the detection sub-region from 0 to 0.75 m and changes to the detection sub-region from 0.75 m to 1.5 m triggering the presence of a person), or quantity (for example, the presence of a person is triggered by two detection sub-regions and changes to three detection sub-regions triggering the presence of a person), it will upload the detection data to ensure the real-time update of the data in the configuration interface. The interruption device dynamically updates the detection result to the configuration interface and visually displays the human presence state of each detection sub-region.
[0176] It can be seen that in this solution, the remote temporary session is only started when the user views the detection data or adjusts the configuration, avoiding meaningless data transmission.
[0177] Furthermore, when the second interaction instruction is received, the sending strategy of the request instruction is adjusted to make the detection device stop providing detection data when meeting specific constraint conditions; specifically, after the processing entity exits the specific interaction interface, the request instruction is stopped from being sent, and when the detection device ends the most recent effective reporting period and does not receive a new request instruction, it stops providing detection data.
[0178] In the embodiments of the present disclosure, by adjusting the sending strategy of the request instruction, the detection device can flexibly adjust the reporting behavior of the detection data according to the interaction state of the terminal device, avoiding unnecessary data transmission. Specifically, when the terminal device receives the second interaction instruction (for example, when the processing entity exits the specific interaction interface), the request instruction is stopped from being sent.
[0179] Since the detection data is only reported within the effective reporting period, and the effective reporting period is triggered one by one by the periodically sent request instructions, after the request instruction is stopped from being sent, the detection device will automatically stop reporting the detection data immediately or after a certain delay after the end of the current effective reporting period.
[0180] Exemplarily, taking the effective reporting period as 30 seconds and the sending period of the request instruction as 20 seconds as an example, the data interaction behavior can be specifically Figure 7 andFigure 8 As shown, since the transmission period T2 (20 seconds) of the request instruction is less than the effective reporting period T1 (30 seconds), the detection device is always in the effective reporting period and continuously provides detection data.
[0181] Assume that the user exits the specific interaction interface at the 50th second, and the terminal device immediately stops sending the request instruction. Then the data reporting behavior is as Figure 8 shown. Since the last request instruction was sent at the 40th second, the effective reporting period triggered this time will last until the 70th second. Therefore, the detection device stops reporting at the 70th second, thus realizing the dynamic adjustment of the detection data reporting.
[0182] It can be seen that this solution dynamically adjusts the sending strategy of the request instruction, enabling the data reporting behavior to be automatically adjusted according to the interaction status, reducing redundant data transmission while ensuring the availability of the detection data, and effectively reducing the communication burden.
[0183] In addition, in some embodiments, if the detection device receives the request instruction again within the effective reporting period, the effective reporting period is reset.
[0184] For example Figure 7 and Figure 8 shown, the transmission period T2 of the request instruction is 20 seconds, and the effective reporting period T1 is 30 seconds. The effective reporting period is triggered at the 1st second, and then the request instruction will be received again at the 20th second. At this time, the current effective reporting period is reset, that is, the remaining 10 seconds of the current effective reporting period will not continue, but a new 30 - second effective reporting period will start.
[0185] If the detection device receives the request instruction again after the end of the effective reporting period, the next effective reporting period is started.
[0186] In addition, the detection data obtained by the existing detection device for the detection of the target object usually adopts a unified reporting method. For example, a human body sensor usually processes and reports all human body detection data (presence information, attribute feature information, etc.) in a unified manner. However, in some application scenarios, reporting all detection data without discrimination may lead to data redundancy, increasing unnecessary network transmission and computing storage burdens.
[0187] Based on this, an embodiment of the present disclosure provides a data interaction method for dynamically controlling target quantitative data according to user needs. By hierarchically designing the detection data, the reporting strategy of the detection data can be flexibly adjusted.
[0188] First, introduce the hierarchical design of the detection data in the embodiments of the present disclosure. Specifically, in the embodiments of the present disclosure, the detection data directly or indirectly obtained from the detection of the target object is divided into at least two categories, namely target basic data and target quantitative data.
[0189] The target basic data is used to indicate the existence information of the target. This type of data is usually binary or simple state data, such as "someone / no one" or "something / nothing". For example, the result of whether a human body sensor detects a person.
[0190] Among them, the target quantitative data is used to characterize the attribute characteristic information of the target. Different from the target basic data that only characterizes the existence of the target, the target quantitative data provides more detailed target information. The attribute characteristics are further quantitative information about the target based on the existence of the target, that is, using data to characterize the observable attributes of the target, not just the existence.
[0191] Exemplarily, the attribute feature information is, for example but not limited to, at least one of the following:
[0192] Position, used to quantify the target location, such as specific coordinates, relative distance, etc.;
[0193] Action, used to quantify target actions, such as movement trends (approaching, moving away);
[0194] Quantity, used to quantify the number of targets or the number of triggers in the detection sub-area, such as 2 people or 1 person;
[0195] State, used to quantify the target state, such as falling, lying down, walking, etc.
[0196] It can be seen that the target quantitative data is obtained on the premise that the target basic data indicates the existence of the target, including data on the location, action, quantity and / or state of the target.
[0197] In some application scenarios, target basic data may always need to be reported, while target quantitative data may only need to be reported when specific conditions (such as when the first control instruction is received) are met.
[0198] Based on the above data hierarchical division, the embodiment of the present disclosure designs a data interaction method, which is based on a dynamic control mechanism of logical constraint relationships, so that the reporting of target quantitative data can be adjusted according to specific conditions. This method can be applied to Figure 1 The terminal device 103 in Figure 2 An electronic device 200 is shown.
[0199] like Figure 9 As shown, the data interaction method 90 at least includes steps S91 to S94.
[0200] like Figure 9 As shown, in step S91, the terminal device obtains the third interaction instruction.
[0201] This step is used to receive a third interaction instruction from an external interaction subject, and the third interaction instruction is used to release the reporting mode of the target quantitative data. The target quantitative data is used to characterize at least one attribute characteristic information of the target. Specifically, the external interaction subject can be a user, or other intelligent terminal, cloud server or other control device.
[0202] In step S92, the terminal device determines the trigger execution rule associated with the detection device. The trigger execution rule is set based on the matching relationship between the preset condition and the specific operation, and the specific operation is executed when triggered by the preset condition. That is, when the preset condition is met, the specific operation is controlled to be executed, and the preset condition may be related to the target quantitative data.
[0203] Exemplarily, the triggerable execution rule is pre-set by the user through the terminal device, and there may be multiple triggerable execution rules. The triggerable execution rule may be related to the detection device, that is, the preset condition is associated with at least one detection data obtained by the detection device, and the specific operation is at least one executable operation of at least one controlled device in the network to which the detection device joins. For example, when a human body has a certain movement trend, a light-on operation is executed. It may also be related to the target basic data, such as when a human body exists, a light-on operation is executed. The triggerable execution rule may also be unrelated to the detection device, that is, the preset condition of the triggerable execution rule is at least one trigger action of other smart devices in the network (for example, a smart switch is pressed), and the specific operation is at least one executable operation of at least one controlled device in the network.
[0204] In addition, there may be one or more detection devices. When there are multiple detection devices, determining the trigger execution rules associated with the detection device specifically includes determining the trigger execution rules associated with the target detection device, and the target detection device is the detection device corresponding to the third interactive instruction indicating the release of the reporting mode of the target quantitative data.
[0205] In step S93, the logical constraint relationship of the triggering execution rule is determined.
[0206] This step is used to determine whether there is at least one triggering execution rule, whose preset condition involves at least one attribute feature represented by the target quantitative data, thereby forming a logical constraint relationship with the target quantitative data reporting mode.
[0207] Among them, if the preset condition set by the matching relationship of at least one triggering execution rule is related (directly or indirectly) to at least one target attribute feature represented by the target quantitative data, it is considered that there is a logical constraint relationship; otherwise, it is considered that there is no logical constraint relationship.
[0208] When there are logical constraint relationships, the operation of the corresponding trigger execution rules depends on at least part of the target quantitative data. In this case, lifting the reporting mode may cause abnormal functions of the corresponding trigger execution rules (for example, unable to trigger normally).
[0209] In step S94, the terminal device starts a decision intervention process.
[0210] In some application scenarios of the embodiments of the present disclosure, the indiscriminate reporting of target quantitative data not only increases the network communication burden (for example, a large number of data packets in a Bluetooth mesh network may cause network instability), but may also be directly related to the normal operation of the trigger execution rules associated therewith. Therefore, in some embodiments of the present disclosure, when it is detected that the reporting mode of the target quantitative data has a logical constraint relationship with at least one trigger execution rule, the present disclosure proposes a decision intervention process to provide decision assistance information and guide external interaction entities to make reasonable trade-off decisions.
[0211] Specifically, when the discrimination result of step S93 indicates the existence of a logical constraint relationship, the terminal device starts a decision intervention process to intervene in the user's current operation.
[0212] Exemplarily, starting the decision intervention process includes constructing and providing decision assistance information, which includes at least one of the following information:
[0213] List of affected trigger execution rules: Provide the trigger execution rules enabled by the current detection device, and mark the rule items that depend on the target quantitative data;
[0214] Prompt for the possible invalidation of trigger execution rules caused by lifting the reporting mode: Provide a detailed description of the invalidation impact, and clearly point out the functional changes that may be caused by terminating the reporting.
[0215] After obtaining the decision assistance information, the external interaction entity can make a comprehensive consideration based on specific application requirements and make corresponding decision choices. Typical decision choices include:
[0216] Keep the reporting mode of the target quantitative data enabled (reject terminating the reporting): If the external interaction entity believes that terminating the reporting will cause important functions to be damaged, it can choose not to perform the data reporting termination operation and maintain the original detection data upload strategy;
[0217] Continue to perform the operation of lifting the reporting mode of the target quantitative data (agree to terminate the reporting): If the external interaction entity believes that terminating the data reporting will not cause significant impacts, or can accept the invalidation of the corresponding functions, it can choose to continue to perform the data reporting termination operation.
[0218] Based on the feedback result of the external interaction entity, the terminal device determines whether to send a second control instruction, which is used to prompt the detection device to stop reporting the target quantitative data.
[0219] If it is determined in step S93 that there is a logical constraint relationship, but the external interaction entity agrees to terminate the reporting, then based on the feedback result of step S94, a second control instruction is sent to the detection device to stop reporting the target quantitative data. If the external interaction entity refuses to terminate the reporting, the reporting mode of the target quantitative data is kept in the open state to ensure that all relevant triggering execution rules can still work properly without being affected.
[0220] It can be seen that when the reporting mode of the target quantitative data of the detection device may be lifted, the terminal device can automatically construct decision - making assistance information to help the external interaction entity (such as the user) comprehensively understand the potential impact of terminating the reporting.
[0221] To better illustrate the actual role of the decision - making intervention process, a specific application example is provided below. As Figure 10 shown, it is a user operation interface of a human body sensor, and the target quantitative data includes the human body movement trend. Suppose the user creates a triggering execution rule of "approach - turn on the light", and the preset condition of this triggering execution rule is "human body approaches", and the specific operation is "turn on the lamp". Then this triggering execution rule depends on the attribute feature information of the human body movement trend, that is, the reporting mode of the human body movement trend must be turned on for this triggering execution rule to be possibly triggered.
[0222] As Figure 10 shown, the user operation interface 100 provides a first - mode operation area 101, and this area includes a first - mode switching control 1011, where the first - mode switching control 1011 is used to lift or start the reporting mode of the human body movement trend. The user can operate to activate the first - mode switching control 1011, and the terminal device will correspondingly obtain the third interaction instruction.
[0223] After determining the triggering execution rules related to the detection device, the terminal device traverses all the triggering execution rules associated with the detection device, and finds that whether the preset condition of the execution rule of "approach - turn on the light" is met depends on the attribute feature information of the human body movement trend, and the target quantitative data includes the human body movement trend. Therefore, it is determined that there is a logical constraint relationship between the reporting mode and the triggering execution rules of the detection device, and then the decision - making intervention process is started.
[0224] For example Figure 10As shown, the decision intervention process provides decision-making auxiliary information prompts through a pop-up window 102, such as "It is detected that you have created an execution rule of "approach-turn on the light". You need to turn on the "XXXX (the specific mode name can be filled in here)" reporting mode so that the execution rule you created can be used normally. Are you sure you want to turn off this function?" If the user selects "Still turn off", a second control instruction is sent to the detection device to stop reporting of human motion trend data; otherwise, the reporting mode is kept started.
[0225] In addition, if Figure 10 As shown, a condition setting control 1012 is also provided in the first mode operation area. The condition setting control 1012 is used to set the approach / distance boundary value, and the boundary value is used to determine the reporting time of the attribute characteristic information of the human body movement trend. For example, if the boundary value is set to 3 meters, when the human body moves toward the human body sensor and crosses the 3-meter distance boundary, the "human body approaching" event will be triggered, and the human body sensor will report the target quantitative data carrying the event. When the human body moves away from the human body sensor and crosses the 3-meter distance boundary, the "human body away" event will be triggered, and the human body sensor will also report the target quantitative data carrying the event.
[0226] Through the detailed description of the above scheme and Figure 10 From the demonstration of examples, it can be seen that the decision-making intervention process provided by the embodiment of the present application enables the external interaction subject to fully evaluate the potential impact of terminating the target quantitative data reporting and make reasonable decisions by constructing at least one decision-making auxiliary information such as a list of affected trigger execution rules and a prompt of functional failure that may be caused by terminating data reporting. Finally, the corresponding control instructions are executed according to the feedback results of the external interaction subject.
[0227] In addition, when the judgment result of step S3 indicates that there is no logical constraint relationship, the terminal device directly sends a second control instruction to the detection device through the remote communication device, prompting it to stop reporting the target quantitative data. At this time, there is no need to start the decision intervention process, and the terminal device can independently release the reporting mode.
[0228] Furthermore, the data interaction method provided by this application realizes flexible management of target quantitative data reporting by hierarchically designing the data detected by the detection equipment and combining it with a dynamic control mechanism based on logical constraints, while ensuring that the basic detection functions are not affected. This method can not only reduce data redundancy and optimize bandwidth utilization, but also ensure that the execution of the trigger execution rules is in line with expectations.
[0229] In some embodiments, when the detection device is in the initial working state, software upgrade, reset or factory settings restored, the reporting mode of the target quantitative data is set to the release state (off) by default.
[0230] It should be noted that the detection device can detect the attribute feature information of multiple target objects. Each type of attribute feature information independently forms a type of target quantization data. The cancellation of the reporting mode of the target quantization data can be understood as the cancellation of the reporting modes of all attribute feature information, or it can be understood as the cancellation of the reporting modes of one or more selected attribute feature information. The activation of the reporting mode of the target quantization data can be understood as the activation of the reporting modes of all attribute feature information. Of course, it is also possible to independently activate the reporting modes of one or more selected attribute feature information based on user needs, while the reporting modes of other attribute feature information remain cancelled, that is, the reporting mode of the target quantization data can be partially activated and partially cancelled.
[0231] On this basis, before the terminal device obtains the third interaction instruction, the method further includes step S95 and step S96, which are used to activate the reporting of the target quantization data when the user needs it. Specifically:
[0232] In step S95, a fourth interaction instruction is obtained. The fourth interaction instruction is used to activate the detection device to enter the reporting mode of the target quantization data. That is, this instruction is used to activate the reporting mode of the target quantization data, that is, to allow the detection device to start uploading the target quantization data when certain conditions are met.
[0233] In step S96, based on the fourth interaction instruction, a first control instruction is applied to the detection device to prompt the detection device to activate the reporting of the target quantization data.
[0234] It can be seen that after successfully receiving the fourth interaction instruction, the first control instruction will be automatically sent to the detection device. The first control instruction will trigger the detection device to activate the reporting of the target quantization data and allow the detection device to upload at least one of the attribute feature information such as the location, action, quantity, and status of the target.
[0235] In some solutions, during the period when the reporting mode of the target quantization data is cancelled, the reporting of the target basic data (such as whether there is someone present) is maintained. And during the period when the reporting mode of the target quantization data is activated, the reporting of the target basic data is still maintained.
[0236] Furthermore, in the embodiments of the present disclosure, the reporting of the target quantization data is default prohibited to minimize the network data communication burden. In this case, a dynamic enabling mechanism for the reporting mode of the target quantization data is adopted, and the intelligent control of the reporting mode of the detection device is realized through the fourth interaction instruction and the first control instruction, giving users more flexible decision-making power.
[0237] Furthermore, the data interaction method further includes steps S97 to S99, which are used for intelligent decision-making when the target quantitative data is default prohibited from being reported. Specifically:
[0238] In step S97, enter the display interface based on the fifth interaction instruction; the display interface is used to visually present at least part of the target basic data, enabling the user to intuitively view the existence information of the target object.
[0239] In step S98, when it is detected that the reporting mode of the target quantitative data has been lifted, before, after, or at the same time as entering the display interface, determine whether there is at least one triggering execution rule, the preset conditions of which involve at least one attribute feature represented by the target quantitative data, so as to form a logical constraint relationship with the reporting mode of the target quantitative data.
[0240] In step S99, when the discrimination result indicates the existence of a logical constraint relationship, start another decision intervention process, and the other decision intervention process includes constructing and providing a prompt message and decision selection controls to remind the user of the potential impacts that may be caused by the lifting of the reporting mode, and based on the feedback result of the external interaction entity, determine whether to start the other decision intervention process again when entering the display interface again, and / or whether to directly start the reporting mode.
[0241] For example, if the user selects the first control in the provided decision selection controls, and the first control represents no longer repeating the prompt (such as Figure 11 "Do not prompt" in Figure 11 ), then when entering the display interface again, the other decision intervention process will not be started, thereby reducing unnecessary prompt interference and improving the interaction fluency. On the contrary, if the user does not select the first control, then each time the display interface is entered, the other decision intervention process will still be started to ensure that the user can obtain sufficient prompts before each operation. This design not only ensures the user's clear understanding of the logical constraint relationship, but also gives the user the flexibility to independently determine the prompt mechanism, improving the degree of intelligence and the user-friendly interaction experience. If the user selects the second control in the provided decision selection controls, and the second control represents directly starting the reporting mode (such as
[0242] "Immediately start" in Figure 11 ), then directly start the reporting mode, and the decision intervention process will not be started when entering the display interface next time.
[0242] In some embodiments, the target includes a human body, and the target quantitative data includes at least one of the attribute features for indicating the position, movement, quantity, and state of the human body; after applying the first control instruction to the detection device, the method further includes steps S10 and S11.
[0243] In step S10, obtain the target quantitative data from the remote communication device.
[0244] In step S10, the terminal device obtains target quantization data from the remote communication device. The acquisition of this data can be completed through wireless transmission, network communication, or other means suitable for remote data collection to ensure the real-time nature and accuracy of the data.
[0245] In step S11, the corresponding attribute characteristics of the human body represented by the target quantization data are visually presented through the display interface.
[0246] In step S11, after the obtained target quantization data is processed, it will be visually presented through the display interface, enabling the user to intuitively observe and understand the corresponding attribute characteristics of the target object it represents. The visual presentation methods can include numerical lists, trend charts, graphs, or other intuitive graphical display methods.
[0247] In a specific example, such as Figure 12 shown, when the target quantization data includes the human body position, in the case where the reporting mode is started, the human body position data will be displayed through the display control 1211 of the display interface 121 (such as Figure 12 "3 meters" in Figure 13 ). As
[0248] In some embodiments, the data interaction method further includes:
[0249] Before, after, or simultaneously with obtaining the first user operation instruction, the method further includes:
[0250] Obtaining target basic data from the remote communication device. The target basic data is data detected by the detection device and reported to indicate the existence of the target; the second control instruction is used to trigger the detection device to stop reporting the target quantization data without affecting the reporting of the target basic data by the detection device.
[0251] In the embodiments of the present disclosure, the data indicating the existence of the target is visually presented on the display interface (such as Figure 11 and Figure 12As shown in the figure). It should be specifically noted that the second control instruction is only used to trigger the detection device to stop reporting the target quantitative data, without affecting the reporting of the target basic data by the detection device. Therefore, even if the reporting of the target quantitative data is terminated, the basic presence information of the target can still be continuously sensed to ensure the normal operation of the basic monitoring function, and the quantitative data reporting mode can be restarted when necessary, so as to achieve the flexibility and stability of data management.
[0252] In a specific example, such as Figure 11 As shown in the figure, it is a display interface 111 of a human body sensor. If a user creates a trigger execution rule of "distance - turn off the light", the preset condition of this trigger execution rule is "the human body distance is greater than 3 meters", and the specific operation is "turn off the lamp". Then this trigger execution rule is realized depending on the attribute feature of the human body position, that is, it is necessary to enable the reporting mode of the target quantitative data used to represent this attribute feature of the human body position to trigger this trigger execution rule.
[0253] Such as Figure 11 As shown in the figure, the display interface 111 has a status display area 1111 for visually presenting the presence information of the target (such as Figure 11 "someone" in the figure). For example, when the target is a human body, the information on whether the human body sensor detects the presence of a human body (someone / no one) will be visually presented in the status display area. When the user enters this display interface 111, they can check whether a person is detected. If the user has manually cancelled the reporting mode of the target quantitative data representing the human body position at this time, or when the detection device is in the initial working state, software upgrade, reset or factory reset, the reporting mode of the target quantitative data is in the cancelled state. Furthermore, when the terminal device detects that the reporting mode of the target quantitative data has been cancelled, it will judge whether there is at least one trigger execution rule when entering the display interface, and its preset condition involves at least one attribute feature represented by the target quantitative data, so as to form a logical constraint relationship with the reporting mode of the target quantitative data. At this time, it will be found that whether the preset condition of the "distance - turn off the light" execution rule is met depends on the attribute feature information of the human body position, and the target quantitative data includes the human body position, so it is determined that there is a logical constraint relationship between the reporting mode and the trigger execution rule of the detection device, and then another decision intervention process is started. For example Figure 11 As shown in the figure, this another decision intervention process displays a prompt message through a pop-up window 112, such as "It is detected that you have created an execution rule of 'distance - turn off the light'. You need to enable the reporting mode of 'XXXX (words related to the human body position can be filled to prompt the user)' for the execution rule you created to be used normally. Are you sure you want to turn off this function?", and this pop-up window also carries a corresponding decision selection control 1121, such as Figure 11For "Later" and "Turn on immediately" in [the above], if the user selects "Turn on immediately", the terminal device directly sends a first control instruction to the terminal device through the remote communication device to prompt the detection device to start reporting the human body position and start the reporting mode. If the user selects "Don't prompt again" and "Later", the other decision-making intervention process will not be started again when entering the display interface 111 next time.
[0254] In addition, as Figure 12 shown, the terminal device provides a second-mode operation area 1231 through the user operation interface 123. This area includes a second-mode switching control 1232, where the second-mode switching control 1232 is used to cancel or start the reporting mode of the target quantitative data of the human body position. The user can operate to activate the mode switching control 1232, and the terminal device will correspondingly obtain the third interaction instruction, which is used to guide the cancellation of the reporting mode of the human body position.
[0255] It should be noted that the acquisition of the human body position is based on the trigger of the presence of a person, that is, the human body position can be obtained only when the target basic data indicates the presence of a person. This human body position represents the straight-line distance between the target (human body) and the detection device (human body sensor). This distance value is not restricted by the target sensing range set by the user. It should be noted that the theoretically maximum sensing range that the detection device can detect is certain and is determined at the time of factory. The target sensing range is a part of the area freely delimited by the user from the maximum sensing range. For example, if the maximum sensing range is 9 meters and the user sets the target sensing range to 3 meters, all human body positions within 9 meters can still be measured, and the measurement of human body positions in the range from 3 meters to 9 meters will not be affected by the target sensing range being limited to 3 meters.
[0256] When the reporting mode of the human body position is started, the terminal device visually presents the obtained human body position on the display interface (such as Figure 12 shown as "3 meters" in [the figure]), and when the reporting mode is cancelled, the display interface does not display the human body position information (such as Figure 11 shown in [the figure]).
[0257] In some embodiments, determining the trigger execution rules associated with the detection device includes:
[0258] Obtaining at least one trigger execution rule related to the detection device from the remote communication device. The trigger execution rule is a rule preset by the user through the terminal device and stored in the remote communication device. That is, the trigger execution rule is stored in the remote communication device.
[0259] The remote communication device may be a server (such as a cloud server), a local gateway (such as a Bluetooth gateway), an edge computing node, or other storage media. The terminal device can obtain corresponding rule data based on a network connection (such as Wi-Fi, cellular network, Zigbee, LoRa, etc.).
[0260] In step S3, the logical constraint relationship of the trigger execution rule is discriminated, which specifically includes:
[0261] Determine whether there is a preset condition with a matching logical relationship: traverse all the obtained trigger execution rules, and determine whether there is a trigger execution rule defined by a preset condition that has a logical relationship with at least one attribute feature information represented by the target quantitative data.
[0262] If so, it is considered that there is a logical constraint relationship; otherwise, it is considered that there is no logical constraint relationship.
[0263] Specifically, if there is at least one preset condition of the trigger execution rule that can match the attribute feature information of the target quantitative data, it is considered that there is a logical constraint relationship. If there is no trigger execution rule that meets the conditions, it is considered that there is no logical constraint relationship.
[0264] Furthermore, in this embodiment, the logical constraint relationship is limited to only the preset conditions defined by the matching relationship of the trigger execution rule, and has nothing to do with specific operations.
[0265] Further, the determination method of the logical constraint relationship adopts a matching mechanism based on rule identifiers. Specifically, obtain at least one trigger execution rule related to the detection device from the remote communication device, including one or more rule identifiers. Each rule identifier is used to uniquely identify a trigger execution rule, which is stored in the remote communication device and associated with the rule content.
[0266] The terminal device does not need to download all the complete rule data, but only obtains the rule identifiers and uses the identifiers for matching determination. After the user defines the trigger execution rule through the terminal device, the remote communication device generates the rule identifier and saves it.
[0267] The terminal device traverses all the obtained trigger execution rules, and determines whether there is a trigger execution rule defined by a preset condition that has a logical relationship with at least one attribute feature information represented by the target quantitative data; specifically including:
[0268] Traverse the obtained rule identifier list to check if there is a rule identifier that matches the attribute feature information represented by the target quantitative data; if there is a matching rule identifier, it is considered that the target quantitative data is associated with this rule and there is a logical constraint relationship; if no matching rule identifier is found, it is considered that the stored rules are not constrained by the target quantitative data and there is no logical constraint relationship.
[0269] Furthermore, in this embodiment, when judging the logical constraint relationship, the terminal device does not need to obtain all the data related to the trigger execution rules from the remote communication device. It only needs to obtain a string of rule identifiers and then check if there are matching items to complete the logical constraint determination, greatly reducing the data transmission volume, reducing the calculation cost, and improving the response speed.
[0270] In addition, in some embodiments, the method further includes step S12.
[0271] At step S12, the terminal device responds to the user's adjustment report instruction for the activation / deactivation of any trigger execution rule, triggering the remote communication device to perform the activation / deactivation operation on the target trigger execution rule; among them, the target trigger execution rule for which the activation operation is performed can be normally triggered, and the target trigger execution rule for which the deactivation operation is performed cannot be triggered; the second control instruction is only used to trigger the stop of the reporting of the target quantitative data, while the remote communication device still performs the activation operation on the trigger execution rule that has a logical constraint relationship with the reporting mode.
[0272] In this embodiment, the target trigger execution rule for which the activation operation is performed can be normally triggered to perform a specific operation when the target quantitative data meets the preset conditions; while the target trigger execution rule for which the deactivation operation is performed will not be triggered even if the target quantitative data meets the corresponding trigger conditions, to ensure that this rule does not affect the execution logic of the system during the adjustment period.
[0273] In addition, the second control instruction is only used to prompt the detection device to stop reporting the target quantitative data, and will not affect the management and execution of the trigger execution rule that has a logical constraint relationship with the reporting mode by the remote communication device. Therefore, even if the reporting mode of the target quantitative data is lifted, the remote communication device can still maintain the trigger execution rule associated with it in the activated state, ensuring that it can continue to perform specific operations according to the established rules when the reporting mode is restored. This mechanism makes the reporting control of the target quantitative data independent of the management of the trigger execution rule, ensuring both the flexible adjustment of data reporting and the stability and continuous availability of the trigger logic.
[0274] In a specific example, after a user creates a matching relationship between a preset condition - a specific operation based on a certain target attribute feature detected by a detection device, a triggering execution rule will be saved on the cloud server. The triggering execution rule has an ID (rule identifier) that is used to uniquely identify the triggering execution rule created based on the target attribute feature. When the user closes the reporting mode corresponding to the target attribute feature, the terminal device (taking a mobile phone as an example, specifically executed by a processing entity in the mobile phone (such as an APP)) will use an API to retrieve the ID list of all triggering execution rules related to the detection device from the cloud server and traverse whether there is an ID of a valid triggering execution rule created based on the corresponding target attribute feature; if so, the decision intervention process will be started. After the user clicks "Confirm to Close", a second control instruction will be sent to instruct the detection device not to report relevant messages anymore, and no invalidation operation will be performed on the corresponding triggering execution rule in the cloud server.
[0275] In some embodiments, applying the first control instruction includes: the terminal device relies on a remote communication device to apply the first control instruction to the detection device to prompt the detection device to operate according to the reporting process of the target quantitative data and transmit the detected target quantitative data to the remote communication device. The target quantitative data is used to enable the remote communication device to control the execution of a specific operation set by the matching relationship of the target triggering execution rule based on a preset condition matched by the received target quantitative data; the target triggering execution rule is a triggering execution rule that has a logical constraint relationship with the reporting mode.
[0276] In the embodiments of the present disclosure, the triggering execution rules stored in the remote communication device allow users to freely define the target attribute features detected by the detection device and set different preset conditions, so that when the target quantitative data meets the preset conditions, diverse specific operations can be triggered. This mechanism enables the setting of triggering operations to no longer be limited to a single target feature, but can be flexibly combined based on multiple target attribute features, thereby enhancing the complexity and applicability of the triggering logic.
[0277] Through this solution, users can flexibly adjust and manage the triggering rules without directly modifying the internal logic of the detection device, enabling the same type of detection device to be applicable to different application scenarios.
[0278] In some embodiments, the method further includes steps S13 to S15.
[0279] At step S13, obtain a sixth interaction instruction to enter the history record interface; the history record interface is used to record the historical situation of the target detection data.
[0280] At step S14, N records (N is greater than or equal to 0) are displayed in the historical record interface in order from new to old; as Figure 14 shown, the duration of a target existence state is recorded in each record.
[0281] At step S15, the duration of the Nth record is displayed on the display interface (for example Figure 11 and Figure 12 "1 hour 22 minutes" in
[0282] In the embodiments of the present disclosure, the Nth record is the latest record; wherein, the duration of the Nth record is the current time minus the trigger time of the Nth record, and the duration of the (N - 1)th record is the trigger time of the Nth record minus the trigger time of the (N - 1)th record, and so on, to obtain N records.
[0283] Furthermore, based on this embodiment, the data display on the historical record interface can be performed without relying on the continuous reporting of target basic data, reducing the amount of data reported.
[0284] In addition, for the convenience of users to view, the historical record interface also supports querying historical records by time range; the time range can be accurate to days.
[0285] Specifically, as Figure 14 shown, the terminal device sets a date selection control 1411 and a historical record display control 1412 on the record interface 141. Among them, the historical record display control 1412 is used to display historical records, including a record of people present 14121 and a record of no people present 14122. The record of people present 14121 includes the time when people are detected, the duration of people being present, and the detection sub - area where people are detected. The record of no people present 14122 includes the event of no people being detected and the duration of no people being present.
[0286] Taking a specific human body sensor as an example, as Figure 14 shown, assume:
[0287] At 18:21:26 on March 11th, the detection device reports that people are present (the Nth record, N = 7).
[0288] At 18:16:27 on March 11th, the detection device reports that no people are present (the 6th record).
[0289] At 18:16:14 on March 11th, the detection device reports that people are present (the 5th record).
[0290] At 18:15:51 on March 11th, the detection device reports that no people are present (the 4th record).
[0291] At 18:11:48 on March 11th, the detection device reports that people are present (the 3rd record).
[0292] At 18:09:26 on March 11, the detection device reported no one (Article 2).
[0293] At 14:23:29 on March 11, the detection device reported someone (Article 1).
[0294] Then, the interface will display as Figure 14 shown below:
[0295] At 18:21:26, the duration of someone present is 1 hour, 15 minutes, and 4 seconds.
[0296] At 18:16:27, the duration of no one present is 4 minutes and 59 seconds.
[0297] At 18:16:14, the duration of someone present is 13 seconds.
[0298] At 18:15:51, the duration of no one present is 23 seconds.
[0299] At 18:11:48, the duration of someone present is 4 minutes and 3 seconds.
[0300] At 18:09:26, the duration of no one present is 2 minutes and 22 seconds.
[0301] At 14:23:29, the duration of someone present is 3 hours, 45 minutes, and 57 seconds.
[0302] Among them, the duration of the record at 18:21:26 is the duration from 18:21:26 to the current time. As the current time progresses, the duration of this record will also increase until the next record is triggered. The duration of the most recent record will also be displayed in real time on the display interface for users to view.
[0303] Figure 15 It is a schematic structural diagram of a data interaction device provided by an embodiment of the present disclosure. The data interaction device involved in this embodiment can be a terminal device or a chip in a terminal device. This data interaction device can be used to perform the functions of the terminal device in the above embodiments. As Figure 15 shown, the data interaction device 150 may include:
[0304] An interaction unit 151, configured to, based on a received first interaction instruction, cause a processing entity executing interaction logic to enter a specific interaction state.
[0305] A first sending unit 152, configured to send a request instruction to a detection device, so that the detection device reports detection data meeting a preset condition through a network.
[0306] A first receiving and processing unit 153, configured to receive the detection data in the specific interaction state of the processing entity and dynamically adjust the presentation of relevant information.
[0307] When receiving a second interaction instruction, the first receiving and processing unit 153 is configured to perform at least one of the following:
[0308] Send a stop instruction to prompt the detection device to stop providing the detection data.
[0309] Adjust the sending strategy of the request instruction to cause the detection device to stop providing the detection data when meeting specific constraint conditions.
[0310] Wherein, the second interaction instruction is used to guide the processing entity to exit a specific interaction state.
[0311] In some embodiments, the first sending unit 152 is configured to interact with the detection device through a remote communication device to establish a remote temporary session with the detection device through a request instruction in a specific interaction state. The first interaction instruction is used to guide the processing entity to enter a specific interaction state based on a specific interaction interface; and / or, the second interaction instruction instructs to exit the specific interaction interface, causing the processing entity to exit the specific interaction state.
[0312] In some embodiments, the specific interaction interface is a configuration interface for adjusting the operation parameters of the detection device, including an information presentation area and a parameter configuration area;
[0313] After entering the configuration interface, the first receiving and processing unit 153 is further configured to:
[0314] Respond to the user's operation in the parameter configuration area, generate and transmit configuration data for adjusting the performance of the detection device;
[0315] Obtain the adjusted detection data and update the display in the information presentation area.
[0316] In some embodiments, the request instruction prompts the detection device to generate and report detection data when meeting a preset condition; the preset condition is based on the sensing rules of each detection sub-region determined by the configuration data; the detection sub-regions are obtained by dividing the target detection range of the detection device;
[0317] The first receiving and processing unit 153 updates the display in the information presentation area, specifically by: visually presenting the target detection status of each detection sub-region according to the detection data.
[0318] In some embodiments, the interaction sending unit 152 sends a request instruction to the detection device, specifically by: periodically sending a request instruction to the detection device, and each sending triggers the detection device to enter an effective reporting period, and during the effective reporting period, report detection data according to a predetermined rule; the duration of the effective reporting period is greater than or equal to the sending period of the request instruction.
[0319] In some embodiments, when the first receiving and processing unit 153 receives a second interaction instruction, it adjusts the sending strategy of the request instruction, so that the detection device stops providing detection data when meeting specific constraint conditions. Specifically, it is used for: after the processing entity exits the specific interaction interface, it stops sending the request instruction, so that the detection device stops providing detection data when the last valid reporting period ends and no new request instruction is received.
[0320] In some embodiments, the interaction unit 151 is further used to obtain a third interaction instruction; the third interaction instruction is used to cancel the reporting mode of the target quantitative data; the target quantitative data is used to characterize at least one attribute feature information of the target.
[0321] The first receiving and processing unit 153 is further used to determine the trigger execution rule associated with the detection device, and the trigger execution rule is set based on the matching relationship between a preset condition and a specific operation; and it determines whether at least one preset condition of the trigger execution rule involves at least one attribute feature characterized by the target quantitative data, thereby forming a logical constraint with the reporting mode.
[0322] In the case where the determination result indicates the existence of a logical constraint, a decision intervention process is started.
[0323] Based on the feedback result of the external interaction entity on the decision intervention process, it is determined whether to send a second control instruction; the second control instruction is used to prompt the detection device to stop reporting the target quantitative data.
[0324] In some embodiments, before obtaining the third interaction instruction, the interaction unit 151 is further used to obtain a fourth interaction instruction, and the fourth interaction instruction is used to start the detection device to enter the reporting mode of the target quantitative data.
[0325] Based on the fourth interaction instruction, a first control instruction is applied to the detection device to prompt the detection device to start reporting the target quantitative data.
[0326] In some embodiments, when the first receiving and processing unit 153 applies the first control instruction, specifically:
[0327] Relying on a remote communication device, a first control instruction is applied to the detection device, so that the detection device operates according to the reporting process of the target quantitative data, and transmits the detected target quantitative data to the remote communication device. The target quantitative data is used to trigger the remote communication device to control the execution of a specific operation set by the matching relationship of the target trigger execution rule based on the preset condition matched by the received target quantitative data; the target trigger execution rule is a trigger execution rule having a logical constraint relationship with the reporting mode.
[0328] In some embodiments, the target includes a human body, and the target quantitative data includes at least one of the attribute characteristics for indicating the position, movement, quantity, and state of the human body;
[0329] After applying the first control instruction to the detection device through the remote communication device, the first receiving and processing unit 153 is further configured to:
[0330] Obtain target quantitative data from the remote communication device;
[0331] Visually present the corresponding attribute characteristics of the human body represented by the target quantitative data through the display interface.
[0332] The first receiving and processing unit 153 starts a decision-making intervention process, specifically configured to:
[0333] Construct and provide decision-making assistance information, including at least one of the following information:
[0334] A list of affected trigger execution rules;
[0335] A prompt for the invalidation of the trigger execution rule that may be caused by canceling the reporting mode.
[0336] The data interaction device provided by the embodiments of the present disclosure can perform the actions of the terminal device in the above embodiments, and its implementation principle and technical effects are similar, which will not be elaborated here.
[0337] In addition, the embodiments of the present disclosure also provide an electronic device, including: a memory storing instructions; a processor configured to execute the instructions in the memory so that the electronic device performs the following operations: based on the received first interaction instruction, cause the processing entity executing the interaction logic to enter a specific interaction state; send a request instruction to the detection device to cause the detection device to report detection data that meets the preset conditions through the network; receive the detection data in the specific interaction state of the processing entity and dynamically adjust the presentation of relevant information; when receiving a second interaction instruction, perform at least one of the following:
[0338] Send a stop instruction to prompt the detection device to stop providing the detection data;
[0339] Adjust the sending strategy of the request instruction so that the detection device stops providing the detection data when meeting specific constraint conditions;
[0340] Wherein, the second interaction instruction is used to guide the processing entity to exit the specific interaction state.
[0341] In some embodiments, the processor is also configured to execute instructions in the memory so that the electronic device performs the following operations: interacting with the detection device through a remote communication device to establish a remote temporary session with the detection device through a request instruction in a specific interaction state; the first interaction instruction is used to guide the processing entity to enter a specific interaction state based on a specific interaction interface; and / or, the second interaction instruction instructs to exit the specific interaction interface, causing the processing entity to exit the specific interaction state.
[0342] In some embodiments, the specific interactive interface is a configuration interface for adjusting the operating parameters of the detection device, comprising an information presentation area and a parameter configuration area; after entering the configuration interface, the processor is also configured to execute instructions in the memory so that the electronic device performs the following operations: respond to user operations in the parameter configuration area, generate and transmit configuration data for adjusting the performance of the detection device; obtain adjusted detection data, and update the display of the information presentation area.
[0343] In some embodiments, the request instruction prompts the detection device to generate and report detection data when preset conditions are met; the preset conditions are based on the perception rules of each detection sub-area determined by the configuration data; the detection sub-area is obtained by dividing the target detection range of the detection device; the processor updates the display of the information presentation area, specifically for: visually presenting the target detection status of each detection sub-area based on the detection data.
[0344] In some embodiments, the processor sends a request instruction to the detection device, specifically for: periodically sending a request instruction to the detection device, each sending triggering the detection device: entering a valid reporting period, reporting detection data according to predetermined rules during the valid reporting period; the duration of the valid reporting period is greater than or equal to the sending period of the request instruction.
[0345] In some embodiments, when the processor receives the second interaction instruction, it adjusts the sending strategy of the request instruction so that the detection device stops providing detection data when specific constraints are met. Specifically, it is used to: stop sending request instructions after the processing entity exits the specific interaction interface, so that the detection device stops providing detection data when the most recent valid reporting period ends and no new request instruction is received.
[0346] In some embodiments, the processor is further configured to execute instructions in the memory to enable the electronic device to perform the following operations:
[0347] Obtaining a third interaction instruction; the third interaction instruction is used to release the reporting mode of the target quantitative data; the target quantitative data is used to characterize at least one attribute feature information of the target;
[0348] Determine the triggering execution rules associated with the detection device, where the triggering execution rules are set based on the matching relationship between preset conditions and specific operations;
[0349] Determine whether at least one of the preset conditions of the triggering execution rules involves at least one attribute feature represented by the target quantitative data, thereby forming a logical constraint with the reporting mode;
[0350] In the case where the determination result indicates the existence of a logical constraint, initiate a decision intervention process;
[0351] Based on the feedback result of the external interaction entity on the decision intervention process, determine whether to send a second control instruction; the second control instruction is used to prompt the detection device to stop reporting the target quantitative data.
[0352] In some embodiments, before obtaining the third interaction instruction, the processor is further configured to execute the instructions in the memory to cause the electronic device to perform the following operations:
[0353] Obtain a fourth interaction instruction, where the fourth interaction instruction is used to initiate the detection device to enter the reporting mode of the target quantitative data;
[0354] Based on the fourth interaction instruction, apply a first control instruction to the detection device to prompt the detection device to start reporting the target quantitative data.
[0355] In some embodiments, the specific operation of the processor to apply the first control instruction is as follows:
[0356] Rely on the remote communication device to apply a first control instruction to the detection device, so as to prompt the detection device to operate according to the reporting process of the target quantitative data, and transmit the detected target quantitative data to the remote communication device. The target quantitative data is used to trigger the remote communication device to control the execution of the specific operation set by the matching relationship of the target triggering execution rule based on the preset conditions matched by the received target quantitative data; the target triggering execution rule is a triggering execution rule that has a logical constraint relationship with the reporting mode.
[0357] In some embodiments, the target includes a human body, and the target quantitative data includes at least one of the attribute features for indicating the position, movement, quantity, and state of the human body;
[0358] After relying on the remote communication device to apply a first control instruction to the detection device, the processor is further configured to execute the instructions in the memory to cause the electronic device to perform the following operations:
[0359] Obtain the target quantitative data from the remote communication device;
[0360] The corresponding attribute characteristics of the human body represented by the target quantitative data are visualized through the display interface.
[0361] The processor starts a decision intervention process, specifically for:
[0362] Construct and provide decision-making support information, including at least one of the following:
[0363] A list of the triggered execution rules affected;
[0364] Removing the reporting mode may result in a prompt that the triggering execution rules are invalid.
[0365] The electronic device provided in the embodiments of the present disclosure can execute the actions of the terminal device in the above embodiments, and its implementation principle and technical effects are similar, which will not be repeated here.
[0366] According to the data interaction method on the terminal device side provided in the above embodiment, an embodiment of the present disclosure also provides a data interaction method for detecting the device side. Figure 1 The detection device 101 shown or Figure 2 For the convenience of description, the following description is made by taking the detection device 101 to perform the method. In the specific example, the human body sensor is mainly used as the detection device 101 for description.
[0367] like Figure 16 , which is a flow chart of a data interaction method 160 according to an embodiment of the present disclosure. It can be seen that the data interaction method 160 at least includes steps S161 to S162.
[0368] like Figure 16 As shown, at step S161, the detection device receives a request instruction; the request instruction is sent by the terminal device after receiving the first interaction instruction and prompting the processing entity executing the interaction logic to enter a specific interaction state.
[0369] In step S162, the detection device reports detection data that meets preset conditions in response to the request instruction, so as to be used for dynamically adjusting the presentation of relevant information on the terminal device.
[0370] In any of the following cases, the detection device stops reporting detection data:
[0371] The detection device receives a stop instruction; the stop instruction is sent by the terminal device after receiving the second interaction instruction.
[0372] The detection device determines whether a specific constraint condition is met; wherein, the specific constraint condition is met only after adjusting the sending strategy of the request instruction, and the adjustment of the sending strategy of the request instruction is performed after the terminal device receives the second interaction instruction.
[0373] In addition, the second interaction instruction involved in the above embodiments is used to guide the processing entity of the terminal device to exit a specific interaction state.
[0374] In the embodiments of the present disclosure, the detection device can dynamically adjust the reporting status of detection data based on the received instruction to meet the interaction requirements of the terminal device, thereby optimizing the data transmission efficiency and interaction experience.
[0375] In the embodiments of the present disclosure, during the operation of the detection device, a request instruction from the terminal device can be received. The request instruction is sent by the processing entity of the terminal device after receiving the first interaction instruction and entering a specific interaction state. In other words, the sending of the request instruction is closely related to the interaction logic of the terminal device. Only when the terminal device enters a specific interaction state will the detection device receive the request instruction.
[0376] After receiving the request instruction, the detection device executes the corresponding response policy, that is, it starts to report detection data that meets the preset conditions. Here, the detection data is data related to the specific interaction state and can be used by the terminal device to dynamically adjust the presentation of relevant information on its interface. Specifically, the detection device can report the detection data through a network, which can be an ad-hoc network, such as a communication network based on Bluetooth Mesh or Zigbee, enabling the detection device to flexibly interact with the terminal device for data.
[0377] When the detection device meets specific constraint conditions, it will stop reporting detection data. Specifically, in any of the following situations, the detection device will stop reporting detection data:
[0378] The detection device receives a stop instruction sent by the terminal device. The stop instruction is actively sent by the terminal device after receiving the second interaction instruction and is usually used to immediately terminate the reporting of detection data when the terminal device exits the specific interaction state.
[0379] The detection device determines that it meets specific constraint conditions. The specific constraint conditions are met only after the terminal device adjusts the sending policy of the request instruction. In other words, after receiving the second interaction instruction, the terminal device will adjust the sending policy of the request instruction, such as changing the sending frequency of the request instruction or stopping sending the request instruction, and the detection device will directly or indirectly determine whether it meets the specific constraint conditions based on this policy adjustment, so as to decide whether to terminate the reporting of detection data.
[0380] In summary, according to the solution provided by the present disclosure, the detection device realizes the dynamic reporting and stopping of detection data under the drive of the interaction state of the terminal device, ensuring that data is provided in a timely manner when needed, and reducing unnecessary data transmission when not needed. This mechanism can effectively reduce the network communication burden and improve the real-time performance and resource utilization rate of the interaction.
[0381] In some embodiments, the detection device interacts with the terminal device through a remote communication device, so that after the processing entity of the terminal device enters a specific interaction state, a temporary remote session is established with the remote communication device through a request instruction.
[0382] The specific interaction state is formed after the terminal device responds to the first interaction instruction and guides the processing entity to enter a specific interaction interface; and / or, exiting the specific interaction state is formed after the terminal device responds to the second interaction instruction and guides the processing entity to exit the specific interaction interface.
[0383] The remote communication device can be understood with reference to the description of the above embodiments and will not be elaborated here. The first interaction instruction and the second interaction instruction can respectively trigger the entry and exit of the specific interaction interface. For example, when the user operates the application on the terminal device to enter the specific interaction interface, the first interaction instruction will be triggered, the terminal device will enter the specific interaction state, and send a request instruction to the detection device. After receiving the request instruction, the detection device reports the detection data through the remote communication device. When the user exits the specific interaction interface, the second interaction instruction will be triggered, the terminal device will exit the specific interaction state, and adjust the sending strategy of the request instruction or directly send a stop instruction to make the detection device terminate the detection data reporting.
[0384] In summary, the solution of the present disclosure can ensure that the detection data of the detection device is reported only when the terminal device is in the specific interaction interface, and the detection data reporting is stopped in a timely manner after the terminal device exits the interface, thereby optimizing the real-time performance and resources of the network communication.
[0385] In some embodiments, the method further includes steps S163 to S165.
[0386] In step S163, the detection device obtains configuration data, which is generated and sent by the terminal device in response to the user's operation in the parameter configuration area. The detection device parses the configuration data and determines the operation parameters that need to be adjusted. Wherein, the specific interaction interface is a configuration interface for adjusting the operation parameters of the detection device, and includes an information presentation area and the parameter configuration area.
[0387] At step S164, the detection device adjusts the operation parameters according to the configuration data. For example, if the configuration data indicates an adjustment of the detection sensitivity, the detection device updates the sensitivity setting of the detection algorithm to change the response degree to the target. If the configuration data relates to the sampling frequency, the detection device correspondingly adjusts the time interval of data acquisition.
[0388] At step S165, the detection device reports the adjusted detection data to update the display in the information presentation area of the configuration interface.
[0389] In the embodiment of the present disclosure, the detection device reports the adjusted detection data to the terminal device, enabling the information presentation area to update the detection results in real time, thereby providing instant feedback on parameter adjustment for the user. The terminal device dynamically adjusts the interface display based on the latest detection data to ensure that the user can intuitively view the detection effects under different parameter configurations.
[0390] In the embodiment of the present disclosure, the detection device performs specific data reporting and parameter adjustment operations based on the specific interaction state of the terminal device. When the application program of the terminal device is operated to enter a specific interaction interface, the detection device receives the request instruction sent by the terminal device, establishes a remote temporary session based on the request instruction, and starts reporting the detection data that meets the preset conditions to support the information display and interaction control of the terminal device.
[0391] Specifically, the specific interaction interface is a configuration interface for adjusting the operation parameters of the detection device, including an information presentation area and a parameter configuration area. The information presentation area is used to display the real-time detection results of the detection device, while the parameter configuration area is used for the user to adjust the operation parameters of the detection device, such as detection sensitivity, detection range, sampling frequency, etc.
[0392] Furthermore, the detection device reporting the adjusted detection data includes: when the preset conditions are met, the detection device generates and reports the detection data, enabling the terminal device to visually present the target detection status of each detection sub-region according to the detection data; wherein, the preset conditions are based on the perception rules of each detection sub-region determined by the configuration data, and the detection sub-regions are obtained by dividing the target detection range of the detection device.
[0393] Furthermore, the configuration data includes sensitivity parameters for adjusting the detection sensitivity of each detection sub-region; the detection device adjusting the operation parameters according to the configuration data includes: the detection device separately sets the detection sensitivity of each detection sub-region according to the sensitivity parameters to form independent perception rules for each detection sub-region; wherein, the sensitivity parameters are generated by the processing entity of the terminal device after responding to the operation of at least one sensitivity interaction control in the parameter configuration area and are used as the updated sensitivity parameters.
[0394] In some embodiments, in step S161, the detection device receiving the request instruction includes S1611 and S1612. Among them, in step S1611, the detection device receives the request instruction periodically sent by the detection device. In step S1612, in response to each received request instruction, the detection device enters the valid reporting period and reports the detection data according to a predetermined rule within the valid reporting period; wherein, the duration of the valid reporting period is greater than or equal to the sending period of the request instruction.
[0395] In the embodiments of the present disclosure, the detection device controls the validity and continuity of data reporting by periodically receiving the request instruction sent by the terminal device. Specifically, each time the detection device receives the request instruction, it will trigger a valid reporting period, and within this period, it reports the detection data according to a predetermined rule.
[0396] The duration T1 of the valid reporting period needs to satisfy being greater than or equal to the sending period T2 of the request instruction, that is, T1≥T2. This design ensures that when the terminal device sends the request instruction according to the period T2, the detection device is always in the valid reporting period, avoiding the detection device entering the non-reporting state due to too long an interval between request instructions, and improving the continuity and validity of data reporting.
[0397] Further, in step S1612, the predetermined rule for the detection device to report the detection data within the valid reporting period includes one of the following:
[0398] Report only when the detection data meets the preset change condition, otherwise do not report.
[0399] Report at regular intervals according to the set time period, and the period is not greater than the valid reporting period. For example, collect data every 500 ms and upload it as needed.
[0400] Furthermore, when the predetermined rule is to report only when the detection data meets the preset change condition, otherwise do not report, the preset change condition includes at least one of the change in the target presence state, the change in the target position, and the change in the target quantity.
[0401] In the embodiments of the present disclosure, through the above-mentioned predetermined rule and data screening mechanism, the detection device can accurately trigger data reporting, reduce irrelevant data streams, and improve the efficiency of data transmission.
[0402] In some embodiments, the detection device supports two types of communications: ordinary session and remote temporary session. In the ordinary session mode, the detection device only reports the target basic data (which will be introduced in detail later and will not be elaborated here), such as whether there is human activity, without providing more refined location information or quantity information.
[0403] When the terminal device enters a specific interactive interface, the detection device responds to the terminal device's request command and establishes a remote temporary session to provide more detailed detection data. During the remote temporary session, the detection device will upload the detection data when it detects any change in the target's existence status, location or quantity, to ensure that the terminal device can dynamically update the interactive interface content and visually display the target status of each detection sub-area.
[0404] When the terminal device exits a specific interactive interface and stops sending request instructions, the detection device will automatically exit the remote temporary session after the end of the most recent valid reporting period and maintain a normal session, thereby reducing the communication burden and avoiding meaningless data transmission.
[0405] Taking the microwave radar human body sensor as an example, in a normal session, the detection device provides basic status information of "someone" or "no one", while in a remote temporary session, the detection device will provide the specific target status of each detection sub-area, enabling the terminal device to display the detailed changes of the detection data in real time.
[0406] Furthermore, when the most recent valid reporting period ends and no new request instruction is received, the detection device determines that specific constraints are met and stops providing detection data; wherein the stop of the request instruction is triggered after the processing entity of the terminal device exits the interactive interface.
[0407] When the detection device receives a new request instruction within the valid reporting period, the valid reporting period is reset; when a new request instruction is received after the valid reporting period ends, the valid reporting period is restarted.
[0408] In an embodiment of the present disclosure, if the detection device receives a new request instruction again within the valid reporting period, the valid reporting period will be reset to ensure the continuity of data reporting. If a new request instruction is received after the valid reporting period ends, the new valid reporting period will be restarted to allow the detection device to resume data reporting. When the processing entity of the terminal device exits the specific interactive interface, it stops sending request instructions. Since the data reporting of the detection device is based on the management mechanism of the valid reporting period, when the most recent valid reporting period ends, if the detection device does not receive a new request instruction, it is determined that the specific constraints are met and automatically stops providing detection data.
[0409] In addition, according to the data interaction method on the terminal device side provided in the above embodiment, an embodiment of the present disclosure also provides a data interaction method for detecting the device side. Figure 1 The detection device 101 shown or Figure 2 The electronic device 200 shown is used for execution.
[0410] like Figure 17, which is a flow chart of the data interaction method according to an embodiment of the present disclosure, at least includes steps S171 to S172.
[0411] At step S171, a second control instruction is obtained; the second control instruction is sent when the terminal device determines to release the reporting mode of the target quantitative data according to the feedback result of the external interactive subject on the decision intervention process; the target quantitative data is used to characterize at least one attribute characteristic information of the target; the decision intervention process is initiated after the terminal device determines that there is at least one preset condition of a triggering execution rule involving at least one attribute characteristic represented by the target quantitative data to form a logical constraint with the reporting mode, and the triggering execution rule is a triggering execution rule associated with the detection device determined by the terminal device in response to the instruction after obtaining the third interactive instruction; the triggering execution rule is set based on the matching relationship between the preset condition and the specific operation.
[0412] In step S172 , reporting of the target quantitative data is stopped based on the second control instruction.
[0413] The embodiments of the present disclosure provide a reporting management mechanism based on target quantitative data, whereby the detection device can dynamically adjust the data reporting strategy according to the control instructions of the terminal device to optimize data transmission while ensuring that the triggering execution rules related to the data can be reasonably managed.
[0414] In this mechanism, the target quantitative data of the detection device is used to characterize at least one attribute characteristic information of the target. The terminal device can adjust the reporting mode of the target quantitative data based on user operations or instructions of other interactive subjects.
[0415] Terminating the reporting of target quantitative data may affect the normal operation of the trigger execution rules that rely on the data. Therefore, before deciding whether to terminate the reporting, the terminal device will perform a logical constraint judgment on the relevant trigger execution rules and initiate a decision intervention process when necessary.
[0416] Specifically, after obtaining the third interaction instruction, the terminal device first determines the trigger execution rules associated with the detection device. These rules are set based on the matching relationship between the preset conditions and the specific operation. The terminal device determines whether the preset conditions of the trigger execution rule involve the attribute feature information represented by the target quantitative data, and based on this, determines whether the reporting mode of the target quantitative data has a logical constraint relationship with at least one trigger execution rule.
[0417] When the judgment result shows that there is a logical constraint relationship, the terminal device starts the decision intervention process to provide decision-making auxiliary information to the external interaction subject.
[0418] In this embodiment, the reporting mode control mechanism of the detection device can effectively avoid unnecessary data transmission, thereby optimizing the network communication burden and ensuring the logical integrity of the trigger execution rules.
[0419] In summary, through the intelligent discrimination and decision-making intervention process of the terminal device, this solution realizes precise control over the reporting mode of the target quantitative data of the detection device, enabling the detection device to promptly adjust the reporting strategy after receiving the second control instruction.
[0420] In some embodiments, before obtaining the second control instruction, the method further includes steps S173 and S174.
[0421] At step S173, obtain a first control instruction; the first control instruction is sent by the terminal device according to the obtained fourth interaction instruction before obtaining the third interaction instruction; the fourth interaction instruction is used to start the reporting mode of the target quantitative data.
[0422] At step S174, in response to the first control instruction, start reporting the target quantitative data.
[0423] In some embodiments, starting to report the target quantitative data in response to the first control instruction includes: in response to the first control instruction, running according to the reporting process of the target quantitative data to transmit the detected target quantitative data to the remote communication device, so that the remote communication device controls the execution of a specific operation set by the matching relationship of the target trigger execution rule based on the preset conditions matched by the received target quantitative data; the target trigger execution rule is a trigger execution rule having a logical constraint relationship with the reporting mode; the first control instruction is exerted by the terminal device on the detection device through the remote communication device.
[0424] In some embodiments, the target includes a human body; transmitting the detected target quantitative data to the remote communication device specifically includes: detecting the human body within the detection range to obtain target quantitative data characterizing at least one of the attributes of the human body's position, information, and state; reporting the target quantitative data to the remote communication device so that: the remote communication device obtains and stores the target quantitative data; the target quantitative data stored by the remote communication device is used to be sent to the terminal device when the terminal device needs it, so that the terminal device can visually present the corresponding attribute characteristics of the human body represented by the target quantitative data through the display interface.
[0425] In some embodiments, the decision-making intervention process constructs and provides decision-making assistance information, including at least one of the following information: a list of affected trigger execution rules; a prompt for the possible invalidation of the trigger execution rule caused by terminating the target quantitative data reporting mode.
[0426] In some embodiments, the method further includes step S175 and step S176.
[0427] At step S175, a target within the detection range is detected to obtain target basic data characterizing the existence of the target.
[0428] At step S176, the target basic data is reported to a remote communication device, so that the remote communication device acquires and stores the target basic data; the target basic data acquired by the remote communication device is used to be sent to a terminal device when needed by the terminal device, so as to facilitate the terminal device to visually present the existence of the target on a display interface; after receiving a second control instruction, reporting of target quantization data is stopped, and reporting of the target basic data is maintained.
[0429] In some embodiments, after the detection device stops reporting target quantization data, it is further used to trigger the terminal device to determine, before, after, or at the same time as entering the display interface, whether there is at least one trigger execution rule when it is detected that the reporting mode of the target quantization data has been cancelled, the preset condition of which involves at least one attribute feature characterized by the target quantization data, so as to form a logical constraint relationship with the reporting mode of the target quantization data, and when the discrimination result indicates the existence of a logical constraint relationship, start a decision intervention process, where the decision intervention process includes constructing and providing a prompt message and decision selection controls to remind the user of the potential impact that may be caused by the cancellation of the reporting mode, and based on the feedback result of an external interaction entity, determine whether to start the decision intervention process again when re-entering the display interface, and / or whether to directly start the reporting mode; the display interface is used to visually present at least part of the target basic data, enabling the user to intuitively view the existence information of the target.
[0430] In addition, an embodiment of the present disclosure further provides an electronic device, including: a memory storing instructions; a processor configured to execute the instructions in the memory, so that the electronic device performs the following operations: receive a request instruction; the request instruction is sent by a processing entity that executes an interaction logic to enter a specific interaction state after the terminal device receives a first interaction instruction; in response to the request instruction, report detection data that meets a preset condition for dynamically adjusting the presentation of relevant information on the terminal device; stop reporting the detection data in any of the following cases: receiving a stop instruction; determining that a specific constraint condition is met; where the stop instruction is sent by the terminal device after receiving a second interaction instruction; the specific constraint condition is met only after adjusting the sending strategy of the request instruction, and the sending strategy of the request instruction is adjusted after the terminal device receives the second interaction instruction; the second interaction instruction is used to guide the processing entity of the terminal device to exit the specific interaction state.
[0431] In some embodiments, the processor is further configured to execute instructions in the memory to cause the electronic device to perform the following operations: interact with a terminal device through a remote communication device, so that after the processing entity of the terminal device enters a specific interaction state, establish a temporary remote session with the remote communication device through a request instruction; the specific interaction state is formed after the terminal device responds to a first interaction instruction and guides the processing entity to enter a specific interaction interface; and / or, exiting the specific interaction state is formed after the terminal device responds to a second interaction instruction and guides the processing entity to exit the specific interaction interface.
[0432] In some embodiments, the processor is further configured to execute instructions in the memory to cause the electronic device to perform the following operations: obtain configuration data, which is generated and sent by the terminal device in response to a user's operation in a parameter configuration area; wherein, the specific interaction interface is a configuration interface for adjusting the operation parameters of a detection device, and includes an information presentation area and the parameter configuration area; adjust the operation parameters according to the configuration data; report the adjusted detection data to update the display in the information presentation area of the configuration interface.
[0433] In some embodiments, the processor receives a request instruction, specifically for: receiving a request instruction periodically sent by a detection device; in response to each received request instruction, enter a valid reporting period, and report detection data according to a predetermined rule within the valid reporting period; wherein, the duration of the valid reporting period is greater than or equal to the sending period of the request instruction.
[0434] In some embodiments, the processor is further configured to execute instructions in the memory to cause the electronic device to perform the following operations: when the most recent valid reporting period ends and no new request instruction is received, determine that a specific constraint condition is met, and stop providing detection data; wherein, the stopping of the request instruction is triggered after the processing entity of the terminal device exits the interaction interface.
[0435] In some embodiments, the processor is further configured to execute instructions in the memory to cause the electronic device to perform the following operations: when a new request instruction is received within the valid reporting period, reset the valid reporting period; when a new request instruction is received after the valid reporting period ends, restart the valid reporting period.
[0436] In some embodiments, the processor is further configured to execute instructions in the memory so that the electronic device performs the following operations: obtain a second control instruction; the second control instruction is sent when the terminal device determines to release the reporting mode of the target quantitative data according to the feedback result of the external interactive subject on the decision intervention process; the target quantitative data is used to characterize at least one attribute feature information of the target; the decision intervention process is initiated after the terminal device determines that there is at least one preset condition of a triggering execution rule involving at least one attribute feature represented by the target quantitative data to form a logical constraint with the reporting mode, and the triggering execution rule is a triggering execution rule associated with the detection device determined by the terminal device in response to the instruction after obtaining the third interactive instruction; the triggering execution rule is set based on the matching relationship between the preset condition and the specific operation; and the reporting of the target quantitative data is stopped based on the second control instruction.
[0437] In some embodiments, before obtaining the second control instruction, the processor is further configured to execute instructions in the memory so that the electronic device performs the following operations: obtaining the first control instruction; the first control instruction is sent by the terminal device according to the obtained fourth interaction instruction before obtaining the third interaction instruction; the fourth interaction instruction is used to start a reporting mode for target quantitative data; and reporting of the target quantitative data is started in response to the first control instruction.
[0438] In some embodiments, the processor initiates reporting of target quantitative data in response to a first control instruction, and is specifically used to: in response to the first control instruction, operate according to the reporting process of the target quantitative data to transmit the detected target quantitative data to the remote communication device, so that the remote communication device controls the specific operation set by the matching relationship of the target triggering execution rule to be executed based on the preset conditions matched by the received target quantitative data; the target triggering execution rule is a triggering execution rule that has a logical constraint relationship with the reporting mode; the first control instruction is applied by the terminal device to the detection device relying on the remote communication device.
[0439] In some embodiments, the target includes a human body; transmitting the detected target quantitative data to a remote communication device specifically includes: detecting a human body within a detection range to obtain target quantitative data representing at least one attribute characteristic of the human body's position, motion, quantity, and state; reporting the target quantitative data to the remote communication device so that: the remote communication device acquires and stores the target quantitative data; the target quantitative data stored in the remote communication device is used to be sent to the terminal device when the terminal device needs it, so that the terminal device can visualize the corresponding attribute characteristics of the human body represented by the target quantitative data through a display interface.
[0440] In some embodiments, the decision intervention process constructs and provides decision assistance information, including at least one of the following information: a list of triggered execution rules affected; a prompt for the failure of triggered execution rules that may result from terminating the target quantitative data reporting mode.
[0441] The electronic device provided by the embodiments of the present disclosure can perform the actions of the detection device in the above embodiments, and its implementation principle and technical effects are similar, which will not be elaborated here.
Claims
1. An electronic device, wherein: include: A memory storing instructions; The processor is configured to execute the instructions in the memory so that the electronic device performs the following operations: Based on the received first interaction instruction, causing the processing entity executing the interaction logic to enter a specific interaction state; Send a request instruction to the detection device, so that the detection device reports the detection data that meets the preset conditions through the network; receiving the detection data in a specific interactive state of the processing entity and dynamically adjusting the presentation of relevant information; When the second interaction instruction is received, at least one of the following is performed: Sending a stop instruction to prompt the detection device to stop providing the detection data; Adjusting the sending strategy of the request instruction so that the detection device stops providing the detection data when a specific constraint condition is met; The second interaction instruction is used to guide the processing entity to exit a specific interaction state.
2. The electronic device according to claim 1, wherein: The processor is further configured to execute instructions in the memory so that the electronic device performs the following operations: interacting with the detection device through a remote communication device to establish a remote temporary session with the detection device through a request instruction in a specific interaction state; The first interaction instruction is used to guide the processing entity to enter a specific interaction state based on a specific interaction interface; and / or, the second interaction instruction instructs to exit the specific interaction interface, so that the processing entity exits the specific interaction state.
3. The electronic device according to claim 2, wherein: The specific interactive interface is a configuration interface for adjusting the operating parameters of the detection device, including an information presentation area and a parameter configuration area; After entering the configuration interface, the processor is further configured to execute instructions in the memory so that the electronic device performs the following operations: In response to the user's operation in the parameter configuration area, generate and transmit configuration data for adjusting the performance of the detection equipment; The adjusted detection data is obtained and the display of the information presentation area is updated.
4. The electronic device according to claim 3, wherein: The request instruction prompts the detection device to generate and report detection data when a preset condition is met; the preset condition is based on the perception rules of each detection sub-area determined by the configuration data; the detection sub-area is obtained by dividing the target detection range of the detection device; The processor updates the display of the information presentation area, specifically for: visually presenting the target detection status of each detection sub-area according to the detection data.
5. The electronic device according to any one of claims 2 to 4, wherein: The processor sends a request instruction to the detection device, specifically for: Periodically send request instructions to the detection device, each sending triggers the detection device to enter a valid reporting period, and report detection data according to predetermined rules during the valid reporting period; the duration of the valid reporting period is greater than or equal to the sending period of the request instruction.
6. The electronic device according to claim 5, wherein: When the processor receives the second interaction instruction, it adjusts the sending strategy of the request instruction so that the detection device stops providing detection data when a specific constraint condition is met, specifically for: After the processing entity exits the specific interactive interface, the request instruction is stopped from being sent, so that the detection device stops providing detection data when the most recent valid reporting period ends and no new request instruction is received.
7. An electronic device, wherein: include: A memory storing instructions; The processor is configured to execute the instructions in the memory so that the electronic device performs the following operations: Receiving a request instruction; the request instruction is sent by the terminal device after receiving the first interaction instruction and prompting the processing entity executing the interaction logic to enter a specific interaction state; In response to the request instruction, report the detection data that meets the preset conditions, so as to dynamically adjust the presentation of relevant information on the terminal device; Stop reporting detection data in any of the following situations: A stop command is received; Determine compliance with specific constraints; The stop instruction is sent by the terminal device after receiving the second interaction instruction; the specific constraint condition is satisfied only after adjusting the sending strategy of the request instruction, and the adjustment of the sending strategy of the request instruction is performed after the terminal device receives the second interaction instruction; The second interaction instruction is used to guide the processing entity of the terminal device to exit a specific interaction state.
8. The electronic device according to claim 7, wherein: The processor is further configured to execute instructions in the memory so that the electronic device performs the following operations: Interacting with the terminal device through the remote communication device so that the processing entity of the terminal device, after entering a specific interaction state, establishes a temporary remote session with the remote communication device through a request instruction; The specific interaction state is formed after the terminal device responds to the first interaction instruction and guides the processing entity to enter the specific interaction interface; And / or, the exit from the specific interaction state is formed after the terminal device responds to the second interaction instruction and guides the processing entity to exit the specific interaction interface.
9. The electronic device according to claim 8, wherein: The processor is further configured to execute instructions in the memory so that the electronic device performs the following operations: Acquire configuration data, the configuration data is generated and sent by the terminal device in response to the user's operation in the parameter configuration area; wherein the specific interactive interface is a configuration interface for adjusting the operating parameters of the detection device, including an information presentation area and the parameter configuration area; adjusting operating parameters according to the configuration data; The adjusted detection data is reported to update the display of the information presentation area in the configuration interface.
10. The electronic device according to any one of claims 7 to 9, wherein: The processor receives a request instruction, specifically for: Receive request instructions periodically sent by the detection device; In response to each received request instruction, enter an effective reporting period, and report detection data according to a predetermined rule during the effective reporting period; The duration of the effective reporting period is greater than or equal to the sending period of the request instruction.
11. The electronic device according to claim 10, wherein: The processor is further configured to execute instructions in the memory so that the electronic device performs the following operations: when the most recent valid reporting period ends and no new request instruction is received, determine that a specific constraint condition is met and stop providing detection data; The stopping of the request instruction is triggered after the processing entity of the terminal device exits the interactive interface.
12. The electronic device according to claim 10, wherein: The processor is further configured to execute instructions in the memory so that the electronic device performs the following operations: when a new request instruction is received within the valid reporting period, resetting the valid reporting period; When a new request instruction is received after the effective reporting period ends, the effective reporting period is restarted.