Infrared signal processing method and device, and storage medium

By introducing signal lock and signal identification mechanisms into the terminal equipment, the problem of abnormal signal processing when multiple infrared remote controls control the same terminal equipment is solved, and the effect of stable processing of single infrared signals is achieved.

CN119672938APending Publication Date: 2025-03-21GUANGZHOU SHIZHEN INFORMATION TECH CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202311176540.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-12
Publication Date
2025-03-21

AI Technical Summary

Technical Problem

When multiple infrared remote controls control the same terminal device, the terminal device cannot effectively process the multi-channel infrared signal, resulting in abnormal signal processing.

Method used

Using a signal lock mechanism, the terminal device only processes a single infrared signal. The signal source is determined by signal identification. If the signal is the same, the signal will be processed, and if it is different, it will be discarded.

Benefits of technology

It effectively reduces the situation where terminal equipment processes multiple infrared signals, reduces the occurrence of signal processing abnormalities, and ensures the stability of signal processing under the control of multiple infrared remote controls.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119672938A_ABST
    Figure CN119672938A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of signal processing, and discloses a processing method for an infrared signal, in the method, when terminal equipment receives a first infrared signal which is generated by an infrared remote controller and corresponds to a target key, and under the condition that a signal lock is idle, the first infrared signal can directly occupy the signal lock, so that the signal lock does not occupy the target key; and the terminal device processes the first infrared signal. Under the condition that the signal lock is occupied, whether the signal source of the first infrared signal is the same as the signal source of the infrared signal currently occupying the signal lock or not can be judged, if yes, it is considered that the first infrared signal and the infrared signal currently occupying the signal lock are the same path of signals, and the first infrared signal can be directly processed by the terminal equipment. And if not, discarding the first infrared signal, so that the terminal equipment only processes the single-path infrared signal. Therefore, the abnormal condition when the terminal equipment processes multiple paths of infrared signals is reduced. The invention further discloses electronic equipment and a storage medium.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of signal processing technology, and in particular to a method and device for processing infrared signals, and a storage medium. Background Art

[0002] The terminal devices of the audio and video integration system usually run applications such as video conferencing and system settings.

[0003] Currently, applications running on a terminal device can be controlled by an infrared remote controller. However, when multiple infrared remote controllers control the same terminal device, the terminal device will receive multiple infrared signals from multiple infrared remote controllers, and the terminal device cannot determine which infrared signal to process, resulting in abnormal infrared signal processing.

[0004] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present application, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0005] In order to provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. The summary is not an extensive review, nor is it intended to identify key / critical components or delineate the scope of protection of these embodiments, but rather serves as a prelude to the detailed description that follows.

[0006] The embodiments of the present disclosure provide a method and device for processing infrared signals, and a storage medium, which can reduce the abnormality of infrared signal processing when multiple infrared remote controllers control the same terminal device.

[0007] In a first aspect, an embodiment of the present disclosure provides a method for processing infrared signals, which is applied to a terminal device, wherein the terminal device uses a signal lock to process an infrared signal generated by an infrared remote controller; the method includes:

[0008] A first infrared signal corresponding to a target button generated by an infrared remote controller is received; wherein the first infrared signal is generated under the condition that the target button of the infrared remote controller is pressed.

[0009] When determining that the usage state of the signal lock is an idle state, processing the first infrared signal;

[0010] When it is determined that the use state of the signal lock is the occupied state, determining whether the signal identifier of the first infrared signal is the same as the signal identifier of the infrared signal of the currently occupied signal lock; wherein the signal identifier is used to characterize the signal source of the infrared signal;

[0011] If they are the same, the first infrared signal is processed; if they are not the same, the first infrared signal is discarded.

[0012] In a second aspect, an embodiment of the present disclosure provides an audio and video integration system, the system comprising an infrared remote controller and a terminal device; wherein:

[0013] Infrared remote control, used to generate infrared signals corresponding to target buttons when the user operates the target buttons;

[0014] The camera is used to receive the infrared signal corresponding to the target button generated by the infrared remote control, and forward the infrared signal corresponding to the target button to the terminal device;

[0015] A terminal device is used to implement the infrared signal processing method as described in the first aspect.

