CN102693623A - Method and device for realizing infrared remote control based on Android system - Google Patents

Method and device for realizing infrared remote control based on Android system Download PDF

Info

Publication number
CN102693623A
CN102693623A CN2012101414819A CN201210141481A CN102693623A CN 102693623 A CN102693623 A CN 102693623A CN 2012101414819 A CN2012101414819 A CN 2012101414819A CN 201210141481 A CN201210141481 A CN 201210141481A CN 102693623 A CN102693623 A CN 102693623A
Authority
CN
China
Prior art keywords
module
infrared
remote control
android system
state
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
CN2012101414819A
Other languages
Chinese (zh)
Other versions
CN102693623B (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.)
Shenzhen Jinxuan Technology Co.,Ltd.
Original Assignee
FOXDA TECHNOLOGY INDUSTRIAL (SHENZHEN) 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 FOXDA TECHNOLOGY INDUSTRIAL (SHENZHEN) Co Ltd filed Critical FOXDA TECHNOLOGY INDUSTRIAL (SHENZHEN) Co Ltd
Priority to CN201210141481.9A priority Critical patent/CN102693623B/en
Publication of CN102693623A publication Critical patent/CN102693623A/en
Priority to PCT/CN2013/075357 priority patent/WO2013166973A1/en
Application granted granted Critical
Publication of CN102693623B publication Critical patent/CN102693623B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C23/00Non-electrical signal transmission systems, e.g. optical systems
    • G08C23/04Non-electrical signal transmission systems, e.g. optical systems using light waves, e.g. infrared

Abstract

The invention relates to the field of remote control technology and specifically relates to a method for realizing infrared remote control based on an Android system. The method comprises the steps of: S1, detecting and determining whether the Android system has carrier waves or not, and recording and storing time when the carrier waves stay at a high and low electrical level in various states; and S2, emitting infrared carrier waves based on detection results stored in S1. According to the invention, an interrupt mode is not adopted, but rapid query is adopted and fuzzy identification is further adopted to solve a non-real-time Linux Kernel bottleneck problem; and the system is enabled to emit the carrier waves with a frequency up to 455 K.

Description

