Distance adjustment method, device and system, electronic equipment and storage medium

By establishing communication with the control equipment of the intelligent device, analyzing instructions and performing induction parameter compensation, and directly adjusting the induction distance, the problem of insufficient complexity and accuracy of sensor adjustment in the prior art is solved, and convenient and highly accurate induction distance adjustment is achieved. .

CN119247329APending Publication Date: 2025-01-03GUANGDONG LEHUA HOME FURNISHING CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411290947.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-14
Publication Date
2025-01-03

AI Technical Summary

Technical Problem

The induction distance adjustment method of sensors in existing smart devices is complex and cumbersome, inconvenient operation and easy to lead to insufficient accuracy, especially the placement of auxiliary calibration plates is strictly required, resulting in errors in distance setting.

Method used

By establishing communication with the control device, analyzing control instructions to obtain preset distances, determining reference sensing parameters, and compensating according to the preset compensation value, generating target sensing parameters, and directly adjusting the sensing distance, reducing dependence on auxiliary calibration plates and improving Convenient and accuracy of adjustment.

Benefits of technology

It realizes convenient adjustment of induction distance, reduces operational complexity, improves adjustment accuracy, reduces errors, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119247329A_ABST
    Figure CN119247329A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a distance adjusting method, device and system, electronic equipment and a storage medium, and belongs to the technical field of computers. The method comprises the following steps: establishing communication with control equipment; analyzing a first control instruction sent by the control equipment to obtain a preset distance; determining a reference induction parameter according to the preset distance; compensating the reference induction parameter according to a preset compensation value to obtain a target induction parameter; and performing adjustment according to the target induction parameter so as to adjust the induction distance to the preset distance. According to the embodiment of the invention, the convenience of adjusting the sensing distance of the sensor can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a distance adjustment method and device, a system, an electronic device and a storage medium. Background Art

[0002] At present, smart devices such as smart toilets and smart showers are equipped with sensors that can control water flow or shut off. The working principle of this sensor is to use the principle of infrared beam reflection after an object to sense whether there is an object in the direction of the infrared beam. When an object is detected, the solenoid valve can be controlled to open or close, thereby controlling water flow or shutting off.

[0003] In the related art, the sensing distance of the sensor can be adaptively adjusted according to actual needs, such as by using an auxiliary calibration plate. However, this adjustment method has strict requirements on the placement of the auxiliary calibration plate. Therefore, how to provide a method for adjusting the sensing distance of the sensor has become a technical problem that needs to be solved urgently. Summary of the invention

[0004] The main purpose of the embodiments of the present application is to provide a distance adjustment method and device, system, electronic device and storage medium, aiming to improve the convenience of adjusting the sensing distance of the sensor.

[0005] To achieve the above-mentioned purpose, a first aspect of an embodiment of the present application proposes a distance adjustment method applied to a smart device, the method comprising:

[0006] Establishing communication with control equipment;

[0007] Parsing the first control instruction sent by the control device to obtain a preset distance;

[0008] Determining a reference sensing parameter according to the preset distance;

[0009] Compensating the reference sensing parameter according to a preset compensation value to obtain a target sensing parameter;

[0010] Adjustment is performed according to the target sensing parameter to adjust the sensing distance to the preset distance.

[0011] In some embodiments, before compensating the preset distance according to the preset compensation value to obtain the target sensing distance, the method further includes determining the preset compensation value, including:

[0012] Determine reference sensing parameters at a preset calibration distance state;

[0013] Obtaining calibration sensing parameters of the preset calibration distance;

[0014] The difference between the calibrated sensing parameter and the reference sensing parameter is calculated to obtain the preset compensation value.

[0015] In some embodiments, the method further comprises:

[0016] Acquire a second control instruction sent by the control device;

[0017] determining a current sensing distance according to the second control instruction;

[0018] Generate a display instruction according to the current sensing distance;

[0019] The display instruction is sent to the control device, so that the control device displays the current sensing distance according to the display instruction.

[0020] In some embodiments, generating a display instruction according to the current sensing distance includes:

[0021] Determine a distance instruction according to the current sensing distance;

[0022] The display instruction is generated according to a preset communication instruction, a preset sending instruction and the distance instruction.

[0023] In some embodiments, the method further comprises:

