CN111225258A - Display apparatus and control method thereof - Google Patents

Display apparatus and control method thereof Download PDF

Info

Publication number
CN111225258A
CN111225258A CN202010022748.7A CN202010022748A CN111225258A CN 111225258 A CN111225258 A CN 111225258A CN 202010022748 A CN202010022748 A CN 202010022748A CN 111225258 A CN111225258 A CN 111225258A
Authority
CN
China
Prior art keywords
remote control
level signal
control data
code
microprocessor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010022748.7A
Other languages
Chinese (zh)
Inventor
聂文哲
陈明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BOE Technology Group Co Ltd
Gaochuang Suzhou Electronics Co Ltd
Original Assignee
BOE Technology Group Co Ltd
Gaochuang Suzhou Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by BOE Technology Group Co Ltd, Gaochuang Suzhou Electronics Co Ltd filed Critical BOE Technology Group Co Ltd
Priority to CN202010022748.7A priority Critical patent/CN111225258A/en
Publication of CN111225258A publication Critical patent/CN111225258A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/4104Peripherals receiving signals from specially adapted client devices
    • H04N21/4126The peripheral being portable, e.g. PDAs or mobile phones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • H04N21/42204User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor

Abstract

The invention relates to a display device and a control method thereof, which are used for enabling a display to have a remote control function, and have the advantages of short development period and low cost. The display device comprises a microprocessor and a receiver; the microprocessor is electrically connected with the receiver; the method comprises the following steps: the receiver converts the received carrier signal into a level signal and outputs the level signal to the microprocessor; the carrier signal comprises information after encoding the remote control data; and the microprocessor receives the level signal, decodes the level signal to obtain remote control data, and controls the display equipment to execute corresponding operation according to the remote control data. The technical scheme of the invention can enable the display to have a remote control function, and has short development period and low cost.

Description

