Device debugging method and apparatus, and electronic device and storage medium

By obtaining the installation method and working mode of smart devices, users are prompted for debugging in a timely manner, which solves the problem of incorrect detection results caused by inaccurate installation of smart devices, ensures data accuracy and user experience, and reduces security risks.

WO2024188324A1PCT designated stage expired Publication Date: 2024-09-19SHENZHEN LUMIUNITED TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/081785
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-15
Filing Date
2024-03-14
Publication Date
2024-09-19

AI Technical Summary

Technical Problem

Inaccurate installation of smart devices leads to incorrect detection results, which affects user experience and may cause security issues. The existing technology mainly relies on users to understand the instructions for installation, which is prone to errors.

Method used

Provide an equipment debugging method and device that promptly prompts the user for debugging by obtaining the installation mode and working mode of the target device to ensure that the installation mode and working mode match, including using tilt direction detection data to determine the installation mode and displaying the debugging interface and options for user adjustment.

Benefits of technology

Ensure the accuracy of equipment working data, improve user experience, reduce installation errors and security risks, and prompt users for debugging in a timely manner by actively matching the installation method and working mode of the equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024081785_19092024_PF_FP_ABST
    Figure CN2024081785_19092024_PF_FP_ABST
Patent Text Reader

Abstract

The present disclosure relates to a device debugging method and apparatus, and an electronic device and a storage medium. The method comprises: acquiring an installation manner and a working mode of a target device; and in response to the installation manner not matching the working mode, providing a prompt to debug the installation manner and / or the working mode. In the technical solution of the present disclosure, an installation manner and a working mode of a device can be actively matched with each other, so as to prompt a user to debug the installation manner and the working mode in a timely manner, thereby helping to ensure the accuracy of working data of the device, and improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Device debugging method, device, electronic device and storage medium

[0001] This disclosure claims priority to the Chinese patent application filed with the China Patent Office on March 15, 2023, with application number 202310271106.4 and invention name “A device debugging method, device, electronic device and storage medium”, the entire contents of which are incorporated by reference into the application. Technical Field

[0002] The present disclosure relates to the technical field of device debugging, and in particular to a device debugging method, apparatus, electronic device, and storage medium. Background Art

[0003] With the continuous development of IoT technology, the use cases of smart devices are expanding, and the accuracy of their operating data is becoming increasingly important. For example, human presence sensors can enable functions such as person location and fall detection. These functions require the smart devices to be properly installed; otherwise, erroneous detection results may occur. However, current smart device installation is primarily based on user understanding of the manual, which can easily lead to installation errors, affecting the user experience and even posing safety issues. Technical Solutions

[0004] Based on this, it is necessary to provide a device debugging method, device, electronic device and storage medium to address the above technical problems, which can actively match the installation method and working mode of the device and prompt the user to debug in time, which is conducive to ensuring the accuracy of the device working data and improving the user experience.

[0005] A device debugging method, performed by an electronic device, comprising:

[0006] Obtain the installation method and working mode of the target device;

[0007] In response to the installation mode not matching the working mode, a prompt is provided to debug the installation mode and / or the working mode.

[0008] Optionally, obtaining the installation mode and operating mode of the target device includes:

[0009] Acquiring detection data for characterizing a tilt direction of the target device;

[0010] An installation mode of the target device is determined according to the detection data.

[0011] Optionally, the detection data includes an acceleration direction of the target device; and determining the installation mode of the target device according to the detection data includes:

[0012] determining, based on the acceleration direction of the target device, an angle between at least one of the acceleration directions and a direction of gravity acceleration;

[0013] An installation method of the target device is determined according to an angle range of the included angle.

[0014] Optionally, the step of prompting to debug the installation method and / or the working mode includes:

[0015] Displaying a prompt interface, the prompt interface including prompt information and / or a debugging entry for a debugging mode, the debugging mode being used to match the installation mode with the working mode;

[0016] Alternatively, a prompt interface is displayed, the prompt interface including prompt information of a debugging mode and a jump entry for jumping to the debugging interface, the debugging mode being used to match the installation mode with the working mode;

[0017] In response to a trigger instruction on the jump entry, the debugging interface is displayed, and the debugging interface includes a debugging entry.

[0018] Optionally, the method further includes:

[0019] In response to a trigger instruction on the debugging entry, at least two selectable debugging options are output, and different debugging options are used to indicate different working modes.

[0020] Optionally, the method further includes:

[0021] In response to the selected operating mode being a preset operating mode, outputting scenario options of the preset operating mode, the scenario options being used to indicate at least two usage scenarios of the target device in the preset operating mode, and data correction options when operating in the preset operating mode based on the installation mode;

[0022] Alternatively, in response to the selected working mode being the preset working mode, a setting option of the preset working mode is output, and the setting option is used to indicate at least two working options of the target device under the preset working mode; in response to the selected working option being an option for data correction, a data correction option is output, and the data correction option is used to indicate a method for correcting the target detection data of the target device under the preset working mode.