Realize the method and the device of infrared remote control based on the Android system
Technical field
The present invention relates to the telecontrol engineering field, be specifically related to a kind of method that realizes infrared remote control based on the Android system.
Background technology
Along with the variation day by day of handheld mobile device, the technology of recording of information/storage and transmission is further developed, and transmission manner is divided into two kinds haply; A kind of is wire transmission, mainly is to utilize cable transmission mediums such as (CABLE), and these equipment are connected; Realize the purpose of transmission and exchange message; Like data line in the handheld device etc., this transmission has reliable character, and weak point is to provide a special cable; And another kind of transmission mode is a wireless transmission; Such as common infrared remote control; Mainly be to carry out the transmission and the exchange of information as transmission medium, and, can any handheld device that have this agreement be carried out wireless connections because the host-host protocol in wireless transmission has higher reliability with infrared ray (IrDA); Thereby this kind transmission mode has higher use value; Applied in the various electronic goods at wireless transmission method in recent years, like mobile phone/MP3 etc., a kind of mobile phone infrared remote nine-way control switch that has been 200610112398.3 disclosure of the Invention like the patent No.; And the patent No. a kind of mobile phone that is 201110082317.0 disclosure of the Invention realizes the method for network download type function of infrared remote control, and these patented technologies are uses infrared method to carry out the transmission and the exchange of data.
Since in recent years popular Android system be a kind of be the open source code operating system on basis with Linux, Linux has not only optimized operation interface, the easy simplification of operation has improved efficient more, is an outstanding operating system nucleus.It mainly also is to use in like portable mobile devices such as mobile phone, panel computers; And Android operating system is actually a kind of change and expansion to (SuSE) Linux OS; Its kernel is exactly the kernel of Linux basically, and difference special principal feature to mobile phone and mobile device on user's space has been done bigger improvement and enhancing.
Because the kernel Linux Kernel of Linux is a non real-time; That is can not realize real-time Interrupt Process function; The carrier wave of infrared protocol generally all is 38K people's frequency; Just the fastest interval needs 26 are delicate will to come an interruption, and Linux Kernel can handle so fast interruption comparatively speaking, so mobile devices such as existing Android mobile phone can not be realized function of infrared remote control basically.
Therefore, method and the device developed based on Android system realization infrared remote control are the technical barriers that those skilled in the art need capture.
Summary of the invention
The technical matters that the present invention will solve provides a kind of method that can on the equipment such as mobile phone that use Android, realize function of infrared remote control.
The present invention seeks to realize through following technical scheme: a kind of method that realizes infrared remote control based on the Android system may further comprise the steps:
The first step, detection judge whether the Android system has carrier wave, and register system carrier wave under each state is in the time and the storage of high-low level;
Second step, launch infrared carrier wave according to the result of the detection of storing in the first step.
Preferably, before the said first step, also comprise infrared signal demodulation and decoding step, infrared signal is simulated in the external world converted into digital signal.
Preferably, wherein, the state of said system comprises:
The Z1 state, there is carrier wave in system and is in high level; The Z2 state, there is carrier wave in system and is in low level;
The Z3 state, system's carrierfree also is in high level; The Z4 state, system's carrierfree also is in low level.
Preferably, the said first step further comprises:
The 3rd step: whether the Android system detects has carrier wave, if any then getting into for the 4th step, does not then carry out for the 6th step as having;
The 4th step: whether the Android system detects said carrier wave is high level, and then system is in the Z1 state in this way, writes down the duration of said high level and turns back to the first step, as not being then to continue to carry out next step;
The 5th step: system gets into the Z2 state, whether judges said low level time greater than 300us, if continue then write down the said duration and eliminate the system carrier sign; Otherwise the direct retrieval system first step.
The 6th step: whether the Android system detects said carrier wave is high level, and then system is in the Z3 state in this way, writes down the duration of said high level and turns back to the first step, otherwise get into next step;
The 7th step: system gets into the Z4 state, whether judges said low level time greater than 30ms, the then directly detection of ends with system in this way, otherwise write down said low duration and return the step first step.
Preferably, said second step specifically comprises:
Detect the carrier frequency whether 445K is arranged, carry out data transmission if any the infrared signal butt joint of then launching 455K; Otherwise the infrared signal butt joint of emission 38K.
Another object of the present invention is to provide a kind of and be used to realize that above-mentioned Android system realizes the device of the method for infrared remote control.
A kind of Android system that realizes realizes the device of the method for infrared remote control; Comprise the infrared study module of accepting; Infrared transmission module; The said infrared study module of accepting comprises: hardware demodulation circuit, decoder module and first coding module, and said hardware demodulation circuit links to each other with decoder module, and said decoder module links to each other with first coding module;
Said infrared transmission module comprises: second coding module, hardware radiating circuit, said second coding module links to each other with first coding module and hardware radiating circuit.
Preferably, the device of realizing the method for Android system realization infrared remote control of the present invention, said first coding module comprises first judge module and recording storage module.
Preferably, the device of realizing the method for Android system realization infrared remote control of the present invention, said second coding module comprises second judge module.
The present invention has following beneficial effect: method of the present invention does not adopt the mode of interruption; But employing fast query; Add fuzzy diagnosis, solved non real-time this bottleneck problem of Linux Kernel, the system that makes sends the highest carrier wave that can reach the 455K frequency.
Description of drawings
In order to be easy to explanation, the present invention is done to describe in detail by following preferred embodiment and accompanying drawing.
Fig. 1 carries out the process flow diagram that carrier wave detects for the present invention;
Fig. 2 carries out the process flow diagram of infrared emission for the present invention;
The system architecture diagram that Fig. 3 realizes for the present invention;
Fig. 4 is the Organization Chart of first coding module of the present invention.
Embodiment
Shown in Fig. 1-3; Realization of the present invention realizes the device of the method for infrared remote control based on the Android system; Comprise the infrared study module 1 of accepting, infrared transmission module 2, the said infrared study module 1 of accepting comprises: hardware demodulation circuit 3, decoder module 4 and first coding module 5; Said hardware demodulation circuit 3 links to each other with decoder module 4, and said decoder module 4 links to each other with first coding module 5; Said infrared transmission module 2 comprises: second coding module 6, hardware radiating circuit 7, and said second coding module 6 links to each other with first coding module 5 and hardware radiating circuit 7; Said first coding module 5 comprises first judge module 51 and recording storage module 52; Said second coding module 6 comprises second judge module 61.
The present invention is realizing that the Android system realizes the step of the method for infrared remote control; May further comprise the steps: the first step, 51 first judge modules detect to judge whether the Android system has carrier wave, and are in the time of high-low level through recording storage module 52 system recorder memories carrier wave under each state;
In system before at first; Through hardware demodulation circuit 3 and decoder module 4 with infrared signal demodulation and decoding step; Infrared signal is simulated in the external world converted into digital signal; Wherein hardware demodulation circuit 3 all belongs to prior art for basic circuit common, decoder module 4 are to realize through general software approach, is not giving unnecessary details at this.
Wherein, the state of said system comprises:
The Z1 state, there is carrier wave in system and is in high level; The Z2 state, there is carrier wave in system and is in low level;
The Z3 state, system's carrierfree also is in high level; The Z4 state, system's carrierfree also is in low level.
Recording storage module 52 register system respectively is in time of high-low level under Z1, Z2, Z3, Z4 one of four states.
Wherein the first step further comprises:
The 3rd step: the first inspection judge module 51 detects whether carrier wave is arranged, and if any then getting into for the 4th step, does not then carry out for the 6th step as having;
The 4th step: the first inspection judge module 51 detects whether said carrier wave is high level, and then system is in the Z1 state in this way, and recording storage module 52 records are also stored the duration of said high level and turned back to first step, as not being then to continue to carry out next step;
The 5th step: system gets into the Z2 state, and whether the first inspection judge module 51 judges said low level time greater than 300us, if then recording storage module 52 writes down and stores the said duration and eliminate the system carrier sign; Otherwise direct retrieval system first step.
The 6th step: the first inspection judge module 51 detects to judge whether said carrier wave is high level, and then system is in the Z3 state in this way, and recording storage module 52 records are also stored the duration of said high level and turned back to first step, otherwise get into next step;
The 7th step: system gets into the Z4 state, and whether the first inspection judge module 51 judges said low level time greater than 30ms, the then directly detection of ends with system in this way, otherwise recording storage module 52 writes down and stores said low duration and return the first step.
And then second judge module 61 detects the carrier frequency that judges whether 445K, if any then carrying out data transmission through the infrared signal butt joint of hardware radiating circuit 6 emission 455K; Otherwise through the infrared signal butt joint of hardware radiating circuit 6 emission 38K, same, this hardware radiating circuit 7 belongs to available circuit.
The embodiment of the above is a preferred embodiments of the present invention, is not to limit practical implementation scope of the present invention with this, and scope of the present invention comprises and is not limited to this embodiment.All shapes according to the present invention, the equivalence variation that structure is done all comprise in protection scope of the present invention.

