Infrared gesture control distance calibration method and system
By placing a gesture generation component in front of the infrared component and adjusting the duty cycle level, the problem of inconsistent infrared gesture control distance is solved, and the control distance calibration consistency and resource saving of batch prototypes are achieved.
Patent Information
- Application Number
- CN202411697107.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-26
- Publication Date
- 2025-03-28
- Estimated Expiration
- 2044-11-26
AI Technical Summary
During the production and use of existing infrared gesture-controlled range hoods, the gesture control distance is inconsistent due to differences in structure and components, and consistency cannot be ensured.
A gesture generation component is placed at a preset distance directly in front of the infrared component. The duty cycle of the infrared signal carrier is adjusted through an automatic calibration program, and the signal bit error rate is calculated. When the preset conditions are met, the target duty cycle is stored and stored in the memory of the prototype to be calibrated, thereby realizing the calibration of batch prototypes.
Automatic adaptive calibration of infrared gesture control distance is achieved, ensuring consistency of control distance during production of the same model and saving manpower and material resources.
Smart Images

Figure CN119179392B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of intelligent hardware technology, and in particular to a method and system for calibrating infrared gesture control distance. Background Art
[0002] At present, in order to improve the user experience, various intelligent hardware devices have emerged. Infrared gesture-controlled range hoods have also come out in kitchen equipment. The core is to determine the user's gesture based on the principle of infrared tube transmission and infrared reception, and control the range hood according to the determined gesture. The standard range of the effective control distance of infrared gesture-controlled range hoods is generally a value between 8cm and 17cm. At present, the distance is mainly calibrated by adjusting the current-limiting resistor connected in series with the infrared transmitting tube to limit the transmitting power of the transmitting tube. However, models with different structures correspond to current-limiting resistors with different resistance values, so the calibrated control distance is also different, and the consistency of the gesture control distance cannot be ensured. In addition, the calibrated distance is easily affected by the following factors:
[0003] 1) Subject to product structure, including display panel housing, panel glass hardness and transmittance;
[0004] 2) Due to component batches and different suppliers, component parameters vary;
[0005] 3) During use, the coating or film of the panel will decay and the performance of the components will also decay.
[0006] It can be seen that the differences in structure, process and components of existing complete machine products during production and use will lead to inconsistent gesture control distances. Summary of the invention
[0007] The embodiments of the present application provide a method and system for calibrating an infrared gesture control distance to solve the problem of inconsistent gesture control distances in the prior art.
[0008] In order to solve the above problems, an embodiment of the present application provides a method for calibrating infrared gesture control distance, wherein the method includes:
[0009] Placing a gesture generation component at a preset distance directly in front of the infrared component of the first prototype to be calibrated; wherein the preset distance is a control effective distance;
[0010] In response to the first instruction, starting an automatic calibration procedure to send an infrared signal;
[0011] In the process of sending infrared signals, the duty cycle of the infrared signal carrier is adjusted in order from small to large and the adjusted signal bit error rate is calculated; wherein, the system is preset with multiple levels of carrier duty cycle;
[0012] When the signal bit error rate is adjusted to meet the preset conditions, determining that the adjusted target duty cycle meets the preset value range, storing the target duty cycle in the first memory of the first prototype to be calibrated, and outputting a calibration success prompt message;
[0013] The target duty cycle in the first memory is stored in the second memory of each second prototype to be calibrated according to a preset process, so as to complete the infrared gesture control distance calibration of batch prototypes.
[0014] Optionally, the step of storing the duty cycle stored in the first memory into the second memory of each second to-be-calibrated prototype according to a preset process includes:
[0015] Reading the target duty cycle from the first prototype to be calibrated by an external infrared remote controller;
[0016] storing the target duty cycle in a third memory of the external infrared remote controller;
[0017] During the production of the second prototype to be calibrated, the target duty cycle is sent to the second prototype to be calibrated via the external infrared remote controller, and the target duty cycle is stored in a second memory of the second prototype to be calibrated.
[0018] Optionally, in the process of producing the second prototype to be calibrated, the step of sending the target duty cycle to the second prototype to be calibrated by the external infrared remote controller, and storing the target duty cycle in a second memory of the second prototype to be calibrated includes:
[0019] During the production of the second prototype to be calibrated, a write instruction is sent to the infrared component of the second prototype to be calibrated on the production line through the external infrared remote controller; wherein the write instruction carries the target duty cycle;
[0020] After receiving the write instruction, the infrared component of the second prototype to be calibrated stores the target duty cycle in the second memory of the second prototype to be calibrated.
[0021] Optionally, the step of calculating the adjusted infrared signal bit error rate includes:
[0022] The control system counts a first total frame number of the infrared signal sent and a second total frame number of the infrared signal correctly decoded;
[0023] An adjusted infrared signal bit error rate is determined according to the first total number of frames and the second total number of frames.
[0024] Optionally, before the step of placing the gesture generating component at a preset distance directly in front of the infrared component of the first prototype to be calibrated, the method further comprises:
[0025] Determine the duty cycle range of the infrared signal carrier;
[0026] The duty cycle range is divided into adjustment levels to obtain multiple duty cycles, wherein each level corresponds to a duty cycle.
[0027] The embodiment of the present application further provides an infrared gesture control distance calibration system, wherein the system includes a calibration device, and the calibration device includes:
[0028] A placement module, used to place the gesture generation component at a preset distance in front of the infrared component of the first prototype to be calibrated; wherein the preset distance is a control effective distance;
[0029] A starting module, used for starting an automatic calibration program to send an infrared signal in response to a first instruction;
[0030] The adjustment module is used to adjust the duty cycle level of the infrared signal carrier in the order from small to large during the process of sending the infrared signal and calculate the adjusted signal bit error rate; wherein, the system is preset with multiple levels of carrier duty cycle;
[0031] A determination module, configured to determine that the adjusted target duty cycle meets a preset value range when the signal bit error rate is adjusted to meet a preset condition, store the target duty cycle in a first memory of the first prototype to be calibrated, and output a calibration success prompt message;
[0032] The batch calibration module is used to store the target duty cycle in the first memory into the second memory of each second prototype to be calibrated according to a preset process, so as to complete the infrared gesture control distance calibration of the batch prototypes.
[0033] Optionally, the system further comprises: an external infrared remote controller;
[0034] The batch calibration module is used to read the target duty cycle from the first prototype to be calibrated through the external infrared remote controller;
[0035] The external infrared remote controller is used to store the target duty cycle in a third memory of the external infrared remote controller; during the production of the second prototype to be calibrated, the target duty cycle is sent to the second prototype to be calibrated, so that the second prototype to be calibrated stores the target duty cycle in the second memory of the second prototype to be calibrated.
[0036] Optionally, the external infrared remote controller is used to send a write instruction to the infrared component of the second prototype to be calibrated on the production line during the production of the second prototype to be calibrated; wherein the write instruction carries the target duty cycle;
[0037] After receiving the write instruction, the infrared component of the second prototype to be calibrated stores the target duty cycle in the second memory of the second prototype to be calibrated.
[0038] Optionally, when the adjustment module calculates the adjusted infrared signal bit error rate, it is specifically used to:
[0039] The control system counts a first total frame number of the infrared signal sent and a second total frame number of the infrared signal correctly decoded;
[0040] An adjusted infrared signal bit error rate is determined according to the first total number of frames and the second total number of frames.
[0041] Optionally, the calibration device further includes:
[0042] A range determination module, used to determine the duty cycle range of the infrared signal carrier before placing the gesture generation component at a preset distance directly in front of the infrared component of the first prototype to be calibrated;
[0043] The level division module is used to divide the adjustment level of the duty cycle range to obtain multiple levels of duty cycle, wherein each level corresponds to a duty cycle.
[0044] Compared with the prior art, the technical effects that can be achieved by the embodiments of the present application include:
[0045] The infrared gesture control distance calibration scheme provided in the embodiment of the present application is to place a gesture generation component at a preset distance directly in front of the infrared component of the first prototype to be calibrated; in response to the first instruction, start the automatic calibration program to send an infrared signal; in the process of sending the infrared signal, adjust the duty cycle level of the infrared signal carrier in order from small to large and calculate the adjusted signal bit error rate; when the signal bit error rate is adjusted to meet the preset conditions, determine that the adjusted target duty cycle meets the preset value range, store the target duty cycle in the first memory of the first prototype to be calibrated, and output a calibration success prompt message; store the target duty cycle in the memory in the second memory of each second prototype to be calibrated according to the preset process, so as to complete the infrared gesture control distance calibration of batch prototypes. The infrared gesture control distance calibration scheme provided in the embodiment of the present application can automatically adapt to the control effective distance range to calibrate the control distance, and the control distance calibrated on the first prototype to be calibrated can be directly written into the machine when the same model is produced, so as to achieve consistency in the control distance calibration and save manpower and material resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 is a flowchart showing the steps of a method for calibrating infrared gesture control distance according to an embodiment of the present application;
[0047] Figure 2is a schematic diagram showing the infrared gesture control principle of an embodiment of the present application;
[0048] Figure 3 It is a schematic diagram showing the infrared sensing distance comparison test results;
[0049] Figure 4 is a flow chart showing the calibration of infrared gesture control distance of a prototype machine according to an embodiment of the present application;
[0050] Figure 5 is a flow chart showing the calibration of infrared gesture control distance of a mass production machine according to an embodiment of the present application;
[0051] Figure 6 It is a structural block diagram of an infrared gesture control distance calibration system according to an embodiment of the present application. DETAILED DESCRIPTION
[0052] In order to make the technical problems, technical solutions and advantages to be solved by the present application clearer, a detailed description will be given below with reference to the accompanying drawings and specific embodiments.
[0053] The infrared gesture control distance calibration solution provided in the embodiment of the present application is described in detail below through specific embodiments and application scenarios in conjunction with the accompanying drawings.
[0054] Infrared gesture recognition is a method of identifying human gestures through infrared sensor technology. It uses the reflection and propagation principle of infrared light by the human body and the receiving and processing capabilities of infrared sensors. Infrared sensor is an optical device that can detect infrared light. It can emit infrared light and sense the reflection of infrared light. The schematic diagram of infrared gesture control principle is as follows Figure 2 As shown in the figure, when a human hand performs a specific waving motion, infrared light will be reflected by the hand. The infrared sensor can receive the infrared light reflected by the hand and convert it into an electrical signal. By analyzing and processing the received infrared photoelectric signal, when the gesture type is recognized, the corresponding operation or instruction can be triggered. The key to infrared gesture recognition technology lies in the detection of infrared light and signal analysis and processing. The sensitivity and resolution ability of the infrared sensor to infrared light determine the accuracy and response speed of gesture recognition.
[0055] More specifically, the infrared sensor may include an infrared emitting tube and an infrared receiving head, wherein the infrared emitting tube is also called an infrared emitting diode, which belongs to a light emitting diode. It is a light emitting device that can directly convert electrical energy into near-infrared light (invisible light) and radiate it.
[0056] Radiation intensity: Power (unit: W, W / sr, W / cm 2) is used to indicate the amount of infrared energy radiated by an infrared light emitting diode (IR). The radiation intensity (Power) is proportional to the input current (If). The emission distance is proportional to the radiation intensity (Power).
[0057] Where, W / sr: represents the unit of infrared radiation intensity, which is the magnitude of the light power radiated per unit solid angle (sr) of infrared light emitted by IR. W / cm 2 : The unit of illumination, which is the amount of radiation power received by IR emission per unit area.
[0058] There are two important components inside the infrared receiver, namely IC and PD. IC is the processing component of the receiver, mainly composed of silicon crystal and circuit, and is a highly integrated device with the main functions of filtering, shaping, decoding, amplification, etc. PD is a photosensitive diode, and its main function is to receive optical signals.
[0059] Figure 2 The infrared transmitting tube in the , driven by a 38kHz carrier frequency, emits coded infrared light. When an object blocks the infrared light, the infrared light is reflected by the object (for example, moving object 1 and moving object 2), and the infrared receiving head receives the infrared light, and decodes and identifies the infrared transmitting tube 1 and the infrared transmitting tube 1, where D1 represents the distance between moving object 1 and infrared transmitting tube 1, D2 represents the distance between moving object 2 and the infrared receiving head, P1 represents the position of moving object 1, and P2 represents the position of moving object 2. When the user waves his hand, by receiving the time difference of the left and right infrared transmitting tube signals, the system can identify the direction of the user's hand waving, thereby triggering the corresponding function operation.
[0060] As attached Figure 1 As shown, the infrared gesture control distance calibration method of the embodiment of the present application includes the following steps:
[0061] Step 101: placing a gesture generation component at a preset distance in front of the infrared component of the first prototype to be calibrated.
[0062] The preset distance is the effective control distance, and the infrared component can be the infrared sensor described above. The gesture generation component can be a standard artificial hand, which simulates the user's gesture with the help of the standard artificial hand.
[0063] In the embodiment of the present application, the control distance is calibrated for the first prototype to be calibrated, and after the calibration is successful, the infrared gesture control distance of the batch prototypes is calibrated based on the control distance obtained by the calibration.
[0064] The system has a preset duty cycle level, which is stored in the system before the control distance calibration is performed on the first prototype to be calibrated.
[0065] In an optional embodiment, before placing the gesture generation component at a preset distance directly in front of the infrared component of the first to-be-calibrated prototype, a method of generating multiple duty cycle levels may be as follows:
[0066] Firstly, the duty cycle range of the infrared signal carrier is determined; secondly, the adjustment levels of the duty cycle range are divided to obtain multiple duty cycles, wherein each level corresponds to a duty cycle.
[0067] When determining the value range of the duty cycle PWM (Pulse Width Modulation), it can be achieved in the following ways:
[0068] According to the infrared light emission distance is proportional to the radiation intensity, and the radiation intensity is proportional to the input current. Because the current is defined as the amount of charge passing through any cross section of the conductor per unit time, the magnitude of the current is related to the current on and off time. By adjusting the duty cycle PWM of the 38kHz carrier frequency, the magnitude of the input current can be changed. The relationship between different duty cycles and sensing distances obtained by implementing data is shown in Table 1:
[0069] Table 1: Duty cycle and sensing distance correspondence table
[0070]
[0071] Based on the data in the table of the relationship between duty cycle and sensing distance, the infrared sensing distance comparison test results are shown in the following figure: Figure 3 As shown, Figure 3 The horizontal axis represents the duty cycle, and the vertical axis represents the good sensing distance. The unit of the good sensing distance is centimeter.
[0072] The conclusions obtained based on the experimental data are shown in Table 2:
[0073] Table 2 Relationship between infrared emission distance and duty cycle
[0074]
[0075] From the data in Table 2 above, it can be concluded that the effective duty cycle that affects the infrared light emission distance can be defined as 1% to 26%. It should be noted that the infrared emission value range is related to the manufacturer's product performance.
[0076] The number of adjustment stages for dividing the duty cycle range can be achieved as follows:
[0077] When dividing the duty cycle into levels, the more the number of divided duty cycle levels is, the higher the adjustable accuracy of the control distance is. In the actual implementation process, the control distance obtained from the experimental data can be divided into equal intervals, and the duty cycle accuracy of the MCU (Micro Controller Unit) can be divided into N levels (for example, 16 levels). It can be understood that N can be set according to actual needs and is not specifically limited here.
[0078] Step 102: In response to the first instruction, start the automatic calibration procedure to send an infrared signal.
[0079] In the actual implementation process, after the system is powered on, it can enter the engineering mode and start the automatic calibration after receiving the first instruction from the user. The first instruction can be generated by touching or pressing a combination of keys, or by operating an external infrared remote control to generate the first instruction with one key. The specific method of generating the first instruction is not limited in the embodiment of the present application.
[0080] Step 103: During the process of sending the infrared signal, the duty cycle of the infrared signal carrier is adjusted in order from small to large and the adjusted signal bit error rate is calculated.
[0081] Among them, there are multiple duty cycles preset in the system. In this step, the automatic calibration program sends an infrared signal, adjusts the duty cycle level of the infrared signal carrier in order from small to large, and calculates the adjusted signal bit error rate, until the received signal bit error rate meets the preset conditions and stops adjusting the duty cycle level. After each adjustment of the duty cycle level, the signal bit error rate needs to be calculated. If the bit error rate meets the preset conditions, there is no need to adjust the duty cycle level. Conversely, if the bit error rate does not meet the preset conditions, the duty cycle level needs to be adjusted again.
[0082] An alternative way to calculate the adjusted infrared signal bit error rate may be as follows:
[0083] The control system counts a first total frame number of the transmitted infrared signal and a second total frame number of the correctly decoded infrared signal; and determines an adjusted infrared signal bit error rate according to the first total frame number and the second total frame number.
[0084] In the actual implementation process, in order to reduce the interference of the external environment, infrared rays are sent after being encoded according to agreed rules. From sending to receiving and decoding, the control system counts the total number of frames T of the sent signal (i.e. the first total number of frames), and then counts the correctly decoded signals t (i.e. the second total number of frames) received. The bit error rate can be calculated by the following formula: err=(Tt) / T.
[0085] Step 104: When the signal bit error rate is adjusted to meet the preset conditions, determine whether the adjusted target duty cycle meets the preset value range, store the target duty cycle in the first memory of the first prototype to be calibrated, and output a calibration success prompt message.
[0086] The preset condition can be set to a bit error rate less than a preset bit error rate. The specific value of the preset bit error rate can be flexibly set by a person skilled in the art. There is no specific limitation on this in the embodiments of the present application. For example, the preset bit error rate is set to 2%, 3% or 5%.
[0087] The calibration success prompt information can be a text prompt, a sound prompt or a combination of the two. Preferably, the target duty cycle level can be displayed and a beep sound can be emitted to prompt the user that the calibration is successful. After the calibration is successful, the engineering mode entered before the calibration is exited.
[0088] It should be noted that if the signal bit error rate tested during the adjustment of the carrier duty cycle level from small to large does not always meet the preset conditions, and all duty cycle levels have been adjusted, it is determined that the automatic calibration has failed and a calibration failure prompt message is output.
[0089] Step 105: storing the target duty cycle in the first memory into the second memory of each second prototype to be calibrated according to a preset process, so as to complete the infrared gesture control distance calibration for batch prototypes.
[0090] The first memory and the second memory may be of the same type or different types, and both may be EEPROM, i.e., electrically erasable programmable read-only memory.
[0091] In an optional embodiment, the method of storing the duty cycle stored in the first memory into the second memory of each second to-be-calibrated sample machine according to a preset process may include the following sub-steps:
[0092] Sub-step 1: reading the target duty cycle from the first prototype to be calibrated via an external infrared remote controller;
[0093] Sub-step 2: storing the target duty cycle in a third memory of the external infrared remote controller;
[0094] Sub-step 3: During the production of the second prototype to be calibrated, the target duty cycle is sent to the second prototype to be calibrated via an external infrared remote controller, and the target duty cycle is stored in a second memory of the second prototype to be calibrated.
[0095] More specifically, in the process of producing the second prototype to be calibrated, the target duty cycle is sent to the second prototype to be calibrated by the external infrared remote controller, and the target duty cycle is stored in the second memory of the second prototype to be calibrated as follows:
[0096] During the production of the second prototype to be calibrated, a write instruction is sent to the infrared component of the second prototype to be calibrated on the production line through an external infrared remote control; after receiving the write instruction, the infrared component of the second prototype to be calibrated stores the target duty cycle in the second memory of the second prototype to be calibrated.
[0097] The write instruction carries the target duty cycle.
[0098] The infrared gesture control distance calibration method provided in the embodiment of the present application is to place a gesture generation component at a preset distance directly in front of the infrared component of the first prototype to be calibrated; in response to the first instruction, start the automatic calibration program to send an infrared signal; in the process of sending the infrared signal, adjust the duty cycle level of the infrared signal carrier in order from small to large and calculate the adjusted signal bit error rate; when the signal bit error rate is adjusted to meet the preset conditions, determine that the adjusted target duty cycle meets the preset value range, store the target duty cycle in the first memory of the first prototype to be calibrated, and output a calibration success prompt message; store the target duty cycle in the memory in the second memory of each second prototype to be calibrated according to the preset process, so as to complete the infrared gesture control distance calibration of batch prototypes. The infrared gesture control distance calibration method provided in the embodiment of the present application can automatically adapt to the control effective distance range to calibrate the control distance, and the control distance calibrated on the first prototype to be calibrated can be directly written into the machine when the same model is produced, so as to achieve consistency in the control distance calibration and save manpower and material resources.
[0099] Refer to the following Figure 4-5 The infrared gesture control distance calibration method provided in the embodiment of the present application is described with a specific example.
[0100] Figure 4 This is a flow chart of the infrared gesture control distance calibration of the prototype of the embodiment of the present application.
[0101] Before mass production, the first prototype is sampled and calibrated for the following control distance.
[0102] Step 501: Place a standard artificial hand to a specified distance.
[0103] Place a standard prosthetic hand in front of the infrared component at the specified effective control distance (e.g. 11 cm);
[0104] Step 502: Power on the system;
[0105] Step 503: Trigger to enter engineering mode.
[0106] Step 504: Start the automatic calibration procedure.
[0107] In the actual implementation process, the engineering mode can be triggered by a combination of keys, or it can be entered by one key through an external infrared remote control.
[0108] Step 505: The duty cycle level is adjusted from small to large.
[0109] Step 506: Determine whether the bit error rate err is less than 2%; if so, execute step 507; if not, execute step 510.
[0110] The automatic calibration procedure sends a signal, the carrier duty cycle is adjusted from small to large, and the bit error rate of the infrared signal is determined after each adjustment until the received digital bit error rate meets the preset condition. For example, the preset condition can be set to bit error rate err<2%.
[0111] Step 507: Save the duty cycle data to the system's EEPROM.
[0112] Confirm that the current duty cycle meets the preset distance range and then save it to the system's EEPROM.
[0113] Step 508: The system issues a calibration success prompt.
[0114] The system may indicate successful calibration by displaying the duty cycle level and emitting a beep.
[0115] Step 509: exit engineering mode;
[0116] Step 510: Determine whether the duty cycle level is adjusted to the maximum; if so, execute step 511, if not, return to execute step 505.
[0117] Step 511: prompt failure information; then execute step 509.
[0118] If the bit error rate does not meet the preset value during the process of the carrier duty cycle progression from small to large, the automatic calibration fails and a failure message is prompted.
[0119] Figure 5 It is a flow chart showing the calibration of infrared gesture control distance of mass-produced machines according to an embodiment of the present application.
[0120] The calibration process for batch machines includes the following steps:
[0121] Step 601: The machine is powered on and enters the standby state.
[0122] Step 602: Determine whether an external remote control write instruction is received; if so, execute step 603; if not, execute step 604.
[0123] Step 603: The machine saves the received duty cycle data into the EEPROM.
[0124] Machinery refers to mass-produced equipment, which can be range hoods, rear-door control washing machines, refrigerators and other smart devices.
[0125] When producing machines on the assembly line, use an infrared remote control to send a write command to send the recorded duty cycle data to each machine produced. After receiving the write command, the machine on the assembly line saves the received duty cycle data into the EEPROM, and when the machine is working, the updated duty cycle data is used.
[0126] Step 604: The prototype determines whether it has received an external remote control reading instruction. If so, it executes step 605; if not, it returns to the standby state and executes step 602.
[0127] The external infrared remote control (used to read and write mechanical duty cycle data) reads the duty cycle data calibrated by the prototype, i.e. the duty cycle level, by sending a read command.
[0128] It should be noted that the infrared receiving and transmitting functions on the machine can also read more information about the machine, including barcodes, performance parameter modifications, etc., through an external reader / writer such as an external infrared remote control.
[0129] Step 605: The prototype transmits duty cycle data via the infrared transmitting tube.
[0130] The prototype transmits the data in the EEPROM to the external infrared remote control through the infrared transmitting tube.
[0131] Step 606: After receiving the data, the external infrared remote controller saves it into the EEPROM of the remote controller.
[0132] After the data is saved in the remote control's EEPROM, it means the remote control has read the data successfully.
[0133] The infrared gesture control distance calibration method provided in this specific embodiment can automatically adapt to the control effective distance range requirements to calibrate the control distance, and the control distance calibrated on the first prototype to be calibrated can be directly written into the machine when the same model is produced, which can achieve consistency in control distance calibration and save manpower and material resources. In addition, this solution does not require adjusting hardware parameters, but only adjusts the software drive method. Compared with existing technologies, it can reduce the number of material controls for each product (BOM table, structure, coating), saving control costs.
[0134] Figure 6 A structural block diagram of an infrared gesture control distance calibration system for implementing an embodiment of the present application.
[0135] The infrared gesture control distance calibration system provided in the embodiment of the present application includes: a calibration device 70, wherein the calibration device 70 includes:
[0136] The placement module 701 is used to place the gesture generation component at a preset distance in front of the infrared component of the first prototype to be calibrated; wherein the preset distance is a control effective distance;
[0137] A starting module 702, configured to start an automatic calibration program to send an infrared signal in response to a first instruction;
[0138] The adjustment module 703 is used to adjust the duty cycle level of the infrared signal carrier in the order from small to large during the process of sending the infrared signal and calculate the adjusted signal bit error rate; wherein, the system is preset with multiple levels of carrier duty cycle;
[0139] The determination module 704 is used to determine that the adjusted target duty cycle meets the preset value range when the signal bit error rate is adjusted to meet the preset condition, store the target duty cycle in the first memory of the first prototype to be calibrated, and output a calibration success prompt message;
[0140] The batch calibration module 705 is used to store the target duty cycle in the first memory into the second memory of each second prototype to be calibrated according to a preset process, so as to complete the infrared gesture control distance calibration of the batch prototypes.
[0141] Optionally, the system further comprises: an external infrared remote controller;
[0142] The batch calibration module is used to read the target duty cycle from the first prototype to be calibrated through the external infrared remote controller;
[0143] The external infrared remote controller is used to store the target duty cycle in a third memory of the external infrared remote controller; during the production of the second prototype to be calibrated, the target duty cycle is sent to the second prototype to be calibrated, so that the second prototype to be calibrated stores the target duty cycle in the second memory of the second prototype to be calibrated.
[0144] Optionally, the external infrared remote controller is used to send a write instruction to the infrared component of the second prototype to be calibrated on the production line during the production of the second prototype to be calibrated; wherein the write instruction carries the target duty cycle;
[0145] After receiving the write instruction, the infrared component of the second prototype to be calibrated stores the target duty cycle in the second memory of the second prototype to be calibrated.
[0146] Optionally, when the adjustment module calculates the adjusted infrared signal bit error rate, it is specifically used to:
[0147] The control system counts a first total frame number of the infrared signal sent and a second total frame number of the infrared signal correctly decoded;
[0148] An adjusted infrared signal bit error rate is determined according to the first total number of frames and the second total number of frames.
[0149] Optionally, the calibration device further includes:
[0150] A range determination module, used to determine the duty cycle range of the infrared signal carrier before placing the gesture generation component at a preset distance directly in front of the infrared component of the first prototype to be calibrated;
[0151] The level division module is used to divide the adjustment level of the duty cycle range to obtain multiple levels of duty cycle, wherein each level corresponds to a duty cycle.
[0152] The infrared gesture control distance calibration device provided in the embodiment of the present application can automatically adapt to the control effective distance range requirements to calibrate the control distance, and the control distance calibrated on the first prototype to be calibrated can be directly written into the machine when the same model is produced, thereby achieving consistency in control distance calibration and saving manpower and material resources.
[0153] The embodiments of the present application provide Figure 6 The infrared gesture control distance calibration system shown can achieve Figure 1 To avoid repetition, the various processes implemented by the method embodiment are not described here.
[0154] The infrared gesture control distance calibration device provided in the embodiment of the present application can automatically adapt to the control effective distance range requirements to calibrate the control distance, and the control distance calibrated on the first prototype to be calibrated can be directly written into the machine when the same model is produced, thereby achieving consistency in control distance calibration and saving manpower and material resources.
[0155] An embodiment of the present application also provides an electronic device, including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus.
[0156] Memory, used to store computer programs;
[0157] The processor is used to implement the infrared gesture control distance calibration method steps in the above method embodiment when executing the program stored in the memory.
[0158] The communication bus mentioned in the above terminal can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0159] The communication interface is used for communication between the above terminal and other devices.
[0160] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0161] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0162] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0163] The above is a preferred embodiment of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles described in the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A method for calibrating infrared gesture control distance, characterized in that: The method comprises: Placing a gesture generation component at a preset distance directly in front of the infrared component of the first prototype to be calibrated; wherein the preset distance is a control effective distance; In response to the first instruction, starting an automatic calibration procedure to send an infrared signal; In the process of sending infrared signals, the duty cycle level of the infrared signal carrier is adjusted in order from small to large and the adjusted signal bit error rate is calculated; wherein, multiple duty cycles are preset in the system; When the signal bit error rate is adjusted to be less than a preset bit error rate, determining that the adjusted target duty cycle meets a preset value range, storing the target duty cycle in a first memory of the first prototype to be calibrated, and outputting a calibration success prompt message; According to a preset process, the target duty cycle in the first memory is stored in the second memory of each second prototype to be calibrated, so as to complete the infrared gesture control distance calibration of the batch prototypes; The step of storing the duty cycle stored in the first memory into the second memory of each second to-be-calibrated prototype according to a preset process comprises: Reading the target duty cycle from the first prototype to be calibrated by an external infrared remote controller; storing the target duty cycle in a third memory of the external infrared remote controller; During the production of the second prototype to be calibrated, the target duty cycle is sent to the second prototype to be calibrated via the external infrared remote controller, and the target duty cycle is stored in a second memory of the second prototype to be calibrated.
2. The method according to claim 1, characterized in that In the process of producing the second prototype to be calibrated, the step of sending the target duty cycle to the second prototype to be calibrated by the external infrared remote controller and storing the target duty cycle in the second memory of the second prototype to be calibrated includes: During the production of the second prototype to be calibrated, a write instruction is sent to the infrared component of the second prototype to be calibrated on the production line through the external infrared remote controller; wherein the write instruction carries the target duty cycle; After receiving the write instruction, the infrared component of the second prototype to be calibrated stores the target duty cycle in the second memory of the second prototype to be calibrated.
3. The method according to claim 1, characterized in that: The steps of calculating the adjusted infrared signal bit error rate include: The control system counts a first total frame number of the infrared signal sent and a second total frame number of the infrared signal correctly decoded; An adjusted infrared signal bit error rate is determined according to the first total number of frames and the second total number of frames.
4. The method according to claim 1, characterized in that: Before the step of placing the gesture generating component at a preset distance directly in front of the infrared component of the first prototype to be calibrated, the method further includes: Determine the duty cycle range of the infrared signal carrier; The duty cycle range is divided into adjustment levels to obtain multiple duty cycles, wherein each level corresponds to a duty cycle.
5. An infrared gesture control distance calibration system, characterized in that: The system includes a calibration device, and the calibration device includes: A placement module, used to place the gesture generation component at a preset distance in front of the infrared component of the first prototype to be calibrated; wherein the preset distance is a control effective distance; A starting module, used for starting an automatic calibration program to send an infrared signal in response to a first instruction; The adjustment module is used to adjust the duty cycle level of the infrared signal carrier in the order from small to large during the process of sending the infrared signal and calculate the bit error rate of the adjusted signal; wherein, the system is preset with multiple duty cycles; A determination module, configured to determine, when the signal bit error rate is adjusted to be less than a preset bit error rate, whether the adjusted target duty cycle meets a preset value range, store the target duty cycle in a first memory of the first prototype to be calibrated, and output a calibration success prompt message; A batch calibration module, used for storing the target duty cycle in the first memory into the second memory of each second to-be-calibrated prototype according to a preset process, so as to complete the infrared gesture control distance calibration of the batch prototypes; The system also includes: an external infrared remote controller; The batch calibration module is used to read the target duty cycle from the first prototype to be calibrated through the external infrared remote controller; The external infrared remote controller is used to store the target duty cycle in a third memory of the external infrared remote controller; during the production of the second prototype to be calibrated, the target duty cycle is sent to the second prototype to be calibrated, so that the second prototype to be calibrated stores the target duty cycle in the second memory of the second prototype to be calibrated.
6. The system according to claim 5, characterized in that: The external infrared remote controller is used to send a write instruction to the infrared component of the second prototype to be calibrated on the production line during the production of the second prototype to be calibrated; wherein the write instruction carries the target duty cycle; After receiving the write instruction, the infrared component of the second prototype to be calibrated stores the target duty cycle in the second memory of the second prototype to be calibrated.
7. The system according to claim 5, characterized in that When the adjustment module calculates the adjusted infrared signal bit error rate, it is specifically used to: The control system counts a first total frame number of the infrared signal sent and a second total frame number of the infrared signal correctly decoded; An adjusted infrared signal bit error rate is determined according to the first total number of frames and the second total number of frames.
8. The system according to claim 5, characterized in that The calibration device also includes: A range determination module, used to determine the duty cycle range of the infrared signal carrier before placing the gesture generation component at a preset distance directly in front of the infrared component of the first prototype to be calibrated; The level division module is used to divide the adjustment level of the duty cycle range to obtain multiple levels of duty cycle, wherein each level corresponds to a duty cycle.
Citation Information
Patent Citations
Trash can infrared current calibration method, device and equipment, and storage medium
CN109444858A
Gesture recognition control device and method of extractor hood
CN110780620A
Transmission parameter calibration method and optical communication equipment
CN114244431A