Display apparatus and control method thereof
Technical Field
The invention relates to the technical field of electronics, in particular to a display device and a control method thereof.
Background
In the related art, a display for displaying a monitoring screen generally does not have a remote control function, and is inconvenient for remote control. In order to make the display have the remote control function, if a Microprocessor (MCU) of the display is replaced, a circuit needs to be redesigned and a PCB (printed circuit board) needs to be drawn, so that the development period is long and the cost is high. Therefore, how to provide a remote control function for a display on the premise of short development period and low cost is a technical problem to be solved.
Disclosure of Invention
In order to overcome the problems in the related art, embodiments of the present invention provide a display device and a control method thereof, so as to enable a display to have a remote control function, and have a short development period and a low cost.
According to a first aspect of embodiments of the present invention, there is provided a control method of a display device, the display device including a microprocessor and a receiver; the microprocessor is electrically connected with the receiver; the method comprises the following steps:
the receiver converts the received carrier signal into a level signal and outputs the level signal to the microprocessor; the carrier signal comprises information after encoding the remote control data;
and the microprocessor receives the level signal, decodes the level signal to obtain the remote control data, and controls the display equipment to execute corresponding operation according to the remote control data.
In one embodiment, the microprocessor includes an external interrupt pin electrically connected to an output of the receiver; the external interrupt pin is set to be triggered by a falling edge, and the external interrupt pin is in a high level state when not receiving the level signal.
In one embodiment, before the microprocessor receives the level signal, the microprocessor further includes:
and the microprocessor generates a first interrupt request after detecting the level signal, and executes an external interrupt function in response to the first interrupt request so as to decode the level signal and obtain the remote control data.
In one embodiment, the first interrupt request has a lower priority than a second interrupt request generated by the microprocessor in response to a search signal request, a switch resolution request, or an auto display adjustment request requesting auto display adjustment of a display signal from a VGA line.
In one embodiment, the decoding the level signal to obtain the remote control data includes:
starting a first timer for timing, and calculating the respective time length of each section of low level signal and the respective time length of each section of high level signal in the level signals;
and acquiring the remote control data according to the respective time length of each section of low level signal and the respective time length of each section of high level signal.
In one embodiment, the first timer is a system clock;
when the display equipment is in a starting state, the machine period of the system clock is a first machine period;
when the display equipment is in a power-off state or a standby state, the machine cycle of the system clock is a second machine cycle; the second machine cycle is N times the first machine cycle, where N is an integer greater than 1.
In one embodiment, the remote control data comprises a boot code and a data code;
the controlling the display device to execute corresponding operations according to the remote control data comprises:
when the guiding code is detected to exist in the remote control data, the data code is obtained from the remote control data;
inquiring the corresponding relation between the data code and the operation according to the data code to determine the corresponding operation;
and controlling the display equipment to execute the operation corresponding to the data code.
In one embodiment, the remote control data further comprises a repetition code; after the controlling the display device to execute the operation corresponding to the data code, the method further includes:
detecting whether the repeated codes exist in the remote control data;
and after the fact that the repeated codes exist in the remote control data is detected, executing the operation corresponding to the data codes again.
In one embodiment, the pilot code comprises a low level signal of a first duration and a high level signal of a second duration, and the repetition code comprises a low level signal of the first duration and a high level signal of a third duration; the second duration is greater than the third duration;
the detecting whether the repeated code exists in the remote control data includes:
after detecting that the remote control data has the low level signal with the first duration, detecting whether the remote control data has the high level signal with the second duration;
when the remote control data is not detected to have the high level signal with the second duration, detecting whether the remote control data has the high level signal with the third duration;
after detecting that the high-level signal with the third duration exists in the remote control data, judging whether the state of a signal flag indicates detection of a repeated code;
and if the state of the signal flag indicates that the repeated code is detected, judging that the repeated code is detected.
In one embodiment, before the detecting whether the repetition code exists in the remote control data, the method further includes:
opening a second timer;
after detecting that the repetition code exists in the remote control data and before executing the operation corresponding to the data code again, the method further comprises the following steps:
and determining that the timing time of the second timer is less than a fourth time length.
In one embodiment, the method further comprises:
and controlling the display equipment to display the icon corresponding to the operation on a display interface.
According to a second aspect of the embodiments of the present invention, there is provided a display device, including a microprocessor and a receiver; the microprocessor is electrically connected with the receiver;
the receiver is configured to receive a carrier signal, convert the carrier signal into a level signal, and output the level signal to the microprocessor; the carrier signal comprises information after encoding the remote control data;
the microprocessor is configured to receive the level signal, decode the level signal, obtain the remote control data, and control the display device to execute corresponding operations according to the remote control data.
According to a third aspect of embodiments of the present invention, there is provided a display device comprising a processor and a memory; the memory for storing a computer program; the processor is configured to execute the computer program stored in the memory to implement the above method steps.
According to a fourth aspect of embodiments of the present invention, there is provided a computer-readable storage medium having stored therein a computer program which, when executed by a processor, performs the above-mentioned method steps.
The technical scheme provided by the embodiment of the invention can have the following beneficial effects: the method only needs to add a receiver for receiving the carrier signal on the basis of the original display equipment, convert the received carrier signal into the level signal through the receiver, output the level signal to the microprocessor so that the microprocessor can execute a software program to decode the level signal to obtain the remote control data, and control the display equipment to execute the corresponding operation according to the remote control data, so that the method has the advantages of less hardware needing to be added, short development period and low cost. Therefore, the embodiment of the invention can enable the display to have the remote control function, and has short development period and low cost.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a schematic structural diagram illustrating a display device according to an embodiment of the present invention.
Fig. 2 is a flowchart illustrating a control method of a display apparatus according to an embodiment of the present invention.
Fig. 3 is a schematic diagram illustrating the transmission and reception of remote control data according to an embodiment of the present invention.
Fig. 4 is a schematic structural diagram of a remote controller according to an embodiment of the present invention.
Fig. 5 is a schematic diagram illustrating a carrier signal according to an embodiment of the present invention.
Fig. 6 is a schematic diagram illustrating a level signal according to an embodiment of the present invention.
Fig. 7 is a flowchart illustrating another control method of a display apparatus according to an embodiment of the present invention.
Fig. 8 is a flowchart illustrating another control method of a display apparatus according to an embodiment of the present invention.
Fig. 9 is a flowchart illustrating another control method of a display apparatus according to an embodiment of the present invention.
Fig. 10 is a flowchart illustrating another control method of a display apparatus according to an embodiment of the present invention.
Fig. 11 is a flowchart illustrating another control method of a display apparatus according to an embodiment of the present invention.
Fig. 12 is a block diagram illustrating a display apparatus according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like 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 invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
The embodiment of the invention provides a control method of a display device. As shown in fig. 1, the display device 11 includes a Microprocessor (MCU)12 and a receiver 13. The microprocessor 12 is electrically connected to the receiver 13. As shown in FIG. 2, the control method of the display device includes the following steps 201-202:
in step 201, the receiver converts the received carrier signal into a level signal and outputs the level signal to the microprocessor; the carrier signal includes information encoded with the remote control data.
In one embodiment, the remote control data may be encoded by a remote controller to obtain encoded information of the remote control data, and then the encoded information of the remote control data is modulated into a carrier signal, and then the carrier signal is transmitted.
In one embodiment, as shown in fig. 3, the remote controller 31 may include a resistor R2, an infrared light emitting diode D1, a resistor R1, and a transistor Q1. The receiver 13 may include a photodiode D2. When the remote controller 31 transmits a carrier signal to the resistor R2, the transistor Q1 is turned on, and the infrared light emitting diode D1 transmits an infrared light signal, which includes the carrier signal. The photodiode D2 is turned on when receiving the infrared light signal. The receiver 13 may obtain a carrier signal from the infrared light signal received by the photodiode D2.
As shown in fig. 4, the remote controller 31 may include a power key 311, a signal access key 312, a mute key 313, a determination key 314, an up key 315, a left key 316, a right key 317, a down key 318, a back key 319, a volume up key 320, a volume down key 321, and a home key 322. When a key on the remote controller is pressed, the remote controller can emit an infrared light signal, the infrared light signal comprises a corresponding carrier signal, the carrier signal comprises information obtained by encoding remote control data, and the remote control data is used for indicating the display equipment to execute the operation corresponding to the key. For example, when the mute key 313 is pressed, the remote control data is used to instruct the display device to perform a mute operation corresponding to the mute key 313.
In one embodiment, the display device 11 is provided with five keys (not shown), which are a menu key, a move up key, a move down key, a confirm key, and a power key, respectively, wherein the menu key has a return function. And the remote controller has more signal-in keys 312, mute keys 313, left shift key 316, right shift key 317, volume-up key 320, volume-down key 321, and home key 322 than the display device. When the receiver is added to the display device, the receiver can receive the infrared light signal emitted by the remote controller when the signal access key 312, the mute key 313, the left shift key 316, the right shift key 317, the volume up key 320, the volume down key 321 and the home key 322 on the remote controller are pressed. The receiver 13 may obtain a corresponding carrier signal according to the infrared light signal received by the photodiode D2.
In one embodiment, the remote controller 31 may be a NEC protocol remote controller, as shown in fig. 5, the carrier signal 51 may have a frequency of 38K and a duty cycle of 70%, but is not limited thereto.
In one embodiment, the receiver may convert the received carrier signal into a level signal, wherein the level signal may comprise a high level signal and a low level signal of different durations as shown in fig. 6. The receiver 13 may output the level signal to the microprocessor 12.
In one embodiment, as shown in FIG. 6, the remote control data may include a boot code, an address bar code, a data code, and a data bar code. The address code includes identity information of the remote controller, and the address bar code is used to verify the address code, and may be the same as or different from the address code, and in the remote control data corresponding to the level signal shown in fig. 6, the address bar code is different from the address code. The address codes of the same remote controller are the same, and the address anti-codes of the same remote controller are the same. That is, the address codes in the remote control data corresponding to all the keys on the same remote controller are the same. The data code includes key information, and the data bar is used to verify the data code, and in the remote control data corresponding to the level signal shown in fig. 6, the data bar and the data code are inverted by bit. And the microprocessor controls the display equipment to execute corresponding operation according to the data code. The data codes in the remote control data corresponding to all the keys on the same remote controller are different from each other.
In step 202, the microprocessor receives the level signal, decodes the level signal to obtain remote control data, and controls the display device to perform corresponding operations according to the remote control data.
In one embodiment, the microprocessor may receive the level signal transmitted by the receiver and decode the level signal by executing a software program to obtain the remote control data. Therefore, the remote control function can be realized on the basis of the original display equipment without adding more hardware, the development period is short, and the cost is low.
In one embodiment, the microprocessor 12 includes an external interrupt pin (not shown) that is electrically connected to an output of the receiver 13. The external interrupt pin is in a high level state when not receiving a level signal, and the external interrupt pin is set to be triggered by a falling edge. That is, when the external interrupt pin receives a low level signal, it may be considered that the level signal is detected, and the generation of the first interrupt request may be triggered.
In one embodiment, prior to step 202, the microprocessor generates a first interrupt request upon detecting the level signal and executes an external interrupt function in response to the first interrupt request. In this way, the microprocessor can decode the level signal in the process of executing the external interrupt function to obtain the remote control data.
In one embodiment, the microprocessor may further generate a second interrupt request according to the search signal request, the switch resolution request, or the auto display adjustment request, and execute a corresponding interrupt function in response to the second interrupt request to implement the search signal, the switch resolution, or the auto display adjustment. Wherein, the automatic display is adjusted to VGA signal as AUTO.
In one embodiment, the priority of the first interrupt request is lower than the priority of the second interrupt request. When the microprocessor receives the first interrupt request and the second interrupt request at the same time, the microprocessor may respond to the second interrupt request first, or, in the process of executing the corresponding interrupt function in response to the second interrupt request, if the microprocessor receives the first interrupt request, the microprocessor may respond to the first interrupt request after the execution of the interrupt function corresponding to the second interrupt request is finished. In this way, it is possible to avoid the remote control function from affecting the search signal, switching the resolution, or the automatic display adjustment function.
In one embodiment, the microprocessor may receive the level signal and decode the level signal. Specifically, as shown in fig. 7, the microprocessor receiving the level signal and decoding the level signal may include the following steps 701 to 702:
in step 701, a first timer is started to count time, and a respective time duration of each low level signal and a respective time duration of each high level signal in the level signals are calculated.
In step 702, remote control data is obtained according to the respective duration of each segment of low level signal and the respective duration of each segment of high level signal.
In one embodiment, the microprocessor starts timing by turning on a first timer, calculates the time counted before the level change when the level changes, obtains the duration of a section of the level signal before the level change, and clears and restarts the timing by the first timer until obtaining the respective duration of each section of the low level signal and the respective duration of each section of the high level signal in the level signal. For example, when the low level signal changes to the high level signal, the duration of the low level signal is counted, and the first timer is cleared and starts counting again. When the high-level signal is changed into the low-level signal, the time length of the high-level signal is calculated, and the first timer is cleared and starts timing again.
In one embodiment, the microprocessor may obtain the remote control data based on a respective duration of each of the low level signals and a respective duration of each of the high level signals. For example, when the encoding method employs the following rule, digital remote control data may be acquired based on the respective time duration of each segment of the low level signal and the respective time duration of each segment of the high level signal. In this embodiment, the digital remote control data corresponding to the level signal shown in fig. 6 is 00000100,10010000,00010000, 11101111, and converted into hexadecimal values of 0X20, 0X09, 0X08, and 0XF 7.
a. The remote controller signal is composed of a guide code, an address code, a data code and a data code;
b.9ms low level +4.5ms high level is the bootstrap code;
c.0.56ms low level +0.56ms high level equals to logic level 0;
d.0.56ms low +1.68ms high equals to logic level 1;
e. the high position is behind and the low position is in front.
In one embodiment, the first timer is a system clock. When the display device is in the power-on state, the machine period of the system clock is the first machine period. For example, the first timer is a 16-bit timer, and the upper 8 bits of the timing register are denoted as TH1 and the lower 8 bits are denoted as TL 1. The microprocessor uses an n MHz crystal oscillator, and x clock cycles are a first machine cycle. That is, the first machine period T1 is (1/n) × x ms, and the duration T1 of one level signal is (TH1 × 0xFF + TL1) × T1 is ((TH1 × 0xFF + TL1)/n) × x ms.
In one embodiment, when the display device is in the power-off state or the standby state, the machine cycle of the system clock is a second machine cycle; the second machine period is N times the first machine period, N being an integer greater than 1. That is, the second device period T2 is m × T1, and the duration T2 of one level signal is ((TH1 × 0xFF + TL1)/N) × N ms. The system clock is subjected to frequency reduction when the display equipment is in the shutdown state or the standby state, so that the power consumption of the display equipment in the shutdown state and the standby state can be reduced.
In one embodiment, as shown in fig. 8, controlling the display device to perform corresponding operations according to the remote control data may include the following steps 801 to 803:
in step 801, when the presence of the boot code in the remote control data is detected, the data code is obtained from the remote control data.
In step 802, the corresponding operation is determined according to the corresponding relationship between the data code and the operation.
In step 803, the display device is controlled to perform an operation corresponding to the data code.
In one embodiment, the pilot code includes a low signal for a first duration and a high signal for a second duration, the low signal preceding. For example, the first time period is 9ms and the second time period is 4.5 ms. When the microprocessor detects that the level signal has 9ms low level signal and 4.5ms high level signal, the microprocessor is considered to detect the boot code. When the guiding code is detected to exist in the remote control data, the data code can be obtained from the remote control data, the corresponding operation is determined according to the corresponding relation between the data code and the operation, and then the display equipment is controlled to execute the operation corresponding to the data code.
In one embodiment, after detecting that the boot code exists in the remote control data and before acquiring the data code from the remote control data, the microprocessor further acquires the address code from the remote control data, verifies the address code, and executes the step of acquiring the data code from the remote control data after the verification is passed.
In one embodiment, the method for verifying the address code comprises the following steps: and comparing the address code acquired from the remote control data with the address code stored in advance, if the two are the same, comparing the address code in the remote control data with the address code stored in advance, and if the two are the same, judging that the verification is passed.
In one embodiment, after step 801 and before step 802, further comprising: and verifying the data code. When the verification is passed, step 802 is performed again. The method for verifying the data code comprises the following steps: and judging whether the data code and the data inverse code are inverted according to the bit, and judging that the verification is passed when the data code and the data inverse code are inverted according to the bit. The method for judging whether the data code and the data inverse code are inverted according to the bit is as follows: and judging whether the sum of the data code and the data code reversal is equal to 0XFF or not, and when the sum of the data code and the data code reversal is equal to 0XFF, performing bit-wise reversal on the data code and the data code reversal.
In this embodiment, since only the receiver for receiving the carrier signal needs to be added on the basis of the original display device, the received carrier signal is converted into the level signal by the receiver, and the level signal is output to the microprocessor, so that the microprocessor executes the software program to decode the level signal to obtain the remote control data, and controls the display device to execute the corresponding operation according to the remote control data, the hardware that needs to be added is less, the development cycle is short, and the cost is low. Therefore, the embodiment of the invention can enable the display to have the remote control function, and has short development period and low cost.
In one embodiment, the microprocessor controls the display device to display icons corresponding to the operations on the display interface in the process of controlling the display device to execute the corresponding operations according to the remote control data. For example, when the volume up key 320 is pressed, the remote control data includes a corresponding data code, the microprocessor controls the display device to perform a volume up operation, and controls the display device to display an icon corresponding to the volume up operation on the display interface, where the icon corresponding to the volume up operation may include current volume information and maximum volume information. Therefore, the user can know the result of the remote control operation in time.
The embodiment of the invention also provides a control method of the display equipment. In this embodiment, on the basis of the above embodiment, the remote control data further includes a repetition code to implement a long key function. The long key function is that when one key is continuously pressed, the display device is controlled to repeatedly execute the operation corresponding to the key. In this embodiment, as shown in fig. 9, the step S202 further includes the following steps 901 to 902:
in step 901, it is detected whether a duplicate code exists in the remote control data.
In step 902, after detecting that the remote control data includes the repetition code, the operation corresponding to the data code is executed again.
In one embodiment, the repetition code comprises a low level signal of a first duration and a high level signal of a third duration, the low level signal preceding. The second duration is greater than the third duration. Wherein the first time period may be 9ms and the third time period may be 2.2 ms. When the 9ms low level and the 2.2ms high level are detected, the detection of the repeated codes is determined. After the existence of the repeated codes in the remote control data is detected, the operation corresponding to the data codes can be executed again. For example, when the volume up key 320 is pressed, the corresponding data code is included in the remote control data, and the microprocessor controls the display device to perform the volume up operation. If the volume up key 320 is continuously pressed, the remote control data further includes at least one repetition code, and the microprocessor controls the display device to perform a volume up operation again each time the presence of one repetition code in the remote control data is detected. For example, if two repetitive codes are detected in the remote control data in total, the microprocessor controls the display device to perform volume up operation three times in total.
In one embodiment, before step 901, a second timer is started. And after the fact that the repeated codes exist in the remote control data is detected, determining whether the timing time of the second timer is less than a fourth duration, and when the timing time of the second timer is determined to be less than the fourth duration, executing the operation corresponding to the data codes again. Wherein the fourth time period may be 150 ms. Thus, malfunction can be avoided.
In one embodiment, as shown in FIG. 10, step 901 may include the following steps 1001-1004:
in step 1001, after detecting that there is a low level signal of a first duration in the remote control data, it is detected whether there is a high level signal of a second duration in the remote control data.
In step 1002, when it is not detected that the high level signal of the second duration exists in the remote control data, it is detected whether a high level signal of a third duration exists in the remote control data.
In step 1003, after detecting that a high level signal of a third duration exists in the remote control data, determining whether the state of the flag indicates detecting a repetition code.
In step 1004, if the state of the flag indicates detection of a duplicate code, it is determined that a duplicate code is detected.
In one embodiment, the first duration is 90ms, the second duration is 4.5ms, and the third duration may be 2.2 ms. After detecting that the low level signal of 9ms exists in the remote control data, whether the high level signal of 4.5ms exists in the remote control data is detected first, but whether the high level signal of 2.2ms exists in the remote control data is detected first. In this way, execution of an error code value may be avoided. The specific analysis is as follows:
is it a 2.2ms high signal determined first and then is it a 4.5ms high signal determined when detecting a high signal? Here, a problem is encountered: the software program can assign the code value of the A key to buff which is used for storing a data code when the A key is pressed, if the remote controller sends a carrier signal, the detected latter repeated code is not detected, if the remote controller judges whether the signal is a 2.2ms high level signal, if the signal is judged to be a 2.2ms high level signal, the repeated code is judged to exist, and whether the latter data code is correct or not can not be judged. The full code comprises an address code, a data code and a data code. Therefore, it is necessary to determine whether the signal is a 4.5ms high signal or not, and determine whether the signal is a 2.2ms high signal when it is determined that the signal is not a 4.5ms high signal, so that an error code value is not executed.
The embodiment of the invention also provides a control method of the display equipment. In this embodiment, the microprocessor is provided with variables such as buf, bit _ num, byte _ num, ir _ buf, and Longkey _ flag. buff is used for storing data codes of remote control data. bit _ num is used for storing a bit flag of the remote control data, byte _ num is used for storing a byte flag of the remote control data, ir _ buff is used for storing the remote control data, and Longkey _ flag is used for storing a long key flag.
In the present embodiment, as shown in fig. 11, the method for controlling a display device includes the following steps 1101 to 1122:
in step 1101, the external interrupt pin is high.
In this embodiment, the external interrupt pin of the microprocessor is in a high state when it is not receiving a level signal.
In step 1102, it is determined whether a falling edge trigger is performed. If yes, go to step 1103, otherwise, go to step 1102.
In this embodiment, the microprocessor may detect whether a level signal received by the external interrupt pin is converted to a low level, and determine that a falling edge exists if the level signal is converted to the low level. When a falling edge is detected, a falling edge trigger may be executed, a first interrupt request generated, and an external interrupt function executed in response to the first interrupt request. When the microprocessor executes the external interrupt function, a first timer is started for timing, and the first timer is used for calculating the respective duration of each section of low-level signal and the respective duration of each section of high-level signal in the level signal.
In step 1103, it is determined whether the duration of the low level signal is 9 ms. If yes, go to step 1104, otherwise go to step 1101.
In step 1104, it is determined whether the duration of the high level signal is 4.5 ms. If yes, go to step 1105, otherwise go to step 1119. When the duration of the high-level signal is determined to be 4.5ms, the pilot code is considered to be detected.
1101-1104, for judging whether the guiding code is received.
In step 1105, it is determined whether the duration of the low level signal is 0.56 ms. If yes, go to step 1106, otherwise go to step 1101.
In step 1106, it is determined whether the duration of the high signal is 0.56 ms. If yes, go to step 1107, otherwise go to step 1108. When the duration of the high level signal is determined to be 0.56ms, "0" is determined to be detected.
In step 1107, ir _ buff [ byte _ num ] is shifted to the right by one bit and the upper data of ir _ buff [ byte _ num ] is set to 0. For example, when byte _ num is 0, ir _ buff [0] > > is 1, wherein when byte _ num is 0, it indicates that the address code is being decoded.
In step 1108, it is determined whether the duration of the high signal is 1.68 ms. If yes, go to step 1109, if no, go to step 1101. When the duration of the high level signal is determined to be 1.68ms, "1" is determined to be detected.
In step 1109, ir _ buff [ byte _ num ] is shifted right by one bit, and the upper bit of ir _ buff [ byte _ num ] is set to 1, and the other bits are left unchanged. Here, ir _ buff [ byte _ num ] | 0X80 indicates the upper data position 1 of ir _ buff [ byte _ num ].
In step 1110, the value of bit _ num is incremented by 1. Wherein bit _ num + + means that 1 is added to the value of bit _ num.
In the present embodiment, the initial value of bit _ num + + is 0, but is not limited thereto.
In step 1111, it is determined whether the value of bit _ num is 8. If so, go to step 1112, otherwise go to step 1105. When the value of bit _ num is 8, it is determined that one byte of data has been received.
In step 1112, the value of bit _ num is cleared and the value of byte _ num is incremented by 1.
In step 1113, it is determined whether the value of byte _ num is 4. If yes, go to step 1114, otherwise go to step 1101. When it is determined that the value of byte _ num is 4, it is determined that the decoding of the address code, the address complement, the data code, and the data complement is completed.
And 1105-1113, decoding the level signal.
In step 1114, it is determined whether the data stored in the first byte of ir _ buff is an address code. If yes, go to step 1115, otherwise go to step 1101. The irjbuff [0] ═ address code is used for judging whether the data stored in the first byte in irjbuff is the address code or not.
In step 1115, it is determined whether the data stored in the second byte of ir _ buff is the address complement. If yes, go to step 1116, otherwise go to step 1101. The first byte of the first byte is an address code, and the first byte is an address inverse code.
In step 1116, it is determined whether the data code and the data inverse code are bit-wise inverted. If yes, go to step 1117, otherwise go to step 1101. Wherein, ir _ buff [2] + ir _ buff [3] ═ 0XFF means to determine whether the data code and the data code are bit-wise negated. Wherein, ir _ buff [2] is data of data code, and ir _ buff [3] is data of data code. When the data code and the data inverse code are inverted bit by bit, the value of ir _ buff [2] + ir _ buff [3] is 0 XFF.
Steps 1114 to 1116 are used to verify remote control data.
In step 1117, the value of the third byte in ir _ buff is assigned to buff. The Longkey _ flag is set to 1, and a second timer is started to start timing. Where, buff _ ir _ buff [2] means that the value of the third byte in ir _ buff is given to buff. The Longkey _ flag value is the state of the signal flag. A value of 1 for Longkey _ flag is used to indicate that a repetition code is detected. The second timer is used to assist in detecting whether a key has been pressed for a duration of 110 ms.
In step 1118, the function of the key is performed. Specifically, the display device is controlled to execute corresponding operation according to the value of the buff. The value of buff is the data code. Namely, the microprocessor controls the display device to execute corresponding operation according to the data code.
In step 1119, it is determined whether the duration of the high signal is 2.2 ms. If so, go to step 1120, otherwise, go to step 1122. When the duration of the high level signal is determined to be 2.2ms, it is determined that the repetition code is detected.
In step 1120, it is determined whether the Longkey _ flag value is 1. If yes, go to step 1121, otherwise, go to step 1122.
In step 1121, it is determined whether the counted time is less than 150 ms. If so, go to step 1120, otherwise, go to step 1122. When the determination count time is less than 150ms, it is determined that the repetition code is detected. This avoids duplicate code detection errors.
In step 1122, the Longkey _ flag value is cleared, and the second timer is stopped.
In this embodiment, the repetition code is not detected within 150ms, the buff is empty, and the second timer stops counting; if the repeated code is detected within 150ms, the function of the key is executed again, the buff is not emptied, and the second timer counts again.
In this embodiment, after detecting that the low level signal of 9ms exists in the remote control data, it is detected whether the high level signal of 4.5ms exists in the remote control data first, instead of detecting whether the high level signal of 2.2ms exists in the remote control data first. In this way, execution of an error code value may be avoided. The specific analysis is as follows:
is it a 2.2ms high signal determined first and then is it a 4.5ms high signal determined when detecting a high signal? Here, a problem is encountered: the software program can assign the code value of the A key to buff which is used for storing a data code when the A key is pressed, if the remote controller sends a carrier signal, the detected latter repeated code is not detected, if the remote controller judges whether the signal is a 2.2ms high level signal, if the signal is judged to be a 2.2ms high level signal, the repeated code is judged to exist, and whether the latter data code is correct or not can not be judged. The full code comprises an address code, a data code and a data code. Therefore, it is necessary to determine whether the signal is a 4.5ms high signal or not, and determine whether the signal is a 2.2ms high signal when it is determined that the signal is not a 4.5ms high signal, so that an error code value is not executed.
In this embodiment, the microprocessor will take 67.26ms of system interrupt when receiving the level signal, and will not respond to the remote control function when searching for the signal, switching the resolution and VGA signal to AUTO.
An embodiment of the present invention further provides a display device, as shown in fig. 1, the display device includes a microprocessor 12 and a receiver 13; the microprocessor 12 is electrically connected to the receiver 13.
A receiver 13 configured to receive a carrier signal, convert the carrier signal into a level signal, and output the level signal to the microprocessor; the carrier signal comprises information after encoding the remote control data;
and the microprocessor 12 is configured to receive the level signal, decode the level signal, obtain remote control data, and control the display device to execute corresponding operation according to the remote control data.
The specific manner in which the processor performs the operations with respect to the apparatus in the above-described embodiment has been described in detail in relation to the embodiment of the method, and will not be elaborated upon here.
The embodiment of the invention also provides display equipment. As shown in fig. 12, device 1200 includes a processing component 1222 that further includes one or more processors, and memory resources, represented by memory 1232, for storing instructions, such as applications, that are executable by processing component 1222. The application programs stored in memory 1232 may include one or more modules that each correspond to a set of instructions. Further, the processing component 1222 is configured to execute instructions to perform the control method for controlling a display device described above.
The device 1200 may also include a power component 1226 configured to perform power management of the device 1200, and the device 1200 may operate based on an operating system stored in the memory 1232, such as Windows Server, Mac OS XTM, UnixTM, Linux, FreeBSDTM, or the like.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided that includes instructions, such as memory 1232 that includes instructions, which are executable by the processing component 1222 of the device 1200 to perform the above-described method. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements 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 invention is limited only by the appended claims.