Claims (8)

1. realize the method for infrared remote control based on the Android system, it is characterized in that may further comprise the steps:
S1, detection judge whether the Android system has carrier wave, and register system carrier wave under each state is in the time and the storage of high-low level;
S2, launch infrared carrier wave according to the result of the detection of storing among the S1.
2. the method based on Android system realization infrared remote control according to claim 1 is characterized in that, before said step S1, also comprises infrared signal demodulation and decoding step, infrared signal is simulated in the external world converted into digital signal.
3. the method that realizes infrared remote control based on the Android system according to claim 1 is characterized in that the state of said system comprises:
The Z1 state, there is carrier wave in system and is in high level; The Z2 state, there is carrier wave in system and is in low level;
The Z3 state, system's carrierfree also is in high level; The Z4 state, system's carrierfree also is in low level.
4. the method that realizes infrared remote control based on the Android system according to claim 1 is characterized in that said step S1 further comprises:
Whether the S3:Android system detects has carrier wave, if any then getting into S4, does not then carry out S6 as having;
Whether the S4:Android system detects said carrier wave is high level, and then system is in the Z1 state in this way, writes down the duration of said high level and turns back to the S1 step, as not being then to continue to carry out next step;
S5: system gets into the Z2 state, whether judges said low level time greater than 300us, if continue then write down the said duration and eliminate the system carrier sign; Otherwise direct retrieval system S1 step.
Whether the S6:Android system detects said carrier wave is high level, and then system is in the Z3 state in this way, writes down the duration of said high level and turns back to the S1 step, otherwise get into next step;
S7: system gets into the Z4 state, whether judges said low level time greater than 30ms, the then directly detection of ends with system in this way, otherwise write down said low duration and return step S1.
5. the method that realizes infrared remote control based on the Android system according to claim 2 is characterized in that said step S2 specifically comprises:
Detect the carrier frequency whether 445K is arranged, carry out data transmission if any the infrared signal butt joint of then launching 455K; Otherwise the infrared signal butt joint of emission 38K.
6. one kind is used to realize above-mentionedly realize the device of the method for infrared remote control comprising the infrared study module (1) of accepting that infrared transmission module (2) is characterized in that based on the Android system:
The said infrared study module (1) of accepting comprising: hardware demodulation circuit (3), decoder module (4) and first coding module (5), and said hardware demodulation circuit (3) links to each other with decoder module (4), and said decoder module (4) links to each other with first coding module (5);
Said infrared transmission module (2) comprising: second coding module (6), hardware radiating circuit (7), said second coding module (6) links to each other with first coding module (5) and hardware radiating circuit (7).
7. realization according to claim 6 is based on the device of the method for Android system realization infrared remote control, and it is characterized in that: said first coding module (5) comprises first judge module (51) and recording storage module (52).
8. realization according to claim 7 is based on the device of the method for Android system realization infrared remote control, and it is characterized in that: said second coding module (6) comprises second judge module (61).
CN201210141481.9A 2012-05-09 2012-05-09 Method and device for realizing infrared remote control based on Android system Active CN102693623B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201210141481.9A CN102693623B (en) 2012-05-09 2012-05-09 Method and device for realizing infrared remote control based on Android system
PCT/CN2013/075357 WO2013166973A1 (en) 2012-05-09 2013-05-08 Method and device for realizing infrared remote control based on android system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210141481.9A CN102693623B (en) 2012-05-09 2012-05-09 Method and device for realizing infrared remote control based on Android system