[0016] In a third aspect, an embodiment of the present disclosure provides an electronic device, comprising a processor and a memory storing program instructions, wherein the processor is configured to execute the method for processing infrared signals as described in the first aspect when running the program instructions.

[0017] In a fourth aspect, an embodiment of the present disclosure provides a storage medium storing program instructions, wherein the program instructions, when run, execute the method for processing infrared signals as described in the first aspect.

[0018] The infrared signal processing method, device, and storage medium provided by the embodiments of the present disclosure can achieve the following technical effects:

[0019] In the disclosed embodiment, the terminal device can use the signal lock to process the infrared signal generated by the infrared remote control. The signal lock only allows the terminal device to process a single infrared signal, and when the signal lock is in an occupied state, the terminal device can only process the infrared signal of the currently occupied signal lock. In this way, when the terminal device receives the first infrared signal corresponding to the target button generated by the infrared remote control, and the signal lock is idle, the first infrared signal can directly occupy the signal lock, and the terminal device processes the first infrared signal. In the case where the signal lock is occupied, it can be determined whether the signal source of the first infrared signal is the same as the signal source of the infrared signal currently occupying the signal lock. If they are the same, it is considered that the first infrared signal and the infrared signal of the currently occupied signal lock are the same signal, and the first infrared signal can be directly processed by the terminal device. If they are different, it is considered that the first infrared signal and the infrared signal of the currently occupied signal lock are not the same signal, and the first infrared signal can be discarded so that the terminal device only processes a single infrared signal. Thereby, the situation where the terminal device processes multiple infrared signals is reduced, and then when multiple infrared remote controllers control the same terminal device, the situation of abnormal infrared signal processing can be reduced.

[0020] The above general description and the following description are exemplary and explanatory only and are not intended to limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] One or more embodiments are exemplarily described by corresponding drawings, which do not limit the embodiments. Elements with the same reference numerals in the drawings are shown as similar elements, and the drawings do not constitute a scale limitation, and wherein:

[0022] Figure 1 It is a schematic diagram of a traditional audio and video system;

[0023] Figure 2 is a schematic diagram of an audio and video system provided by an embodiment of the present disclosure;

[0024] Figure 3 is a flow chart of a method for processing infrared signals provided by an embodiment of the present disclosure;

[0025] Figure 4 is a flow chart of another method for processing infrared signals provided by an embodiment of the present disclosure;

[0026] Figure 5 is a schematic diagram of a device for processing infrared signals provided by an embodiment of the present disclosure;

[0027] Figure 6 It is a schematic diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0028] In order to be able to understand the features and technical contents of the embodiments of the present disclosure in more detail, the implementation of the embodiments of the present disclosure is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present disclosure. In the following technical description, for the convenience of explanation, a full understanding of the disclosed embodiments is provided through multiple details. However, one or more embodiments can still be implemented without these details. In other cases, to simplify the drawings, well-known structures and devices can be simplified for display.

[0029] The terms "first", "second", etc. in the specification and claims of the embodiments of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchanged where appropriate, so as to describe the embodiments of the embodiments of the present disclosure described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions.

[0030] Unless otherwise stated, the term "plurality" means two or more.

[0031] In the embodiment of the present disclosure, the character " / " indicates that the preceding and following objects are in an "or" relationship. For example, A / B indicates: A or B.

[0032] The term "and / or" is a description of the association relationship between objects, indicating that three relationships can exist. For example, A and / or B means: A or B, or, A and B.

[0033] The term "correspondence" may refer to an association relationship or a binding relationship. The correspondence between A and B means that there is an association relationship or a binding relationship between A and B.

[0034] Combination Figure 1 As shown in FIG. 1 , a conventional audio and video integration system includes a terminal device and an infrared remote controller. By operating the buttons on the infrared remote controller, the user can make the infrared remote controller send an infrared signal to the terminal device. After receiving the infrared signal, the terminal device executes the control instruction corresponding to the infrared signal. Thus, the user can control the application on the terminal device through the infrared remote controller.

[0035] However, in traditional audio and video integrated systems, when multiple infrared remote controllers control the same terminal device, the terminal device will receive multiple infrared signals from the multiple infrared remote controllers, and the terminal device cannot determine which infrared signal to process, resulting in abnormal infrared signal processing.