[0024] Parsing the first control instruction sent by the control device to obtain a preset flushing time;

[0025] The flushing duration is adjusted according to the preset flushing duration.

[0026] In some embodiments, the method further comprises:

[0027] Generate a successful adjustment instruction;

[0028] The adjustment success instruction is sent to the control device, so that the control device displays an adjustment success indication according to the adjustment success instruction.

[0029] To achieve the above object, a second aspect of an embodiment of the present application provides a distance adjustment system, the system comprising:

[0030] An intelligent device, wherein the intelligent device is used to execute the method according to the first aspect;

[0031] Control equipment.

[0032] To achieve the above-mentioned purpose, a third aspect of an embodiment of the present application provides a distance adjustment device, the device comprising:

[0033] A communication establishment module, used to establish communication with a control device;

[0034] An instruction parsing module, used for parsing the first control instruction sent by the control device to obtain a preset distance;

[0035] A sensing parameter determination module, used to determine a reference sensing parameter according to the preset distance;

[0036] A sensing parameter compensation module, used to compensate the reference sensing parameter according to a preset compensation value to obtain a target sensing parameter;

[0037] The sensing parameter adjustment module is used to adjust according to the target sensing parameter to adjust the sensing distance to the preset distance.

[0038] To achieve the above objectives, the fourth aspect of an embodiment of the present application proposes an electronic device, which includes a memory and a processor, the memory stores a computer program, and the processor implements the method described in the first aspect when executing the computer program.

[0039] To achieve the above objectives, the fifth aspect of an embodiment of the present application proposes a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described in the first aspect is implemented.

[0040] The distance adjustment method and device, system, electronic device and storage medium proposed in the present application, after the intelligent device establishes communication with the control device, parses the first control instruction sent by the control device to obtain the preset distance. It can be seen that the embodiment of the present application can directly set the distance based on the control device, reducing the inconvenience of operation when adjusting using auxiliary calibration plates, blind adjustment and other methods in the related art. Thereby improving the convenience of adjusting the sensing distance. In addition, the intelligent device can compensate the reference sensing parameters corresponding to the preset distance according to the preset compensation value, reducing the situation where the distance is incorrect when adjusting directly according to the reference sensing parameters when there is an error in the sensor, thereby improving the accuracy of the sensing distance adjustment. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 is a flow chart of the distance adjustment method provided in an embodiment of the present application;

[0042] Figure 2 is a flow chart of another embodiment of the distance adjustment method provided in an embodiment of the present application;

[0043] Figure 3 is a flow chart of another embodiment of the distance adjustment method provided in an embodiment of the present application;

[0044] Figure 4 yes Figure 3 Flow chart of step S303 in FIG.

[0045] Figure 5 is a flow chart of another embodiment of the distance adjustment method provided in an embodiment of the present application;

[0046] Figure 6 is a flow chart of another embodiment of the distance adjustment method provided in an embodiment of the present application;

[0047] Figure 7 is a schematic diagram of a distance adjustment system provided in an embodiment of the present application;

[0048] Figure 8 is a schematic diagram of the structure of the distance adjustment device provided in an embodiment of the present application;

[0049] Fig. 9 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION

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

[0051] It should be noted that, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first", "second", etc. in the specification, claims and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0052] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0053] At present, smart devices such as smart toilets and smart showers are equipped with sensors that can control water flow or shut off. The working principle of this sensor is to use the principle of infrared beam reflection after an object to sense whether there is an object in the direction of the infrared beam. When an object is detected, the solenoid valve can be controlled to open or close, thereby controlling water flow or shutting off.

[0054] In the related art, the sensing distance of the sensor can be adaptively adjusted according to actual needs, for example, it can be adjusted by the following two methods:

[0055] The first one is to use an auxiliary calibration plate for adjustment, such as using a white cardboard for adjustment. During the adjustment process, the auxiliary calibration plate is required to be perpendicular to the central axis, and the position of the sensor is near the center point of the auxiliary calibration plate. For example, when the user expects to set the sensing distance to 90cm, the auxiliary calibration plate is placed at a distance of 90cm from the sensor. Use the remote control to send a command to the sensor to adjust the distance. The sensor emits an infrared signal according to the received command. The infrared signal is reflected after passing through the current auxiliary calibration plate, and the sensor receives the reflected infrared signal and records the signal strength of the reflected infrared signal, thereby completing the distance adjustment. In actual scenarios, this method is prone to the situation where the placement of the auxiliary calibration plate does not meet the requirements, resulting in problems such as insufficient distance setting accuracy or distance setting errors. In this way, repeated adjustments and confirmations are required, and the process is complicated and cumbersome.