Publications (2)

Publication Number Publication Date
CN102693623A true CN102693623A (en) 2012-09-26
CN102693623B CN102693623B (en) 2014-09-24

Family

ID=46859017

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210141481.9A Active CN102693623B (en) 2012-05-09 2012-05-09 Method and device for realizing infrared remote control based on Android system

Country Status (2)

Country Link
CN (1) CN102693623B (en)
WO (1) WO2013166973A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013166973A1 (en) * 2012-05-09 2013-11-14 福兴达科技实业(深圳)有限公司 Method and device for realizing infrared remote control based on android system
CN107564266A (en) * 2017-08-25 2018-01-09 广东美的制冷设备有限公司 A kind of remote controller codes learning method and remote control learning device
CN111462464A (en) * 2020-02-21 2020-07-28 山东超越数控电子股份有限公司 Arduino-based infrared remote control device, method and terminal

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101291365A (en) * 2008-05-14 2008-10-22 深圳创维-Rgb电子有限公司 Mobile phone and remote setting method of the mobile phone
CN102025854A (en) * 2010-11-29 2011-04-20 惠州Tcl移动通信有限公司 Method for implementing learning type mobile phone remote controller and learning type mobile phone remote controller

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101989379B (en) * 2009-07-31 2012-03-07 宁波家天下智能系统有限公司 Learning method and transmitting method of infrared cod signal and remote controller
CN101990335B (en) * 2009-07-31 2013-06-05 宁波家天下智能系统有限公司 Universal remote controller in intelligent household control system
CN201716854U (en) * 2010-07-19 2011-01-19 王志良 Learning transponder and remote controller and integrated control system provided with same
CN102254418A (en) * 2011-07-28 2011-11-23 管湘芸 Method for learning infrared code
CN102693623B (en) * 2012-05-09 2014-09-24 福兴达科技实业(深圳)有限公司 Method and device for realizing infrared remote control based on Android system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101291365A (en) * 2008-05-14 2008-10-22 深圳创维-Rgb电子有限公司 Mobile phone and remote setting method of the mobile phone
CN102025854A (en) * 2010-11-29 2011-04-20 惠州Tcl移动通信有限公司 Method for implementing learning type mobile phone remote controller and learning type mobile phone remote controller

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013166973A1 (en) * 2012-05-09 2013-11-14 福兴达科技实业(深圳)有限公司 Method and device for realizing infrared remote control based on android system
CN107564266A (en) * 2017-08-25 2018-01-09 广东美的制冷设备有限公司 A kind of remote controller codes learning method and remote control learning device
CN111462464A (en) * 2020-02-21 2020-07-28 山东超越数控电子股份有限公司 Arduino-based infrared remote control device, method and terminal