[0023] Optionally, the data correction option includes at least one of turning off the data correction function, performing preset data correction, and automatically performing data correction according to the installation method.

[0024] Optionally, when entering the device interface of the target device for the first time or again, the step of obtaining the installation mode and working mode of the target device is performed.

[0025] Optionally, before the step of obtaining the installation mode and working mode of the target device, the method further includes:

[0026] In response to the instruction to add a device, outputting a device selection interface, wherein the device selection interface includes at least one selectable device;

[0027] In response to an instruction to select the target device from the at least one selectable device, binding the target device to the current client;

[0028] Output an entry for entering the device interface of the target device.

[0029] The present disclosure also provides a device debugging apparatus, comprising:

[0030] The acquisition module is used to obtain the installation method and working mode of the target device;

[0031] The prompt module is used for prompting to debug the installation mode and / or the working mode in response to the installation mode not matching the working mode.

[0032] Optionally, obtain a module for:

[0033] Acquiring detection data for characterizing a tilt direction of the target device;

[0034] An installation mode of the target device is determined according to the detection data.

[0035] Optionally, the detection data includes an acceleration direction of the target device; and determining the installation mode of the target device according to the detection data includes:

[0036] determining, based on the acceleration direction of the target device, an angle between at least one of the acceleration directions and a direction of gravity acceleration;

[0037] An installation method of the target device is determined according to an angle range of the included angle.

[0038] Optionally, the prompt module is used to:

[0039] Displaying a prompt interface, the prompt interface including prompt information and / or a debugging entry for a debugging mode, the debugging mode being used to match the installation mode with the working mode;

[0040] Alternatively, a prompt interface is displayed, the prompt interface including prompt information of a debugging mode and a jump entry for jumping to the debugging interface, the debugging mode being used to match the installation mode with the working mode;

[0041] In response to a trigger instruction on the jump entry, the debugging interface is displayed, and the debugging interface includes a debugging entry.

[0042] Optionally, the device further includes:

[0043] The first option module is configured to output at least two selectable debugging options in response to a trigger instruction on the debugging entry, wherein different debugging options are used to indicate different working modes.

[0044] Optionally, the device further includes:

[0045] a second option module, configured to, in response to the selected operating mode being a preset operating mode, output scenario options of the preset operating mode, the scenario options being configured to indicate at least two usage scenarios of the target device in the preset operating mode, and data correction options when operating in the preset operating mode based on the installation mode;

[0046] Alternatively, in response to the selected working mode being the preset working mode, a setting option of the preset working mode is output, and the setting option is used to indicate at least two working options of the target device under the preset working mode; in response to the selected working option being an option for data correction, a data correction option is output, and the data correction option is used to indicate a method for correcting the target detection data of the target device under the preset working mode.

[0047] Optionally, the data correction option includes at least one of turning off the data correction function, performing preset data correction, and automatically performing data correction according to the installation method.

[0048] Optionally, the acquisition module is used to acquire the installation mode and working mode of the target device when entering the device interface of the target device for the first time or again.

[0049] Optionally, the device further includes:

[0050] a device binding module, configured to output a device selection interface in response to an instruction to add a device, wherein the device selection interface includes at least one selectable device;

[0051] In response to an instruction to select the target device from the at least one selectable device, binding the target device to the current client;

[0052] Output an entry for entering the device interface of the target device.

[0053] The present disclosure also provides an electronic device, comprising a controller and a sensor for detecting a tilt direction of the electronic device;

[0054] The controller is configured to obtain detection data representing the tilt direction from the sensor, determine an installation method of the electronic device based on the detection data, and send the installation method to implement any of the steps of the device debugging method described above.

[0055] The present disclosure further provides a computer-readable storage medium, characterized in that the computer-readable storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by a processor, the steps of any of the above-mentioned device debugging methods are implemented.

[0056] The present disclosure also provides a computer program product, comprising computer-readable instructions, which implement the device debugging method described above when executed by a processor.

[0057] The disclosed device debugging method, apparatus, electronic device, and storage medium include: obtaining the installation method and operating mode of a target device; and, in response to a mismatch between the installation method and the operating mode, prompting the user to debug the installation method and / or the operating mode. The disclosed technical solution can proactively detect a match between the device's installation method and operating mode, prompting the user to perform debugging in a timely manner, thereby ensuring the accuracy of device operating data and improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] To more clearly illustrate the technical solutions provided by the present disclosure, the following briefly introduces the drawings required for describing the various embodiments of the present disclosure. Obviously, the drawings described below are only some embodiments of the present application, and those skilled in the art can derive other drawings based on these drawings without inventive effort.

[0059] FIG1 is a diagram showing an application environment of a device debugging method in an embodiment.

[0060] FIG2 is a flow chart of a device debugging method in one embodiment.

[0061] FIG3 is a schematic diagram showing the principle of obtaining an installation method in an embodiment.

[0062] FIG4 is an application structure diagram of a target device in one embodiment.

[0063] FIG5 is a schematic diagram of an interface when the installation method matches the working mode in one embodiment.