[0036] In view of this, the embodiments of the present disclosure provide a method and apparatus, device, and storage medium for processing infrared signals. The terminal device can use the signal lock to process the infrared signal generated by the infrared remote control, which can reduce the situation where the terminal device processes multiple infrared signals. When multiple infrared remote controls control the same terminal device, the abnormality of infrared signal processing can be reduced.

[0037] Combination Figure 2 As shown, an embodiment of the present disclosure provides an audio and video integration system, which includes an infrared remote controller, a camera, and a terminal device. The infrared remote controller can generate an infrared signal corresponding to a target button when a user operates the target button. The camera can receive the infrared signal corresponding to the target button sent by the infrared remote controller, and forward the infrared signal corresponding to the target button to the terminal device, so that the terminal device can process the infrared signal generated by the infrared remote controller using an integrated signal lock mechanism.

[0038] In the disclosed embodiments, the terminal device refers to an electronic device having a wired connection function and / or a wireless connection function. For example, the terminal device may be a mobile device, a computer, or a vehicle-mounted device built into a hover vehicle, or any combination thereof.

[0039] Optionally, the infrared signal generated by the infrared remote control can be sent directly to the terminal device using serial communication. Figure 2 After the infrared signal generated by the infrared remote controller T1 is sent to the terminal device, it can be received by the infrared serial port of the terminal device.

[0040] Optionally, a wireless communication connection or a wired communication connection can be established between the camera and the terminal device, and the camera can be remotely deployed relative to the terminal device. Figure 2 , when the camera is deployed remotely, the remotely located infrared remote controller T2 can send an infrared signal to the camera. After receiving the infrared signal, the camera can forward the infrared signal sent by the infrared remote controller T2 to the terminal device, thereby realizing the remote control of the terminal device by the infrared remote controller, wherein the infrared signal transmission process can follow TCP (Transmission Control Protocol). In addition, it should be noted that the camera is not limited to being deployed remotely. For example, when the terminal device of the audio and video integration system is deployed in a certain computer room, the camera can be deployed outside the computer room so that the camera can receive the infrared signal sent by the infrared remote controller outside the computer room, so that the user outside the computer room can control the terminal device in the computer room through the infrared remote controller. Of course, the camera can also be integrated into the terminal device as an infrared signal receiving module, which is not limited in the embodiments of the present disclosure.

[0041] based on Figure 2 In the audio and video integrated system shown in the figure, the embodiment of the present disclosure provides a method for processing infrared signals, which can be applied to terminal devices. Figure 3 As shown, the method includes:

[0042] S31, receiving a first infrared signal corresponding to a target button generated by an infrared remote controller, wherein the first infrared signal is generated when the target button of the infrared remote controller is pressed.

[0043] S32, determining the usage status of the signal lock.

[0044] S33: When the signal lock is in an idle state, process the first infrared signal.

[0045] S34, when the signal lock is in the occupied state, determine whether the signal identifier of the first infrared signal is the same as the signal identifier of the infrared signal of the currently occupied signal lock. The signal identifier is used to indicate the signal source of the infrared signal.

[0046] S35: If they are the same, process the first infrared signal.

[0047] S36: If they are not the same, discard the first infrared signal.

[0048] In the disclosed embodiment, the terminal device can use the signal lock to process the infrared signal generated by the infrared remote control. The signal lock only allows the terminal device to process a single infrared signal, and when the signal lock is in an occupied state, the terminal device can only process the infrared signal of the currently occupied signal lock. In this way, when the terminal device receives the first infrared signal corresponding to the target button generated by the infrared remote control, and the signal lock is idle, the first infrared signal can directly occupy the signal lock, and the terminal device processes the first infrared signal. In the case where the signal lock is occupied, it can be determined whether the signal source of the first infrared signal is the same as the signal source of the infrared signal currently occupying the signal lock. If they are the same, it is considered that the first infrared signal and the infrared signal of the currently occupied signal lock are the same signal, and the first infrared signal can be directly processed by the terminal device. If they are different, it is considered that the first infrared signal and the infrared signal of the currently occupied signal lock are not the same signal, and the first infrared signal can be discarded so that the terminal device only processes a single infrared signal. Thereby, the situation where the terminal device processes multiple infrared signals is reduced, and then when multiple infrared remote controllers control the same terminal device, the situation of abnormal infrared signal processing can be reduced.

