[go: up one dir, main page]

CN102693623B - 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
CN102693623B
CN102693623B CN201210141481.9A CN201210141481A CN102693623B CN 102693623 B CN102693623 B CN 102693623B CN 201210141481 A CN201210141481 A CN 201210141481A CN 102693623 B CN102693623 B CN 102693623B
Authority
CN
China
Prior art keywords
module
state
infrared
carrier wave
high level
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.)
Active
Application number
CN201210141481.9A
Other languages
Chinese (zh)
Other versions
CN102693623A (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

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

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Selective Calling Equipment (AREA)

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 method and the device of infrared remote control based on Android system
Technical field
The present invention relates to telecontrol engineering field, be specifically related to a kind of method that realizes infrared remote control based on 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 the mode of transmission is divided into two kinds haply, a kind of is mainly to utilize the transmission mediums such as cable (CABLE) for wire transmission, and these equipment are connected, realize the object of transmission and exchange message, as data line in handheld device etc., this transmission has reliable character, and weak point is to provide a special cable, and another kind of transmission mode is wireless transmission, such as common infrared remote control, mainly transmission and the exchange of the information of carrying out as transmission medium with infrared ray (IrDA), and because the host-host protocol in wireless transmission has higher reliability, the any handheld device that has this agreement can be carried out to wireless connections, thereby this kind of transmission mode has higher use value, apply in various electronic goods at wireless transmission method in recent years, as mobile phone/MP3 etc., as the patent No. disclosure of the invention that is 200610112398.3 a kind of mobile phone infrared remote nine-way control switch, and the patent No. disclosure of the invention that is 201110082317.0 a kind of method of realizing network download infrared remote control function by mobile phone, these patented technologies are and use infrared method to carry out transmission and the exchange of data.
Because in recent years popular Android system is that a kind of taking Linux as basic open source code operating system, Linux has not only optimized operation interface, the easy simplification of operation, has improved efficiency more, is an outstanding operating system nucleus.It is to be also mainly used in mobile device as portable in mobile phone, panel computer etc., and Android operating system is actually the one change to (SuSE) Linux OS and expands, its kernel is exactly the kernel of Linux substantially, and difference has been done larger improvement and enhancing for the principal feature of mobile phone and mobile device specially on user's space.
Because the kernel Linux Kernel of Linux is non real-time, that is can not realize real-time interruption processing capacity, the carrier wave of infrared protocol is all generally 38K people's frequency, namely the fastest interval needs 26 are delicate will carry out an interruption, Linux Kernel does not process so fast interruption comparatively speaking, so the mobile devices such as existing Android mobile phone can not be realized function of infrared remote control substantially.
Therefore, developing method and the device of realizing infrared remote control based on Android system is the technical barrier that those skilled in the art need to capture.
Summary of the invention
The technical problem to be solved in the present invention is to provide a kind of method that can realize function of infrared remote control on the equipment such as the mobile phone of use Android.
The present invention seeks to be achieved through the following technical solutions: a kind of method that realizes infrared remote control based on Android system, comprises the following steps:
The first step, detection judge whether Android system has carrier wave, and the register system time of carrier wave in low and high level storage under each state;
Second step, launch infrared carrier wave according to the result of the detection of storing in the first step.
Preferably, before the described first step, also comprise infrared signal demodulation and decoding step, infrared signal is simulated to by the external world and be converted to digital signal.
Preferably, wherein, the state of described system comprises:
Z1 state, system has carrier wave and in high level; Z2 state, system has carrier wave and in low level;
Z3 state, system carrierfree in high level; Z4 state, system carrierfree in low level.
Preferably, the described first step further comprises:
The 3rd step: Android system detects whether there is carrier wave, if any entering the 4th step, as nothing is carried out the 6th step;
The 4th step: whether Android system detects described carrier wave is high level, system, in Z1 state, records the duration of described high level and turns back to the first step in this way, if not being continues to carry out next step;
The 5th step: system enters Z2 state, judges whether described low level time is greater than 300us, if continued, records the described duration and eliminates system carrier mark; Otherwise the directly retrieval system first step.
The 6th step: whether Android system detects described carrier wave is high level, system, in Z3 state, records the duration of described high level and turns back to the first step, otherwise entering next step in this way;
The 7th step: system enters Z4 state, judges whether described low level time is greater than 30ms, the directly detection of ends with system in this way, otherwise record described low duration and return to the step first step.
Preferably, described second step specifically comprises:
Detect the carrier frequency that whether has 445K, carry out data transmission if any the infrared signal docking of launching 455K; Otherwise the infrared signal docking of transmitting 38K.
Another object of the present invention is to provide a kind of device of realizing the method for infrared remote control for realizing above-mentioned Android system.
A kind of Android of realization system realizes the device of the method for infrared remote control, comprise the infrared study module of accepting, infrared transmission module, the described infrared study module of accepting comprises: hardware demodulation circuit, decoder module and the first coding module, described hardware demodulation circuit is connected with decoder module, and described decoder module is connected with the first coding module;
Described infrared transmission module comprises: the second coding module, hardware radiating circuit, described the second coding module is connected with the first coding module and hardware radiating circuit.
Preferably, the Android of realization system of the present invention realizes the device of the method for infrared remote control, and described the first coding module comprises the first judge module and records memory module.
Preferably, the Android of realization system of the present invention realizes the device of the method for infrared remote control, and described the second coding module comprises the 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, make system send the highest carrier wave that can reach 455K frequency.
Brief description of the drawings
For ease of explanation, the present invention is described in detail by following preferred embodiment and accompanying drawing.
Fig. 1 is the process flow diagram that the present invention carries out carrier detect;
Fig. 2 is the process flow diagram that the present invention carries out infrared emission;
Fig. 3 is the system architecture diagram that the present invention realizes;
Fig. 4 is the Organization Chart of the 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 Android system, comprise the infrared study module 1 of accepting, infrared transmission module 2, the described infrared study module 1 of accepting comprises: hardware demodulation circuit 3, decoder module 4 and the first coding module 5, described hardware demodulation circuit 3 is connected with decoder module 4, and described decoder module 4 is connected with the first coding module 5; Described infrared transmission module 2 comprises: the second coding module 6, hardware radiating circuit 7, and described the second coding module 6 is connected with the first coding module 5 and hardware radiating circuit 7; Described the first coding module 5 comprises the first judge module 51 and records memory module 52; Described the second coding module 6 comprises the second judge module 61.
The present invention is realizing Android system and is realizing the step of the method for infrared remote control, comprise the following steps: the first step, 51 first judge modules detect to judge whether Android system has carrier wave, and by recording memory module 52 system recorder memories carrier wave time in low and high level under each state;
Before system first, by hardware demodulation circuit 3 and decoder module 4 by infrared signal demodulation and decoding step, infrared signal is simulated to by the external world and be converted to digital signal, wherein hardware demodulation circuit 3 is that basic circuit common, decoder module 4 is what realize by general software approach, all belong to prior art, do not repeating at this.
Wherein, the state of described system comprises:
Z1 state, system has carrier wave and in high level; Z2 state, system has carrier wave and in low level;
Z3 state, system carrierfree in high level; Z4 state, system carrierfree in low level.
Record memory module 52 register system time in low and high level under Z1, Z2, Z3, Z4 one of four states respectively.
Wherein the first step further comprises:
The 3rd step: the first inspection judge module 51 detects whether there is carrier wave, if any entering the 4th step, as nothing is carried out the 6th step;
The 4th step: whether the first inspection judge module 51 detects described carrier wave is high level, and system, in Z1 state, records memory module 52 and records and store the duration of described high level and turn back to first step, if not being continues to carry out next step in this way;
The 5th step: system enters Z2 state, the first inspection judge module 51 judges whether described low level time is greater than 300us, if it is records memory module 52 and records and store the described duration and eliminate system carrier mark; Otherwise directly retrieval system first step.
The 6th step: the first inspection judge module 51 detects to judge whether described carrier wave is high level, and system, in Z3 state, records memory module 52 and records and store the duration of described high level and turn back to first step, otherwise enter next step in this way;
The 7th step: system enters Z4 state, the first inspection judge module 51 judges whether described low level time is greater than 30ms, the directly detection of ends with system, records and stores described low duration and return to the first step otherwise record memory module 52 in this way.
And then the second judge module 61 detects the carrier frequency that judges whether 445K, carry out data transmission if any the infrared signal docking of launching 455K by hardware radiating circuit 6; Otherwise the infrared signal docking of launching 38K by hardware radiating circuit 6, same, this hardware radiating circuit 7 belongs to available circuit.
The embodiment of the above is preferred embodiments of the present invention, not limits specific embodiment of the invention scope with this, and scope of the present invention comprises and is not limited to this embodiment.The equivalence variation that all shapes according to the present invention, structure are done all comprises in protection scope of the present invention.

Claims (2)

1. the method that realizes infrared remote control based on Android system, is characterized in that comprising the following steps:
S1, detection judge whether Android system has carrier wave, and the register system time of carrier wave in low and high level storage under each state;
S2, launch infrared carrier wave according to the result of the detection of storing in S1;
Before described step S1, also comprise infrared signal demodulation and decoding step, infrared signal is simulated to by the external world and be converted to digital signal;
The state of described system comprises:
Z1 state, system has carrier wave and in high level; Z2 state, system has carrier wave and in low level;
Z3 state, system carrierfree in high level; Z4 state, system carrierfree in low level;
Described step S1 further comprises:
S3:Android system detects whether there is carrier wave, if any entering S4, as nothing is carried out S6;
Whether S4:Android system detects described carrier wave is high level, and system, in Z1 state, records the duration of described high level and turns back to S1 step, if not being continues to carry out next step in this way;
S5: system enters Z2 state, judges whether described low level time is greater than 300us, if continued, records the described duration and eliminates system carrier mark; Otherwise directly retrieval system S1 step;
Whether S6:Android system detects described carrier wave is high level, and system, in Z3 state, records the duration of described high level and turns back to S1 step, otherwise entering next step in this way;
S7: system enters Z4 state, judges whether described low level time is greater than 30ms, the directly detection of ends with system in this way, otherwise record described low duration and return to step S1;
Detect the carrier frequency that whether has 445K, carry out data transmission if any the infrared signal docking of launching 455K; Otherwise the infrared signal docking of transmitting 38K.
2. for realizing a device of realizing the method for infrared remote control based on Android system claimed in claim 1, comprise the infrared study module (1) of accepting, infrared transmission module (2), is characterized in that:
The described infrared study module (1) of accepting comprising: hardware demodulation circuit (3), decoder module (4) and the first coding module (5), described hardware demodulation circuit (3) is connected with decoder module (4), and described decoder module (4) is connected with the first coding module (5);
Described infrared transmission module (2) comprising: the second coding module (6), hardware radiating circuit (7), and described the second coding module (6) is connected with the first coding module (5) and hardware radiating circuit (7);
Described the first coding module (5) comprises the first judge module (51) and records memory module (52);
Described the second coding module (6) comprises the 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 CN102693623A (en) 2012-09-26
CN102693623B true 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)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102693623B (en) * 2012-05-09 2014-09-24 福兴达科技实业(深圳)有限公司 Method and device for realizing infrared remote control based on Android system
CN107564266B (en) * 2017-08-25 2021-05-14 广东美的制冷设备有限公司 Remote controller code learning method and remote controller 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