[0064] FIG6 is a schematic diagram of an interface when the installation method and the working mode do not match in one embodiment.

[0065] FIG7 is a schematic diagram of a prompt interface in one embodiment.

[0066] FIG8 is a schematic diagram of an interface where debugging options are located in an embodiment.

[0067] FIG9 is a schematic diagram of an interface for scene options of a preset working mode in an embodiment.

[0068] FIG. 10 is a schematic diagram of an interface for displaying data correction options in a preset working mode according to an embodiment.

[0069] FIG11 is a schematic diagram of an interface of a target device and a client binding process in one embodiment.

[0070] FIG12 is a schematic structural diagram of an equipment debugging apparatus in one embodiment.

[0071] FIG13 is a diagram showing the internal structure of an electronic device in one embodiment.

[0072] FIG14 is a diagram showing the internal structure of an electronic device in another embodiment.

[0073] Implementation of the Present Disclosure

[0074] In order to make the purpose, technical solutions and advantages of the present disclosure more clearly understood, the present disclosure is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present disclosure and are not intended to limit the present disclosure.

[0075] The device debugging method provided by the present disclosure can be applied in the application environment shown in Figure 1. In this case, terminal 102 communicates with server 104 via a network, server 104 communicates with gateway 106 via a network, and IoT devices access gateway 106 via a local area network. IoT devices include sensors 101, household appliances 105, and other devices. After gateway 106, sensors 101, household appliances 105, etc. are applied to a target space, such as a home, office, or hotel, terminal 102 can send control instructions or obtain operating data to gateway 106 via the network and server 104 to achieve remote control of IoT devices. In actual implementation, after terminal 102 is connected to the local area network where gateway 106 is located, it can also directly send control instructions or obtain operating data to gateway 106 via the local area network to achieve control of IoT devices. Terminal 102 can also be considered a client, user end, or user terminal, and can be, but is not limited to, various personal computers, laptops, smartphones, tablet computers, and portable wearable devices. Server 104 can be implemented as a standalone server or a server cluster consisting of multiple servers.

[0076] In some implementations, after a target device, such as sensor 101 or household appliance 105, is installed, the device's installation method and operating mode can be obtained. If the installation method and the operating mode do not match, a prompt is provided to adjust the target device's installation method and / or operating mode. By proactively matching the device's installation method with its operating mode and promptly prompting the user to perform adjustments, the accuracy of device operating data is ensured, improving the user experience.

[0077] As shown in FIG2 , a device debugging method is provided, which can be applied to an electronic device. The electronic device can be any of the devices, gateways, servers, or terminals shown in FIG1 . This embodiment uses the method applied to a terminal as an example for explanation. The device debugging method includes:

[0078] Step 202: Obtain the installation method and working mode of the target device.

[0079] Among them, the target device refers to the device whose installation method and working mode need to be matched. The target device can be a device with sensing detection, monitoring and other functions, or it can be a household appliance, switch socket and other equipment.

[0080] The installation mode indicates the state of the target device after installation, including at least one of the following: installation orientation and installation position. The installation orientation can be distinguished by the orientation of a certain part of the target device. For example, after installation, the top surface of the device is horizontal and the top surface is vertical, which are different installation orientations. The installation position refers to the specific installation direction of the target device in the current orientation. For example, the top surface of the device is horizontal and facing upward, and the top surface is horizontal and facing downward, which are different installation orientations.

[0081] The working mode indicates the function currently being performed by the target device. Taking a human presence sensor as an example, the functions it can perform include detecting whether there is someone in the current space, or detecting the position, posture, and movement direction of people in the current space.

[0082] Step 204: In response to the installation mode not matching the working mode, a prompt is provided to debug the installation mode and / or the working mode.

[0083] Different operating modes can correspond to the same or different installation methods. When the installation method of the target device matches the operating mode, the target device can generate more accurate operating data. Therefore, when the installation method of the target device does not match the operating mode, a prompt is provided to debug the installation method, or to debug the operating mode, or to debug both the installation method and the operating mode. This helps users identify problems in a timely manner and perform debugging to obtain accurate operating data.

[0084] According to the technical solution disclosed herein, the target device or terminal can actively match the device's installation method with the working mode. When there is a mismatch, the terminal promptly prompts the user to perform debugging, which is conducive to ensuring the accuracy of the device's working data and improving the user experience.

[0085] In one embodiment, step 202 of obtaining the installation method and operating mode of the target device includes:

[0086] Acquiring detection data for characterizing a tilt direction of a target device;

[0087] Determine the installation method of the target device based on the detection data.

[0088] Among them, the target device or terminal can determine the installation mode of the target device by the tilt direction of the target device. In one implementation, the tilt direction can be distinguished by taking the orientation of the top surface of the target device as a reference. Please refer to Figure 3. Assuming that the normal of the top surface 10 of the target device is the Z axis, the positive direction of the Z axis is set to the direction toward the top surface 10 of the target device, and the negative direction of the Z axis is set to the direction toward the bottom surface of the target device. Thus, the tilt direction of the target device can be determined based on the tilt direction of the positive and / or negative directions of the Z axis. It should be understood that in addition to using the orientation of the top surface 10 of the target device as a reference to distinguish the tilt direction of the target device, the orientation of other parts of the target device can also be used as a reference to distinguish the tilt direction of the target device, such as the side, bottom, etc., and is not limited to Figure 3.