[0056] The second method is to use the remote control to send instructions to the sensor. For example, press the "Distance +" control on the remote control once to increase the sensing distance by a fixed distance, such as 1cm or 2cm. For example, when the sensing distance needs to be adjusted from 60cm to 90cm, the user needs to trigger the control multiple times in a row, which makes the operation cumbersome. Moreover, this adjustment method is equivalent to blind adjustment. After the user triggers the control multiple times, it is necessary to measure whether the current sensing distance reaches the expected sensing distance.

[0057] Based on this, the embodiments of the present application provide a distance adjustment method and device, a system, an electronic device and a storage medium, aiming to improve the convenience of adjusting the sensing distance.

[0058] It should be noted that in each specific implementation of the present application, when it comes to the need to perform relevant processing based on data related to user identity or characteristics such as user information, user behavior data, user historical data, and user location information, the user's permission or consent will be obtained first, and the collection, use, and processing of these data will comply with relevant laws, regulations, and standards. In addition, when the embodiment of the present application needs to obtain the user's sensitive personal information, the user's separate permission or consent will be obtained through a pop-up window or by jumping to a confirmation page. After clearly obtaining the user's separate permission or consent, the necessary user-related data for the normal operation of the embodiment of the present application will be obtained.

[0059] Figure 1 is an optional flow chart of the distance adjustment method provided in the embodiment of the present application. Figure 1 The method may include but is not limited to steps S101 to S105.

[0060] Step S101, establishing communication with a control device;

[0061] Step S102, parsing the first control instruction sent by the control device to obtain a preset distance;

[0062] Step S103, determining a reference sensing parameter according to a preset distance;

[0063] Step S104, compensating the reference sensing parameter according to a preset compensation value to obtain a target sensing parameter;

[0064] Step S105, adjusting according to the target sensing parameters to adjust the sensing distance to a preset distance.

[0065] In steps S101 to S105 shown in the embodiment of the present application, after the smart device establishes communication with the control device, it parses the first control instruction sent by the control device to obtain the preset distance. It can be seen that the embodiment of the present application can directly set the distance based on the control device, reducing the inconvenience of operation when adjusting using auxiliary calibration plates, blind adjustment and other methods in the related art. Thereby improving the convenience of adjusting the sensing distance. In addition, the smart device can compensate the reference sensing parameters corresponding to the preset distance according to the preset compensation value, reducing the distance error caused by directly adjusting according to the reference sensing parameters when there is an error in the sensor, thereby improving the accuracy of the sensing distance adjustment.

[0066] The distance adjustment method provided in the embodiment of the present application can be applied to smart devices, and smart devices can refer to devices with sensors that can perform intelligent operations based on the sensing distance. For example, the smart device can refer to a smart toilet. When the sensor senses an object within the sensing distance range, the smart toilet can automatically flush, flip the lid, and perform other operations. Alternatively, the smart device can refer to a smart shower. When the sensor senses an object within the sensing distance range, the smart shower can automatically discharge water, automatically adjust the temperature, and so on. In addition, the smart device can also refer to the sensor body. The object can adjust the sensing distance based on the control device. The control device can refer to a device that can establish communication with the smart device and can generate a control signal so that the smart device can adjust the sensing distance according to the control signal. For example, the control device can refer to a remote control, a mobile terminal, a wearable device, and the like.

[0067] In step S101 of some embodiments, the smart device and the control device may establish communication through preset instructions, protocols, etc. After the communication is established, the smart device and the control device may exchange information, instructions, etc.

[0068] In step S102 of some embodiments, the first control instruction may refer to an instruction for adjusting the sensing distance. The subject may touch a preset control on the control device, such as touching a "send" control. The control device generates a first control instruction according to the touch operation and sends it to the smart device. The smart device receives the first control instruction and parses the first control instruction to obtain a preset distance. The preset distance may refer to the sensing distance that the subject expects to adjust.