Also Published As

Publication number Publication date
CN102693623B (en) 2014-09-24
WO2013166973A1 (en) 2013-11-14

Similar Documents

Publication Publication Date Title
JP6076501B2 (en) Method, apparatus, facility, system, program, and recording medium for controlling on / off of wireless network
CN107908952B (en) Method and device for identifying real machine and simulator and terminal
CN103699409B (en) Awakening state switching-in method, device and system for electronic device
CN104123218B (en) Method, device and system for code coverage test
KR20150051816A (en) Method for operating message application and electronic device implementing the same
CN106817540A (en) A kind of camera control method and equipment
CN103677986A (en) Application program suspending method and device and terminal
CN103269374A (en) Method, device and equipment for recording synchronization
CN106528638A (en) Method for deleting backup data, and mobile terminal
CN107678989A (en) UART and USB multiplex circuits and mobile terminal
CN108170358A (en) Mobile phone and head-up display exchange method
CN104571942B (en) Data-storage system and non-signal analysis method
CN102693623B (en) Method and device for realizing infrared remote control based on Android system
KR101009820B1 (en) Command queuing for multimedia storage devices
CN102457310A (en) Multi-antenna application system and method
CN106503065A (en) The method and system of data transfer
CN105573947B (en) A kind of SD/MMC card control methods based on APB buses
CN103530034A (en) Method and system for enhancing content editing experience on cell phone based on NFC technology
CN104751322A (en) Method and device for enabling data processing webpage
CN110309100A (en) A kind of snapshot object generation method and device
CN105279466A (en) Graphic code recognition method and device, and graphic code generation method and device
CN107463524A (en) A kind of method and relevant device for accessing data
CN106569852A (en) Burning method and device
CN106648976A (en) Data back-up method and device
CN106714279A (en) Hot spot network switching method and terminal equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20151009

Address after: 518000 areca road in Guangdong Province, Shenzhen Futian Free Trade Zone No. 6 Fuxing Building 4 floor

Patentee after: Shenzhen Fuzhi Software Technology Co., Ltd.

Address before: 518118 Guangdong city of Shenzhen province Pingshan North Zhu Lu Lan fuxingda Industrial Plant Factory No.1, No. two building a layer of a layer to three

Patentee before: Foxda Technology Industrial (Shenzhen) Co., Ltd.

TR01 Transfer of patent right

Effective date of registration: 20200602

Address after: 518000 room 304, 3 / F, Fuxing building, 6 Binglang Road, Fubao community, Futian District, Shenzhen City, Guangdong Province

Patentee after: Shenzhen Jinxuan Technology Co.,Ltd.

Address before: 518000 areca road in Guangdong Province, Shenzhen Futian Free Trade Zone No. 6 Fuxing Building 4 floor

Patentee before: SHENZHEN FUZHI SOFTWARE TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right