[0089] Optionally, the detection data includes an acceleration direction of the target device; and determining an installation mode of the target device according to the detection data includes:

[0090] determining, based on the acceleration direction of the target device, an angle between at least one of the acceleration directions and a direction of gravity acceleration;

[0091] Determine the installation method of the target device based on the angle range.

[0092] Inertial sensors can be integrated into the target device to detect its tilt direction. Inertial sensors include accelerometers and angular velocity sensors, as well as single-, dual-, or tri-axis combinations of these inertial measurement units (IMUs). Furthermore, an attitude and heading reference system (AHRS) can also be included. Taking an accelerometer as an example, the application architecture of a target device can be shown in Figure 4. The target device is powered via a Type-C port, and a DC-DC circuit reduces the operating voltage to 3.3V to power various ICs. The target device's main control chip can utilize an ESP32 module with wireless communication capabilities. After reading the accelerometer's detection data, the ESP32 module can use its own computing power to determine the target device's installation method and transmit this information to a gateway, server, or terminal via wireless communication. Alternatively, after reading the accelerometer's detection data, the ESP32 module can directly transmit the detection data directly to a gateway, server, or terminal.

[0093] The detection data used to characterize the tilt direction of the target device includes at least one acceleration direction of the target device, which can characterize the tilt direction of the target device. By determining the angle between at least one acceleration direction and the direction of gravity acceleration, the installation method of the target device can be determined. Please continue to refer to Figure 3. Taking the three-axis acceleration sensor as an example, first determine the directions of the X-axis, Y-axis, and Z-axis of the target device. During installation, the three acceleration directions of the three-axis acceleration sensor are parallel to or coincide with the X-axis, Y-axis, and Z-axis of the target device respectively. Then, the detection data of the three-axis acceleration sensor will include the acceleration directions of the target device in the X-axis, Y-axis, and Z-axis. It can be understood that according to different target devices, a single-axis or dual-axis acceleration sensor can also be selected, as long as the detection data provided can characterize the tilt direction of the target device.

[0094] The target device's installation configuration is determined using at least one of the acceleration directions of the target device. As shown in Figure 3, the Z-axis is the normal to the top surface of the target device, and the angle between the positive Z-axis and the direction of gravity acceleration G is Φ. For example, when Φ is in the range of [0°, 30°] or [150°, 180°], the target device's installation configuration is determined to be with its top surface horizontal (hereinafter referred to as the "first installation configuration"). When Φ is in the range of [30°, 150°], the target device's installation configuration is determined to be with its top surface vertical (hereinafter referred to as the "second installation configuration"). Alternatively, as an example, when the range of Φ is [0°, 30°], the target device can be determined to be installed in a manner that the top surface is horizontal and facing upward (hereinafter referred to as the "third installation manner"), and when the range of Φ is [150°, 180°], the target device can be determined to be installed in a manner that the top surface is horizontal and facing downward (hereinafter referred to as the "fourth installation manner"). It can be seen that the third installation manner and the fourth installation manner further distinguish the orientation of the top surface of the target device compared to the first installation manner, that is, the installation orientation is further distinguished based on the installation orientation. Alternatively, as an example, the Y-axis of the target device is parallel to the plane where the top surface of the target device is located. The positive and negative directions of the Y-axis can be determined according to the design of the target device. On the basis that the range of Φ is [30°, 150°], if the angle between the positive direction of the Y-axis and the direction of gravity acceleration G is [150°, 180°], then the installation method of the target device is determined to be that the top surface is in a vertical state and the side is placed forward (hereinafter referred to as the "fifth installation method"). On the basis that the range of Φ is [30°, 150°], if the angle between the positive direction of the Y-axis and the direction of gravity acceleration G is [0°, 30°], then the installation method of the target device is determined to be that the top surface is in a vertical state and the side is placed in the opposite direction (hereinafter referred to as the "sixth installation method"). It can be seen that the fifth installation method and the sixth installation method further distinguish the orientation of the side of the target device compared to the second installation method, that is, the installation orientation is further distinguished based on the installation orientation.

[0095] Therefore, when determining the target device's installation method, the installation method can indicate the target device's installation orientation, or it can indicate both the target device's installation orientation and installation position. Depending on the target device's operating mode, if the target device's operating mode has no installation orientation requirements, then the target device's installation method is considered compatible with the operating mode if the target device's installation orientation matches the operating mode. If the target device's operating mode has installation orientation requirements, then the target device's installation method is considered compatible with the operating mode only if both the target device's installation orientation and installation position match the operating mode.

[0096] In one embodiment, step 204 prompts the user to debug the installation method and / or operating mode, including:

[0097] A prompt interface is displayed, which includes prompt information and / or a debugging entry of the debugging mode. The debugging mode is used to match the installation mode with the working mode.

[0098] Among them, taking the target device as a human presence sensor as an example, when the installation method of the target device matches the working mode, the target device can work directly, and the display interface corresponding to the target device can display an interface as shown in Figure 5. In this interface, the detection results of the target device when working are displayed, such as whether there is someone in the current space, the location of the person, etc.

[0099] When the installation method of the target device does not match the working mode, the terminal may display an interface as shown in Figure 6, prompting that the installation method does not match the working mode, such as displaying a prompt message that "the installation method does not match the monitoring mode". This prompt message can also serve as an entry for further operations. After the trigger operation for the prompt message, a prompt interface as shown in Figure 7 may be displayed. The prompt interface includes prompt information and / or a debugging entry for the debugging method. The debugging method is used to match the installation method with the working mode. For example, the prompt message for the debugging method is "The current working mode 'fall monitoring' only supports top installation. You can change the installation method, or set the mode to 'personnel positioning' to make monitoring more accurate", thereby prompting the user to perform correct debugging. In the prompt interface, the "Go to settings" option can be displayed simultaneously as the debugging entry.

[0100] Alternatively, step 204 prompts the user to debug the installation method and / or the working mode, including:

[0101] Display a prompt interface, which includes prompt information of the debugging mode and a jump entry for jumping to the debugging interface. The debugging mode is used to match the installation mode with the working mode;

[0102] In response to a trigger instruction for a jump entry, a debugging interface is displayed, where the debugging interface includes a debugging entry.

[0103] In this case, the prompt interface of the terminal includes a prompt message indicating the debugging mode and a jump entry for jumping to the debugging interface. In one embodiment, the prompt message can serve as a jump entry for further jumping to the debugging interface. In response to a trigger instruction for the jump entry, the debugging interface is displayed, and the debugging interface includes the debugging entry. In this way, the debugging entry and the prompt message indicating the debugging mode can be located in different interfaces, so that the user can further find the debugging entry and perform operations when debugging is required.

[0104] In this embodiment, the debugging entry is used to debug content related to the working mode. If the user only needs to debug the installation method, the target device can be reinstalled. After reinstallation, the installation method of the target device is re-obtained to match the working mode.

[0105] Optionally, the method of the present disclosure further includes:

[0106] In response to a trigger instruction on a debugging entry, at least two selectable debugging options are output, and different debugging options are used to indicate different working modes.

[0107] In response to a trigger instruction on the debugging entry, the user enters the next interface, which displays at least two selectable debugging options. Different debugging options are used to indicate different operating modes. Taking the human presence sensor as an example, as shown in Figure 8, the human presence sensor can have three operating modes: human presence monitoring, person location, and fall detection. Each mode corresponds to a selectable debugging option, allowing the user to select the desired operating mode. The debugging option corresponding to the user's selected operating mode can be marked with a check mark to indicate the selected state.

[0108] When the installation mode and the working mode after debugging match, re-entering the device interface of the target device will display the interface shown in FIG5 , indicating that the target device is in a normal working state.

[0109] Optionally, the method of the present disclosure further includes:

[0110] In response to the selected working mode being the preset working mode, setting options for the preset working mode are output, and the setting options are used to indicate at least two working options of the target device in the preset working mode; in response to the selected working option being an option for data correction, data correction options are output, and the data correction options are used to indicate a method for correcting the target detection data of the target device in the preset working mode.

[0111] A preset operating mode refers to an operating mode that requires further configuration of operating mode parameters. For example, as shown in Figure 9, when the selected operating mode is person location, at least two operating options must be configured, such as "Detection Mode" and "Coordinate Direction Reversal." When the "Detection Direction" operating option is selected, this option is used to select a usage scenario, displaying available usage scenarios for the current operating mode, such as omnidirectional monitoring and left-right monitoring. Omnidirectional monitoring does not require identification of the direction of a person entering and exiting the detection area, while left-right monitoring does. When the "Coordinate Direction Reversal" operating option is selected, this option is used for data correction, outputting data correction options. As shown in Figure 10, the data correction options indicate how the target device's target detection data will be corrected in the preset operating mode. These options include disabling the data correction function, performing preset data correction, or automatically performing data correction based on the installation method. Target detection data is data obtained by the target device when detecting a target in space. This data can represent the position, movement direction, and posture of the target (e.g., a person) in space.

[0112] Alternatively, the method of the present disclosure further includes: in response to the selected operating mode being a preset operating mode, outputting scenario options for the preset operating mode, the scenario options being used to indicate at least two usage scenarios of the target device in the preset operating mode, and data correction options when operating based on the installation mode in the preset operating mode. In this case, taking the scenarios shown in Figures 9 and 10 as an example, the "Detection Mode," "Coordinate Direction Reversal," and various data correction options are displayed on the same interface.