[0049] Optionally, the signal identifier of the infrared signal is determined according to the signal source and transmission mode of the infrared signal. And the signal identifier of the infrared signal is determined according to the signal source and transmission mode of the infrared signal, including: when the infrared signal is forwarded to the terminal device via the camera, the IP address information of the infrared remote control is determined as the signal identifier of the infrared signal. Or, when the infrared signal is directly sent from the infrared remote control to the terminal device, the ID information of the serial port used to receive the infrared signal is determined as the signal identifier of the infrared signal.

[0050] Combination Figure 2As shown, in the embodiment of the present disclosure, when the infrared remote controller T1 directly sends an infrared signal to the terminal device, the infrared signal is sent to the infrared serial port of the terminal device. When the infrared remote controller T2 sends an infrared signal to the terminal device, the infrared signal is received and forwarded by the camera. For the infrared signal sent by the infrared remote controller T1, the terminal device uses the ID information of the infrared serial port as a signal identifier. For the infrared signal sent by the infrared remote controller T2, the terminal device uses the IP address information of the infrared remote controller T2 as a signal identifier. In this way, when both the infrared remote controller T1 and the infrared remote controller T2 send infrared signals to the terminal device, the infrared signals sent by the infrared remote controller T1 and the infrared remote controller T2 can be distinguished by the signal identifier. In addition, it should be noted that when multiple infrared remote controllers directly send multiple infrared signals to the terminal device in a serial communication mode, since the ID information of the serial ports corresponding to different infrared remote controllers is different, the infrared signals sent by different infrared remote controllers can be identified by different serial port ID information to distinguish the multiple infrared signals sent by the multiple infrared remote controllers. In the case where multiple infrared remote controls indirectly control a terminal device through a camera, the multiple infrared remote controls will send multiple infrared signals to the terminal device through the camera. Since different infrared remote controls have different IP address information corresponding to them, the infrared signals sent by different infrared remote controls can be identified by using different IP address information to distinguish the multiple infrared signals sent by the multiple infrared remote controls.

[0051] Optionally, determining the usage status of the signal lock includes: obtaining a lock identifier of the signal lock. If the lock identifier is an empty identifier, determining that the signal lock is idle. If the lock identifier is not an empty identifier, determining that the signal lock is occupied. The lock identifier is a signal identifier of an infrared signal currently occupying the signal lock.

[0052] In the disclosed embodiment, when the terminal device is processing an infrared signal, the signal lock will be in an occupied use state, and the lock identifier of the signal lock will be updated to be set to the signal identifier of the infrared signal currently occupying the signal lock. The lock identifier of the signal lock is used to reflect the signal source of the infrared signal currently occupying the signal lock. In this way, the method of determining the use state of the signal lock based on whether the lock identifier of the signal lock is an empty identifier can not only determine whether the signal lock is occupied, but also, when the signal lock is occupied, further determine which signal source (i.e., which infrared remote control) the infrared signal currently being processed by the terminal device comes from. Subsequently, when multiple infrared signals sent by the same signal source are received, the lock identifier of the signal lock can be used to determine whether the multiple infrared signals belong to the same signal source, so that the multiple infrared signals sent by the same signal source can be processed normally.

[0053] Optionally, processing the first infrared signal includes: parsing a first control instruction corresponding to the first infrared signal according to a preset mapping relationship, and executing the first control instruction.

[0054] In the disclosed embodiment, the terminal device cannot directly process the first infrared signal, and needs to convert the infrared signal into a control instruction that the terminal device can recognize. In this way, when the terminal device processes the first infrared signal, it can determine the first control instruction corresponding to the first infrared signal according to the mapping relationship between the key value carried by the infrared signal and the control instruction, so that the terminal device executes the first control instruction. Thus, the terminal device can run the function corresponding to the target key in the infrared remote control to meet the user's need to control the terminal device through the infrared remote control.

