CN103714690A - Method and device for resolving physical codes from remote control coded pulses - Google Patents

Method and device for resolving physical codes from remote control coded pulses Download PDF

Info

Publication number
CN103714690A
CN103714690A CN201310733542.5A CN201310733542A CN103714690A CN 103714690 A CN103714690 A CN 103714690A CN 201310733542 A CN201310733542 A CN 201310733542A CN 103714690 A CN103714690 A CN 103714690A
Authority
CN
China
Prior art keywords
duration
low level
time interval
pulse
remote control
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.)
Granted
Application number
CN201310733542.5A
Other languages
Chinese (zh)
Other versions
CN103714690B (en
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.)
Xinle Visual Intelligent Electronic Technology Tianjin Co ltd
Leshi Zhixin Electronic Technology Tianjin Co Ltd
Original Assignee
Leshi Zhixin Electronic Technology Tianjin 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 Leshi Zhixin Electronic Technology Tianjin Co Ltd filed Critical Leshi Zhixin Electronic Technology Tianjin Co Ltd
Priority to CN201310733542.5A priority Critical patent/CN103714690B/en
Publication of CN103714690A publication Critical patent/CN103714690A/en
Application granted granted Critical
Publication of CN103714690B publication Critical patent/CN103714690B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method and a device for resolve physical codes from remote control coded pulses. The method and the device are applied to smart televisions. The method comprises the following steps: firstly sequentially obtaining the duration of each low level pulse in remote control coded pulse burst; specific to the duration of each low level pulse, comparing the length of the duration with the length of a default time interval; when the duration is in a first time interval, resolving the low level pulses to which the duration corresponds to binary values 0, and when the first time interval is longer than the duration, judging whether the low level pulses are the original time intervals of the binary valves 0; when the duration is in a second time interval, resolving the low level pulses to which the duration corresponds to binary values 1, and when the second time interval is greater than the duration, judging whether the low level pulses are the original time intervals of the binary valves 1; and generating the physical codes by using all resolved binary values. The accurate resolving of the physical codes is ensured by expanding the first time interval and the second time interval.

Description