[0113] Depending on the installation environment or requirements, users may choose to only install the device in the correct orientation. In this case, the target device's installation orientation may not match the operating mode. The data correction option is suitable for scenarios where both the target device's installation orientation and orientation must match the operating mode. If the installation orientation matches the operating mode, but the installation orientation does not, the data correction option's algorithm will correct the target device's operating target detection data to ensure the accuracy of the detection results.

[0114] Continuing with Figure 10, disabling data correction means no correction is applied to target detection data. Enabling preset data correction applies a default correction to target detection data, such as default reversal. Automatic data correction based on installation is called automatic correction. When enabled, the system automatically determines whether to correct target detection data based on the installation orientation of the target device. Using the human presence sensor as an example, this data correction method ensures that the displayed human position information matches the spatial relationship.

[0115] Among them, when the selected data correction option is to automatically correct data according to the installation method, after the target device starts working, the target detection data of the target device when it is working is obtained. If the installation orientation of the target device matches the working mode, the target detection data of the target device when it is working will not be corrected. If the installation orientation of the target device does not match the working mode, the target detection data of the target device when it is working will be corrected and the corrected detection results will be output.

[0116] Optionally, upon first or second access to the target device's device interface, the step of obtaining the target device's installation method and operating mode is performed. That is, each time the target device's device interface is accessed, the process of matching the target device's installation method and operating mode is proactively performed, allowing the user to promptly determine whether the target device's detection results are accurate.

[0117] Optionally, before the step of obtaining the installation mode and working mode of the target device, the step further includes:

[0118] In response to the instruction to add a device, outputting a device selection interface, the device selection interface including at least one selectable device;

[0119] In response to an instruction to select a target device from at least one selectable device, binding the target device to the current client;

[0120] Outputs the entry point for entering the device interface of the target device.

[0121] Before use, the target device needs to be bound to the current client. Taking the human presence sensor as an example, as shown in Figure 11 (a), click the "+" icon in the upper right corner of the client to add a device, enter the interface shown in (b), select "Human Scene Sensor FP2" in "Sensor Monitoring", and enter the interface shown in (c) to start scanning for nearby human scene sensors. Then, enter the interface shown in (d), select the Wi-Fi account and password, and connect to the network. After the interface shown in (d) prompts that the network is successfully connected, the target device and the current client are bound. After the binding is completed, the entrance to the device interface of the target device is displayed. After that, the user can enter the device interface to view the working data of the target device.

[0122] The above steps mainly use the debugging process of the human presence sensor to exemplify the installation method, working mode and interface display. It can be understood that different installation methods, working modes and interfaces can be designed for different target devices. Therefore, the application scenario of the device debugging method disclosed in the present invention is not limited to the specific debugging process of the human presence sensor.

[0123] The device debugging method disclosed herein obtains the installation method and operating mode of a target device; in response to a mismatch between the installation method and the operating mode, it prompts the user to debug the installation method and / or the operating mode. This proactively matches the device's installation method and operating mode, prompting the user to perform debugging in a timely manner, thereby ensuring the accuracy of device operating data and improving the user experience.

[0124] As shown in FIG12 , the present disclosure provides a device debugging apparatus, comprising:

[0125] An acquisition module 702 is used to acquire the installation mode and working mode of the target device;

[0126] The prompt module 704 is configured to prompt the user to debug the installation mode and / or the working mode in response to the installation mode not matching the working mode.

[0127] Optionally, the acquisition module 702 is configured to:

[0128] Acquiring detection data for characterizing a tilt direction of a target device;

[0129] Determine the installation method of the target device based on the detection data.

[0130] Optionally, the detection data includes an acceleration direction of the target device; and determining an installation mode of the target device according to the detection data includes:

[0131] determining, based on the acceleration direction of the target device, an angle between at least one of the acceleration directions and a direction of gravity acceleration;

[0132] Determine the installation method of the target device based on the angle range.

[0133] Optionally, the prompt module 704 is configured to:

[0134] Display a prompt interface, wherein the prompt interface includes prompt information and / or a debugging entry of a debugging mode, wherein the debugging mode is used to match the installation mode with the working mode;

[0135] Alternatively, a prompt interface is displayed, wherein the prompt interface includes prompt information of the debugging mode and a jump entry for jumping to the debugging interface, and the debugging mode is used to match the installation mode with the working mode;

[0136] In response to a trigger instruction on a jump entry, the debugging interface is displayed, and the debugging interface includes a debugging entry.

[0137] Optionally, the device debugging apparatus further includes:

[0138] The first option module is configured to output at least two selectable debugging options in response to a trigger instruction on a debugging entry, where different debugging options are used to indicate different working modes.

[0139] Optionally, the device debugging apparatus further includes:

[0140] a second option module, configured to output scenario options of the preset operating mode in response to the selected operating mode being the preset operating mode, the scenario options being configured to indicate at least two usage scenarios of the target device in the preset operating mode, and data correction options when operating based on the installation mode in the preset operating mode;

[0141] Alternatively, in response to the selected working mode being the preset working mode, a setting option of the preset working mode is output, and the setting option is used to indicate at least two working options of the target device in the preset working mode; in response to the selected working option being an option for data correction, a data correction option is output, and the data correction option is used to indicate a method for correcting the target detection data of the target device in the preset working mode.