[0055] Combination Figure 4 As shown, the embodiment of the present disclosure provides another method for processing infrared signals, which can be applied to a terminal device. The method includes:

[0056] S41, receiving a first infrared signal corresponding to a target button generated by an infrared remote controller, wherein the first infrared signal is generated when the target button of the infrared remote controller is pressed.

[0057] S42: When a second infrared signal corresponding to the target button and generated by the infrared remote controller is received within a preset time period, the second infrared signal is processed.

[0058] S43, when the second infrared signal generated by the infrared remote controller and corresponding to the target button is not received within a preset time period, stop processing the first infrared signal and set the lock flag of the signal lock to an empty flag.

[0059] The second infrared signal is generated when a target button of the infrared remote controller is pressed or released.

[0060] Normally, when the target button of the infrared remote controller is pressed short, the terminal device will receive an infrared signal indicating that the target button has been lifted in a short period of time. Alternatively, when the target button of the infrared remote controller is pressed long, the terminal device will receive an infrared signal indicating that the target button has been pressed again in a short period of time. However, during the transmission of the infrared signal from the infrared remote controller to the terminal device, if it is interfered by other signals or the infrared remote controller fails, the infrared signal is easily lost. Since the subsequent infrared signal corresponding to the target button is lost, the terminal device cannot receive the subsequent infrared signal, which may cause the terminal device to continue to execute the infrared signal received previously, resulting in infrared signal processing errors.

[0061] For example, when the target button of the infrared remote control is pressed by the user, a down signal is generated and sent to the terminal device. When the target button of the infrared remote control is lifted, an up signal is generated and sent to the terminal device. When the target button of the infrared remote control is long pressed by the user, the terminal device will receive multiple down signals in a short period of time. However, after the terminal device receives the down signal, if the subsequent up signal is lost during the transmission process, the terminal device may continue to execute the previously received down signal, causing infrared signal processing errors.

[0062] In view of this, in the embodiment of the present disclosure, after receiving the first infrared signal corresponding to the target key, the terminal device can determine whether the second infrared signal corresponding to the target key is received within a preset time length, that is, determine whether the subsequent infrared signal corresponding to the target key is lost. If the second infrared signal is not received within the preset time length, it is determined that the subsequent infrared signal corresponding to the target key may be lost. At this time, the terminal device is controlled to stop processing the first infrared signal, which can reduce the situation of infrared signal processing errors. In addition, when it is determined that the subsequent infrared signal corresponding to the target key may be lost, the lock flag of the signal lock is promptly set to an empty flag, and the signal lock is set to an idle state. Thereby, the situation where the first infrared signal occupies the signal lock for a long time is reduced.

[0063] Optionally, the preset time length is set to t, 300ms≤t≤900ms. More specifically, t=400ms, 500ms, 600ms, 700ms or 800ms.

[0064] Optionally, when the second infrared signal is generated under the condition that the target button of the infrared remote control is pressed, the second control instruction corresponding to the second infrared signal is parsed according to the preset mapping relationship, and the second control instruction is executed. Alternatively, when the second infrared signal is generated under the condition that the target button of the infrared remote control is lifted, the third control instruction corresponding to the second infrared signal is parsed, the third control instruction is executed, and the lock flag of the signal lock is set to an empty flag, so that the signal lock is set to an idle state. In the embodiment of the present disclosure, if the terminal device receives the second infrared signal generated when the target button is lifted within a preset time length, it indicates that the user's control demand for controlling the terminal device through the target button of the infrared remote control has been processed. At this time, timely setting the lock flag of the signal lock to an empty flag and setting the signal lock to an idle state can reduce the situation where the first infrared signal occupies the signal lock for a long time.

[0065] Combination Figure 5 As shown, the embodiment of the present disclosure provides a processing device 500 for infrared signals, which can be integrated into a terminal device. The processing device 500 includes a signal receiving module 501 and a signal processing module 502.

[0066] The signal receiving module 501 is used to receive a first infrared signal corresponding to a target button generated by the infrared remote controller; wherein the first infrared signal is generated when the target button of the infrared remote controller is pressed;