[0069] In step S103 of some embodiments, the reference sensing parameter may refer to the sensing parameter corresponding to when the sensing distance of the sensor is adjusted to a preset distance without error. The sensing parameter may include a current parameter, a voltage parameter, etc. A mapping relationship table between different sensing distances and sensing parameters may be pre-constructed. The smart device stores the mapping relationship table and determines the reference sensing parameter from the mapping relationship table according to the preset distance. Taking the sensing parameters including current parameters and AD parameters as an example, a mapping relationship table as shown in Table 1 below may be constructed. Among them, the AD parameter refers to the software AD parameter.

[0070] Table 1 Mapping relationship table

[0071] Sensing distance / cm Current parameters AD parameters 30 41.1 1001 40 55.2 1308 50 69.5 1595 60 85.3 1910 70 100.2 2203 80 116.5 2505 90 129.9 2820 100 145.1 3095 110 160.3 3415 120 174.8 3707 130 190.2 4011 140 205.3 4298 150 220.1 4613

[0072] For example, when the preset distance is 80 cm, the reference sensing parameters can be determined as current parameter = 116.5, AD parameter = 2505 according to Table 1. It is understandable that the data in Table 1 can be obtained by performing standardized tests on smart devices based on the auxiliary calibration board before leaving the factory. In addition, the data in Table 1 can be obtained by performing multiple standardized tests on multiple smart devices and normalizing multiple test results.

[0073] In step S104 of some embodiments, the preset compensation value may refer to a pre-set value for reducing the error in setting the sensing distance. The preset compensation value may be obtained when the smart device is actually tested before leaving the factory, and the preset compensation value may be stored in the smart device before leaving the factory. The smart device performs compensation processing on the reference sensing parameter according to the stored preset compensation value to obtain the target sensing parameter. The target sensing parameter may refer to the sensing parameter corresponding to when the sensing distance of the sensor is adjusted to the preset distance in the presence of an error.

[0074] Reference Figure 2 In some embodiments, the method for determining the preset compensation value may include but is not limited to steps S201 to S203.

[0075] Step S201, determining reference sensing parameters under a preset calibration distance state;

[0076] Step S202, obtaining calibration sensing parameters of a preset calibration distance;

[0077] Step S203, performing difference calculation between the calibration sensing parameter and the reference sensing parameter to obtain a preset compensation value.

[0078] In step S201 of some embodiments, the preset calibration distance may refer to a pre-set distance for actually testing the smart device. For example, there may be induction errors between different sensors, so before leaving the factory, the smart device can be tested to determine the induction error of the sensor in the current smart device. The specific value of the preset calibration distance can be adaptively set according to actual conditions, and the embodiments of the present application are not specifically limited to this. For example, the preset calibration distance can be set to 90cm. According to the mapping relationship in Table 1, it can be determined that the reference sensing parameters of 90cm are current parameter = 129.9, AD parameter = 2820.

[0079] In step S202 of some embodiments, the smart device sets the sensing distance of the sensor to a preset calibration distance, and collects the sensing parameters in this case to obtain the calibration sensing parameters. For example, when the smart device sets the sensing distance of the sensor to 90 cm, the collected calibration sensing parameters are current parameter = 130.3, AD parameter = 2827.

[0080] In step S203 of some embodiments, the calibration sensing parameters and the reference sensing parameters are differentially calculated, such as the current parameters in the calibration sensing parameters and the current parameters in the reference sensing parameters are differentially calculated, and the compensation value corresponding to the current parameters is obtained as 130.3-129.9=0.4. The AD parameters in the calibration sensing parameters and the AD parameters in the reference sensing parameters are differentially calculated, and the compensation value corresponding to the AD parameters is obtained as 2827-2820=7.

[0081] Therefore, the current parameter in the target sensing parameter=116.5-0.4=116.1, and the AD parameter in the target sensing parameter=2505-7=2498.

[0082] In step S105 of some embodiments, the smart device adjusts the sensor according to the target sensing parameter, so that the sensing distance of the sensor can be adjusted to a preset distance.

[0083] Reference Figure 3 In some embodiments, the method provided in the embodiments of the present application may also include but is not limited to steps S301 to S304.

[0084] Step S301, obtaining a second control instruction sent by a control device;

[0085] Step S302, determining the current sensing distance according to the second control instruction;

[0086] Step S303, generating a display instruction according to the current sensing distance;

