Data interaction method and device and electronic equipment
By hierarchical design of the data of the detection device and dynamic control of logical constraint relationships, flexible management of target quantitative data reporting in the detection system is realized, problems of excessive communication burden and waste of resources in the existing technology are solved, and network performance and user decision-making power are improved.
Patent Information
- Application Number
- CN202510309313.3
- 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 hierarchically designing the data detected by the detection equipment and combining a dynamic control mechanism based on logical constraint relationships, flexible management of target quantitative data reporting is achieved. The method includes obtaining control instructions to determine the reporting mode of target quantitative data, dynamically enabling or disabling data reporting, and optimizing user interface information presentation through a decision intervention process.
Reduces data redundancy, optimizes bandwidth utilization, ensures that the execution of triggered execution rules meets expectations, and gives users more flexible decision-making power.
Smart Images

Figure CN120128950A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of object detection, 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 home, 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, the existing technology usually has a fixed reporting method, that is, the detection device continuously reports data according to a fixed policy after startup, without considering the actual needs of users and the actual interaction status of electronic devices. This method will lead to excessive communication burden and resource waste, and will 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 through hierarchical design of the data detected by the detection device and combined with a dynamic control mechanism based on logical constraint relationships, flexible management of the reporting of target quantitative data is achieved on the premise of ensuring that the basic detection function is not affected. This method can not only reduce data redundancy and optimize bandwidth utilization, but also ensure that the execution of the triggering execution rules meets expectations.
[0006] Another object of the present disclosure is to provide a data interaction method, apparatus, and electronic device, in which the target quantitative data is default prohibited from being reported to minimize the network data communication burden. In this case, a dynamic enabling mechanism for the target quantitative data reporting mode is adopted, and intelligent control of the reporting mode of the detection device is achieved through a fourth interaction instruction and a first control instruction, giving users more flexible decision-making power.
[0007] Another object of the present disclosure is to provide a data interaction method, apparatus, and electronic device, in which users can flexibly adjust and manage trigger 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.
[0008] To achieve at least one of the above purposes, according to the first aspect of the present disclosure, a data interaction method is provided, which is applied to a detection device, comprising: obtaining 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 interaction 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 started 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 a third interaction instruction; the triggering execution rule is set based on the matching relationship between the preset condition and the specific operation;
[0009] The reporting of the target quantitative data is stopped based on the second control instruction.
[0010] According to an embodiment of the present disclosure, before obtaining the second control instruction, the method also includes: obtaining 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 a reporting mode for target quantitative data; and the reporting of the target quantitative data is started in response to the first control instruction.
[0011] According to an embodiment of the present disclosure, reporting of target quantitative data is initiated in response to a first control instruction, including: in response to the first control instruction, operating according to the reporting process of the target quantitative data to transmit the detected target quantitative data to a 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.
[0012] According to an embodiment of the present disclosure, 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, action, quantity, 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 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.
[0013] According to an embodiment of the present disclosure, a decision-making intervention process constructs and provides decision-making assistance information, including at least one of the following information: a list of affected triggering execution rules; a prompt for the failure of the triggering execution rule that may be caused by terminating the target quantitative data reporting mode.
[0014] According to a second aspect of the present disclosure, there is provided a data interaction method applied to a terminal device, including: obtaining a third interaction instruction; the third interaction instruction is used to cancel the reporting mode of target quantitative data; the target quantitative data is used to represent at least one attribute feature information of a target; determining a triggering execution rule associated with a detection device, the triggering execution rule being set based on a matching relationship between a preset condition and a specific operation; determining whether at least one preset condition of the triggering execution rule involves at least one attribute feature represented by the target quantitative data to form a logical constraint with the reporting mode; in the case where the determination result indicates the existence of a logical constraint, starting a decision-making intervention process; based on a feedback result of an external interaction entity on the decision-making intervention process, determining 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.
[0015] According to an embodiment of the present disclosure, before obtaining the third interaction instruction, it further includes: obtaining a fourth interaction instruction, the fourth interaction instruction is used to start the detection device to enter the reporting mode of target quantitative data; based on the fourth interaction instruction, applying a first control instruction to the detection device to prompt the detection device to start reporting the target quantitative data.
[0016] According to an embodiment of the present disclosure, applying the first control instruction includes: applying the first control instruction to the detection device through a remote communication 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 being used to trigger 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 having a logical constraint relationship with the reporting mode.
[0017] According to an embodiment of the present disclosure, 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 through the remote communication device, the method further includes: obtaining the target quantitative data from the remote communication device; visually presenting the corresponding attribute features of the human body represented by the target quantitative data through a display interface.
[0018] According to an embodiment of the present disclosure, starting a decision-making intervention process includes: constructing and providing decision-making assistance information, including at least one of the following information: a list of affected triggering execution rules; a prompt for the invalidation of triggering execution rules that may be caused by canceling the reporting mode.
[0019] According to a third aspect of the present disclosure, an electronic device is provided, including: a memory storing instructions; a processor configured to execute the instructions in the memory so that the electronic device executes the method provided in the first aspect as described above, or executes the method provided in the second aspect as described above.
[0020] 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 objects of the present disclosure will be fully embodied by the following detailed description and the accompanying drawings.
[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. Description of the Drawings
[0022] 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 use in 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 following drawings are only some embodiments of the present disclosure. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0023] Figure 1 It 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 an exemplary configuration block diagram of an electronic device in an embodiment of the present disclosure;
[0025] Figure 3 It is a schematic flowchart of a data interaction method 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 data interaction principle in an embodiment of the present disclosure Figure 1;
[0029] Figure 7 Schematic diagram of data interaction principle in an embodiment of the present disclosure Figure 2 ;
[0030] Figure 8 Schematic diagram of data interaction principle in an embodiment of the present disclosure Figure 3 ;
[0031] Figure 9 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 Schematic diagram of the operation interface of the third interaction instruction in an embodiment of the present disclosure Figure 1 ;
[0033] Figure 11 Schematic diagram of the display interface operation in an embodiment of the present disclosure;
[0034] Figure 12 Schematic diagram of the operation interface of the third interaction instruction in an embodiment of the present disclosure Figure 2 ;
[0035] Figure 13 Schematic diagram of the induction record interface in an embodiment of the present disclosure Figure 1 ;
[0036] Figure 14 Schematic diagram of the induction record interface in an embodiment of the present disclosure Figure 2 ;
[0037] Figure 15 Schematic diagram of the structure of the data interaction device in an embodiment of the present disclosure;
[0038] Figure 16 Schematic diagram of the data interaction method flow on the detection device side in an embodiment of the present disclosure Figure 1 ;
[0039] Figure 17 Schematic diagram of the data interaction method flow on the detection device side in an embodiment of the present disclosure Figure 2 . Detailed implementation manners
[0040] Next, 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 exemplary 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 / to the detection device 101 and the controlled device 106 and / or transmit / route various types of communications to / from 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)). All the detection device 101 and the controlled device 106 connected to the network access device 102 are in the same internal network 104 and can communicate directly with each other. In a further embodiment, 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, which may be, for example, a server, such as an IOT cloud device of the Internet of Things platform (also abbreviated as "cloud" hereinafter), which has the authority to manage and configure the connected electronic devices. When the terminal device 103 accesses the remote server through the external network 105, the server can display the interaction interfaces of the controlled device 106 and the detection device 101 through the terminal device 103.
[0045] When the network access device 102 is a router 107, a gateway 108 may also be provided 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 exemplary 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, such as Figure 1As shown, direct communication can also be achieved between the detection device 101 and the terminal device 103, such as through direct Bluetooth connection or WIFI hotspot connection, to facilitate the transmission of network configuration information when the terminal device 103 configures the network for the detection device 101. Similarly, for other controlled devices 106, network configuration can also be achieved through 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 (such as a mobile phone APP) corresponding to the detection device 101 can be pre-installed on the terminal device 103. Furthermore, the application program can provide a configuration interface for the user to facilitate the user to perform at least one operation on the detection device 101, such as status viewing, parameter configuration, control, and network configuration. The terminal device 103 can also access the external network 105 through a gateway 108 (such as Bluetooth), a 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 (WAN) (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 openers, 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 the target object. In different application scenarios, the type and function of the detection device 101 may be different. 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] The following further takes a human body sensor as an example of the detection device 101 for illustration: A 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, human body sensors can include: Passive Infrared (PIR) sensors: Using infrared detection technology to sense the thermal radiation emitted by the human body and determine whether a human body is moving within the detection area; Microwave radar sensors: Detecting the presence or movement state of a human body by transmitting microwave signals and receiving the changes in their reflected signals; Pressure sensors: Judging whether a human body touches a certain surface, such as a seat, floor, etc., by detecting pressure changes.
[0053] The following takes a human body sensor based on the microwave radar principle for 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 determine the presence or absence of a 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 a 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 can include, but is not limited to, buttons, keyboards, keypads, LCDs, CRTs, TFTs, LEDs, HDs, or other similar interactive components, including display devices with touch screen capabilities that enable interaction between the user and the detection device 101. In some embodiments, the user interface 20 can 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 the network access device 102 using wired or wireless protocols. The 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. The 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 Citizens 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 via the network interface 21 to an internal network (such as Figure 1 the internal network 104) provided by the network access device 102.
[0058] The power supply 22 supplies power to the internal components of the electronic device 200 via 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 (such as Figure 1 the external network 105 in
[0060] the Internet service provider or a multi-system operator (MSO)).
[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 as described in the embodiments of 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 digital circuit systems, analog circuit systems, or mixed-signal (a combination of analog and digital) circuit systems that perform functions in a computing system. The processor 26 may include, for example, an integrated circuit (IC), a part 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 door magnetic sensor based on magnetic field induction, etc.
[0063] The components of the electronic device 200 can 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] In addition, in some embodiments, the electronic device 200 may include one or more components not shown in Figure 2 In addition, although separate components are shown in Figure 2 in some embodiments, some or all of a given component may be integrated into one or more of other components in the electronic device 200. Furthermore, any combination of analog and / or digital circuits may be used to implement the circuits and components in the electronic device 200.
[0066] In the embodiments of the present disclosure, when Figure 2 the electronic device in Figure 1 is used to implement the terminal device 103 in Figure 2 the electronic device 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 1 the electronic device in
[0067] is used to implement the detection device 101 in
[0068] the electronic device 200 may be a detection device such as a rain sensor, a pressure sensor, a human body sensor, etc. 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.
[0069] 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 understood as indicating or implying relative importance or implicitly indicating 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 can 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".
[0070] Based on this, an embodiment of the present disclosure provides a data interaction method for dynamically controlling target quantitative data according to user needs, which realizes flexible adjustment of the reporting strategy of detection data by hierarchical design of the detection data.
[0071] First, the hierarchical design of the detection data in the embodiments of the present disclosure is introduced. Specifically, in the embodiments of the present disclosure, the detection data directly or indirectly obtained by detecting the target object is divided into at least two categories, namely target basic data and target quantitative data.
[0072] 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.
[0073] 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.
[0074] Exemplarily, the attribute feature information is, for example but not limited to, at least one of the following:
[0075] Position, used to quantify the target location, such as specific coordinates, relative distance, etc.;
[0076] Action, used to quantify target actions, such as movement trends (approaching, moving away);
[0077] 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;
[0078] State, used to quantify the target state, such as falling, lying down, walking, etc.
[0079] 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.
[0080] 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.
[0081] 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.
[0082] like Figure 9 As shown, the data interaction method 90 at least includes steps S91 to S94.
[0083] like Figure 9 As shown, in step S91, the terminal device obtains the third interaction instruction.
[0084] This step is used to receive a third interaction instruction from an external interaction entity, and the third interaction instruction is used to cancel the reporting mode of target quantitative data. The target quantitative data is used to characterize at least one attribute feature information of the target. Specifically, the external interaction entity can be a user, or other intelligent terminals, cloud servers or other control devices.
[0085] 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 a preset condition and a specific operation, and the specific operation is controlled to be executed when the preset condition is triggered. That is, when the preset condition is met, the specific operation is controlled to be executed, and the preset condition can be related to the target quantitative data.
[0086] Exemplarily, the trigger execution rules are preset by the user through the terminal device, and there can be multiple trigger execution rules. The trigger execution rules can 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 joined by the detection device. For example, when a person has a certain movement trend, the light is turned on, or it can be related to the target basic data, for example, when a person exists, the light is turned on. The trigger execution rules can also be unrelated to the detection device, that is, the preset condition of the trigger execution rule is at least one trigger action of other intelligent 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.
[0087] In addition, there can be one or multiple detection devices. When there are multiple detection devices, determining the trigger execution rule associated with the detection device specifically includes determining the trigger execution rule associated with the target detection device, and the target detection device is the detection device corresponding to the third interaction instruction for canceling the reporting mode of the target quantitative data.
[0088] In step S93, the logical constraint relationship of the trigger execution rule is discriminated.
[0089] This step is used to determine whether there is at least one trigger execution rule whose 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.
[0090] Among them, if there is at least one preset condition set by the matching relationship of the trigger execution rule that 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.
[0091] When there is a logical constraint relationship, the operation of the corresponding trigger execution rule depends on at least part of the target quantitative data. In this case, lifting the reporting mode may cause the function of the corresponding trigger execution rule to malfunction (for example, it cannot be triggered normally).
[0092] In step S94, the terminal device starts a decision-making intervention process.
[0093] 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 also may directly affect the normal operation of the trigger execution rules associated with it. 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-making intervention process to provide decision-making assistance information and guide external interaction entities to make reasonable trade-off decisions.
[0094] Specifically, when the discrimination result of step S93 indicates the existence of a logical constraint relationship, the terminal device starts a decision-making intervention process to intervene in the user's current operation.
[0095] Exemplarily, starting the decision-making intervention process includes constructing and providing decision-making assistance information, which includes at least one of the following information:
[0096] 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;
[0097] Prompt for the failure of the trigger execution rule that may be caused by lifting the reporting mode: Provide a detailed description of the failure impact, and clearly indicate the functional changes that may be caused by terminating the reporting.
[0098] After obtaining the decision-making 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:
[0099] 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;
[0100] 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 failure of the corresponding functions, it can choose to continue to perform the data reporting termination operation.
[0101] 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.
[0102] 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 trigger execution rules can still work properly without being affected.
[0103] 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.
[0104] 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 trigger execution rule of "approach - turn on the light", the preset condition of this trigger execution rule is "human body approaches", and the specific operation is "turn on the lamp". Then this trigger 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 trigger execution rule to be possibly triggered.
[0105] As Figure 10 shown, the user operation interface 100 provides a first - mode operation area 101, which includes a first - mode switching control 1011. 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.
[0106] After determining the trigger execution rules related to the detection device, the terminal device traverses all trigger execution rules associated with the detection device and finds that the fulfillment of the preset condition of the "approach - turn on the light" execution rule 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 trigger execution rules of the detection device, and then the decision - making intervention process is started.
[0107] 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.
[0108] 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.
[0109] 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.
[0110] 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.
[0111] 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.
[0112] 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.
[0113] 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 release of the reporting mode of the target quantization data can be understood as the release of the reporting modes of all attribute feature information, or it can be understood as the release 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 can also 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 in the released state, that is, the reporting mode of the target quantization data can be partially activated and partially released.
[0114] 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 needed by the user. Specifically:
[0115] 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.
[0116] 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 target
[0117] 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, allowing the detection device to upload at least one of the attribute feature information such as the location, action, quantity, and status of the target.
[0118] In some solutions, during the period when the reporting mode of the target quantization data is released, 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.
[0119] 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 the user more flexible decision-making power.
[0120] Further, the data interaction method further includes steps S97 to S99, which are used for intelligent decision-making when the reporting of the target quantization data is default prohibited. Specifically:
[0121] 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.
[0122] In step S98, when it is detected that the reporting mode of the target quantitative data has been lifted, before, after, or simultaneously with entering the display interface, determine whether there is at least one triggering execution rule whose preset conditions involve at least one attribute feature represented by the target quantitative data, thereby forming a logical constraint relationship with the reporting mode of the target quantitative data.
[0123] In step S99, when the discrimination result indicates the existence of a logical constraint relationship, start another decision intervention process. 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.
[0124] For example, if the user selects the first control in the provided decision selection controls, and the first control represents no repeated prompt (such as Figure 11 "Do not prompt again" 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 "Immediately start" in
[0125]
[0126] In step S10, obtain the target quantitative data from the remote communication device.
[0127] In step S10, the terminal device obtains target quantitative data from a 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 timeliness and accuracy of the data.
[0128] In step S11, the corresponding attribute characteristics of the human body represented by the target quantitative data are visually presented through a display interface.
[0129] In step S11, after the acquired target quantitative data is processed, it will be visually presented through a 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 graphs, charts, or other intuitive graphical display methods.
[0130] In a specific example, such as Figure 12 shown, when the target quantitative 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). As Figure 13 shown, when the target quantitative data includes the human body movement trend, the human body movement trend data will be displayed through the display interface 122. The display interface 122 is different from the display interface 121 for displaying the human body position data, and the switching record of the human body movement trend can also be browsed through the display interface 122.
[0131] In some embodiments, the data interaction method further includes:
[0132] Before, after, or at the same time as obtaining the first user operation instruction, the method further includes:
[0133] Obtain target basic data from a remote communication device. The target basic data is data detected and reported by a detection device for indicating the existence of a target; the second control instruction is used to trigger the detection device to stop reporting the target quantitative data without affecting the detection device's reporting of the target basic data.
[0134] In the embodiments of the present disclosure, the data indicating the existence of the target is visually presented on the display interface (as Figure 11 and Figure 12 shown). It should be particularly noted that the second control instruction is only used to trigger the detection device to stop reporting the target quantitative data and will not affect the detection device's reporting of the target basic data. Therefore, even if the reporting of the target quantitative data is terminated, the basic existence information of the target can still be continuously sensed to ensure the normal operation of the basic monitoring function and, when necessary, restart the quantitative data reporting mode, thereby achieving the flexibility and stability of data management.
[0135] In a specific example, such as Figure 11 shown, it is a display interface 111 of a human body sensor. For example, 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 target quantitative data reporting mode used to characterize the human body position attribute feature to trigger this trigger execution rule.
[0136] Such as Figure 11 shown, the display interface 111 has a status display area 1111, which is used to visually present the existence information of the target (for example Figure 11 "someone" in). For example, when the target is a human body, the information on the presence or absence of a human body detected by the human body sensor (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 at this time the user has manually cancelled the reporting mode of the target quantitative data characterizing the human body position, or when the detection device is in the initial working state, software is upgraded, reset or restored to the factory settings, 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, when entering the display interface, it will judge whether there is at least one trigger execution rule, the preset condition of which involves at least one attribute feature characterized 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 shown, 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 'XXXX (words related to the human body position can be filled to prompt the user)' reporting mode 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 corresponding decision selection controls 1121, such as Figure 11 "Later" and "Turn on immediately" in. If the user selects "Turn on immediately", the terminal device directly sends a first control instruction to the terminal device through a 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 above-mentioned another decision intervention process will not be started the next time the display interface 111 is entered.
[0137] In addition, such asFigure 12 As shown, the terminal device provides a second-mode operation area 1231 through a 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 activate the reporting mode of the target quantitative data of the human body position. The user can operate to activate this 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.
[0138] It should be noted that the acquisition of the human body position is carried out on the basis of detecting that there is someone. That is, the human body position can be obtained only when the target basic data indicates the presence of someone. This human body position represents the straight-line distance between the target (human body) and the detection device (human body sensor), and this distance value is not limited 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 partial 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, then 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 limitation of the target sensing range being 3 meters.
[0139] When the reporting mode of the human body position is activated, the terminal device visually presents the acquired human body position on the display interface (such as Figure 12 "3 meters" shown), and when this reporting mode is cancelled, the human body position information is not displayed on the display interface (such as Figure 11 shown).
[0140] In some embodiments, determining the trigger execution rules associated with the detection device includes:
[0141] Obtaining at least one trigger execution rule related to the detection device from a 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.
[0142] The remote communication device can 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 the corresponding rule data based on a network connection (such as Wi-Fi, cellular network, Zigbee, LoRa, etc.).
[0143] In step S3, differentiating the logical constraint relationship of the trigger execution rules specifically includes:
[0144] Determine whether there is a preset condition with a logical relationship match: Traverse all the trigger execution rules obtained, 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.
[0145] If so, it is considered that there is a logical constraint relationship; otherwise, it is considered that there is no logical constraint relationship.
[0146] 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.
[0147] 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.
[0148] 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, stored in the remote communication device, and associated with the rule content.
[0149] 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.
[0150] The terminal device traverses all the trigger execution rules obtained 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 includes:
[0151] Traverse the obtained rule identifier list and check whether 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 rule is not constrained by the target quantitative data and there is no logical constraint relationship.
[0152] 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 rule from the remote communication device, but only needs to obtain a string of rule identifiers, and then check whether there is a matching item to complete the logical constraint determination, which greatly reduces the data transmission volume, reduces the calculation cost, and improves the response speed.
[0153] In addition, in some embodiments, the method further includes step S12.
[0154] At step S12, the terminal device responds to the user's adjustment instruction for reporting the activation / deactivation of any trigger execution rule, and triggers the remote communication device to perform an activation / deactivation operation on the target trigger execution rule; wherein, the target trigger execution rule for performing the activation operation can be normally triggered, and the target trigger execution rule for performing the deactivation operation 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 an activation operation on the trigger execution rule that has a logical constraint relationship with the reporting mode.
[0155] In this embodiment, the target trigger execution rule for performing the activation operation 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 performing the deactivation operation will not be triggered even if the target quantitative data meets the corresponding trigger conditions, so as to ensure that the rule does not affect the execution logic of the system during the adjustment period.
[0156] 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 cancelled, 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, which not only ensures the flexible adjustment of data reporting, but also ensures the stability and continuous availability of the trigger logic.
[0157] In a specific example, when the user creates a matching relationship between a preset condition - specific operation based on a certain target attribute feature detected by the detection device, a trigger execution rule will be saved in the cloud server. This trigger execution rule has an ID (rule identifier) for uniquely identifying the trigger execution rule created based on this target attribute feature. When the user closes the reporting mode corresponding to this target attribute feature, the terminal device (taking a mobile phone as an example, specifically executed by the processing entity in the mobile phone (such as an APP)) will use an API to retrieve the ID list of all trigger execution rules related to this detection device from the cloud server, and traverse whether there is an ID of a valid trigger execution rule created based on the corresponding target attribute feature; if so, start the decision intervention process. When the user clicks "confirm to close", a second control instruction is sent to instruct the detection device not to report relevant messages anymore, and no deactivation operation will be performed on the corresponding trigger execution rule in the cloud server.
[0158] In some embodiments, applying the first control instruction includes: the terminal device applies the first control instruction to the detection device through the remote communication 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 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 having a logical constraint relationship with the reporting mode.
[0159] 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 are 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.
[0160] 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.
[0161] In some embodiments, the method further includes steps S13 to S15.
[0162] 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.
[0163] At step S14, display N records (N is greater than or equal to 0) in chronological order on the history record interface; the duration of a target existence state is recorded in each record, as Figure 14 shown.
[0164] At step S15, display the duration of the Nth record on the display interface (for example Figure 11 and Figure 12 "1 hour and 22 minutes" in
[0165] In the embodiments of the present disclosure, the Nth record is the latest record; among them, the duration of the Nth record is the current time minus the triggering time of the Nth record, and the duration of the (N - 1)th record is the triggering time of the Nth record minus the triggering time of the (N - 1)th record, and so on, to obtain N records.
[0166] Furthermore, based on this embodiment, the data display on the history record interface can be performed without relying on the continuous reporting of the target basic data, reducing the amount of data reported.
[0167] 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.
[0168] Specifically, as Figure 14 shown, the terminal device sets a date selection control 1411 and a historical record display control 1412 in the record interface 141. Among them, the historical record display control 1412 is used to display historical records, including records with people 14121 and records without people 14122. The records with people 14121 include the triggered time with people, the duration of people presence, and the detection sub-region where people are triggered. The records without people 14122 include the event of no one being triggered and the duration of no one being present.
[0169] Taking a specific human body sensor as an example, as Figure 14 shown, assume:
[0170] At 18:21:26 on March 11th, the detection device reported that there were people (the Nth item, N = 7).
[0171] At 18:16:27 on March 11th, the detection device reported that there was no one (the 6th item).
[0172] At 18:16:14 on March 11th, the detection device reported that there were people (the 5th item).
[0173] At 18:15:51 on March 11th, the detection device reported that there was no one (the 4th item).
[0174] At 18:11:48 on March 11th, the detection device reported that there were people (the 3rd item).
[0175] At 18:09:26 on March 11th, the detection device reported that there was no one (the 2nd item).
[0176] At 14:23:29 on March 11th, the detection device reported that there were people (the 1st item).
[0177] Then, the interface shows as Figure 14 shown:
[0178] 18:21:26, the duration of people presence is 1 hour 15 minutes 4 seconds.
[0179] 18:16:27, the duration of no one being present is 4 minutes 59 seconds.
[0180] 18:15:51, the duration of no one being present is 23 seconds.
[0181] 18:11:48, the duration of people presence is 4 minutes 3 seconds.
[0182] 18:09:26, the duration of no one being present is 2 minutes 22 seconds.
[0183] At 14:23:29, the duration of someone's presence is 3 hours, 45 minutes, and 57 seconds.
[0184] Among them, the duration of the record at 18:21:26 is the time 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.
[0185] In addition, many existing detection devices usually report data without discrimination according to a fixed policy after startup, without considering the actual needs of users and the actual interaction status of electronic devices. This information interaction method may but is not limited to the following problems:
[0186] 1. The network communication burden is too heavy, affecting network stability. Especially in wireless ad hoc networks, continuous reporting by a large number of detection devices may lead to network congestion and affect the normal communication of other devices. For example, in a Bluetooth Mesh network, excessive reporting messages may cause message transmission delays or losses, thereby reducing network communication efficiency. Too many reporting messages will also affect the stability of the mesh network.
[0187] 2. Resource waste and reduced device energy efficiency. Many detection data are only meaningful when the user is in a specific interaction state (such as viewing the detection result interface). If reporting continues when the user is not paying attention, it will not only occupy communication bandwidth but also increase the power consumption of the detection device. If the detection device relies on battery power, it will also cause the device's battery life to decline.
[0188] 3. Data presentation lag or interference from irrelevant data. Due to the failure to effectively synchronize the interaction logic of electronic devices and the reporting strategy of detection devices, 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 updates; or when the user exits the interface, the detection device still continues to report, generating meaningless data streams.
[0189] In summary, there are still certain limitations in the data processing method of information interaction in the existing detection system. 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. The detection device realizes an intelligent reporting strategy for specific data through the collaborative work of the terminal device and the detection device. Users can flexibly start and stop data acquisition according to their needs, reducing the communication burden while ensuring data accuracy and real-time performance.
[0190] Next, the data interaction method described in the embodiments of the present disclosure will be described in detail. Exemplarily, reference can be made toFigure 3 , Figure 3 shows a flowchart of a data interaction method according to an embodiment of the present disclosure. The method 30 can be applied to Figure 1 the terminal device 103 in Figure 2 or the electronic device 200 as shown in
[0191] Hereinafter, 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.
[0192] As Figure 3 shown, at step S31, the terminal device, based on the received first interaction instruction, causes the processing entity that executes the interaction logic to enter a specific interaction state.
[0193] 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 the interaction instruction and perform information interaction with external devices. The processing entity can be composed of at least one of a hardware circuit, an integrated chip, a software module, an application program, an embedded control logic, and other computing units with interaction control capabilities.
[0194] The processing entity that executes the interaction logic can, but is not limited to: parse various user operation instructions to execute corresponding operations; generate / send / receive corresponding information to interact with external devices; adjust the presentation manner of corresponding information to optimize the user interaction experience.
[0195] 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. The application program can be a client program dedicated to the detection device or an integrated management program provided by the Internet of Things platform for managing the detection device. The 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.
[0196] At step S32, the terminal device sends a request instruction to the detection device so that the detection device reports detection data that meets a preset condition through the network.
[0197] The network here can be understood as a network that the detection device has established or joined in advance, and the detection device performs external communication based on this network.
[0198] 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).
[0199] Exemplarily, the network belongs to an ad-hoc network, that is, the detection device of the present disclosure adopts 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.
[0200] 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 the Bluetooth gateway by joining the Bluetooth mesh network with the Bluetooth gateway component, and then realize indirect communication with other devices through the Bluetooth gateway.
[0201] 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.
[0202] It can be seen that the reported detection data is provided to the processing entity in a specific interaction state. This detection data is specific detection data, and its specificity is reflected in that it is used for the processing entity to dynamically adjust the information presentation associated with the specific interaction state.
[0203] In step S34, when receiving the second interaction instruction, the terminal device adjusts the sending strategy of the request instruction to make the detection device stop 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.
[0204] Among them, the terminal device adjusts the sending strategy of the request instruction. For example: adjust the sending state of the request instruction, such as adjusting from periodic sending to stop sending; adjust the sending frequency of the request instruction, such as adjusting 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 after 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.
[0205] Among them, the terminal device actively sends a stop instruction. For example, when receiving a second interaction instruction, it sends 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 the detection data when a specific interaction state is released.
[0206] Of course, in some embodiments, when receiving a second interaction instruction, the terminal can also actively send a stop instruction and adjust the sending strategy of the request instruction so that the detection device enters a detection state with specific constraint conditions based on the stop instruction. Once it detects that the specific constraint conditions are met, it immediately stops providing the detection data.
[0207] In the above embodiments, the second interaction instruction is used to guide the processing entity to exit a specific interaction state, and the stop instruction is generated after the user triggers a specific interaction control.
[0208] 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 between the reporting of specific detection data by the detection device and the interaction state of the terminal device.
[0209] Based on the above solution, 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. When the specific interaction state is released, the detection device stops reporting specific data to avoid unnecessary communication burdens. Overall, this method can reduce the network communication burden while ensuring data accuracy and real-time performance.
[0210] 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.
[0211] The remote communication device can be understood as a device that can receive, store, process, and remotely transmit data. It usually acts as the center of data exchange, storage, or processing and is responsible for coordinating information interaction between 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.
[0212] 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.
[0213] Exemplarily, if the detection device communicates externally through a Bluetooth mesh network, the remote communication device includes at least 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 forwards it to the terminal device. In this scenario, the remote communication device may further include a cloud to provide data transmission over a longer distance. 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 formed by the Bluetooth gateway and then communicates with the Bluetooth gateway through this network. The Bluetooth gateway is connected to the corresponding router after pre-configuring the network 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 realized.
[0214] In a Bluetooth Mesh network environment, excessive reporting messages may affect network stability. Based on the solution provided in the embodiments 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 this 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, adjust the sending strategy of the first control information to make the detection device stop reporting detection data through the Bluetooth Mesh network when it meets specific constraint conditions.
[0215] Therefore, the mechanism for controlling the reporting of specific detection data of the detection device based on a specific interaction state proposed in the embodiments of the present disclosure sends corresponding control information (i.e., a request instruction) to the detection device when the electronic device enters the specific interaction state, so that it reports the detection results that meet the preset conditions through the Bluetooth Mesh network, thereby ensuring that the information in the specific interaction state can be presented in a timely manner. When the electronic device exits this specific interaction state, control the detection device to terminate the reporting of detection data and avoid unnecessary data transmission to reduce the network communication burden.
[0216] As can be seen, in the embodiments of the present disclosure, a remote temporary session is a short-term data interaction connection established between a terminal device and a detection device in a specific interaction state of a processing entity. This remote temporary session supports real-time transmission of detection data of the detection device, ensuring that specific detection data can be visually presented under the specific interaction state of the terminal device. Moreover, different from a normal session, this remote temporary session is established and released on demand. Here, a normal session can be understood as a regular connection maintained by the detection device with a remote communication device and / or a terminal device, mainly used for reporting basic detection data (such as the state of the presence or absence of a target), while the remote temporary session is only established in a specific interaction state of the processing entity and released after the specific interaction state is lifted, so as to provide more efficient data interaction support in the specific interaction state and significantly reduce communication after release.
[0217] In addition, the first interaction instruction involved in the above embodiments can be understood as an interface interaction operation imposed by a user on a 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 lift (exit, terminate, etc.) this specific interaction state, such as causing the application to exit a specific interface or terminate the corresponding function. As can be seen, 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 this state, thus jointly constituting a complete interaction process to ensure that the detection device can dynamically adjust the interaction logic according to external requirements.
[0218] 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 this specific interaction interface, causing the processing entity to exit the specific interaction state.
[0219] In a specific implementation manner, 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 a certain interaction interface among multiple interaction interfaces of the application. When the user operates the application to enter this specific interaction interface, the first interaction instruction is triggered, and when the user operates the application to exit (lift, terminate) this specific interaction interface, the second interaction instruction is triggered.
[0220] On this basis, when the second interaction instruction is received, the terminal device adjusts the sending strategy of the request instruction (such as stopping sending the request instruction), so that the detection device stops providing the detection data when meeting specific constraint conditions.
[0221] Furthermore, the first interaction instruction and the second interaction instruction are closely associated with the entry into and exit from the specific interaction interface, and the user can automatically trigger the corresponding data processing process without performing additional specific operations (such as manually activating or deactivating a control on a certain page).
[0222] It should be noted that since the second interaction instruction is triggered when the user exits a 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 (such as switching to other interaction interfaces, closing the application, locking the screen, shutting down, etc.), the second interaction instruction will be automatically triggered, thus ensuring that the reporting of detection data can stop.
[0223] Taking the mobile phone as the terminal device and the 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, a specific interaction interface, thus triggering the first interaction instruction and causing the smart home App to enter and remain in this specific interaction state. Subsequently, the terminal device sends a request instruction to the detection device to prompt it to report detection data. When the user exits the configuration interface 400, the second interaction instruction will be triggered, causing the smart home App to exit this specific interaction state, and at the same time the terminal device stops sending the request instruction, thus terminating the data reporting of the detection device.
[0224] Furthermore, the specific interaction interface is the 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).
[0225] The operation 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 program) can dynamically adjust these parameters according to different detection requirements to optimize the detection effect.
[0226] Specifically, the configuration parameters include but are not limited to the following detection performance-related parameters:
[0227] Sensitivity: Used to control the response threshold of the detection device, such as the sensitivity level (low / medium / high) or specific value (0 - 100) of a microwave radar for detecting human movement.
[0228] Detection range: Used to define the effective detection area, such as the detection coverage range of a microwave radar or the infrared detection angle of a PIR sensor (such as 120°, 180°).
[0229] Sampling frequency: Determines the time interval at which the detection device performs data acquisition, such as once per second or ten times per second, to balance detection accuracy and power consumption.
[0230] Among them, the parameter configuration area 402 is used for users to adjust the operation 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. When the sensitivity is low, it only responds to targets with close distance or obvious changes.
[0231] 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 with the parameter adjustment in the parameter configuration area 402, so that users can intuitively understand the impact of different configurations on the detection effect.
[0232] Based on this, after the terminal device enters the configuration interface, the method further includes step S35 and step S36.
[0233] At step S35, in response to the user's operation in the parameter configuration area, configuration data for adjusting the performance of the detection device is generated and transmitted.
[0234] The user can adjust the sensitivity parameter in the parameter configuration area of the application program by means of a slider, button selection or voice command, etc. The sensitivity parameter is used to control the detection range of the sensor and the response threshold for 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 take effect.
[0235] At step S36, the adjusted detection data is obtained, and the display of the information presentation area is updated to provide parameter adjustment feedback to the user.
[0236] It can be seen that in this embodiment, the interaction interface for triggering the specific interaction state of the processing entity is specific. It has the capabilities of detecting device configuration and data display. Through this interface, users can prompt the processing entity of the interaction logic to adjust the detection performance of the detection device and provide the real-time presentation and operation capabilities for the detection data.
[0237] Taking a 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 users to adjust the sensitivity of the detection device. When the user enters the configuration interface, the processing entity of the interaction logic sends a request instruction to the detection device, prompting the detection device to start reporting 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 detection device (such as sensitivity, detection mode, etc.) in the parameter configuration area, the detection 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 detection device, and the content update of the information presentation area also terminates accordingly, thus avoiding unnecessary resource consumption.
[0238] Furthermore, through the above solution, the convenience of optimizing the parameter adjustment of the detection device and the feedback mechanism are provided. A parameter configuration interface is provided, enabling users to intuitively adjust the performance parameters of the detection device and providing feedback through real-time updated detection data to ensure the effectiveness of parameter adjustment and improve operation efficiency.
[0239] Further, the request instruction causes 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-region determined by the configuration data; the detection sub-region is obtained by dividing the target detection range of the detection 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.
[0240] In the embodiments of the present disclosure, the detection 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 perception rules for different detection sub-regions within the target detection range of the detection device. The detection device processes the detection data of each detection sub-region according to these perception rules and reports the corresponding detection data when the conditions determined by the perception rules are met.
[0241] To improve the detection accuracy and adaptability, the 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. For example, an intensity threshold 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.
[0242] 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.
[0243] 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-areas. When the 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 users to intuitively obtain the target detection status of each detection sub-area.
[0244] 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 sensing rules to ensure that the information presentation area can display the current detection status in real time. During the interaction, the user can adjust the sensing rules of the detection sub-areas through the parameter configuration area. For example, by increasing the detection sensitivity of a certain detection sub-area, 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, avoiding unnecessary data refreshing.
[0245] 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-area, 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 sensing rules, the information presentation area is automatically updated to display, returning the corresponding detection sub-area to its initial state. After the user adjusts the sensitivity in the parameter configuration area, the detection device updates the sensing rules of the detection sub-areas in real time and generates new detection data, causing the display of the information presentation area to be adjusted accordingly.
[0246] Furthermore, as Figure 5 shown, the parameter configuration area includes interaction controls for adjusting the sensitivity of each detection sub-area; in response to the user's operation in the parameter configuration area, it generates and transmits configuration data (updated sensitivity parameters) for adjusting the performance of the detection device; specifically including:
[0247] In response to the user's operation, it generates updated sensitivity parameters and transmits them to the detection device, realizing the individual setting of the detection sensitivity of each detection sub-area, and thus forming specific independent sensing rules for each detection sub-area based on the individually set detection sensitivity.
[0248] In the embodiments of the present disclosure, interaction controls are provided through a parameter configuration area, enabling users to independently adjust the detection sensitivity of each detection sub-area, thereby achieving more refined detection control. This solution allows 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.
[0249] As Figure 5 shown, the sensitivity adjustment control can be a slider: the user 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. The user 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.
[0250] 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:
[0251] Parse the 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.
[0252] Generate updated configuration data: Based on the user's operation, new sensitivity parameters are generated and encapsulated into configuration data in a predefined data format. This configuration data contains the independent sensitivity values for each detection sub-area to ensure that different areas can adopt personalized perception rules.
[0253] Transmit 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.
[0254] When the detection device receives the new configuration data, it will perform the following operations:
[0255] Parse the configuration data and extract the updated sensitivity parameters for each detection sub-area.
[0256] According to the updated sensitivity parameters, adjust the detection thresholds of each detection sub-area respectively, so that different areas adopt different signal processing criteria during target detection.
[0257] During subsequent detection, independent sensing rules are formed based on the adjusted sensitivity parameters. For example:
[0258] The high-sensitivity sub-region can detect weaker motion signals and is suitable for monitoring slight movements (such as gestures or subtle displacements).
[0259] 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).
[0260] To improve the user experience, the information display area dynamically updates the displayed content according to the application of the new sensitivity parameters of the detection sub-regions, enabling users to intuitively perceive the effect of configuration adjustments.
[0261] 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 sensing rules based on different detection requirements, thereby improving the accuracy, flexibility, and adaptability of detection.
[0262] In some embodiments, the size of the detection data reported by the detection device is limited to less than 32 bytes, while the size of the configuration data sent by the terminal device is limited to less than 16 bytes.
[0263] Specifically, the size of the detection data reported by the detection device is determined according to the specific number of detection sub-regions. That is, based on the division of the detection sub-regions, the detection data is compressed and encoded 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.
[0264] 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 status of all detection sub-regions, and the value of each bit represents the human detection result of that sub-region. For example:
[0265] "1" indicates that a human is detected in this detection sub-region;
[0266] "0" indicates that no human is detected in this detection sub-region.
[0267] Assume that the target detection range is divided into 8 detection sub-regions, and humans are detected in the 1st, 3rd, and 6th regions, and no humans are detected in the remaining regions. Then the detection data encoding is as follows:
[0268] Detection sub-region number: 87654321
[0269] Detection status (bit): 00100101 (total 1 byte, binary: 00100101, hexadecimal: 0x25);
[0270] After receiving the 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 real time in the information display area, realizing the visual display of the detection results.
[0271] Similarly, during the parameter configuration process, in order 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 the microwave radar detection device, the configuration data is mainly used to adjust the sensitivity of the detection sub-region or other detection parameters. For example, the sensitivity of each detection sub-region can be encoded using 4-bit (e.g., 16-level sensitivity adjustment, 8 trigger sensitivities for detecting people, 8 hold sensitivities for detecting people). For 8 detection sub-regions, only 4 bytes (8×4bit) are required to completely represent the sensitivity configuration of all regions.
[0272] 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 perception rules.
[0273] 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 realizing low-latency interaction.
[0274] 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.
[0275] In summary, through data compression and coding optimization, this solution significantly improves the transmission efficiency and real-time performance of the detection data, while reducing the energy consumption of the device, enabling the human presence detection based on microwave radar to operate more efficiently.
[0276] In some embodiments, the request instructions sent by the terminal device specifically include:
[0277] The terminal device periodically sends request instructions to the detection device. Each time it sends, it triggers the detection device to enter the effective reporting period. During the effective reporting period, the detection data is reported 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 instructions.
[0278] In the embodiments of the present disclosure, in order to ensure that the detection device can stably report detection data as required, the terminal device will periodically send request instructions to the detection device to maintain the effectiveness of data reporting. Specifically, the sending of each request instruction will trigger the detection device to enter the effective reporting period. During this period, the detection device reports detection data according to a predetermined rule to ensure the continuity and reliability of the data.
[0279] The duration T1 of the effective reporting period needs to satisfy being greater than or equal to the sending period T2 of the request instruction, that is, T1≥T2. In this way, when the terminal device sends request instructions according to the period T2, the detection device is always in the effective reporting period (as Figure 6 shown), thereby avoiding the detection device entering the non-reporting state due to too long an interval of request instructions and improving the stability of data reporting.
[0280] It can be seen that this solution controls the data reporting behavior of the detection device by periodically sending request instructions, and combines the effective reporting period mechanism to ensure the continuity of data update and at the same time reduce the network communication burden (that is, ensure that the device provides data only when key changes occur and reduce unnecessary data transfer).
[0281] Furthermore, the predetermined rules within the effective reporting period include one of the following rules:
[0282] Report regularly according to 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).
[0283] Report only when the detection data meets the preset change conditions, otherwise do not report.
[0284] Even further, the preset change conditions include at least one of the following:
[0285] The change of the target existence state; for example, changing from 00000000 (no human body exists in all 8 detection sub-regions, that is, no one state) to 00000001 (a human body exists in the 8th detection sub-region, that is, someone state).
[0286] The change of the target position; for example, changing from 00000001 (a human body exists in the 8th detection sub-region) to 10000000 (a human body exists in the 1st detection sub-region).
[0287] The change of the target quantity; for example, changing from 10000000 (1 detection sub-region triggers someone) to 11100001 (4 detection sub-regions trigger someone).
[0288] Furthermore, the data screening mechanism based on the predetermined rules and preset change conditions can accurately trigger data reporting according to requirements and further reduce irrelevant data streams.
[0289] In some embodiments, when the terminal device is running an application (processing entity) but has not entered 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 interruption device and adjusting the detection performance of the detection device.
[0290] When the application body maintains a specific interaction state in 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 exits the specific interaction interface, the sending of the request instruction is stopped, so that the detection device automatically exits 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.
[0291] Suppose the detection device is a microwave radar-based human presence sensor, and its target detection range is divided into 8 detection sub-regions. In the ordinary session, only the presence information of the human body is transmitted, including: when at least one of the 8 detection sub-regions detects someone, it is considered that someone is present, and then the result of someone being present is reported to the remote communication device; when none of the 8 detection sub-regions detects someone, it is considered that no one is present, and then the result of no one being 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 someone, it will not be transmitted in the ordinary session. Therefore, when the detection sub-region that triggers the presence of someone changes, since the detection result is still that someone is present, there will be no re-reporting in the ordinary session. During the remote temporary session, after any change occurs in the detected human presence state (such as someone being present changing to no one being present, or no one being present changing to someone being present), position (such as the presence of someone being triggered by the detection sub-region from 0 to 0.75 m changing to the detection sub-region from 0.75 m to 1.5 m triggering the presence of someone), or quantity (such as the presence of someone being triggered by two detection sub-regions changing to three detection sub-regions triggering the presence of someone), the detection device will upload the detection data to ensure the real-time update of the data in the configuration interface, and the interruption device will dynamically update the detection result to the configuration interface to visually display the human presence state of each detection sub-region.
[0292] 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.
[0293] Further, when the second interaction instruction is received, the sending strategy of the request instruction is adjusted to cause the detection device to stop providing detection data when meeting specific constraint conditions; specifically including: 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 last valid reporting period ends and no new request instruction is received.
[0294] 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), stop sending the request instruction.
[0295] Since the detection data is only reported within the valid reporting period, and the valid reporting period is triggered one by one by the periodically sent request instructions, after stopping sending the request instruction, the detection device will automatically stop reporting the detection data immediately or after a certain delay after the end of the current valid reporting period.
[0296] Exemplarily, taking the valid 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 as Figure 7 and Figure 8 shown. Since the sending period T2 (20 seconds) of the request instruction is less than the valid reporting period T1 (30 seconds), the detection device is always in the valid reporting period and continuously provides detection data.
[0297] 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 sending time of the last request instruction is 40 seconds, the valid reporting period triggered this time will last until 70 seconds. Therefore, the detection device stops reporting at 70 seconds, thus realizing the dynamic adjustment of the detection data reporting.
[0298] It can be seen that in this solution, by dynamically adjusting the sending strategy of the request instruction, the data reporting behavior is automatically adjusted according to the interaction state, reducing redundant data transmission while ensuring the availability of the detection data, and effectively reducing the communication burden.
[0299] In addition, in some embodiments, if the detection device receives the request instruction again within the valid reporting period, reset the valid reporting period.
[0300] For example Figure 7 and Figure 8As shown, the sending period T2 of the request instruction is 20 seconds, and the valid reporting period T1 is 30 seconds. If the valid reporting period is triggered at the 1st second, then the request instruction will be received again at the 20th second. At this time, the current valid reporting period is reset, that is, the remaining 10 seconds of the current valid reporting period will not continue, but enter a new 30 - second valid reporting period.
[0301] If the detection device receives the request instruction again after the end of the valid reporting period, a next valid reporting period will be started.
[0302] 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 the terminal device. This data interaction device can be used to execute the functions of the terminal device in the above - mentioned embodiments. As Figure 15 shown, the data interaction device 150 may include:
[0303] An interaction unit 151, configured to obtain a third interaction instruction; the third interaction instruction is used to cancel the reporting mode of the target quantifiable data; the target quantifiable data is used to characterize at least one attribute feature information of the target;
[0304] A first receiving and processing unit 153, the first receiving and processing unit 153 is further configured to determine a trigger execution rule associated with the detection device, where the trigger execution rule is set based on the matching relationship between a preset condition and a specific operation; and determine whether at least one preset condition of the trigger execution rule involves at least one attribute feature represented by the target quantifiable data to form a logical constraint with the reporting mode;
[0305] In the case where the determination result indicates the existence of a logical constraint, start a decision - making intervention process;
[0306] Based on the feedback result of the external interaction entity on the decision - making 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 quantifiable data.
[0307] In some embodiments, before obtaining the third interaction instruction, the interaction unit 151 is further configured to obtain a fourth interaction instruction, where the fourth interaction instruction is used to start the detection device to enter the reporting mode of the target quantifiable data;
[0308] 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 quantifiable data.
[0309] In some embodiments, when the first receiving and processing unit 153 applies the first control instruction, specifically:
[0310] 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 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 that has a logical constraint relationship with the reporting mode.
[0311] In some embodiments, the target includes a human body, and the target quantitative data includes at least one attribute characteristic for indicating the position, movement, quantity, and state of the human body.
[0312] After relying on the remote communication device to apply a first control instruction to the detection device, the first receiving and processing unit 153 is further configured to:
[0313] Obtain the target quantitative data from the remote communication device;
[0314] Visually present the corresponding attribute characteristics of the human body represented by the target quantitative data through the display interface.
[0315] The first receiving and processing unit 153 starts a decision-making intervention process, specifically for:
[0316] Construct and provide decision-making assistance information, including at least one of the following information:
[0317] A list of affected trigger execution rules;
[0318] A prompt for the invalidation of the trigger execution rule that may be caused by canceling the reporting mode.
[0319] In some embodiments, the interaction unit 151 is further configured to, based on the received first interaction instruction, cause the processing entity that executes the interaction logic to enter a specific interaction state;
[0320] As Figure 15 shown, the data interaction device further includes a first sending unit 152, configured to 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;
[0321] The first receiving and processing unit 153 is further configured to receive the detection data in the specific interaction state of the processing entity and dynamically adjust the presentation of relevant information;
[0322] When receiving a second interaction instruction, the first receiving and processing unit 153 is configured to perform at least one of the following:
[0323] Send a stop instruction to prompt the detection device to stop providing the detection data;
[0324] Adjust the sending strategy of the request instruction so that the detection device stops providing the detection data when meeting specific constraint conditions;
[0325] Wherein, the second interaction instruction is used to guide the processing entity to exit a specific interaction state.
[0326] In some embodiments, the first sending unit 152 is used 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, so that the processing entity exits the specific interaction state.
[0327] 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;
[0328] After entering the configuration interface, the first receiving and processing unit 153 is further used for:
[0329] Respond to the user's operation in the parameter configuration area, generate and transmit configuration data for adjusting the performance of the detection device;
[0330] Obtain the adjusted detection data and update the display of the information presentation area.
[0331] 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-region is obtained by dividing the target detection range of the detection device;
[0332] The first receiving and processing unit 153 updates the display of the information presentation area, specifically used for: visually presenting the target detection status of each detection sub-region according to the detection data.
[0333] In some embodiments, the interaction sending unit 152 sends a request instruction to the detection device, specifically used for: periodically sending a request instruction to the detection device, and each sending triggers the detection device to enter an effective reporting period, and the detection data is reported 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.
[0334] In some embodiments, when the first receiving and processing unit 153 receives the 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 used 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 last effective reporting period ends and no new request instruction is received.
[0335] 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 to cause the electronic device to perform the following operations:
[0336] Obtain a third interaction instruction; the third interaction instruction is used to cancel the reporting mode of target quantization data; the target quantization data is used to characterize at least one attribute feature information of the target;
[0337] Determine the trigger execution rule associated with the detection device, where the trigger execution rule is set based on the matching relationship between a preset condition and a specific operation;
[0338] Determine whether at least one preset condition of the trigger execution rule involves at least one attribute feature represented by the target quantization data to form a logical constraint with the reporting mode;
[0339] In the case where the determination result indicates the existence of a logical constraint, start a decision intervention process;
[0340] Based on the feedback result of the external interaction subject 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 quantization data.
[0341] 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:
[0342] Obtain a fourth interaction instruction, where the fourth interaction instruction is used to start the detection device to enter the reporting mode of target quantization data;
[0343] 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 quantization data.
[0344] In some embodiments, the processor applying the first control instruction is specifically used for:
[0345] Apply a first control instruction to the detection device through a remote communication device to prompt the detection device to operate according to the reporting process of the target quantization data and transmit the detected target quantization data to the remote communication device. The target quantization 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 quantization data; the target trigger execution rule is a trigger execution rule having a logical constraint relationship with the reporting mode.
[0346] In some embodiments, the target includes a human body, and the target quantitative data includes at least one attribute feature indicating a position, action, quantity, or state of the human body;
[0347] After applying the first control instruction to the detection device by means of the remote communication device, the processor is further configured to execute the instructions in the memory so that the electronic device performs the following operations:
[0348] Obtaining target quantitative data from a remote communication device;
[0349] The corresponding attribute characteristics of the human body represented by the target quantitative data are visualized through the display interface.
[0350] The processor starts a decision intervention process, specifically for:
[0351] Construct and provide decision-making support information, including at least one of the following:
[0352] A list of the triggered execution rules affected;
[0353] Removing the reporting mode may result in a prompt that the triggering execution rules are invalid.
[0354] In some embodiments, the processor is further configured to execute instructions in the memory so that the electronic device performs the following operations: based on the received first interaction instruction, the processing entity that executes the interaction logic enters a specific interaction state; sends a request instruction to the detection device so that the detection device reports the detection data that meets the preset conditions through the network; receives the detection data in the specific interaction state of the processing entity, and dynamically adjusts the presentation of relevant information; when the second interaction instruction is received, performs at least one of the following:
[0355] Sending a stop instruction to prompt the detection device to stop providing the detection data;
[0356] 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;
[0357] The second interaction instruction is used to guide the processing entity to exit a specific interaction state.
[0358] 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.
[0359] 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; after entering the configuration interface, the processor is further configured to execute instructions in the memory to enable the electronic device to perform 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 device; obtain the adjusted detection data, and update the display in the information presentation area.
[0360] In some embodiments, 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 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 in the information presentation area, specifically for: visually presenting the target detection status of each detection sub-region according to the detection data.
[0361] In some embodiments, the processor sends a request instruction to the detection device, specifically for: periodically sending a request instruction to the detection device, and each time the 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.
[0362] In some embodiments, when the processor receives a second interaction instruction, it adjusts the sending strategy of the request instruction to make the detection device 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.
[0363] The electronic 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, and will not be elaborated here.
[0364] According to the data interaction method on the terminal device side provided by the above embodiments, an embodiment of the present disclosure also provides a data interaction method for the detection device side. Exemplarily, reference can be made to Figure 16 , Figure 16 which shows a flowchart of the data interaction method according to an embodiment of the present disclosure. The method 160 can be applied to Figure 1 the detection device 101 in Figure 2 or the electronic device 200 as shown in
[0365] As shown in Figure 16 , which is a schematic flowchart of the data interaction method according to an embodiment of the present disclosure, at least including steps S161 to S162.
[0366] At step S161, 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.
[0367] In step S162 , reporting of the target quantitative data is stopped based on the second control instruction.
[0368] 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.
[0369] 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.
[0370] 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.
[0371] 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.
[0372] 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.
[0373] In this embodiment, the reporting mode control mechanism of the detection device can effectively avoid unnecessary data transmission, thereby optimizing the network communication burden, while ensuring the logical integrity of the trigger execution rules.
[0374] In summary, through the intelligent discrimination and decision 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 adjust the reporting strategy in a timely manner after receiving the second control instruction.
[0375] In some embodiments, before obtaining the second control instruction, the method further includes steps S163 and S164.
[0376] At step S163, obtain a first control instruction; the first control instruction is sent by the terminal device before obtaining the third interaction instruction according to the obtained fourth interaction instruction; the fourth interaction instruction is used to start the reporting mode of the target quantitative data.
[0377] At step S164, in response to the first control instruction, start reporting the target quantitative data.
[0378] 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 specific operations 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 applied by the terminal device to the detection device relying on the remote communication device.
[0379] 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 representing 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.
[0380] In some embodiments, the decision intervention process constructs and provides decision 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.
[0381] In some embodiments, the method further includes step S165 and step S166.
[0382] At step S165, detect the target within the detection range to obtain target basic data characterizing the existence of the target;
[0383] At step S166, report the target basic data to the 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 the terminal device when the terminal device needs it, so as to facilitate the terminal device to visually present the existence of the target on the display interface; after receiving the second control instruction, stop reporting the target quantization data and maintain reporting the target basic data.
[0384] In some embodiments, after the detection device stops reporting the target quantization data, it is further used to trigger the terminal device to determine whether there is at least one trigger execution rule before, after or at the same time as entering the display interface when it detects that the reporting mode of the target quantization data has been cancelled. The preset condition of the rule involves at least one attribute feature represented 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. 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 the external interaction entity, determine whether to start the decision intervention process again when entering the display interface again, 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, so that the user can intuitively view the existence information of the target.
[0385] According to the data interaction method on the terminal device side provided in the above embodiments, the present disclosure embodiments also provide a data interaction method for the detection device side, which can be executed by a detection device 101 as shown in Figure 1 or an electronic device 200 as shown in Figure 2 .
[0386] As shown in Figure 17 , it is a schematic flowchart of a data interaction method 170 according to the present disclosure embodiments. It can be seen that the data interaction method 170 at least includes steps S171 to S172.
[0387] As shown in Figure 17 , at step S171, the detection device receives a request instruction; the request instruction is sent by the terminal device after receiving the first interaction instruction to prompt the processing entity executing the interaction logic to enter a specific interaction state.
[0388] At step S172, the detection device responds to the request instruction and reports detection data that meets the preset conditions for dynamically adjusting the presentation of relevant information on the terminal device.
[0389] In any of the following cases, the detection device stops reporting detection data:
[0390] The detection device receives a stop instruction; the stop instruction is sent by the terminal device after receiving a second interaction instruction.
[0391] The detection device determines that it meets specific constraint conditions; among them, the specific constraint conditions will be met only after the sending strategy of the request instruction is adjusted, and the adjustment of the sending strategy of the request instruction is performed after the terminal device receives the second interaction instruction.
[0392] 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.
[0393] In the embodiments of the present disclosure, the detection device can dynamically adjust the reporting status of detection data based on the received instructions to meet the interaction requirements of the terminal device, thereby optimizing data transmission efficiency and interaction experience.
[0394] In the embodiments of the present disclosure, during the operation of the detection device, it can receive a request instruction from the terminal device. The request instruction is sent by the processing entity of the terminal device that executes the interaction logic after entering a specific interaction state after receiving a first interaction instruction. 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.
[0395] After receiving the request instruction, the detection device executes the corresponding response strategy, that is, it starts to report detection data that meets the preset conditions. The detection data here is data related to a 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.
[0396] When the detection device meets specific constraint conditions, it will stop reporting detection data. Specifically, in any of the following cases, the detection device will stop reporting detection data:
[0397] The detection device receives a stop instruction sent by the terminal device. The stop instruction is actively sent by the terminal device after receiving a second interaction instruction and is usually used to immediately terminate the reporting of detection data when the terminal device exits a specific interaction state.
[0398] The detection device determines that it meets specific constraint conditions. These specific constraint conditions are only met after the terminal device adjusts the sending strategy of the request instruction. In other words, after receiving the second interaction instruction, the terminal device will adjust the sending strategy 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 the specific constraint conditions are met based on this adjustment of the strategy, so as to decide whether to terminate the reporting of detection data.
[0399] 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.
[0400] 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.
[0401] 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, 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.
[0402] 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 reporting of detection data.
[0403] 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 a specific interaction interface, and the reporting of detection data is stopped in a timely manner after the terminal device exits this interface, so as to optimize the real-time performance and resources of network communication.
[0404] In some embodiments, the method further includes steps S173 to S175.
[0405] At step S173, 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. Among them, 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.
[0406] At step S174, 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 involves the sampling frequency, the detection device correspondingly adjusts the time interval of data acquisition.
[0407] At step S175, the detection device reports the adjusted detection data to update the display in the information presentation area of the configuration interface.
[0408] In the embodiment of the present disclosure, the detection device reports the adjusted detection data to the terminal device, so that the information presentation area can update the detection results in real time, thereby providing the user with immediate feedback on parameter adjustment. 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.
[0409] 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 and enters the 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.
[0410] 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.
[0411] Further, the detection device reporting the adjusted detection data includes: when the detection device meets the preset conditions, generating and reporting the detection data, so that the terminal device can visually present the target detection status of each detection sub-region according to the detection data; among them, 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.
[0412] Further, the configuration data includes sensitivity parameters for adjusting the detection sensitivity of each detection sub-region; the detection device adjusts the operation parameters according to the configuration data, including: 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 the user on at least one sensitivity interaction control in the parameter configuration area and are used as the updated sensitivity parameters.
[0413] In some embodiments, in step S171, the detection device receiving the request instruction includes S1711 and S1712. Among them, in step S1711, the detection device receives the request instruction periodically sent by the detection device. In step S1712, 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.
[0414] 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, a valid reporting period will be triggered, and the detection data will be reported according to a predetermined rule during this period.
[0415] 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.
[0416] Further, in step S1712, the predetermined rules for the detection device to report the detection data within the valid reporting period include one of the following:
[0417] Report only when the detection data meets the preset change condition, otherwise do not report.
[0418] Report regularly 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.
[0419] 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 of the target existence state, the change of the target position, and the change of the target quantity.
[0420] In the embodiments of the present disclosure, through the above-mentioned predetermined rules and data screening mechanism, the detection device can accurately trigger data reporting, reduce irrelevant data streams, and improve the efficiency of data transmission.
[0421] In some embodiments, the detection device supports two types of communication: ordinary conversation and remote temporary conversation. In ordinary conversation mode, the detection device only reports basic target data (which will be described in detail later, not repeated here), such as whether there is human activity, but does not provide more detailed location information or quantity information.
[0422] 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.
[0423] 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.
[0424] 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.
[0425] 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.
[0426] When the detection device receives a new request instruction within the valid reporting period, the valid reporting period is reset; when the detection device receives a new request instruction after the valid reporting period ends, the valid reporting period is restarted.
[0427] 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.
[0428] In addition, an embodiment of the present disclosure also 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: obtaining 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.
[0429] 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.
[0430] 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.
[0431] 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.
[0432] In some embodiments, the decision intervention process constructs and provides decision assistance information, including at least one of the following: a list of affected triggering execution rules; a prompt for the invalidation of triggering execution rules that may result from terminating the target quantitative data reporting mode.
[0433] In some embodiments, the processor is further configured to execute instructions in the memory to cause the electronic device to perform the following operations: receive a request instruction; the request instruction is sent by a processing entity that promotes the execution of the 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:
[0434] receive a stop instruction;
[0435] judge to meet specific constraint conditions;
[0436] 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.
[0437] 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 the 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 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.
[0438] 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, 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.
[0439] In some embodiments, the processor receives a request instruction, specifically for: receiving the request instruction periodically sent by the detection device; in response to each received request instruction, entering a valid reporting period, and reporting 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.
[0440] In some embodiments, the processor is further configured to execute the 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, determining that specific constraint conditions are met, and stopping providing detection data; wherein, the stopping of the request instruction is triggered after the processing entity of the terminal device exits the interaction interface.
[0441] In some embodiments, the processor is further configured to execute the 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, resetting the valid reporting period; when a new request instruction is received after the valid reporting period ends, restarting the valid reporting period.
[0442] 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. In the description of this specification, the descriptions with reference to terms such as "some embodiments", "a specific implementation manner", "specific implementation process", "an example", etc. mean that the specific features, structures, materials or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present disclosure. In this specification, the schematic expressions of the above terms corresponding to the described specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner. Additionally, it should be noted that the above embodiments can be combined with each other. For the same or similar concepts or processes, they may not be elaborated in some embodiments. That is, the technical solutions disclosed in the later (in the order of recording in the text) embodiments should include the technical solutions recorded in this embodiment and all the technical solutions in the embodiments before this embodiment. Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present disclosure, and are not intended to limit them; although the present disclosure has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements on some or all of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present disclosure.
Claims
1. A data interaction method, applied to a detection device, wherein: Methods include: 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 interaction 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 started after the terminal device determines that there is at least one preset condition of the 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 interaction instruction; the triggering execution rule is set based on the matching relationship between the preset condition and the specific operation; The reporting of the target quantitative data is stopped based on the second control instruction.
2. The data interaction method according to claim 1, wherein: Before acquiring the second control instruction, the method further includes: Acquire a first control instruction; the first control instruction is sent by the terminal device according to the acquired fourth interaction instruction before acquiring the third interaction instruction; the fourth interaction instruction is used to start a reporting mode of target quantitative data; Reporting of target quantitative data is initiated in response to the first control instruction.
3. The data interaction method according to claim 2, wherein: Initiating reporting of target quantitative data in response to the first control instruction includes: In response to the first control instruction, the target quantitative data reporting process is run 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.
4. The data interaction method according to claim 3, wherein: The target includes a human body; transmitting the detected target quantitative data to a remote communication device, specifically including: Detecting a human body within the detection range to obtain target quantitative data representing at least one attribute feature of the human body's position, action, quantity, and state; The target quantitative data is reported to a 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.
5. The data interaction method according to any one of claims 1 to 4, wherein: Decision intervention process, construct and provide decision support information, including at least one of the following information: A list of the triggered execution rules affected; Termination of the target quantitative data reporting mode may result in a prompt that the triggering execution rules are invalid.
6. A data interaction method, applied to a terminal device, wherein: Methods include: 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; Determining a triggerable execution rule associated with the detection device, wherein the triggerable execution rule is set based on a matching relationship between a preset condition and a specific operation; Determining whether 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; When the judgment result indicates the existence of logical constraints, the decision-making intervention process is initiated; Based on the feedback result of the external interactive subject on the decision-making 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.
7. The data interaction method according to claim 6, wherein: Before obtaining the third interaction instruction, the method further includes: Acquire a fourth interaction instruction, where the fourth interaction instruction is used to start the detection device to enter a target quantitative data reporting mode; 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.
8. The data interaction method according to claim 7, wherein: Applying the first control instruction comprises: Relying on the remote communication device, a first control instruction is applied 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 trigger the remote communication device to control 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 to be executed; the target triggering execution rule is a triggering execution rule that has a logical constraint relationship with the reporting mode.
9. The data interaction method according to claim 8, wherein: The target includes a human body, and the target quantitative data includes at least one attribute feature indicating a position, action, quantity, or state of the human body; After applying the first control instruction to the detection device by means of the remote communication device, the method further comprises: Obtaining target quantitative data from a remote communication device; The corresponding attribute characteristics of the human body represented by the target quantitative data are visualized through the display interface.
10. The data interaction method according to any one of claims 6 to 9, wherein: Initiate the decision-making intervention process, including: Construct and provide decision-making support information, including at least one of the following: A list of the triggered execution rules affected; Removing the reporting mode may result in a prompt that the triggering execution rules are invalid.
11. An electronic device comprising: A memory storing instructions; The processor is configured to execute instructions in the memory so that the electronic device executes the method according to any one of claims 1 to 5, or executes the method according to any one of claims 6 to 10.