[0067] The signal processing module 502 is used to process the first infrared signal when it is determined that the usage status of the signal lock is an idle state; when it is determined that the usage status of the signal lock is an occupied state, determine whether the signal identifier of the first infrared signal is the same as the signal identifier of the infrared signal of the currently occupied signal lock; wherein the signal identifier is used to characterize the signal source of the infrared signal; if they are the same, process the first infrared signal; if they are not the same, discard the first infrared signal.

[0068] The infrared signal processing device provided in the embodiments of the present disclosure can execute the actions of the terminal device in the above embodiments. Its implementation principle and technical effects are similar and will not be described in detail here.

[0069] Combination Figure 6 As shown, an embodiment of the present disclosure provides an electronic device 600, including a processor 100 and a memory 101. Optionally, the device may also include a communication interface 102 and a bus 103. The processor 100, the communication interface 102, and the memory 101 may communicate with each other through the bus 103. The communication interface 102 may be used for information transmission. The processor 100 may call the logic instructions in the memory 101 to execute the infrared signal processing method of the above embodiment.

[0070] In addition, the logic instructions in the memory 101 described above may be implemented in the form of software functional units and when sold or used as independent products, may be stored in a computer-readable storage medium.

[0071] The memory 101 is a computer-readable storage medium that can be used to store software programs and computer executable programs, such as program instructions / modules corresponding to the method in the embodiment of the present disclosure. The processor 100 executes functional applications and data processing by running the program instructions / modules stored in the memory 101, that is, implements the processing method for infrared signals in the above-mentioned embodiment.

[0072] The memory 101 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function; the data storage area may store data created according to the use of the terminal device, etc. In addition, the memory 101 may include a high-speed random access memory and may also include a non-volatile memory.

[0073] An embodiment of the present disclosure provides a storage medium storing computer executable instructions, wherein the computer executable instructions are configured to execute the above-mentioned processing method for infrared signals.

[0074] The above-mentioned storage medium may be a transient computer-readable storage medium or a non-transitory computer-readable storage medium.

[0075] The technical solution of the embodiment of the present disclosure can be embodied in the form of a software product, which is stored in a storage medium and includes one or more instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in the embodiment of the present disclosure. The aforementioned storage medium may be a non-transient storage medium, including: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes, or a transient storage medium.

[0076] The above description and the accompanying drawings fully illustrate the embodiments of the present disclosure so that those skilled in the art can practice them. Other embodiments may include structural, logical, electrical, process and other changes. The embodiments represent only possible changes. Unless explicitly required, separate components and functions are optional, and the order of operation may vary. The parts and features of some embodiments may be included in or replace the parts and features of other embodiments. Moreover, the words used in this application are only used to describe the embodiments and are not used to limit the claims. As used in the description of the embodiments and the claims, unless the context clearly indicates, the singular forms of "a", "an" and "the" are intended to include plural forms as well. Similarly, the term "and / or" as used in this application refers to any and all possible combinations of listings containing one or more associated ones. In addition, when used in the present application, the term "comprise" and its variants "comprises" and / or comprising refer to the presence of stated features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups thereof. In the absence of further restrictions, the elements defined by the sentence "comprising a ..." do not exclude the presence of other identical elements in the process, method or device comprising the elements. In this article, each embodiment may focus on the differences from other embodiments, and the same and similar parts between the various embodiments may refer to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can refer to the description of the method part.

[0077] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software may depend on the specific application and design constraints of the technical solution. The technicians may use different methods for each specific application to implement the described functions, but such implementations should not be considered to exceed the scope of the embodiments of the present disclosure. The technicians may clearly understand that, for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above may refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.

[0078] In the embodiments disclosed herein, the disclosed methods and products (including but not limited to devices, equipment, etc.) can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units can be only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to implement this embodiment. In addition, each functional unit in the embodiment of the present disclosure may be integrated in a processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit.

[0079] The flowchart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to the embodiment of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. In the description corresponding to the flowchart and the block diagram in the accompanying drawings, the operations or steps corresponding to different boxes can also occur in a different order from the order disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. Each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified functions or actions, or may be implemented by a combination of dedicated hardware and computer instructions.

Claims