Claims (14)

1. A control method of a display device is characterized in that the display device comprises a microprocessor and a receiver; the microprocessor is electrically connected with the receiver; the method comprises the following steps:
the receiver converts the received carrier signal into a level signal and outputs the level signal to the microprocessor; the carrier signal comprises information after encoding the remote control data;
and the microprocessor receives the level signal, decodes the level signal to obtain the remote control data, and controls the display equipment to execute corresponding operation according to the remote control data.
2. The method of claim 1, wherein the microprocessor includes an external interrupt pin, the external interrupt pin being electrically connected to an output of the receiver;
the external interrupt pin is set to be triggered by a falling edge, and the external interrupt pin is in a high level state when not receiving the level signal.
3. The method of claim 1, wherein before the microprocessor receives the level signal, further comprising:
and the microprocessor generates a first interrupt request after detecting the level signal, and executes an external interrupt function in response to the first interrupt request so as to decode the level signal and obtain the remote control data.
4. The method of claim 3, wherein the first interrupt request has a lower priority than a second interrupt request generated by the microprocessor based on a search signal request, a switch resolution request, or an auto display adjustment request requesting auto display adjustment of a display signal from a VGA line.
5. The method of claim 1, wherein said decoding the level signal to obtain the remote control data comprises:
starting a first timer for timing, and calculating the respective time length of each section of low level signal and the respective time length of each section of high level signal in the level signals;
and acquiring the remote control data according to the respective time length of each section of low level signal and the respective time length of each section of high level signal.
6. The method of claim 5, wherein the first timer is a system clock;
when the display equipment is in a starting state, the machine period of the system clock is a first machine period;
when the display equipment is in a power-off state or a standby state, the machine cycle of the system clock is a second machine cycle; the second machine period is N times the first machine period, N being an integer greater than 1.
7. The method of claim 1, wherein the remote control data comprises a boot code and a data code;
the controlling the display device to execute corresponding operations according to the remote control data comprises:
when the guiding code is detected to exist in the remote control data, the data code is obtained from the remote control data;
inquiring the corresponding relation between the data code and the operation according to the data code to determine the corresponding operation;
and controlling the display equipment to execute the operation corresponding to the data code.
8. The method of claim 7, wherein the remote control data further comprises a repetition code; after the controlling the display device to execute the operation corresponding to the data code, the method further includes:
detecting whether the repeated codes exist in the remote control data;
and after the fact that the repeated codes exist in the remote control data is detected, executing the operation corresponding to the data codes again.
9. The method of claim 8, wherein the pilot code comprises a low level signal of a first duration and a high level signal of a second duration, and the repetition code comprises a low level signal of a first duration and a high level signal of a third duration; the second duration is greater than the third duration;
the detecting whether the repeated code exists in the remote control data includes:
after detecting that the remote control data has the low level signal with the first duration, detecting whether the remote control data has the high level signal with the second duration;
when the remote control data is not detected to have the high level signal with the second duration, detecting whether the remote control data has the high level signal with the third duration;
after detecting that the high-level signal with the third duration exists in the remote control data, judging whether the state of a signal flag indicates detection of a repeated code;
and if the state of the signal flag indicates that the repeated code is detected, judging that the repeated code is detected.
10. The method of claim 8, wherein prior to detecting whether the repetition code is present in the remote control data, further comprising:
opening a second timer;
after detecting that the repetition code exists in the remote control data and before executing the operation corresponding to the data code again, the method further comprises the following steps:
and determining that the timing time of the second timer is less than a fourth time length.
11. The method of claim 1, further comprising:
and controlling the display equipment to display the icon corresponding to the operation on a display interface.
12. A display device, comprising a microprocessor and a receiver; the microprocessor is electrically connected with the receiver;
the receiver is configured to receive a carrier signal, convert the carrier signal into a level signal, and output the level signal to the microprocessor; the carrier signal comprises information after encoding the remote control data;
the microprocessor is configured to receive the level signal, decode the level signal, obtain the remote control data, and control the display device to execute corresponding operations according to the remote control data.
13. A display device comprising a processor and a memory; the memory for storing a computer program; the processor, for executing the computer program stored on the memory, implements the method steps of any of claims 1-11.
14. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of claims 1 to 11.
CN202010022748.7A 2020-01-09 2020-01-09 Display apparatus and control method thereof Pending CN111225258A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010022748.7A CN111225258A (en) 2020-01-09 2020-01-09 Display apparatus and control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010022748.7A CN111225258A (en) 2020-01-09 2020-01-09 Display apparatus and control method thereof