[0087] Step S304: sending a display instruction to the control device, so that the control device displays the current sensing distance according to the display instruction.

[0088] In step S301 of some embodiments, the second control instruction may represent an instruction to transmit back the current sensing distance. For example, a "wake-up" control is pre-set on the control device. The control device generates a second control instruction in response to the triggering operation of the "wake-up" control by the object. The smart device receives the second control instruction.

[0089] In step S302 of some embodiments, the smart device determines the current sensing distance from the corresponding sensor according to the second control instruction.

[0090] In step S303 of some embodiments, the smart device generates a corresponding display instruction according to the current sensing distance. It is understandable that when the current sensing distance is different, the generated display instruction is different.

[0091] Reference Figure 4 In some embodiments, step S303 may include but is not limited to steps S401 to S402.

[0092] Step S401, determining a distance instruction according to the current sensing distance;

[0093] Step S402: Generate a display instruction according to a preset communication instruction, a preset sending instruction and a distance instruction.

[0094] In step S401 of some embodiments, the distance instruction may refer to an instruction that can characterize the current sensing distance. For example, instructions 0x00 to 0x96 may be set in advance, and these instructions are in hexadecimal representation. Among them, instructions 0x01 to 0x96 characterize sensing distances of 1cm to 150cm. Therefore, the distance instruction can be determined from 0x01 to 0x96 according to the current sensing distance. It can be understood that 0x00 may not characterize any sensing distance, and 0x00 can be used as a feedback instruction in the sensing distance. For example, when the sensing distance is set successfully or communication has been established with the control device, the smart device can generate instruction 0x00 and send the instruction to the control device.

[0095] In step S402 of some embodiments, the communication instruction may refer to an instruction for indicating that communication is established with the control device, such as being set to 0x4C. The sending instruction may refer to an instruction indicating that the current operation is an instruction sending operation, such as being set to 0x01. The communication instruction, the sending instruction, and the distance instruction are concatenated to obtain a display instruction. The control device may parse the display instruction to parse and obtain the current sensing distance. The control device displays the current sensing distance. For example, the display instruction may be 0x4C+0x01+0x37, and the control device displays the current sensing distance as 55 cm according to the display instruction.

[0096] In step S304 of some embodiments, the smart device sends a display instruction to the control device, so that the control device parses the display instruction to obtain the current sensing distance. The control device can display according to the current sensing distance.

[0097] The benefit of step S301 to step S304 is that the smart device can feedback the current sensing distance according to the second control instruction, so that the control device can display the current sensing distance, thereby improving the user experience and reducing blind adjustments.

[0098] Reference Figure 5 In some embodiments, the method provided in the embodiments of the present application may also include but is not limited to steps S501 to S502.

[0099] Step S501, parsing the first control instruction sent by the control device to obtain a preset flushing time;

[0100] Step S502, adjusting the flushing duration according to the preset flushing duration.

[0101] In step S501 of some embodiments, the first control instruction may also carry flushing duration information. It is understandable that the generation method of the first control instruction is similar to the generation method of the display instruction. For example, when the first control instruction is 0x4C+0x01+0x3c+0x05, it indicates that the preset distance is the sensing distance corresponding to instruction 0x3c, such as the preset distance is 60cm. Among them, instruction 0x05 can represent the instruction of flushing duration, such as it can represent the flushing duration of 5s. Therefore, the smart device can parse the first control instruction sent by the control device to obtain the preset flushing duration. It is understandable that the setting method of the instruction representing the flushing duration is similar to the setting method of the instruction representing the sensing distance, such as the instructions 0x00 to 0x15 can be pre-set, instructions 0x01 to 0x15 represent the flushing duration of 1s to 15s, and 0x00 is the feedback instruction of the flushing duration.

[0102] In step S502 of some embodiments, the smart device adjusts the flushing duration according to the preset flushing duration to control the flushing duration in actual application to be the preset flushing duration. For example, the duration of opening the water valve can be controlled according to the preset flushing duration.

[0103] The benefit of step S501 to step S502 is that the flushing duration can be adjusted by the control device, thereby improving the convenience of adjusting the flushing duration.

[0104] Reference Figure 6 In some embodiments, the method provided in the embodiments of the present application may also include but is not limited to steps S601 to S602.