Also Published As

Publication number Publication date
WO2013166973A1 (en) 2013-11-14
CN102693623A (en) 2012-09-26

Similar Documents

Publication Publication Date Title
CN102124454B (en) Universal serial bus (usb) remote wakeup
CN108027791A (en) Input/output signal bridge joint and virtualization in multinode network
CN104853081A (en) Breakpoint filming method, device and mobile terminal
CN104901991A (en) Methods, devices and system for transferring virtual resource
CN111078523B (en) Log acquisition method and device, storage medium and electronic equipment
CN102693623B (en) Method and device for realizing infrared remote control based on Android system
CN118153598B (en) A method for assisting a card reader to realize card search, a card search method and an NFC tag
KR101009820B1 (en) Command Queuing for Multi-Media Storage Devices
CN103530034B (en) On mobile phone, method and the system that content editor experiences is strengthened based on NFC technique
EP2677790B1 (en) NFC system comprising a plurality of secure elements
CN104571942B (en) Data-storage system and non-signal analysis method
CN112867120A (en) Low power consumption control system, method, computer device and readable storage medium
CN110309100A (en) A kind of snapshot object generation method and device
CN102457310A (en) Multi-antenna operation system and method
CN105430035A (en) Network data uploading method and device
CN104240710A (en) Information transmission method and system, and terminal equipment
CN104123210A (en) Method, device and system for testing performance of browser
CN113946480A (en) Detection device and method for I2C bus
CN103561478A (en) Method and device for automatically achieving wireless connection between devices
CN104063152A (en) Object selection method and device
CN103163967A (en) Wireless expansion card and method using wireless expansion card to store data
US9003072B2 (en) Portable data storage device with wireless functionality having a digital switch circuit and a method for storing data in the aforementioned
CN204270296U (en) A wireless interconnected mobile memory
CN106791037A (en) Operation triggering method, equipment and system
CN104901985A (en) Wireless-based data storage method

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
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.