[0142] Optionally, the data correction option includes at least one of turning off the data correction function, performing preset data correction, and automatically performing data correction according to the installation method.

[0143] Optionally, the acquisition module 702 is configured to acquire the installation mode and the working mode of the target device when entering the device interface of the target device for the first time or again.

[0144] Optionally, the device debugging apparatus further includes:

[0145] A device binding module, configured to output a device selection interface in response to an instruction to add a device, wherein the device selection interface includes at least one selectable device;

[0146] In response to an instruction to select a target device from at least one selectable device, binding the target device to the current client;

[0147] Outputs the entry point for entering the device interface of the target device.

[0148] The working process of each module of the device debugging device can be found in the definition of the device debugging method in the above embodiment and will not be repeated here. Each module in the above-mentioned device debugging device can be implemented in whole or in part through software, hardware, or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the processor of the computer device in hardware form, or can be stored in the memory of the computer device in software form, so that the processor can call and execute the corresponding operations of each of the above modules.

[0149] The present disclosure also provides an electronic device, comprising a controller and a sensor for detecting a tilt direction of the electronic device;

[0150] The controller is used to obtain detection data representing the tilt direction from the sensor, determine the installation method of the electronic device according to the detection data; and send the installation method to implement the steps of the device debugging method as described above.

[0151] In one embodiment, an electronic device is provided. The electronic device may be a server, and its internal structure diagram may be as shown in FIG13 . The electronic device includes a processor, a memory, a network interface, and a database connected via a system bus. The processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the electronic device is used to store information push data. The network interface of the electronic device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a device debugging method is implemented.

[0152] Those skilled in the art will understand that the structure shown in FIG13 is merely a block diagram of a partial structure related to the scheme of the present disclosure, and does not constitute a limitation on the electronic device to which the scheme of the present disclosure is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0153] In one embodiment, an electronic device is provided, which may be a terminal, and its internal structure diagram may be as shown in FIG14 . The electronic device includes a processor, a memory, a network interface, a display screen, and an input device connected via a system bus. The processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer program in the non-volatile storage medium. The network interface of the electronic device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a device debugging method is implemented. The display screen of the electronic device may be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic device may be a touch layer covering the display screen, or a key, trackball, or touchpad provided on the housing of the electronic device, or an external keyboard, touchpad, or mouse.

[0154] Those skilled in the art will understand that the structure shown in FIG14 is merely a block diagram of a partial structure related to the scheme of the present disclosure, and does not constitute a limitation on the electronic device to which the scheme of the present disclosure is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0155] In one embodiment, an electronic device is provided, including a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the steps described in the above method embodiments. For specific definitions of the electronic device, please refer to the definitions of the device debugging method in the above embodiments, and will not be repeated here.

[0156] In one embodiment, a computer program product or computer program is provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the steps of the above-described method embodiments.

[0157] In one embodiment, a computer-readable storage medium is provided, on which computer-readable instructions are stored. When executed by a processor, the computer-readable instructions implement the steps described in the above method embodiments. For specific definitions of the steps, please refer to the definitions of the device debugging method in each method embodiment and will not be repeated here.

[0158] Those skilled in the art will appreciate that all or part of the processes in the above-described method embodiments can be implemented by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the above-described method embodiments. Any reference to memory, storage, database, or other media used in the various embodiments provided herein may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct RAMbus dynamic RAM (DRDRAM), and RAMbus dynamic RAM (RDRAM).

[0159] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0160] The above-described embodiments merely represent several implementation methods of the present disclosure. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that a person of ordinary skill in the art could make various modifications and improvements without departing from the spirit of the present disclosure, all of which fall within the scope of protection of the present disclosure. Therefore, the scope of protection of the present patent shall be determined by the appended claims.

Claims

1. A device debugging method, executed by an electronic device, wherein: The method comprises: Obtain the installation method and working mode of the target device; In response to the installation mode not matching the working mode, a prompt is provided to debug the installation mode and / or the working mode.

2. The method according to claim 1, wherein: The obtaining of the installation mode and working mode of the target device includes: Acquiring detection data for characterizing the tilt direction of the target device; An installation mode of the target device is determined according to the detection data.

3. The method according to claim 2, wherein: The detection data includes the acceleration direction of the target device; and determining the installation mode of the target device according to the detection data includes: Determining, according to the acceleration direction of the target device, an angle between at least one of the acceleration directions and a direction of gravity acceleration; The installation method of the target device is determined according to the angle range of the included angle.

4. The method according to claim 1, wherein: The step of prompting to debug the installation method and / or the working mode includes: Displaying a prompt interface, the prompt interface including prompt information and / or a debugging entry of a debugging mode, the debugging mode being used to match the installation mode with the working mode; Alternatively, a prompt interface is displayed, the prompt interface including prompt information of a debugging mode and a jump entry for jumping to the debugging interface, the debugging mode being used to match the installation mode with the working mode; In response to a trigger instruction for the jump entry, the debugging interface is displayed, and the debugging interface includes a debugging entry.