[0105] Step S601, generating an adjustment success instruction;

[0106] Step S602: Send an adjustment success instruction to the control device, so that the control device displays an adjustment success indication according to the adjustment success instruction.

[0107] In step S601 of some embodiments, after the smart device makes adjustments according to the target sensing parameters and / or makes adjustments according to the preset flushing duration, an adjustment success instruction may be generated. It is understandable that the generation method of the adjustment success instruction is similar to the generation method of the display instruction. For example, the adjustment success instruction may be 0x4C+0x02+0x00+0x00, where instruction 0x02 represents a receiving instruction, and the two instructions 0x00 represent feedback instructions in the sensing distance and feedback instructions in the flushing duration, respectively.

[0108] In step S602 of some embodiments, the smart device sends the adjustment success instruction to the control device, so that the control device displays the adjustment success indication according to the adjustment success instruction. It is understandable that the adjustment success indication can be in text form, voice form, etc., which is not specifically limited in the embodiments of the present application.

[0109] The distance adjustment method provided in the embodiment of the present application can read the current sensing distance and the current flushing time with one click, and set a new sensing distance and a new flushing time with one click, thereby improving the convenience of adjusting the sensing distance and the flushing time. In addition, the smart device can compensate the reference sensing parameter corresponding to the preset distance according to the preset compensation value, thereby reducing the situation where the distance is incorrect when adjusting directly according to the reference sensing parameter when there is an error in the sensor, thereby improving the accuracy of the distance adjustment.

[0110] In a specific embodiment, the smart device and the control device may generate corresponding instructions based on the instruction protocol shown in Table 2 below.

[0111] Table 2 Command protocol

[0112]

[0113] Specifically, the control device generates instruction 1: 0x4C+0x02+0x00+0x00 according to Table 2 in response to the object's touch operation on the "wake-up" control, and the smart device establishes communication with the control device according to instruction 1. In addition, the smart device determines the current sensing distance and the current flushing duration according to instruction 1. The smart device generates instruction 2 based on the current sensing distance and the current flushing duration, and the smart device sends instruction 2 to the control device. For example, when the current sensing distance is 55cm and the current flushing duration is 4s, the smart device can generate instruction 2: 0x4C+0x01+0x37+0x04. The control device displays according to instruction 2: the sensing distance is 55cm and the flushing duration is 4s.

[0114] When the smart device establishes communication with the control device, if the control device displays the corresponding information according to instruction 2, the object can set a new sensing distance and a new flushing duration by touching the corresponding controls on the control device. For example, if the object sets a new sensing distance of 60cm and a new flushing duration of 5s, the control device can generate instruction 3: 0x4C+0x01+0x3c+0x05. The smart device adjusts the corresponding sensing parameters and flushing parameters according to instruction 3 and the preset compensation value to update the sensing distance to 60cm and the flushing duration to 5s. After the update is successful, the smart device can generate instruction 4: 0x4C+0x02+0x00+0x00. The control device displays "Adjustment successful" according to instruction 4.

[0115] It is understandable that, in addition to the sensing distance and flushing duration described in the above embodiments, other functions can also be adjusted in a similar manner. For example, for the flushing mode function, byte 4 can be set. Byte 4 can include 0x00 to 0x04, where 0x01 to 0x04 can represent different flushing modes.

[0116] In addition, the following Table 3 shows the actual measured data.

[0117] Table 3 Measured data table

[0118]

[0119]

[0120] Samples ① to ⑥ represent different smart devices. As shown in Table 3, according to the adjustment method described in the above embodiment, the adjustment error of the sensing distance is less than the standard error of 10%. Thus, the adjustment method provided in the embodiment of the present application can improve the accuracy of the sensing distance adjustment.

[0121] Reference Figure 7The embodiment of the present application further provides a distance adjustment system. The distance adjustment system includes an intelligent device and a control device, and the intelligent device is used to execute the distance adjustment method described in any of the above embodiments.

[0122] The specific implementation of the distance adjustment system is substantially the same as the specific implementation of the corresponding distance adjustment method described above, and will not be described in detail herein.

[0123] Reference Figure 8 , the embodiment of the present application further provides a distance adjustment device, the device comprising:

[0124] A communication establishing module 801 is used to establish communication with a control device;

[0125] The instruction parsing module 802 is used to parse the first control instruction sent by the control device to obtain a preset distance;

