Infrared function module, electronic equipment, signal processing method and storage medium
By using an infrared function module that uses the shared infrared launch component in electronic devices, the infrared remote control function and auxiliary focusing function are realized, the hardware structure occupation of the hardware structure is solved, and the spatial saving and production simplification is achieved.
Patent Information
- Application Number
- CN202310916610.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-25
- Publication Date
- 2025-01-28
AI Technical Summary
When existing electronic devices add infrared remote control function and auxiliary focus function, they need to add corresponding hardware structures, resulting in large internal volume occupancy and difficult device stacking.
Provide an infrared function module to achieve infrared remote control function and auxiliary focusing function by sharing infrared launch components. Use infrared control components to control infrared transmission components to launch the first infrared signal for detection distance. implement.
By sharing an infrared launch component, the need to increase the hardware structure when increasing the function is reduced, the difficulty of spatial occupation and the stack of hardware structure, and simplifying the production assembly process.
Smart Images

Figure CN119380522A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of infrared luminescence, and in particular to an infrared functional module, an electronic device, a signal processing method and a storage medium. Background Art
[0002] As electronic devices become more and more versatile, they can now have both infrared remote control and auxiliary focus functions. However, both the infrared remote control and auxiliary focus functions require the configuration of corresponding hardware structures, which means that when electronic devices are added with more functions, they also need to add corresponding hardware structures, which in turn occupies a large internal volume of the electronic device and makes it difficult to stack devices. Summary of the invention
[0003] In order to overcome the problems existing in the related art, the present disclosure provides an infrared function module, an electronic device, a signal processing method and a storage medium.
[0004] According to a first aspect of an embodiment of the present disclosure, there is provided an infrared function module, comprising at least:
[0005] Infrared emission component;
[0006] An infrared control component, electrically connected to the infrared emitting component, and configured to control the infrared emitting component to emit a first infrared signal or a second infrared signal to an emitted object;
[0007] The first infrared signal is used to detect a first distance between the infrared emitting component and the emitted object; and the second infrared signal is used to control the emitted object to perform a corresponding function.
[0008] In some embodiments, the infrared function module further includes:
[0009] The infrared driving component is electrically connected to the infrared control component and the infrared emitting component, and is configured to drive the infrared emitting component to emit the first infrared signal or the second infrared signal.
[0010] In some embodiments, the infrared control component is further configured to control the infrared driving component based on the first distance, so that the infrared driving component can drive the infrared emitting component to emit the second infrared signal.
[0011] In some embodiments, the infrared control component is further configured to determine the driving current based on the first distance and a preset mapping relationship; wherein the mapping relationship is a mapping relationship between the distance and the driving current;
[0012] The infrared driving component is further configured to drive the infrared emitting component to emit the second infrared signal under the action of the driving current.
[0013] In some embodiments, the infrared control component is further configured to obtain a second distance between the infrared emitting component and the emitted object at a preset time interval; when the distance difference between the second distance and the first distance is greater than a preset difference threshold, the infrared driving component is controlled based on the second distance, so that the infrared driving component can drive the infrared emitting component to emit the second infrared signal.
[0014] In some embodiments, the infrared control component is further configured to control the infrared emission component to stop emitting the first infrared signal when controlling the infrared driving component based on the first distance.
[0015] In some embodiments, the infrared function module further includes:
[0016] an infrared receiving component, arranged in parallel with the infrared transmitting component and electrically connected to the infrared control component, and configured to receive a signal returned by the transmitted object based on the first infrared signal;
[0017] An output component is electrically connected to the infrared control component and is configured to output abnormal information related to the infrared emission component when the returned signal is an abnormal signal and / or the first distance is less than a preset distance threshold; the abnormal information is used to indicate that the infrared light-emitting component is blocked or dirty.
[0018] In some embodiments, the infrared emitting component comprises:
[0019] a first substrate;
[0020] A lens bracket, fixed on the substrate, and enclosing an accommodation space with an opening together with the first substrate;
[0021] A first lens, located at the opening;
[0022] The light emitting chip is located on the first substrate in the accommodating space and is electrically connected to the infrared control component, and is configured to emit the first infrared signal or the second infrared signal.
[0023] According to a second aspect of an embodiment of the present disclosure, there is provided an electronic device, comprising at least:
[0024] A camera module is configured to capture images;
[0025] As in the infrared functional module of the first aspect above; the infrared emitting component in the infrared functional module and the camera module are located on the same side of the electronic device; wherein the emitting direction of the infrared emitting component is the same as the image acquisition direction of the camera module.
[0026] According to a third aspect of an embodiment of the present disclosure, a signal processing method is provided, which is applied to the electronic device in the second aspect, and at least includes:
[0027] In response to the infrared distance measurement request, the infrared emitting component of the electronic device is controlled to emit a first infrared signal to the emitted object; the first infrared signal is used to detect a first distance between the infrared emitting component and the emitted object;
[0028] In response to an infrared remote control request, the infrared emitting component is controlled to emit a second infrared signal to the emitted object; the second infrared signal is used to control the emitted object to perform a corresponding function.
[0029] In some embodiments, controlling the infrared emitting component to emit a second infrared signal to the emitted object includes:
[0030] The infrared driving component of the electronic device is controlled based on the first distance, so that the infrared driving component can drive the infrared emitting component to emit the second infrared signal.
[0031] In some embodiments, the step of controlling the infrared driving component of the electronic device based on the first distance so that the infrared driving component can drive the infrared emitting component to emit the second infrared signal includes:
[0032] Determine the driving current based on the first distance and a preset mapping relationship; wherein the mapping relationship is a mapping relationship between the distance and the driving current;
[0033] Under the action of the driving current, the infrared driving component drives the infrared emitting component to emit the second infrared signal.
[0034] In some embodiments, the method further comprises:
[0035] Acquire a second distance between the infrared emitting component and the emitted object at a preset time interval;
[0036] When the distance difference between the second distance and the first distance is greater than a preset difference threshold, the infrared driving component is controlled based on the second distance so that the infrared driving component can drive the infrared emitting component to emit the second infrared signal.
[0037] In some embodiments, the method further comprises:
[0038] In the case of controlling the infrared driving component based on the first distance, the infrared emitting component is controlled to stop emitting the first infrared signal.
[0039] In some embodiments, the method further comprises:
[0040] When the infrared receiving component of the electronic device receives a signal returned by the emitted object based on the first infrared signal as an abnormal signal and / or the first distance is less than a preset distance threshold, abnormal information related to the infrared emitting component is output; the abnormal information is used to prompt that the infrared light-emitting component is blocked or dirty.
[0041] According to a fourth aspect of an embodiment of the present disclosure, there is provided an electronic device, comprising at least:
[0042] A first infrared transmitting module is configured to control the infrared transmitting component of the electronic device to transmit a first infrared signal to the transmitted object in response to the infrared distance measurement request; the first infrared signal is used to detect a first distance between the infrared transmitting component and the transmitted object;
[0043] The second infrared transmitting module is configured to control the infrared transmitting component to transmit a second infrared signal to the transmitted object in response to an infrared remote control request; the second infrared signal is used to control the transmitted object to perform a corresponding function.
[0044] According to a fifth aspect of an embodiment of the present disclosure, there is provided an electronic device, comprising at least:
[0045] processor;
[0046] a memory for storing processor-executable instructions;
[0047] Wherein, the processor is configured to execute the signal processing method as described in the third aspect above.
[0048] According to a sixth aspect of an embodiment of the present disclosure, there is provided a storage medium, including:
[0049] When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the signal processing method in the third aspect as described above.
[0050] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:
[0051] The infrared control component of the infrared function module of the disclosed embodiment can control the infrared emission component to emit a first infrared signal or a second infrared signal to the emitted object, wherein the first infrared signal is used to detect the first distance between the infrared emission component and the emitted object; the second infrared signal is used to control the emitted object to perform a corresponding function. In other words, the infrared emission component of the disclosed embodiment can emit a first infrared signal to detect the first distance to realize the auxiliary focus function, and can also emit a second infrared signal to realize the infrared remote control function, thereby being able to share the infrared emission component to realize two different functions, reducing the need to increase the corresponding hardware structure while increasing the function, thereby not only reducing space occupancy, but also reducing the difficulty of stacking the hardware structure and reducing the complexity of production and assembly.
[0052] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0054] Figure 1 The figure is a schematic diagram of the structure of a mobile phone according to an exemplary embodiment.
[0055] Figure 2 is a schematic diagram of the structure of an infrared functional module according to an exemplary embodiment Figure 1 .
[0056] Figure 3 The figure is a schematic diagram showing the use of an infrared remote control function and an auxiliary focus function according to an exemplary embodiment.
[0057] Figure 4 is a schematic diagram of an infrared transmitting component and an infrared receiving component according to an exemplary embodiment Figure 1 .
[0058] Figure 5 is a schematic diagram of an infrared transmitting component and an infrared receiving component according to an exemplary embodiment Figure 2 .
[0059] Figure 6 is a schematic diagram of the structure of an infrared functional module according to an exemplary embodiment Figure 2 .
[0060] Figure 7 is a schematic diagram of an infrared transmitting component and an infrared receiving component according to an exemplary embodiment Figure 3 .
[0061] Figure 8 is a schematic diagram showing a detection principle of a first infrared signal according to an exemplary embodiment.
[0062] Fig. 9 The figure is a schematic diagram showing transmission and reception of an infrared remote control function according to an exemplary embodiment.
[0063] Fig.10 It is a schematic structural diagram of common components according to an exemplary embodiment.
[0064] Fig.11 It is a schematic structural diagram of an electronic device according to an exemplary embodiment.
[0065] Fig.12 The figure is a schematic diagram showing that an electronic device is aimed at a transmitted object according to an exemplary embodiment.
[0066] Fig.13 The figure is a flowchart of a signal processing method according to an exemplary embodiment.
[0067] Fig.14 A frame of an electronic device according to an exemplary embodiment Figure 1 .
[0068] Fig.15 A frame of an electronic device according to an exemplary embodiment Figure 2 . DETAILED DESCRIPTION
[0069] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0070] Figure 1 FIG. 1 is a schematic diagram of a mobile phone structure according to an exemplary embodiment. Figure 1 As shown, in the related art, an infrared sensor 11 and a laser focus sensor 12 are provided on the mobile phone, so that when the mobile phone has an infrared remote control function and an auxiliary focus function, it is necessary to set an infrared sensor 11 and a laser focus sensor 12 for performing the corresponding functions in the mobile phone, which will result in the problem of large space occupation and difficulty in stacking.
[0071] Based on this, the embodiment of the present disclosure proposes an infrared function module, which can reduce the need to increase the corresponding hardware structure while increasing functions by sharing infrared emission components, thereby reducing space occupancy and reducing stacking difficulty. Figure 2is a schematic diagram of the structure of an infrared functional module according to an exemplary embodiment Figure 1 .like Figure 2 As shown, the infrared function module 100 includes:
[0072] Infrared emitting component 101;
[0073] The infrared control component 102 is electrically connected to the infrared emitting component 101 and is configured to control the infrared emitting component 101 to emit a first infrared signal or a second infrared signal to an emitted object;
[0074] The first infrared signal is used to detect a first distance between the infrared emitting component 101 and the emitted object; and the second infrared signal is used to control the emitted object to execute a corresponding function.
[0075] In the disclosed embodiment, the infrared function module is suitable for use in scenarios where the infrared remote control function and the auxiliary focus function are used. The infrared function module of the disclosed embodiment can transmit a first infrared signal to detect a first distance to realize the auxiliary focus function through the infrared emission component of the infrared function module, and can also transmit a second infrared signal to realize the infrared remote control function, thereby being able to share the infrared emission component to realize two different functions, reducing the need to increase the corresponding hardware structure while increasing the function, thereby not only reducing space occupancy, but also reducing the difficulty of stacking the hardware structure and reducing the complexity of production and assembly.
[0076] For example, Figure 3 FIG. 1 is a schematic diagram showing the use of an infrared remote control function and an auxiliary focus function according to an exemplary embodiment. Figure 3 As shown, taking the example of a user 13 holding an electronic device with an infrared function module and the transmitted object 14 being a TV device opposite the user, when the auxiliary focus function needs to be used, a first infrared signal can be transmitted to the TV device through the infrared function module to detect a first distance of the TV device, and then based on the first distance, the focus module of the mobile phone can be adjusted to realize the auxiliary focus function; when the infrared remote control function needs to be used, a second infrared signal can be transmitted to the TV device through the infrared function module to control the TV device to switch channels or turn it on and off, etc.
[0077] It should be noted that when implementing the auxiliary focus function, the emitted object may be the object being photographed. For example, the emitted object may include a photographed person, an animal being photographed, or a photographed building, etc.; when implementing the infrared remote control function, the emitted object may be a controlled device. For example, the emitted object may include a television device or an air conditioning device, etc.
[0078] In the embodiment of the present disclosure, the infrared emitting component is configured to emit a first infrared signal and a second infrared signal. Figure 4 is a schematic diagram of an infrared transmitting component and an infrared receiving component according to an exemplary embodiment Figure 1 . Figure 5 is a schematic diagram of an infrared transmitting component and an infrared receiving component according to an exemplary embodiment Figure 2 In some embodiments, Figure 4 and Figure 5 As shown, the infrared emitting component 101 includes:
[0079] A first substrate 101a;
[0080] The lens bracket 101b is fixed on the base plate 101a and forms an accommodation space with an opening together with the base plate 101a;
[0081] A first lens 101c, located at the opening;
[0082] The light emitting chip 101d is located on the substrate 101a in the accommodating space and is electrically connected to the infrared control component 102, and is configured to emit the first infrared signal or the second infrared signal.
[0083] In some embodiments, Figure 5 As shown, the infrared emitting component 101 may further include a raising plate 101e, on which the substrate 101a is located. The raising plate 101e is used to raise the substrate 101a so that the infrared emitting component and the infrared receiving component can be located on the same plane.
[0084] In the embodiments of the present disclosure, the above-mentioned substrate may include a printed circuit board (Printed Circuit Board, PCB), a flexible circuit board (Flexible Printed Circuit, FPC), a ceramic substrate or other electronic circuit boards, and the embodiments of the present disclosure are not limited to this.
[0085] The lens bracket can enclose an accommodating space with an opening together with the substrate. The material, shape and size of the lens bracket can be set according to actual needs, and the embodiment of the present disclosure does not limit this.
[0086] The above-mentioned lenses include diffusers, diffractive optical elements (DOE), microlens array elements, lenses composed of multiple lenses, metasurface lenses or other optical lenses, and the embodiments of the present disclosure are not limited to this.
[0087] The above-mentioned light-emitting chip may include a photodiode (light-emitting diode, LED), a vertical-cavity surface-emitting laser (Vertical-Cavity Surface-Emitting Laser, VCSEL), an edge-emitting semiconductor laser or other infrared lasers, which is not limited in the embodiments of the present disclosure.
[0088] In the disclosed embodiment, by emitting the first infrared signal or the second infrared signal through the light-emitting chip, the infrared remote control function and the auxiliary focus function can be realized through the common infrared emitting component, thereby increasing the functions while eliminating the need to increase the four devices included in the infrared emitting component, namely the light-emitting chip, the lens, the bracket and the substrate, thereby reducing space occupation and simplifying the hardware structure.
[0089] Figure 6 is a schematic diagram of the structure of an infrared functional module according to an exemplary embodiment Figure 2 In some embodiments, Figures 4 to 6 As shown, the infrared function module 100 also includes:
[0090] The infrared receiving component 103 is arranged in parallel with the infrared transmitting component 101 and is electrically connected to the infrared control component 102, and is configured to receive a signal returned by the transmitted object based on the first infrared signal;
[0091] The output component 104 is electrically connected to the infrared control component 102 and is configured to output abnormal information related to the infrared emission component 101 when the returned signal is an abnormal signal and / or the first distance is less than a preset distance threshold; the abnormal information is used to indicate that the infrared light-emitting component 101 is blocked or dirty.
[0092] In the present disclosure, Figure 7 is a schematic diagram of an infrared transmitting component and an infrared receiving component according to an exemplary embodiment Figure 3 .like Figure 5 and Figure 7 As shown, the infrared receiving component 103 may include a second lens 103a, a filter 103b, a sensor 103c, a second substrate 103d, a structural support 103e, a circuit board 103f and a connector 103g. The structural support 103e is fixed on the second substrate 103d and forms a receiving space with an exposed opening with the second substrate 103d; the sensor 103c is located on the second substrate 103d in the receiving space; the filter 103b is located in the receiving space and is arranged between the sensor 103c and the second lens 103a; and the circuit board 103f connects the second substrate 103d and the connector 103g.
[0093] It should be noted that the sensor in the infrared receiving component can receive the signal returned by the transmitted object based on the first infrared signal. When the first infrared signal is transmitted to the transmitted object, the first infrared signal will be reflected, and then the sensor of the infrared receiving component will receive the signal returned after the reflection of the first infrared signal.
[0094] In the embodiment of the present disclosure, the returned signal being an abnormal signal may include: the returned signal does not correspond to the emitted first infrared signal or the returned signal is empty, that is, the returned signal cannot be received for a long time. For example, the infrared light-emitting component is blocked, resulting in the failure to receive the returned signal for a long time, and then determining that the returned signal is abnormal. The above-mentioned first distance is less than the preset distance threshold, indicating that there is a deviation between the emitted first infrared signal and the received returned signal, resulting in the detected distance not meeting the expected standard.
[0095] It should be noted that the first infrared transmitting component and the second infrared receiving component may be a transmitting part and a receiving part of a time of flight (ToF) module respectively.
[0096] The output component may output abnormal information in the form of voice output, animation display output, picture display output, indicator light output, etc. Correspondingly, the output component may include a display screen, a speaker, or an indicator light, etc. It can be seen that when the infrared function module is applied to an electronic device, the display screen, speaker, or indicator light of the electronic device can be reused as the output component, and there is no need to set up an additional output component, which can simplify the structure of the electronic device and make the function integration of the electronic device higher, and can improve the user experience.
[0097] It should be noted that the infrared function module combined with the returned signal and the first distance can promptly remind the user in the event of an abnormality, so that the user can find the cause of the abnormality and process the infrared emission component in time to restore the infrared emission component to normal.
[0098] In the disclosed embodiment, the infrared control component is electrically connected to the infrared emitting component, and can control the infrared emitting component to emit a first infrared signal or a second infrared signal to the emitted object. Here, the infrared emitting component can be controlled to emit the first infrared signal in response to an infrared ranging request; and the infrared emitting component can be controlled to emit the second infrared signal in response to controlling the infrared driving component based on the first distance.
[0099] In some embodiments, the infrared control component is further configured to control the infrared emitting component to stop emitting the first infrared signal when the infrared driving component is controlled based on the first distance. That is to say, in the embodiment of the present disclosure, when the infrared driving component is controlled based on the first distance, it is necessary to stop emitting the first infrared signal. In this way, the infrared emitting component can emit different infrared signals in different functional requirement scenarios through time sharing.
[0100] In the embodiment of the present disclosure, controlling the infrared emitting component to stop emitting the first infrared signal may include causing the infrared driving component to stop driving the infrared emitting component to emit the first infrared signal.
[0101] The first infrared signal can be used to detect a first distance between the infrared emitting component and the emitted object. The detection process can include determining the first distance between the infrared emitting component and the emitted object based on the first infrared signal and the returned signal.
[0102] For example, Figure 8 FIG. 1 is a schematic diagram showing a detection principle of a first infrared signal according to an exemplary embodiment. Figure 8 As shown, the time t and the speed of light c from the infrared emitting component 101 emitting the first infrared signal A to the infrared receiving component 103 receiving the returned signal B are obtained to obtain the first distance d between the infrared emitting component and the emitted object 14. Here, the process of obtaining the first distance d can refer to the following formula.
[0103] d=c*t / 2
[0104] In the embodiment of the present disclosure, the second infrared signal is used to control the emitted object to perform a corresponding function. The emitted object may be a controlled device having an infrared module, and the controlled device can perform a corresponding function based on the second infrared signal.
[0105] It should be noted that the infrared function module may also include: a coding modulation chip. Fig. 9 As shown, during the process of transmitting the first infrared signal, the coding and modulation chip is connected to the infrared control component, and can encode and modulate the control instructions generated by the infrared control component, and then transmit the infrared instruction through the infrared transmitting component to achieve the transmission of the first infrared signal to the target object.
[0106] Among them, the encoding process can be to encode the control instruction into a coded signal in different pulse forms; the modulation process can be to modulate the coded signal to obtain a modulated signal, that is, the coded signal can be carried on a carrier to improve the signal's anti-interference ability and ensure smooth transmission; the infrared emission process can be to control the infrared driving component through the modulated signal, so that the infrared driving component drives the infrared emission component to emit a first infrared signal with the same frequency as the modulated signal.
[0107] Correspondingly, the transmitted object is provided with an infrared module, which can receive the first infrared signal, and amplify, demodulate and decode the first infrared signal to restore the control instruction. Finally, the driving circuit and execution circuit of the transmitted object can realize various functions based on the control instruction.
[0108] Among them, the amplification process can be to amplify the received first infrared signal; the demodulation process can be to demodulate the amplified signal to obtain the signal to be decoded, that is, to obtain the decoded signal through filtering; the decoding process can be to decrypt the signal to be decoded to obtain the restored control instruction. The decoding method is determined by the encoding method and can be divided into hardware decryption and software decoding. The embodiments of the present disclosure do not limit this.
[0109] It should be noted that the infrared transmitting component transmitting the first infrared signal and the receiving end of the transmitted object receiving the first infrared signal must comply with the infrared transmission protocol. The infrared transmission protocol stipulates the encoding method, carrier frequency and frame structure of the transmitted binary signals "0" and "1" to ensure that the infrared transmission process is regular and the infrared remote control function is better realized.
[0110] In the disclosed embodiment, the infrared transmitting component may be transmitting hardware corresponding to the auxiliary focus function. The infrared remote control function may use the transmitting hardware corresponding to the auxiliary focus function to transmit the second infrared signal.
[0111] It should be noted that the requirements for transmission hardware for different functions are shown in Table 1.
[0112]
[0113] It can be concluded from Table 1 that since the transmitting hardware corresponding to the auxiliary focus function can meet the requirements of the infrared remote control function for the transmitting hardware, the infrared remote control function and the auxiliary focus function can share the transmitting hardware corresponding to the auxiliary focus function, that is, the infrared transmitting component, and then the infrared transmitting component can be controlled to transmit different infrared signals when different functional requirements are met.
[0114] In some embodiments, the infrared function module further includes:
[0115] The infrared driving component is electrically connected to the infrared control component and the infrared emitting component, and is configured to drive the infrared emitting component to emit the first infrared signal or the second infrared signal.
[0116] That is to say, the infrared function modules of the disclosed embodiment not only share the infrared emission component to emit the first infrared signal or the second infrared signal, but also share the infrared driving component, so that the infrared emission component can emit the first infrared signal or the second infrared signal under the drive of the infrared driving component. In this way, the shared infrared emission component and the infrared driving component can further reduce the need to increase the corresponding hardware structure while increasing the function, thereby further reducing the space occupied and reducing the difficulty of device stacking.
[0117] In the embodiment of the present disclosure, the infrared driving component may be an infrared driving circuit or a driving chip, wherein the infrared driving component may be configured separately or may be an integrated driver, which is not limited in the embodiment of the present disclosure.
[0118] In some embodiments, the infrared control component is further configured to control the infrared driving component based on the first distance, so that the infrared driving component can drive the infrared emitting component to emit the second infrared signal.
[0119] That is, before transmitting the second infrared signal, the first infrared signal may be transmitted to obtain the first distance, and then the second infrared signal may be transmitted based on the first distance. In this way, the embodiment of the present disclosure takes into account the influence of the distance on the transmission of the second infrared signal, and controls the infrared driving component based on the first distance to transmit the second infrared signal, thereby saving power consumption.
[0120] In the embodiment of the present disclosure, controlling the infrared driving component based on the first distance may include controlling the driving parameters of the infrared driving component based on the first distance. The driving parameters may include driving current, driving voltage or driving power, etc., which are not limited in the embodiment of the present disclosure.
[0121] It should be noted that different first distances correspond to different driving parameters. Here, the first distance is proportional to the driving parameter. That is, the larger the first distance, the larger the corresponding driving parameter.
[0122] In the disclosed embodiment, the first distance may be used to control the infrared driving component, rather than using fixed driving parameters to act on the infrared driving component, so that the driving of the infrared driving component can be more flexible and adapt to infrared driving in different distance scenarios.
[0123] In some embodiments, the infrared control component is further configured to determine the driving current based on the first distance and a preset mapping relationship; wherein the mapping relationship is a mapping relationship between the distance and the driving current;
[0124] The infrared driving component is further configured to drive the infrared emitting component to emit the second infrared signal under the action of the driving current.
[0125] In the embodiment of the present disclosure, the mapping relationship is stored in advance, and the driving current corresponding to the first distance can be directly searched in the mapping relationship based on the first distance. In this way, the efficiency of determining the driving current can be improved.
[0126] It should be noted that the infrared drive component drives the infrared emission component to emit different emission powers of the second infrared signal under different driving currents. It can be seen that the embodiment of the present disclosure can adjust the driving current according to the first distance, and thus can adjust the emission power of the infrared emission component. In this way, the embodiment of the present disclosure can save power consumption while ensuring the emission performance.
[0127] In some embodiments, the infrared control component is further configured to obtain a second distance between the infrared emitting component and the emitted object at a preset time interval; when the distance difference between the second distance and the first distance is greater than a preset difference threshold, the infrared driving component is controlled based on the second distance, so that the infrared driving component can drive the infrared emitting component to emit the second infrared signal.
[0128] That is to say, the disclosed embodiment takes into account that in the scenario of using the infrared remote control function, the user may be moving relative to the emitted object, which may cause the distance between the infrared emission component and the emitted object to change. Based on this, the disclosed embodiment will re-acquire the second distance at a preset interval, and then compare the first distance and the second distance. When the distance difference is greater than the preset difference threshold, the second distance is used to control the infrared drive component to re-drive the infrared emission component. In this way, not only can the driving power consumption be reduced, but it can also be applied to sports scenes, improving the user experience of the infrared remote control function.
[0129] The above preset time can be set according to actual conditions. For example, the preset time can be set within the range of 1 minute to 30 minutes, and the embodiment of the present disclosure is not limited to this.
[0130] The above difference threshold may also be set according to actual conditions. For example, the difference threshold may be set to be greater than 0.3.
[0131] Exemplarily, the re-control of the infrared drive component is described by taking the preset time of 1 minute and the distance difference of 0.3 meters as an example. After the infrared drive component is controlled based on the first distance to drive the infrared emission component, the embodiment of the present disclosure will re-emit the first infrared signal after 1 minute to obtain the second distance between the infrared emission component and the emitted object, and when the distance difference between the second distance and the first distance is greater than 0.3 meters, the infrared drive component is controlled based on the second distance to re-drive the infrared emission component to meet the emission power of the infrared emission component.
[0132] In order to better understand one or more of the above embodiments, the embodiments of the present disclosure are exemplified as follows:
[0133] Fig.10 FIG. 1 is a schematic diagram showing a structure of a common component according to an exemplary embodiment. Fig.10 As shown, the infrared function module of the embodiment of the present disclosure can share an infrared driving component and an infrared transmitting component to realize the infrared remote control function and the auxiliary focus function. It should be noted that for the infrared remote control function, since it does not involve the need to receive infrared signals, it is not necessary to share an infrared receiving component. Moreover, the infrared driving component and the infrared transmitting component in the embodiment of the present disclosure may belong to the hardware structure corresponding to the auxiliary focus function, that is, when realizing the infrared remote control function, it is not necessary to set the hardware structure for driving and transmitting corresponding to the infrared remote control function, but directly adopt the hardware structure corresponding to the auxiliary focus function such as the infrared driving component and the infrared transmitting component. In this way, by sharing the infrared driving component and the infrared transmitting component, it is possible to reduce the situation where the corresponding hardware structure is increased while increasing the function, thereby not only reducing the space occupation, but also reducing the difficulty of stacking the hardware structure and reducing the complexity of production and assembly.
[0134] The present disclosure also provides an electronic device, Fig.11 FIG. 1 is a schematic diagram showing the structure of an electronic device according to an exemplary embodiment. Fig.11 As shown, the electronic device 300 includes: a camera module 200, configured to capture images;
[0135] Such as the infrared functional module in one or more of the above embodiments; the infrared emitting component 101 in the infrared functional module and the camera module 200 are located on the same side of the electronic device 300; wherein the emitting direction of the infrared emitting component 101 is the same as the image acquisition direction of the camera module 200.
[0136] In the disclosed embodiment, the camera module may include a front camera module and a rear camera module, and the image acquisition direction of the front camera module is opposite to that of the rear camera module.
[0137] When the camera module is a rear camera module, the infrared emitting component and the rear camera module are located on the same side of the electronic device. In some embodiments, the electronic device further includes a back shell having a camera port, and the rear camera module and the infrared emitting component can be arranged at the camera port and exposed to the outside through the camera port. In this way, when the back shell is aligned with the emitted object, that is, the image acquisition direction of the rear camera module and the emission direction of the infrared emitting component are both aligned with the emitted object, the first screen of the electronic device opposite to the back shell will face the user, thereby facilitating the user to operate the page displayed on the first screen when using the infrared remote control function and the auxiliary focus function, which can be suitable for human-computer communication and improve the user experience.
[0138] When the camera module is a front camera module, the infrared emitting component and the front camera module are located on the same side of the electronic device. In some embodiments, the first screen of the electronic device has a screen opening, and the front camera module and the infrared emitting component can be arranged at the screen opening and exposed to the outside through the screen opening. In this way, when the image acquisition direction of the front camera module and the emission direction of the infrared emitting component are both aligned with the emitted object, the second screen of the electronic device located on the back shell will face the user, thereby facilitating the user to operate the page displayed on the second screen when using the infrared remote control function and the auxiliary focus function, which can be suitable for human-computer communication and improve the user experience.
[0139] For example, Fig.12 FIG. 1 is a schematic diagram showing an electronic device aiming at a transmitted object according to an exemplary embodiment. Fig.12 As shown, the infrared emitting component of the electronic device 300 is aimed at the emitted object 14. Since the screen of the electronic device is facing the user, it is convenient for the user to operate the page displayed on the electronic device when using the infrared remote control function and the auxiliary focus function, which is suitable for human-computer communication and improves the user experience.
[0140] In the disclosed embodiment, the electronic device also includes an infrared function module, through which the infrared transmitting component of the infrared function module can transmit a first infrared signal to detect a first distance to realize an auxiliary focus function, and can also transmit a second infrared signal to realize an infrared remote control function, thereby enabling the use of the same infrared transmitting component to realize two different functions, thereby reducing the need to increase the corresponding hardware structure while increasing functions, thereby not only reducing space occupancy, but also reducing the difficulty of stacking the hardware structure, and reducing the complexity of the production and assembly of the electronic device.
[0141] The disclosed embodiments further provide a signal processing method, which is applied to the electronic device in one or more of the above embodiments. Fig.13 A signal processing method according to an exemplary embodiment is shown in FIG. Figure 1 .like Fig.13As shown, the electronic device executes the signal processing method including the following steps:
[0142] S1001, in response to an infrared distance measurement request, controlling an infrared emitting component of an electronic device to emit a first infrared signal to an emitted object; the first infrared signal is used to detect a first distance between the infrared emitting component and the emitted object;
[0143] S1002. In response to an infrared remote control request, control the infrared emitting component to emit a second infrared signal to the emitted object; the second infrared signal is used to control the emitted object to perform a corresponding function.
[0144] In the embodiment of the present disclosure, the electronic device displays an auxiliary focus icon, and the user can trigger the auxiliary focus icon. At this time, the electronic device will receive the infrared ranging request represented by the auxiliary focus icon, and respond to the infrared ranging request, controlling the infrared transmitting component to transmit a first infrared signal to the transmitted object to detect the first distance between the transmitted objects.
[0145] It should be noted that before transmitting the first infrared signal, the user needs to aim the infrared transmitting component at the object to be transmitted, so that the first distance obtained based on the first infrared signal detection will be more accurate.
[0146] In the disclosed embodiment, the infrared remote control application interface of the electronic device displays an infrared remote control icon, and the user can operate the infrared remote control icon. At this time, the electronic device will receive an infrared remote control request represented by the infrared remote control icon, and respond to the infrared remote control request, controlling the infrared transmitting component to transmit a second infrared signal to the transmitted object, so that the transmitted object can be controlled to perform the function corresponding to the second infrared signal.
[0147] It should be noted that, in the process of responding to the infrared remote control request, the infrared control component will generate a control instruction based on the infrared remote control request, the coding and modulation chip of the electronic device will encode and modulate the control instruction, and then the infrared driving component drives the infrared transmitting component to transmit a second infrared signal, and then the electronic device completes an infrared remote control operation based on the infrared remote control request. At this time, the electronic device can respond to the exit infrared remote control request to exit the infrared remote control application interface of the electronic device.
[0148] In the disclosed embodiment, the same infrared emitting component of the electronic device can be used to emit a first infrared signal to detect a first distance to implement an auxiliary focus function, and can also emit a second infrared signal to implement an infrared remote control function, thereby enabling the use of the same infrared emitting component to implement two different functions, thereby reducing the need to increase the corresponding hardware structure while increasing functions, thereby not only reducing space occupancy, but also reducing the difficulty of stacking the hardware structure and reducing the complexity of production and assembly.
[0149] In some embodiments, controlling the infrared emitting component to emit a second infrared signal to the emitted object includes:
[0150] The infrared driving component of the electronic device is controlled based on the first distance, so that the infrared driving component can drive the infrared emitting component to emit the second infrared signal.
[0151] That is to say, in response to an infrared remote control request, it is necessary to first transmit a first infrared signal to obtain a first distance, and then transmit a second infrared signal based on the first distance. It can be seen that the embodiment of the present disclosure can respond to an infrared ranging request to perform ranging when an auxiliary focus function is required; it can also respond to an infrared ranging request to perform ranging to obtain a first distance when an infrared remote control function is required, so that the infrared driving component can be controlled based on the first distance.
[0152] It should be noted that after controlling the infrared driving component based on the first distance so that the infrared transmitting component transmits a second infrared signal, if a request to exit the infrared remote control is received, the infrared receiving component and the infrared transmitting component of the electronic device can be turned off when exiting the infrared remote control application interface of the electronic device.
[0153] In some embodiments, the step of controlling the infrared driving component of the electronic device based on the first distance so that the infrared driving component can drive the infrared emitting component to emit the second infrared signal includes:
[0154] Determine the driving current based on the first distance and a preset mapping relationship; wherein the mapping relationship is a mapping relationship between the distance and the driving current;
[0155] Under the action of the driving current, the infrared driving component drives the infrared emitting component to emit the second infrared signal.
[0156] The embodiment of the present disclosure can adjust the driving current according to the first distance, and thus can adjust the emission power of the infrared emission component. In this way, the embodiment of the present disclosure can save power consumption while ensuring the emission performance.
[0157] In some embodiments, the method further comprises:
[0158] Acquire a second distance between the infrared emitting component and the emitted object at a preset time interval;
[0159] When the distance difference between the second distance and the first distance is greater than a preset difference threshold, the infrared driving component is controlled based on the second distance so that the infrared driving component can drive the infrared emitting component to emit the second infrared signal.
[0160] The embodiments of the present disclosure can not only reduce driving power consumption but also be applicable to sports scenes and improve the user experience of the infrared remote control function.
[0161] In some embodiments, the method further comprises:
[0162] In the case of controlling the infrared driving component based on the first distance, the infrared emitting component is controlled to stop emitting the first infrared signal.
[0163] In the embodiment of the present disclosure, when the infrared driving component is controlled based on the first distance, it is necessary to stop emitting the first infrared signal. In this way, the infrared emitting component can emit different infrared signals in different functional requirement scenarios through time sharing.
[0164] In some embodiments, the method further comprises:
[0165] When the infrared receiving component of the electronic device receives a signal returned by the emitted object based on the first infrared signal as an abnormal signal and / or the first distance is less than a preset distance threshold, abnormal information related to the infrared emitting component is output; the abnormal information is used to prompt that the infrared light-emitting component is blocked or dirty.
[0166] In the disclosed embodiment, the electronic device can promptly alert the user in the event of an abnormality by combining the returned signal and the first distance, so that the user can find the cause of the abnormality and process the infrared emission component in time to restore the infrared emission component to normal.
[0167] The specific manner of executing the operations of each method in the signal processing of the above-mentioned embodiment has been described in detail in the embodiment of the infrared function module, and will not be elaborated here.
[0168] The present disclosure also provides an electronic device, Fig.14 A frame of an electronic device according to an exemplary embodiment Figure 1 .like Fig.14 As shown, the electronic device 300 includes:
[0169] The first infrared transmitting module 3001 is configured to control the infrared transmitting component of the electronic device to transmit a first infrared signal to the transmitted object in response to the infrared distance measurement request; the first infrared signal is used to detect a first distance between the infrared transmitting component and the transmitted object;
[0170] The second infrared transmitting module 3002 is configured to control the infrared transmitting component to transmit a second infrared signal to the transmitted object in response to an infrared remote control request; the second infrared signal is used to control the transmitted object to perform a corresponding function.
[0171] In some embodiments, the second infrared transmitting module is further configured to control an infrared driving component of the electronic device based on the first distance, so that the infrared driving component can drive the infrared transmitting component to transmit the second infrared signal.
[0172] In some embodiments, the second infrared emission module is further configured to determine a driving current based on the first distance and a preset mapping relationship; wherein the mapping relationship is a mapping relationship between distance and driving current; and under the action of the driving current, the infrared emission component is driven by the infrared driving component to emit the second infrared signal.
[0173] In some embodiments, the electronic device further comprises:
[0174] A distance acquisition module, configured to acquire a second distance between the infrared emitting component and the emitted object at a preset time interval;
[0175] The distance control module is configured to control the infrared driving component based on the second distance when the distance difference between the second distance and the first distance is greater than a preset difference threshold, so that the infrared driving component can drive the infrared emitting component to emit the second infrared signal.
[0176] In some embodiments, the electronic device further comprises:
[0177] The stop module is configured to control the infrared emitting component to stop emitting the first infrared signal in response to the infrared remote control request.
[0178] In some embodiments, the electronic device further comprises:
[0179] The output module is configured to output abnormal information related to the infrared emitting component when the signal returned by the emitted object based on the first infrared signal received by the infrared receiving component of the electronic device is an abnormal signal and / or the first distance is less than a preset distance threshold; the abnormal information is used to indicate that the infrared light-emitting component is blocked or dirty.
[0180] The specific manner in which each module in the electronic device in the above embodiment performs operations has been described in detail in the embodiment related to the infrared function module, and will not be elaborated here.
[0181] Fig.15 A frame of an electronic device according to an exemplary embodiment Figure 2 For example, the electronic device may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0182] Reference Fig.15 , the electronic device may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output (I / O) interface 812 , a sensor component 814 , and a communication component 816 .
[0183] The processing component 802 generally controls the overall operation of the electronic device, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.
[0184] The memory 804 is configured to store various types of data to support operations on the device 800. Examples of such data include instructions for any application or method operating on the electronic device, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0185] The power supply component 806 provides power to various components of the electronic device. The power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device.
[0186] The multimedia component 808 includes a screen that provides an output interface between the electronic device and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0187] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the electronic device is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.
[0188] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.
[0189] The sensor assembly 814 includes one or more sensors for providing various aspects of status assessment for the electronic device. For example, the sensor assembly 814 can detect the open / closed state of the device 800, the relative positioning of the components, such as the display and keypad of the electronic device, and the sensor assembly 814 can also detect the position change of the electronic device or a component of the electronic device, the presence or absence of user contact with the electronic device, the orientation or acceleration / deceleration of the electronic device and the temperature change of the electronic device. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0190] The communication component 816 is configured to facilitate wired or wireless communication between the electronic device and other devices. The electronic device can access a wireless network based on a communication standard, such as WiFi, 3G or 5G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0191] In an exemplary embodiment, the electronic device may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above methods.
[0192] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, and the instructions can be executed by a processor 820 of an electronic device to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0193] A non-temporary computer-readable storage medium, when the instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to perform a signal processing method, the method comprising: in response to an infrared ranging request, controlling an infrared emitting component of the electronic device to emit a first infrared signal to an emitted object; the first infrared signal is used to detect a first distance between the infrared emitting component and the emitted object; in response to an infrared remote control request, controlling the infrared emitting component to emit a second infrared signal to the emitted object; the second infrared signal is used to control the emitted object to perform a corresponding function.
[0194] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0195] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. An infrared function module, characterized in that: include: Infrared emission component; An infrared control component, electrically connected to the infrared emitting component, and configured to control the infrared emitting component to emit a first infrared signal or a second infrared signal to an emitted object; The first infrared signal is used to detect a first distance between the infrared emitting component and the emitted object; and the second infrared signal is used to control the emitted object to perform a corresponding function.
2. The infrared function module according to claim 1, characterized in that: The infrared function module also includes: The infrared driving component is electrically connected to the infrared control component and the infrared emitting component, and is configured to drive the infrared emitting component to emit the first infrared signal or the second infrared signal.
3. The infrared function module according to claim 2, characterized in that: The infrared control component is further configured to control the infrared driving component based on the first distance, so that the infrared driving component can drive the infrared emitting component to emit the second infrared signal.
4. The infrared function module according to claim 3, characterized in that: The infrared control component is further configured to determine the driving current based on the first distance and a preset mapping relationship; wherein the mapping relationship is a mapping relationship between the distance and the driving current; The infrared driving component is further configured to drive the infrared emitting component to emit the second infrared signal under the action of the driving current.
5. The infrared function module according to claim 3, characterized in that: The infrared control component is also configured to obtain a second distance between the infrared emitting component and the emitted object at a preset time interval; when the distance difference between the second distance and the first distance is greater than a preset difference threshold, the infrared driving component is controlled based on the second distance, so that the infrared driving component can drive the infrared emitting component to emit the second infrared signal.
6. The infrared function module according to claim 3, characterized in that: The infrared control component is further configured to control the infrared emission component to stop emitting the first infrared signal while controlling the infrared driving component based on the first distance.
7. The infrared functional module according to any one of claims 1 to 6, characterized in that: The infrared function module also includes: an infrared receiving component, arranged in parallel with the infrared transmitting component and electrically connected to the infrared control component, and configured to receive a signal returned by the transmitted object based on the first infrared signal; An output component is electrically connected to the infrared control component and is configured to output abnormal information related to the infrared emission component when the returned signal is an abnormal signal and / or the first distance is less than a preset distance threshold; the abnormal information is used to indicate that the infrared light-emitting component is blocked or dirty.
8. The infrared functional module according to any one of claims 1 to 6, characterized in that: The infrared emission component comprises: a first substrate; A lens bracket, fixed on the substrate, and enclosing an accommodation space with an opening together with the first substrate; A first lens, located at the opening; The light emitting chip is located on the first substrate in the accommodating space and is electrically connected to the infrared control component, and is configured to emit the first infrared signal or the second infrared signal.
9. An electronic device, characterized in that: include: A camera module is configured to capture images; The infrared functional module according to any one of claims 1 to 8; The infrared emitting component in the infrared functional module and the camera module are located on the same side of the electronic device; wherein the emitting direction of the infrared emitting component is the same as the image acquisition direction of the camera module.
10. A signal processing method, characterized in that: The electronic device according to claim 9, comprising: In response to the infrared distance measurement request, the infrared emitting component of the electronic device is controlled to emit a first infrared signal to the emitted object; the first infrared signal is used to detect a first distance between the infrared emitting component and the emitted object; In response to an infrared remote control request, the infrared emitting component is controlled to emit a second infrared signal to the emitted object; the second infrared signal is used to control the emitted object to perform a corresponding function.
11. The signal processing method according to claim 10, characterized in that: The step of controlling the infrared emitting component to emit a second infrared signal to the emitted object comprises: The infrared driving component of the electronic device is controlled based on the first distance, so that the infrared driving component can drive the infrared emitting component to emit the second infrared signal.
12. The signal processing method according to claim 11, characterized in that: The step of controlling the infrared driving component of the electronic device based on the first distance so that the infrared driving component can drive the infrared emitting component to emit the second infrared signal includes: Determine the driving current based on the first distance and a preset mapping relationship; wherein the mapping relationship is a mapping relationship between the distance and the driving current; Under the action of the driving current, the infrared driving component drives the infrared emitting component to emit the second infrared signal.
13. The method according to claim 11, characterized in that The method further comprises: Acquire a second distance between the infrared emitting component and the emitted object at a preset time interval; When the distance difference between the second distance and the first distance is greater than a preset difference threshold, the infrared driving component is controlled based on the second distance so that the infrared driving component can drive the infrared emitting component to emit the second infrared signal.
14. The method according to claim 11, characterized in that The method further comprises: In the case of controlling the infrared driving component based on the first distance, the infrared emitting component is controlled to stop emitting the first infrared signal.
15. The method according to any one of claims 10 to 14, characterized in that The method further comprises: When the infrared receiving component of the electronic device receives a signal returned by the emitted object based on the first infrared signal as an abnormal signal and / or the first distance is less than a preset distance threshold, abnormal information related to the infrared emitting component is output; the abnormal information is used to prompt that the infrared light-emitting component is blocked or dirty.
16. An electronic device, characterized in that: include: A first infrared transmitting module is configured to control the infrared transmitting component of the electronic device to transmit a first infrared signal to the transmitted object in response to the infrared ranging request; The first infrared signal is used to detect a first distance between the infrared emitting component and the emitted object; The second infrared transmitting module is configured to control the infrared transmitting component to transmit a second infrared signal to the transmitted object in response to an infrared remote control request; the second infrared signal is used to control the transmitted object to perform a corresponding function.
17. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to execute the signal processing method according to any one of claims 10 to 15. 18 . A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the signal processing method according to any one of claims 10 to 15.
Citation Information
Patent Citations
Control method, control device and electronic device
CN105761475A
Camera module and electronic equipment
CN114827424A
Infrared remote control method, depth TOF camera and storage medium
CN116132795A
Camera module
CN205081864U
Cited By
Infrared remote control method, electronic device, storage medium, and program product
WO2026188875A1