1. A method for processing infrared signals, characterized in that: Applied to a terminal device, the terminal device uses a signal lock to process an infrared signal generated by an infrared remote controller; the method comprises: Receiving a first infrared signal corresponding to a target button generated by an infrared remote controller; wherein the first infrared signal is generated under the condition that the target button of the infrared remote controller is pressed; When determining that the usage state of the signal lock is an idle state, processing the first infrared signal; When it is determined that the use state of the signal lock is the occupied state, determining whether the signal identifier of the first infrared signal is the same as the signal identifier of the infrared signal of the currently occupied signal lock; wherein the signal identifier is used to characterize the signal source of the infrared signal; If they are the same, the first infrared signal is processed; if they are not the same, the first infrared signal is discarded.

2. The method according to claim 1, characterized in that The signal identification of the infrared signal is determined according to the signal source and transmission method of the infrared signal.

3. The method according to claim 2, characterized in that According to the signal source and transmission mode of the infrared signal, the signal identification of the infrared signal is determined, including: When the infrared signal is forwarded to the terminal device via the camera, the IP address information of the infrared remote controller is determined as the signal identifier of the infrared signal; or In the case where the infrared signal is directly sent from the infrared remote controller to the terminal device, the ID information of the serial port used to receive the infrared signal is determined as the signal identifier of the infrared signal.

4. The method according to claim 1, characterized in that: Determine the usage status of the signal lock, including: Get the lock ID of the signal lock; When the lock flag is a null flag, it is determined that the signal lock is idle; When the lock flag is not a null flag, it is determined that the signal lock is occupied; The lock identifier is the signal identifier of the infrared signal currently occupying the signal lock.

5. The method according to claim 1, characterized in that: Processing the first infrared signal, including: According to the preset mapping relationship, a first control instruction corresponding to the first infrared signal is parsed; Execute the first control instruction.

6. The method according to claim 5, characterized in that Processing the first infrared signal also includes: The lock identifier of the signal lock is set to the signal identifier of the first infrared signal, so that the signal lock is set to an occupied state.

7. The method according to any one of claims 1 to 6, characterized in that: After receiving a first infrared signal generated by the infrared remote controller and corresponding to the target button, the method further includes: When a second infrared signal corresponding to the target button generated by the infrared remote controller is received within a preset time period, the second infrared signal is processed; or If the second infrared signal generated by the infrared remote controller and corresponding to the target button is not received within a preset time period, the processing of the first infrared signal is stopped, and the lock flag of the signal lock is set to an empty flag; The second infrared signal is generated when a target button of the infrared remote controller is pressed or released.

8. The method according to claim 7, characterized in that Processing the second infrared signal, including: When the second infrared signal is generated under the condition that the target button of the infrared remote controller is pressed, the second control instruction corresponding to the second infrared signal is parsed according to the preset mapping relationship, and the second control instruction is executed; or When the second infrared signal is generated under the condition that the target button of the infrared remote control is lifted, the third control instruction corresponding to the second infrared signal is parsed, the third control instruction is executed, and the lock flag of the signal lock is set to the empty flag to set the signal lock to an idle state.

9. An audio and video integration system, characterized in that: The system includes an infrared remote controller, a camera and a terminal device; wherein: An infrared remote controller, used to generate an infrared signal corresponding to a target button when a user operates the target button; The camera is used to receive the infrared signal corresponding to the target button generated by the infrared remote control, and forward the infrared signal corresponding to the target button to the terminal device; A terminal device, used to implement the method for processing infrared signals as described in any one of claims 1 to 8.

10. An electronic device comprising a processor and a memory storing program instructions, characterized in that: The processor is configured to execute the infrared signal processing method according to any one of claims 1 to 8 when running the program instructions.

11. A storage medium storing program instructions, characterized in that: When the program instructions are executed, the method for processing infrared signals according to any one of claims 1 to 8 is executed.

Citation Information

Patent Citations

  • Method for controlling graphical interface of user by camera and camera

    CN101674449A

  • Share-based mobile payment management unit, terminal and service method

    CN103198399A

  • Display equipment and key transmission fault tolerance method

    CN112073779A

  • Task scheduling method and device, electronic equipment and storage medium

    CN113672364A

  • Serial communication method, device and system for upper computer and driver

    CN115150218A