[0126] A sensing parameter determination module 803, configured to determine a reference sensing parameter according to the preset distance;

[0127] A sensing parameter compensation module 804 is used to compensate the reference sensing parameter according to a preset compensation value to obtain a target sensing parameter;

[0128] The sensing parameter adjustment module 805 is used to adjust according to the target sensing parameter to adjust the sensing distance to the preset distance.

[0129] The specific implementation of the distance adjustment device is basically the same as the specific implementation of the corresponding distance adjustment method described above, and will not be repeated here.

[0130] Reference Fig. 9 , Fig. 9 The hardware structure of an electronic device of another embodiment is illustrated, and the electronic device includes:

[0131] The processor 901 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;

[0132] The memory 902 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 902 can store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 902, and the processor 901 calls and executes the distance adjustment method of the embodiment of this application;

[0133] Input / output interface 903, used to implement information input and output;

[0134] Communication interface 904, used to realize communication interaction between the device and other devices, which can be realized through wired mode (such as USB, network cable, etc.) or wireless mode (such as mobile network, WI FI, Bluetooth, etc.);

[0135] A bus 905 that transmits information between various components of the device (e.g., the processor 901, the memory 902, the input / output interface 903, and the communication interface 904);

[0136] The processor 901 , the memory 902 , the input / output interface 903 and the communication interface 904 are connected to each other in communication within the device via a bus 905 .

[0137] An embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned distance adjustment method is implemented.

[0138] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0139] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0140] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.

[0141] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0142] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.

[0143] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0144] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0145] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0146] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0147] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0148] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.

[0149] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present invention should be within the scope of the rights of the present invention.

Claims

1. A distance adjustment method, characterized in that: The method is applied to a smart device, and the method comprises: Establishing communication with control equipment; Parsing the first control instruction sent by the control device to obtain a preset distance; Determining a reference sensing parameter according to the preset distance; Compensating the reference sensing parameter according to a preset compensation value to obtain a target sensing parameter; Adjustment is performed according to the target sensing parameter to adjust the sensing distance to the preset distance.

2. The method according to claim 1, characterized in that Before compensating the preset distance according to the preset compensation value to obtain the target sensing distance, the method further includes determining the preset compensation value, including: Determine reference sensing parameters at a preset calibration distance state; Obtaining calibration sensing parameters of the preset calibration distance; The difference between the calibrated sensing parameter and the reference sensing parameter is calculated to obtain the preset compensation value.

3. The method according to claim 1, characterized in that: The method further comprises: Acquire a second control instruction sent by the control device; determining a current sensing distance according to the second control instruction; Generate a display instruction according to the current sensing distance; The display instruction is sent to the control device, so that the control device displays the current sensing distance according to the display instruction.

4. The method according to claim 3, characterized in that The generating a display instruction according to the current sensing distance comprises: Determine a distance instruction according to the current sensing distance; The display instruction is generated according to a preset communication instruction, a preset sending instruction and the distance instruction.

5. The method according to claim 1, characterized in that: The method further comprises: Parsing the first control instruction sent by the control device to obtain a preset flushing time; The flushing duration is adjusted according to the preset flushing duration.

6. The method according to claim 1, characterized in that The method further comprises: Generate a successful adjustment instruction; The adjustment success instruction is sent to the control device, so that the control device displays an adjustment success indication according to the adjustment success instruction.

7. A distance adjustment system, characterized in that: The system comprises: An intelligent device, wherein the intelligent device is used to execute the method according to any one of claims 1 to 6; Control equipment.

8. A distance adjustment device, characterized in that: The device is applied to a smart device, and comprises: A communication establishment module, used to establish communication with a control device; An instruction parsing module, used for parsing the first control instruction sent by the control device to obtain a preset distance; A sensing parameter determination module, used to determine a reference sensing parameter according to the preset distance; A sensing parameter compensation module, used to compensate the reference sensing parameter according to a preset compensation value to obtain a target sensing parameter; The sensing parameter adjustment module is used to adjust according to the target sensing parameter to adjust the sensing distance to the preset distance.

9. An electronic device, characterized in that: The electronic device comprises a memory and a processor, the memory stores a computer program, and the processor implements the method according to any one of claims 1 to 6 when executing the computer program.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.