From remote control code pulse, parse method and the device of physics code
Technical field
The present invention relates to intelligent television technical field, in particular, relate to parse method and the device of physics code from remote control code pulse.
Background technology
Infrared remote controller is a kind of radio transmitting apparatus, when any one button in Infrared remote controller is pressed, Infrared remote controller first produces the remote control code pulse of button, then remote control code pulse is modulated and formed remote signal, finally by driving circuit, by infrared transmitting tube, remote signal is launched with ultrared form, send infrared remote-controlled signal.In intelligent television, be integrated with radio system, radio system is first transformed into remote signal by infrared receiver by the infrared remote-controlled signal receiving, then remote signal is carried out to demodulation and form remote control code pulse, finally the Infrared remote controller driver by bottom parses physics code from remote control code pulse, and physics code is reported to the operating system on upper strata.So that the operating system on upper strata is further mapped as physics code key assignments and key assignments is reported to application program, the application operating submodule of being answered by application call and key-value pair completes specific application operating.
As shown in Figure 1, conventionally, the code that the remote control code pulse of one-touch action is corresponding at least includes a preamble code and one and forms physics code by 32 bit serial binary values.First 16 in physics code is systematic code, and systematic code does not change with the difference of button, and it is the identification mark arranging in order to represent specific user, to distinguish the infrared remote-controlled signal of dissimilar Infrared remote controller transmitting, thereby prevents maloperation.Latter 16 in physics code comprise 8 bit data codes (also can be called function code) and 8 bit data code radix-minus-one complements, and numeric data code changes along with the difference of button, is the identification mark of button.In addition, in remote control code pulse, by high level or low level, do not represent " 1 " or " 0 " in scale-of-two, but width by a pair of low and high level pulse represents.For example, for preamble code, corresponding above-mentioned width is 13.5ms, and for binary value " 0 ", corresponding above-mentioned width is 1.125ms; For binary value " 1 ", corresponding above-mentioned width is 2.25ms.Therefore, Infrared remote controller driver need to parse physics code according to the width of each paired pulses in remote control code pulse from remote control code pulse.
In the prior art, it is specific as follows that Infrared remote controller driver by bottom parses the method for physics code from remote control code pulse: the duration of using adjacent low and high level pulse in the remote controller codes pulse of timer computational physics code correspondence, by judging that this duration is whether within the scope of predetermined threshold value, and then determine that this section of binary value corresponding to pulse is " 0 " or " 1 ", and this section of binary value corresponding to pulse carried out to record, when the number of the value of record arrive physics code default figure place (as, 32) time, success parses a physics code from remote control code pulse.
But, in said method, in the remote controller codes pulse of use timer computational physics code correspondence may there is error in the duration of adjacent low and high level pulse, in this case, there will be duration because calculating not within the scope of predetermined threshold value, and make driver abandon the problem of this duration, finally cause physics code parse error.
Summary of the invention
In view of this, the invention provides a kind of method and device that parses physics code from remote control code pulse, to overcome the duration due to adjacent low and high level pulse in the remote controller codes pulse of use timer computational physics code correspondence in prior art, may there is error, in this case, there will be duration because calculating not within the scope of predetermined threshold value, and make driver abandon the problem of this duration, finally cause the problem of physics code parse error.
For achieving the above object, the invention provides following technical scheme:
A method that parses physics code from remote control code pulse, is applied to intelligent television, comprising:
Obtain successively the duration of each low level pulse in remote control code pulse section;
For the duration of each low level pulse, the size of more described duration and default time interval;
When the described duration is in very first time interval, low level pulse corresponding to described duration resolved to binary value 0, described very first time interval is greater than and judges whether low level pulse is the original time interval of binary value 0;
When the described duration is in the second time interval, low level pulse corresponding to described duration resolved to binary value 1, described the second time interval is greater than and judges whether low level pulse is the original time interval of binary value 1;
The all binary values that parse are generated to physics code.
Preferably, the described duration of obtaining successively each low level pulse in remote control code pulse section comprises:
Receive the remote control code pulse that infrared receiving circuit reports, described remote control code pulse is corresponding with the button of Infrared remote controller;
When starting, first rising edge of described remote control code pulse starts timer;
Calculate respectively the mistiming of adjacent negative edge and rising edge, the mistiming except first mistiming is the duration of each low level pulse in remote control code pulse section.
Preferably, the mistiming of the adjacent negative edge of described calculating and rising edge comprises:
Obtain the first clocking value, the value of timer when described the first clocking value is described negative edge arrival;
Obtain the second clocking value, the value of timer when described the second clocking value is described rising edge arrival;
The difference of calculating described the second clocking value and described the first clocking value, described difference is the mistiming of adjacent negative edge and rising edge.
Preferably, in described remote control code pulse section, at least comprise 33 low level pulses.
Preferably, described very first time interval was 100000 nanoseconds nanosecond to 999999, and described the second time interval was 900000 nanoseconds nanosecond to 2500000.
A device that parses physics code from remote control code pulse, is applied to intelligent television, comprising:
Duration acquiring unit, for obtaining successively the duration of each low level pulse of remote control code pulse section;
Comparing unit, for the duration for each low level pulse, the size of more described duration and default time interval;
The first resolution unit, for when the described duration is in very first time interval, low level pulse corresponding to described duration resolved to binary value 0, and described very first time interval is greater than and judges whether low level pulse is the original time interval of binary value 0;
The second resolution unit, for when the described duration is in the second time interval, low level pulse corresponding to described duration resolved to binary value 1, and described the second time interval is greater than and judges whether low level pulse is the original time interval of binary value 1;
Physics code resolution unit, for generating physics code by all binary values that parse.
Preferably, described duration acquiring unit comprises:
Remote control code pulse receives subelement, the remote control code pulse reporting for receiving infrared receiving circuit, and described remote control code pulse is corresponding with the button of Infrared remote controller;
Promoter unit, starts timer while starting for first rising edge at described remote control code pulse;
Low level pulse duration computation subunit, the mistiming of calculating respectively adjacent negative edge and rising edge, the mistiming except first mistiming is the duration of each low level pulse in remote control code pulse section.
Preferably, described low level pulse duration computation subunit comprises:
The first computing module, for obtaining the first clocking value, the value of timer when described the first clocking value is described negative edge arrival;
The second computing module, for obtaining the second clocking value, the value of timer when described the second clocking value is described rising edge arrival;
The 3rd computing module, for calculating the difference of described the second clocking value and described the first clocking value, described difference is the mistiming of adjacent negative edge and rising edge.
Preferably, in described remote control code pulse section, at least comprise 33 low level pulses.
Preferably, described very first time interval was 100000 nanoseconds nanosecond to 999999, and described the second time interval was 900000 nanoseconds nanosecond to 2500000.
Known via above-mentioned technical scheme, compared with prior art, the invention discloses a kind of method and device that parses physics code from remote controller codes pulse, the method and application of installation are in intelligent television, first, obtain successively the duration of each low level pulse in remote control code pulse section; For the duration of each low level pulse, the size of duration and default time interval relatively; When the duration is in very first time interval, low level pulse corresponding to duration resolved to binary value 0, very first time interval is greater than and judges whether low level pulse is the original time interval of binary value 0; When the duration is in the second time interval, low level pulse corresponding to duration is resolved to binary value 1, the second time interval and be greater than and judge that whether low level pulse is that the original time of binary value 1 is interval; The all binary values that parse are generated to physics code.By expanding very first time interval and the second time interval, and then guaranteed accurate parsing physics code.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only embodiments of the invention, for those of ordinary skills, do not paying under the prerequisite of creative work, other accompanying drawing can also be provided according to the accompanying drawing providing.
Fig. 1 is coding schematic diagram corresponding to a kind of remote controller codes pulse providing in background technology of the present invention;
Fig. 2 is the disclosed a kind of idiographic flow schematic diagram that parses the method for physics code from remote controller codes pulse of the embodiment of the present invention one;
Fig. 3 is the idiographic flow schematic diagram that the disclosed another kind of the embodiment of the present invention two parses the method for physics code from remote controller codes pulse;
Fig. 4 is the disclosed a kind of concrete structure schematic diagram that parses the device of physics code from remote controller codes pulse of the embodiment of the present invention three;
Fig. 5 is the concrete structure schematic diagram that the disclosed another kind of the embodiment of the present invention four parses the device of physics code from remote controller codes pulse.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
Term " first " in instructions of the present invention and claims and above-mentioned accompanying drawing, " second " etc. are for distinguishing similar object, and needn't be for describing specific order or precedence.The term that should be appreciated that such use suitably can exchange in situation, and this is only to describe the differentiation mode in embodiments of the invention, the object of same alike result being adopted when describing.In addition, term " comprises " and " having " and their any distortion, intention is to cover not exclusive comprising, so that the process that comprises a series of unit, method, system, product or equipment are not necessarily limited to those unit, but can comprise clearly do not list or for other intrinsic unit of these processes, method, product or equipment.
From background technology, may there is error in the duration due to adjacent low and high level pulse in the remote controller codes pulse of use timer computational physics code correspondence in prior art, in this case, there will be duration because calculating not within the scope of predetermined threshold value, and make driver abandon the problem of this duration, finally cause the problem of physics code parse error.
For this reason, the invention discloses a kind of method and device that parses physics code from remote controller codes pulse, the method and application of installation, in intelligent television, first, obtain the duration of each low level pulse in remote control code pulse section successively; For the duration of each low level pulse, the size of duration and default time interval relatively; When the duration is in very first time interval, low level pulse corresponding to duration resolved to binary value 0, very first time interval is greater than and judges whether low level pulse is the original time interval of binary value 0; When the duration is in the second time interval, low level pulse corresponding to duration is resolved to binary value 1, the second time interval and be greater than and judge that whether low level pulse is that the original time of binary value 1 is interval; The all binary values that parse are generated to physics code.By expanding very first time interval and the second time interval, and then guaranteed accurate parsing physics code.
Relevant for the idiographic flow of the above-mentioned method that parses physics code from remote controller codes pulse and the concrete structure that parses the device of physics code from remote controller codes pulse, will be elaborated by following examples.
Embodiment mono-
Referring to accompanying drawing 2, is the disclosed a kind of idiographic flow schematic diagram that parses the method for physics code from remote controller codes pulse of the embodiment of the present invention one, and the method is applied to intelligent television, and this specifically comprises following steps:
S101: the duration of obtaining successively each low level pulse in remote control code pulse section.
Remote control code pulse is that the button that triggers Infrared remote controller by user produces, due in remote control code pulse, by high level or low level, do not represent " 1 " or " 0 " in scale-of-two, but width by a pair of low and high level pulse represents, and, in remote control code pulse, in the paired height pulse of corresponding binary one or " 0 ", the duration of high level is identical, therefore, in the present embodiment, as long as the duration of obtaining successively each low level pulse in remote controller codes pulse burst, just can determine pulse burst with the paired low and high level of its composition corresponding be " 1 " or " 0 " in scale-of-two.
S102: for the duration of each low level pulse, the size of more described duration and default time interval.
Default time interval has two, " 1 " in a corresponding scale-of-two, " 0 " in another corresponding scale-of-two, by comparing the duration of each low level pulse and the size of above-mentioned default time interval, could determine " 1 " in the corresponding scale-of-two of which low level pulse, " 0 " in the corresponding scale-of-two of which low level pulse.
S103: when the described duration is in very first time interval, low level pulse corresponding to described duration resolved to binary value 0, described very first time interval is greater than and judges whether low level pulse is the original time interval of binary value 0.
Whether low level pulse is that the interval corresponding duration of the original time of Binary Zero is 0.565ms left and right, and in the present embodiment, the interval corresponding duration of the very first time is far longer than 0.565ms.
S104: when the described duration is in the second time interval, low level pulse corresponding to described duration resolved to binary value 1, described the second time interval is greater than and judges whether low level pulse is the original time interval of binary value 1.
Whether low level pulse is that the interval corresponding duration of the original time of binary one is 1.69ms left and right, and in the present embodiment, the duration that the second time interval is corresponding is far longer than 1.69ms.
S105: all binary values that parse are generated to physics code.
In this step, be according to parsing order, all binary values that parse are generated to physics code,
The invention discloses a kind of method that parses physics code from remote controller codes pulse, the method is applied to intelligent television, first, obtains successively the duration of each low level pulse in remote control code pulse section; For the duration of each low level pulse, the size of duration and default time interval relatively; When the duration is in very first time interval, low level pulse corresponding to duration resolved to binary value 0, very first time interval is greater than and judges whether low level pulse is the original time interval of binary value 0; When the duration is in the second time interval, low level pulse corresponding to duration is resolved to binary value 1, the second time interval and be greater than and judge that whether low level pulse is that the original time of binary value 1 is interval; The all binary values that parse are generated to physics code.By expanding very first time interval and the second time interval, and then guaranteed accurate parsing physics code.
On the basis of the disclosed embodiment of the invention described above, the invention also discloses the another kind of method that parses physics code from remote control code pulse, will be described in detail by following examples below.
Embodiment bis-
Refer to accompanying drawing 3, for the disclosed another kind of the embodiment of the present invention two parses the method for physics code from remote control code pulse, the method is applied to intelligent television, and the method specifically comprises the steps:
S201: receive the remote control code pulse that infrared receiving circuit reports, described remote control code pulse is corresponding with the button of Infrared remote controller.
S202: start timer when first rising edge of described remote control code pulse starts.
S203: calculate respectively the mistiming of adjacent negative edge and rising edge, the mistiming except first mistiming is the duration of each low level pulse in remote control code pulse section.
It should be noted that, what first mistiming was corresponding is the low level duration of lead code.
Further it should be noted that, the mistiming of the adjacent negative edge of described calculating and rising edge specifically comprises the steps:
Obtain the first clocking value, the value of timer when described the first clocking value is described negative edge arrival;
Obtain the second clocking value, the value of timer when described the second clocking value is described rising edge arrival;
The difference of calculating described the second clocking value and described the first clocking value, described difference is the mistiming of adjacent negative edge and rising edge.
Further it should be noted that, in remote control code pulse section, at least comprise 33 low level pulses, wherein first low level pulse is the low level pulse in preamble code, and remaining is the low level pulse of physics code correspondence.
S204: for the duration of each low level pulse, the size of more described duration and default time interval.
S205: when the described duration is in very first time interval, low level pulse corresponding to described duration resolved to binary value 0, described very first time interval is greater than and judges whether low level pulse is the original time interval of binary value 0.In the present embodiment, interval of the described very first time was 100000 nanoseconds nanosecond to 999999.
S206: when the described duration is in the second time interval, low level pulse corresponding to described duration resolved to binary value 1, described the second time interval is greater than and judges whether low level pulse is the original time interval of binary value 1.In the present embodiment, described the second time interval was 900000 nanoseconds nanosecond to 2500000.
S207: all binary values that parse are generated to physics code.
The invention discloses a kind of method that parses physics code from remote controller codes pulse, the method is applied to intelligent television, first, obtains successively the duration of each low level pulse in remote control code pulse section by timer; For the duration of each low level pulse, the size of duration and default time interval relatively; When the duration is in very first time interval, low level pulse corresponding to duration resolved to binary value 0, very first time interval is greater than and judges whether low level pulse is the original time interval of binary value 0; When the duration is in the second time interval, low level pulse corresponding to duration is resolved to binary value 1, the second time interval and be greater than and judge that whether low level pulse is that the original time of binary value 1 is interval; The all binary values that parse are generated to physics code.By expanding very first time interval and the second time interval, and then guaranteed accurate parsing physics code.
In the disclosed embodiment of the invention described above, describe method in detail, for method of the present invention, can adopt the device of various ways to realize, therefore the invention also discloses a kind of device, provide specific embodiment below and be elaborated.
Embodiment tri-
Referring to accompanying drawing 4, is the disclosed a kind of concrete structure schematic diagram that parses the device of physics code from remote control code pulse of the embodiment of the present invention three, and this application of installation is in intelligent television, and this device specifically comprises as lower unit:
Duration acquiring unit 11, for obtaining successively the duration of each low level pulse of remote control code pulse section.
Comparing unit 12, for the duration for each low level pulse, the size of more described duration and default time interval.
The first resolution unit 13, for when the described duration is in very first time interval, low level pulse corresponding to described duration resolved to binary value 0, and described very first time interval is greater than and judges whether low level pulse is the original time interval of binary value 0.
The second resolution unit 14, for when the described duration is in the second time interval, low level pulse corresponding to described duration resolved to binary value 1, and described the second time interval is greater than and judges whether low level pulse is the original time interval of binary value 1.
Physics code resolution unit 15, for generating physics code by all binary values that parse.
It should be noted that, relevant for the functional description of above-mentioned unit, specifically refer to the related description in embodiment of the method, the present embodiment repeats no more.
Embodiment tetra-
Refer to accompanying drawing 5, for the disclosed another kind of the embodiment of the present invention four parses the concrete structure schematic diagram of the device of physics code from remote control code pulse, this application of installation is in intelligent television, and this device specifically comprises as lower unit:
Remote control code pulse receives subelement 21, the remote control code pulse reporting for receiving infrared receiving circuit, and described remote control code pulse is corresponding with the button of Infrared remote controller.
Promoter unit 22, starts timer while starting for first rising edge at described remote control code pulse.
Low level pulse duration computation subunit 23, the mistiming of calculating respectively adjacent negative edge and rising edge, the mistiming except first mistiming is the duration of each low level pulse in remote control code pulse section.
It should be noted that, described low level pulse duration computation subunit specifically comprises: the first computing module, and for obtaining the first clocking value, the value of timer when described the first clocking value is described negative edge arrival; The second computing module, for obtaining the second clocking value, the value of timer when described the second clocking value is described rising edge arrival; The 3rd computing module, for calculating the difference of described the second clocking value and described the first clocking value, described difference is the mistiming of adjacent negative edge and rising edge.
Further it should be noted that, in described remote control code pulse section, at least comprise 33 low level pulses.
Comparing unit 24, for the duration for each low level pulse, the size of more described duration and default time interval.
The first resolution unit 25, for when the described duration is in very first time interval, low level pulse corresponding to described duration resolved to binary value 0, and described very first time interval is greater than and judges whether low level pulse is the original time interval of binary value 0; In the present embodiment, interval of the described very first time was 100000 nanoseconds nanosecond to 999999.
The second resolution unit 26, for when the described duration is in the second time interval, low level pulse corresponding to described duration resolved to binary value 1, and described the second time interval is greater than and judges whether low level pulse is the original time interval of binary value 1; In the present embodiment, described the second time interval was 900000 nanoseconds nanosecond to 2500000.
Physics code resolution unit 27, for generating physics code by all binary values that parse.
It should be noted that, relevant for the functional description of above-mentioned unit, specifically refer to the related description in embodiment of the method, the present embodiment repeats no more.
In sum:
The invention discloses a kind of method and device that parses physics code from remote controller codes pulse, the method and application of installation, in intelligent television, first, obtain the duration of each low level pulse in remote control code pulse section successively; For the duration of each low level pulse, the size of duration and default time interval relatively; When the duration is in very first time interval, low level pulse corresponding to duration resolved to binary value 0, very first time interval is greater than and judges whether low level pulse is the original time interval of binary value 0; When the duration is in the second time interval, low level pulse corresponding to duration is resolved to binary value 1, the second time interval and be greater than and judge that whether low level pulse is that the original time of binary value 1 is interval; The all binary values that parse are generated to physics code.By expanding very first time interval and the second time interval, and then guaranteed accurate parsing physics code.
In this instructions, each embodiment adopts the mode of going forward one by one to describe, and each embodiment stresses is the difference with other embodiment, between each embodiment identical similar part mutually referring to.For the disclosed device of embodiment, because it corresponds to the method disclosed in Example, so description is fairly simple, relevant part partly illustrates referring to method.
It should be noted that in addition, device embodiment described above is only schematic, the wherein said unit as separating component explanation can or can not be also physically to separate, the parts that show as unit can be or can not be also physical locations, can be positioned at a place, or also can be distributed in a plurality of network element.Can select according to the actual needs some or all of module wherein to realize the object of the present embodiment scheme.In addition, in device embodiment accompanying drawing provided by the invention, the annexation between module represents to have communication connection between them, specifically can be implemented as one or more communication bus or signal wire.Those of ordinary skills, in the situation that not paying creative work, are appreciated that and implement.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add essential common hardware by software and realize, and can certainly comprise that special IC, dedicated cpu, private memory, special-purpose components and parts etc. realize by specialized hardware.Generally, all functions being completed by computer program can realize with corresponding hardware at an easy rate, and the particular hardware structure that is used for realizing same function can be also diversified, such as mimic channel, digital circuit or special circuit etc.But software program realization is better embodiment under more susceptible for the purpose of the present invention condition.Understanding based on such, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in the storage medium can read, as the floppy disk of computing machine, USB flash disk, portable hard drive, ROM (read-only memory) (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc., comprise that some instructions are with so that a computer equipment (can be personal computer, server, or the network equipment etc.) method described in each embodiment of execution the present invention.
In sum, above embodiment only, in order to technical scheme of the present invention to be described, is not intended to limit; Although the present invention is had been described in detail with reference to above-described embodiment, those of ordinary skill in the art is to be understood that: its technical scheme that still can record the various embodiments described above is modified, or part technical characterictic is wherein equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (10)

1. from remote control code pulse, parse a method for physics code, it is characterized in that, be applied to intelligent television, comprising:
Obtain successively the duration of each low level pulse in remote control code pulse section;
For the duration of each low level pulse, the size of more described duration and default time interval;
When the described duration is in very first time interval, low level pulse corresponding to described duration resolved to binary value 0, described very first time interval is greater than and judges whether low level pulse is the original time interval of binary value 0;
When the described duration is in the second time interval, low level pulse corresponding to described duration resolved to binary value 1, described the second time interval is greater than and judges whether low level pulse is the original time interval of binary value 1;
The all binary values that parse are generated to physics code.
2. method according to claim 1, is characterized in that, the described duration of obtaining successively each low level pulse in remote control code pulse section comprises:
Receive the remote control code pulse that infrared receiving circuit reports, described remote control code pulse is corresponding with the button of Infrared remote controller;
When starting, first rising edge of described remote control code pulse starts timer;
Calculate respectively the mistiming of adjacent negative edge and rising edge, the mistiming except first mistiming is the duration of each low level pulse in remote control code pulse section.
3. method according to claim 2, is characterized in that, the mistiming of the adjacent negative edge of described calculating and rising edge comprises:
Obtain the first clocking value, the value of timer when described the first clocking value is described negative edge arrival;
Obtain the second clocking value, the value of timer when described the second clocking value is described rising edge arrival;
The difference of calculating described the second clocking value and described the first clocking value, described difference is the mistiming of adjacent negative edge and rising edge.
4. method according to claim 1, is characterized in that, at least comprises 33 low level pulses in described remote control code pulse section.
5. method according to claim 1, is characterized in that, described very first time interval was 100000 nanoseconds nanosecond to 999999, and described the second time interval was 900000 nanoseconds nanosecond to 2500000.
6. from remote control code pulse, parse a device for physics code, it is characterized in that, be applied to intelligent television, comprising:
Duration acquiring unit, for obtaining successively the duration of each low level pulse of remote control code pulse section;
Comparing unit, for the duration for each low level pulse, the size of more described duration and default time interval;
The first resolution unit, for when the described duration is in very first time interval, low level pulse corresponding to described duration resolved to binary value 0, and described very first time interval is greater than and judges whether low level pulse is the original time interval of binary value 0;
The second resolution unit, for when the described duration is in the second time interval, low level pulse corresponding to described duration resolved to binary value 1, and described the second time interval is greater than and judges whether low level pulse is the original time interval of binary value 1;
Physics code resolution unit, for generating physics code by all binary values that parse.
7. device according to claim 6, is characterized in that, described duration acquiring unit comprises:
Remote control code pulse receives subelement, the remote control code pulse reporting for receiving infrared receiving circuit, and described remote control code pulse is corresponding with the button of Infrared remote controller;
Promoter unit, starts timer while starting for first rising edge at described remote control code pulse;
Low level pulse duration computation subunit, the mistiming of calculating respectively adjacent negative edge and rising edge, the mistiming except first mistiming is the duration of each low level pulse in remote control code pulse section.
8. device according to claim 7, is characterized in that, described low level pulse duration computation subunit comprises:
The first computing module, for obtaining the first clocking value, the value of timer when described the first clocking value is described negative edge arrival;
The second computing module, for obtaining the second clocking value, the value of timer when described the second clocking value is described rising edge arrival;
The 3rd computing module, for calculating the difference of described the second clocking value and described the first clocking value, described difference is the mistiming of adjacent negative edge and rising edge.
9. device according to claim 6, is characterized in that, at least comprises 33 low level pulses in described remote control code pulse section.
10. device according to claim 6, is characterized in that, described very first time interval was 100000 nanoseconds nanosecond to 999999, and described the second time interval was 900000 nanoseconds nanosecond to 2500000.
CN201310733542.5A 2013-12-23 2013-12-23 The method and device of physics code is parsed from remote control code pulse Active CN103714690B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310733542.5A CN103714690B (en) 2013-12-23 2013-12-23 The method and device of physics code is parsed from remote control code pulse

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310733542.5A CN103714690B (en) 2013-12-23 2013-12-23 The method and device of physics code is parsed from remote control code pulse

Publications (2)

Publication Number Publication Date
CN103714690A true CN103714690A (en) 2014-04-09
CN103714690B CN103714690B (en) 2018-03-06

Family

ID=50407618

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310733542.5A Active CN103714690B (en) 2013-12-23 2013-12-23 The method and device of physics code is parsed from remote control code pulse

Country Status (1)

Country Link
CN (1) CN103714690B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016127809A1 (en) * 2015-02-09 2016-08-18 张春雨 Microprocessor-based infrared signal decoding method
CN108259958A (en) * 2018-02-07 2018-07-06 深圳创维-Rgb电子有限公司 Remote keying response method, device, equipment and storage medium
CN110930684A (en) * 2019-12-10 2020-03-27 杭州涂鸦信息技术有限公司 Infrared control method and system supporting multiple coding formats

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001095284A2 (en) * 2000-06-02 2001-12-13 Thomson Licensing S.A. Method and apparatus for remote control transmission
CN101320516A (en) * 2008-07-09 2008-12-10 四川长虹电器股份有限公司 Method for decoding infrared ray by waveshape learning circuit
CN101699533A (en) * 2009-05-08 2010-04-28 和芯微电子(四川)有限公司 Coding and decoding method applicable to remote controller
CN201716854U (en) * 2010-07-19 2011-01-19 王志良 Learning transponder and remote controller and integrated control system provided with same
CN102467816A (en) * 2010-11-18 2012-05-23 深圳艾科创新微电子有限公司 Infrared remote control signal decoding method and device
CN102881150A (en) * 2012-09-13 2013-01-16 厦门华联电子有限公司 Infrared remote control signal learning module and remote control device
CN102938197A (en) * 2012-10-26 2013-02-20 合肥移瑞通信技术有限公司 Method for decoding infrared remote control by means of input capture interrupt mode
CN203025931U (en) * 2012-11-29 2013-06-26 余姚亿威电子科技有限公司 Singlechip-based wireless encoding and decoding remote controller

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001095284A2 (en) * 2000-06-02 2001-12-13 Thomson Licensing S.A. Method and apparatus for remote control transmission
CN101320516A (en) * 2008-07-09 2008-12-10 四川长虹电器股份有限公司 Method for decoding infrared ray by waveshape learning circuit
CN101699533A (en) * 2009-05-08 2010-04-28 和芯微电子(四川)有限公司 Coding and decoding method applicable to remote controller
CN201716854U (en) * 2010-07-19 2011-01-19 王志良 Learning transponder and remote controller and integrated control system provided with same
CN102467816A (en) * 2010-11-18 2012-05-23 深圳艾科创新微电子有限公司 Infrared remote control signal decoding method and device
CN102881150A (en) * 2012-09-13 2013-01-16 厦门华联电子有限公司 Infrared remote control signal learning module and remote control device
CN102938197A (en) * 2012-10-26 2013-02-20 合肥移瑞通信技术有限公司 Method for decoding infrared remote control by means of input capture interrupt mode
CN203025931U (en) * 2012-11-29 2013-06-26 余姚亿威电子科技有限公司 Singlechip-based wireless encoding and decoding remote controller

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016127809A1 (en) * 2015-02-09 2016-08-18 张春雨 Microprocessor-based infrared signal decoding method
CN108259958A (en) * 2018-02-07 2018-07-06 深圳创维-Rgb电子有限公司 Remote keying response method, device, equipment and storage medium
CN108259958B (en) * 2018-02-07 2020-12-22 深圳创维-Rgb电子有限公司 Remote control key response method, device, equipment and storage medium
CN110930684A (en) * 2019-12-10 2020-03-27 杭州涂鸦信息技术有限公司 Infrared control method and system supporting multiple coding formats

Also Published As

Publication number Publication date
CN103714690B (en) 2018-03-06

Similar Documents

Publication Publication Date Title
US3513443A (en) Selective signalling system with receiver generator
CN103648009A (en) Android system based infrared remote control responding method and device and smart television
CN103714690A (en) Method and device for resolving physical codes from remote control coded pulses
CN105187070A (en) Manchester encoding signal decoding method and device
CN108399730A (en) Infrared signal receiver detection method and device
CN111402570A (en) Infrared remote control signal receiving method, receiving system, receiving device and storage medium
CN103957073A (en) Method for data transmission through audio interface
CN103825675A (en) Coding method and apparatus in secondary ultrasonic communication
CN104753538A (en) Method and device for decoding manchester encoding signal
CN101155278A (en) Electrical equipment with multi-remote controller control function and implementing method thereof
CN104541536A (en) Method, user equipment and base station for detecting device to device signals
CN108667515B (en) Port configuration method and communication equipment
CN110223643B (en) Data transmission method, assembly and system and display device
CN103793979B (en) Method for upgrading photon receiving end
CN103729998A (en) Decoding method and device
EP3190726B1 (en) Self-adaptive receiving method, device, and system for radio signal
CN104240492A (en) Method, device and terminal for debugging infrared remote control signals
CN105224305A (en) Function call path decoding method, Apparatus and system
CN103795544A (en) Audio signal transmitting method, mobile terminal and intelligent secret key device
CN100576894C (en) Menu setting system and method to set up
CN107547315B (en) Method and device for optimizing data communication
CN105591716A (en) Serial data communication method, devices and systems based on single carrier
CN101359424A (en) Generating method and system for remote control drive
US9692590B1 (en) Serial data multiplexing
CN108650535B (en) Intelligent device and control method thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: Room 301-1, Room 301-3, Area B2, Animation Building, No. 126 Animation Road, Zhongxin Eco-city, Tianjin Binhai New Area, Tianjin

Patentee after: LE SHI ZHI XIN ELECTRONIC TECHNOLOGY (TIANJIN) Ltd.

Address before: 300453 Tianjin Binhai New Area, Tianjin Eco-city, No. 126 Animation and Animation Center Road, Area B1, Second Floor 201-427

Patentee before: Xinle Visual Intelligent Electronic Technology (Tianjin) Co.,Ltd.

Address after: 300453 Tianjin Binhai New Area, Tianjin Eco-city, No. 126 Animation and Animation Center Road, Area B1, Second Floor 201-427

Patentee after: Xinle Visual Intelligent Electronic Technology (Tianjin) Co.,Ltd.

Address before: 300467 Tianjin Binhai New Area, ecological city, animation Middle Road, building, No. two, B1 District, 201-427

Patentee before: LE SHI ZHI XIN ELECTRONIC TECHNOLOGY (TIANJIN) Ltd.

CP03 Change of name, title or address
PP01 Preservation of patent right

Effective date of registration: 20210201

Granted publication date: 20180306

PP01 Preservation of patent right