5. The method according to claim 4, wherein: The method further comprises: In response to a trigger instruction for the debugging entry, at least two selectable debugging options are output, and different debugging options are used to indicate different working modes.

6. The method according to any one of claims 1 to 5, wherein: The method further comprises: In response to the selected working mode being a preset working mode, outputting scenario options of the preset working mode, the scenario options being used to indicate at least two usage scenarios of the target device in the preset working mode, and data correction options when working based on the installation mode in the preset working mode; Alternatively, in response to the selected working mode being a preset working mode, setting options for the preset working mode are output, and the setting options are used to indicate at least two working options of the target device under the preset working mode; in response to the selected working option being an option for data correction, data correction options are output, and the data correction options are used to indicate a method for correcting the target detection data of the target device under the preset working mode.

7. The method according to claim 6, wherein: The data correction options include at least one of turning off the data correction function, performing preset data correction, and automatically performing data correction according to the installation method.

8. The method according to claim 1, wherein: Before the step of obtaining the installation mode and working mode of the target device, the method further includes: In response to the instruction to add a device, output a device selection interface, wherein the device selection interface includes at least one selectable device; In response to an instruction to select the target device from the at least one selectable device, binding the target device to the current client; Output an entry for entering the device interface of the target device.

9. A device debugging apparatus, wherein: include: An acquisition module is used to obtain the installation method and working mode of the target device; The prompt module is used for prompting to debug the installation mode and / or the working mode in response to the installation mode not matching the working mode.

10. The device of claim 9, wherein: The acquisition module is used to acquire detection data for characterizing the tilt direction of the target device; and determine the installation mode of the target device according to the detection data.

11. The device of claim 10, wherein: The detection data includes the acceleration direction of the target device; the acquisition module is used to determine the angle between at least one of the acceleration directions and the gravity acceleration direction according to the acceleration direction of the target device; and determine the installation method of the target device according to the angle range of the angle.

12. The device of claim 9, wherein: The prompt module is used to display a prompt interface, wherein the prompt interface includes prompt information and / or a debugging entry of a debugging mode, wherein the debugging mode is used to match the installation mode with the working mode; Alternatively, the prompt module is used to display a prompt interface, the prompt interface includes prompt information of the debugging mode and a jump entry for jumping to the debugging interface, the debugging mode is used to match the installation mode with the working mode; In response to a trigger instruction for the jump entry, the debugging interface is displayed, and the debugging interface includes a debugging entry.

13. The device of claim 12, wherein: The device further comprises a first option module, wherein the first option module is used to output at least two selectable debugging options in response to a trigger instruction to the debugging entry, and different debugging options are used to indicate different working modes.

14. The device according to any one of claims 9 to 13, wherein: The device further includes a second option module, the second option module being used for outputting a scenario option of the preset working mode in response to the selected working mode being the preset working mode, the scenario option being used for indicating at least two usage scenarios of the target device in the preset working mode, and a data correction option when working based on the installation mode in the preset working mode; or, The second option module is used to output setting options of the preset working mode in response to the selected working mode being the preset working mode, and the setting options are used to indicate at least two working options of the target device under the preset working mode; in response to the selected working option being an option for data correction, output data correction options, and the data correction options are used to indicate a method for correcting the target detection data of the target device under the preset working mode.

15. The device of claim 14, wherein: The data correction options include at least one of turning off the data correction function, performing preset data correction, and automatically performing data correction according to the installation method.

16. The device of claim 9, wherein: The acquisition module is also used to acquire the installation method and working mode of the target device when entering the device interface of the target device for the first time or again.

17. The device of claim 9, wherein: The apparatus further comprises a device binding module, the device binding module being used to respond to an instruction to add a device, output a device selection interface, the device selection interface comprising at least one selectable device; respond to an instruction to select the target device from the at least one selectable device, bind the target device to the current client; Output an entry for entering the device interface of the target device.

18. An electronic device, wherein: comprising a controller and a sensor for detecting the tilt direction of the electronic device; The controller is used to obtain detection data representing the tilt direction from the sensor, determine the installation method of the electronic device according to the detection data; and send the installation method to implement the steps of the device debugging method as described in any one of claims 1 to 8.

19. A computer-readable storage medium, wherein: The computer-readable storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by a processor, the steps of the device debugging method according to any one of claims 1 to 8 are implemented.

20. A computer program product, comprising computer-readable instructions, wherein when the computer-readable instructions are executed by a processor, the device debugging method according to any one of claims 1 to 8 is implemented.

Citation Information

Patent Citations

  • Equipment control method and device, electronic equipment and storage medium

    CN110430558A

  • Equipment debugging method and device, heating and ventilation equipment and computer readable storage medium

    CN112363874A

  • Recorder control method and device, electronic equipment and storage medium

    CN112929541A

  • Pan-tilt rotation control method and device

    CN115037875A

  • Equipment debugging method and device, electronic equipment and storage medium

    CN116302273A