Publications (1)

Publication Number Publication Date
CN111225258A true CN111225258A (en) 2020-06-02

Family

ID=70831067

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010022748.7A Pending CN111225258A (en) 2020-01-09 2020-01-09 Display apparatus and control method thereof

Country Status (1)

Country Link
CN (1) CN111225258A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111757157A (en) * 2020-06-30 2020-10-09 深圳Tcl新技术有限公司 Infrared code processing method, television and system
CN113706851A (en) * 2021-08-13 2021-11-26 珠海格力智能装备有限公司 Remote controller infrared signal decoding method and device and remote controller
CN113938732A (en) * 2021-10-18 2022-01-14 深圳创维-Rgb电子有限公司 Remote controller command execution method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1016054A1 (en) * 1996-12-18 2000-07-05 Neil D. Terk System for extending infrared remote control
CN201035722Y (en) * 2007-06-06 2008-03-12 赵合运 Novel computer remote controller and receiver
CN101404113A (en) * 2008-11-06 2009-04-08 成都九洲电子信息系统有限责任公司 Method for implementing infrared remote control decoding by software in embedded system
CN105049935A (en) * 2015-07-30 2015-11-11 Tcl集团股份有限公司 Method and system for managing screen end program of modularized television

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1016054A1 (en) * 1996-12-18 2000-07-05 Neil D. Terk System for extending infrared remote control
CN201035722Y (en) * 2007-06-06 2008-03-12 赵合运 Novel computer remote controller and receiver
CN101404113A (en) * 2008-11-06 2009-04-08 成都九洲电子信息系统有限责任公司 Method for implementing infrared remote control decoding by software in embedded system
CN105049935A (en) * 2015-07-30 2015-11-11 Tcl集团股份有限公司 Method and system for managing screen end program of modularized television

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111757157A (en) * 2020-06-30 2020-10-09 深圳Tcl新技术有限公司 Infrared code processing method, television and system
CN113706851A (en) * 2021-08-13 2021-11-26 珠海格力智能装备有限公司 Remote controller infrared signal decoding method and device and remote controller
CN113938732A (en) * 2021-10-18 2022-01-14 深圳创维-Rgb电子有限公司 Remote controller command execution method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN111225258A (en) Display apparatus and control method thereof
US4764981A (en) Remote control circuit
RU2604422C1 (en) Method and apparatus for transmitting infrared signal and remote control panel
US8295407B2 (en) Decoding method and apparatus for infrared remote control commands
US7065332B2 (en) Remote control receiving system
CN107809286B (en) Infrared signal anti-interference processing method and device, air conditioner and readable storage medium
JPS643399B2 (en)
CN101465050B (en) Method for controlling controlled electric appliance through remote controller and remote controller
CN112583878B (en) Vehicle information checking method, device, equipment and medium
US20060181430A1 (en) Method and apparatus for automatically recognizing/establishing remote-controller communication mode for use in digital electronic devices
JP2005012508A (en) Remote controller malfunction preventing apparatus, electronic apparatus and remote control transmitter which are provided with function of preventing malfunction of remote controller, and remote controller malfunction preventing method
CN112562307B (en) IIC signal transmission system, IIC signal transmission method, and storage medium
CN101127156A (en) Universal method for identifying remote control instruction and the related device
CN112379797A (en) Key touch method and device, touch equipment and readable storage medium
CN208256093U (en) A kind of remote-control key fault detection means
JPH10111737A (en) Resetting device
US20120281143A1 (en) Numeric Input Using Navigation Keys
JP2013121175A (en) Wireless receiver, control method of wireless receiver, wireless reception program and recording medium storing wireless reception program
US11816060B2 (en) UART interface circuit and UART data capturing method
US8072315B2 (en) Method and apparatus for universally decoding commands of a remote controller
KR100197375B1 (en) Remote control receiver for a/v apparatus
JP2005191926A (en) Remote control receiver
CN113685976A (en) Air conditioner control method and device, storage medium and air conditioner
CN114167741A (en) Control instruction transmission method, device and storage medium
US10372189B2 (en) Power-saving method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: No.1088 Dajing Road, Wujiang Economic and Technological Development Zone, Suzhou City, Jiangsu Province

Applicant after: K-TRONICS (SUZHOU) TECHNOLOGY Co.,Ltd.

Applicant after: BOE TECHNOLOGY GROUP Co.,Ltd.

Address before: 100015 No. 10, Jiuxianqiao Road, Beijing, Chaoyang District

Applicant before: BOE TECHNOLOGY GROUP Co.,Ltd.

Applicant before: K-TRONICS (SUZHOU) TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
RJ01 Rejection of invention patent application after publication

Application publication date: 20200602

RJ01 Rejection of invention patent application after publication