CN105334763B - Model of an airplane remote controler and its on/off circuit - Google Patents

Model of an airplane remote controler and its on/off circuit Download PDF

Info

Publication number
CN105334763B
CN105334763B CN201410341936.0A CN201410341936A CN105334763B CN 105334763 B CN105334763 B CN 105334763B CN 201410341936 A CN201410341936 A CN 201410341936A CN 105334763 B CN105334763 B CN 105334763B
Authority
CN
China
Prior art keywords
microcontroller
operation system
android operation
feet
android
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
CN201410341936.0A
Other languages
Chinese (zh)
Other versions
CN105334763A (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.)
Yuneec Technology Co Ltd
Original Assignee
Yuneec Technology 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 Yuneec Technology Co Ltd filed Critical Yuneec Technology Co Ltd
Priority to CN201410341936.0A priority Critical patent/CN105334763B/en
Publication of CN105334763A publication Critical patent/CN105334763A/en
Application granted granted Critical
Publication of CN105334763B publication Critical patent/CN105334763B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of model of an airplane remote controler and its on/off circuits, wherein the switching circuit includes switch and power supply, power supply is connect by switching with the VCC feet of microcontroller, VCC feet are also connect with the ports INT of Android operation system, and the GPIO feet of microcontroller are also connect with the ports PWRKEY of Android operation system;When the switch is closed, VCC feet obtain electric, microcontroller booting, and GPIO feet export low level to the ports PWRKEY, Android operation system booting;When the switches are opened, VCC feet power off, and microcontroller shutdown, INT Port detectings to VCC feet power off, triggering Android operation system shutdown.The present invention compensates for the defect that microcontroller is unrelated to Android operation system switching on and shutting down in the prior art so that the two switching on and shutting down synchronize, and simplify the control of model of an airplane remote controler, reduce system redundancy, improve execution efficiency.

Description

Model of an airplane remote controler and its on/off circuit
Technical field
The present invention relates to a kind of on/off circuit of model of an airplane remote controler and model of an airplane remote controlers.
Background technology
Existing model of an airplane remote controler is often grasped using microcontroller and Android (a kind of existing operating system) simultaneously It is controlled as system.Although microcontroller and Android operation system are functionally related, due to opening for the two itself Shutdown mode is different, so switching on and shutting down can only be realized independently.
The switching on and shutting down of microcontroller are realized by changing the connection relation of microcontroller and power supply.Microcontroller and power supply Connection, microcontroller are switched on;Microcontroller is not connected to power supply, and microcontroller shuts down.
The switching on and shutting down of Android operation system are then relative complex, are related to software flow, as being operated using Android The mobile phone of system, the switching on and shutting down that user is received by one physical button of peripheral hardware instruct, user's long-press physical button, Android operation system then starts internal switching on and shutting down flow, realizes that switching on and shutting down are absolutely not to allow to break during switching on and shutting down Electricity.
Just because of the above-mentioned difference between microcontroller and Android operation system, the prior art is not by the two Switching on and shutting down are associated together.For the model of an airplane, the independent switch machine of microcontroller and Android operation system, So that the control system of model of an airplane remote controler needs special setting physical button to control the switch of Android operation system Machine increases the redundancy of control system.
Invention content
The present invention solves microcontroller and Android operation system in the on/off circuit of existing model of an airplane remote controler Switching on and shutting down be not mutually related defect, provide a kind of synchronous switch that can realize microcontroller and Android operation system The on/off circuit and model of an airplane remote controler of the model of an airplane remote controler of machine.
The present invention is to solve above-mentioned technical problem by following technical proposals:
A kind of on/off circuit of model of an airplane remote controler, its main feature is that, including a microcontroller, an Android operation system System, a switch and a power supply, the power supply by the VCC feet of the switch and the microcontroller (supply voltage pin, microcontroller it is existing Pin) connection, also (one kind of Android operation system is for detecting with the ports INT of the Android operation system for the VCC feet The existing port of external equipment) connection, the GPIO feet (general input/output port, the existing pin of microcontroller) of the microcontroller Also (a kind of of Android operation system is used for showing for trigger switch machine flow with the ports PWRKEY of the Android operation system Have port) connection;When the switch is closed, which obtains electric, microcontroller booting, and GPIO feet output low level extremely should The ports PWRKEY, so that the Android operation system is switched on;When the switch is off, which powers off, microcontroller shutdown, The INT Port detectings are powered off to the VCC feet, trigger Android operation system shutdown.
In the technical scheme, which simulates existing Android using the low level of GPIO feet output and grasps Make the physical button of the control booting of system, start operation starting procedure, is operated using the detection triggering Android of the ports INT The shutdown process of system realizes and controls the switching on and shutting down of Android operation system by controlling the switching on and shutting down of the microcontroller, i.e., Microcontroller booting, Android operation system booting, microcontroller shutdown, Android operation system shutdown.The technical program uses Microcontroller controls the reasons why Android operation system switching on and shutting down are without using Android operation system control single chip computer switching on and shutting down For:If by Android operation system control single chip computer switching on and shutting down, the power switch of microcontroller just must be by Android Operating system controls, and Android operation system is due to system complex, is likely to occur in use and crashes or restart Phenomenon, once crashing or restarting, the power switch of the microcontroller controlled may go wrong, and microcontroller is caused to be shut down, Consequence out of control is will produce in model of an airplane remote controler by monolithic processor controlled system.And microcontroller control is used in the technical program The on/off circuit of Android operation system switching on and shutting down processed because of the switching on and shutting down of microcontroller is controlled by the switch of entity, General is not in problem, even if Android operation system crashes or restarts, microcontroller all can still work normally.
Preferably, the on/off circuit further includes a button, which is grounded and connects respectively the GPIO feet;When the switch closes When conjunction, GPIO feet output it is low level when a length of first duration;When this presses key pressing, GPIO feet output is a length of for the moment The low level of second duration is to the ports PWRKEY;The Android operation system in a dormant state when, if the ends PWRKEY Mouth receives low level, then the Android operation system judges whether the low level duration received is the second duration, if It is that the Android operation system is waken up;If it is not, the Android operation system keeps dormant state.
In the technical scheme, which plays the role of waking up the Android operation system in dormant state, Android operation system distinguishes whether the low level received is for waking up by judging the low level duration received Android operation system, further perfect control of the microcontroller to Android operation system.
Preferably, second duration is less than first duration.
Preferably, this first when it is 2 seconds a length of, this second when it is 30 milliseconds a length of.
A kind of model of an airplane remote controler, its main feature is that, including on/off circuit that above-mentioned each optimum condition arbitrarily combines.
On the basis of common knowledge of the art, above-mentioned each optimum condition can be combined arbitrarily to get each preferable reality of the present invention Example.
The positive effect of the present invention is that:The on/off circuit and the model of an airplane of the model of an airplane remote controler of the present invention Remote controler controls the switching on and shutting down of Android operation system using the switching on and shutting down of microcontroller, eliminates existing Android operations The physical button of switching on and shutting down is controlled in system, while also so that the switching on and shutting down of microcontroller and Android operation system have obtained together Step, simplifies the control of model of an airplane remote controler, reduces system redundancy, improves execution efficiency.
Description of the drawings
Fig. 1 is the structural schematic diagram of the on/off circuit of the model of an airplane remote controler of the embodiment of the present invention 1.
Fig. 2 is the structural schematic diagram of the on/off circuit of the model of an airplane remote controler of the embodiment of the present invention 2.
Specific implementation mode
It is further illustrated the present invention below by the mode of embodiment, but does not therefore limit the present invention to the reality It applies among a range.
Embodiment 1
The on/off circuit of one model of an airplane remote controler, referring to Fig. 1, including:One microcontroller 1, an Android operation system 2 and switch 3 and a power supply 4.Lithium battery may be used in the power supply 4.
The microcontroller 1 includes a VCC feet and a GPIO feet.
The Android operation system 2 includes the ports INT, the ports PWRKEY.
The power supply 4 is connect by the switch 3 with the VCC feet, which also connect with the ports INT, the GPIO feet also with The ports PWRKEY connect.
When the switch 3 is closed, which obtains electric, the microcontroller 1 booting, and GPIO feet output low level extremely should The ports PWRKEY, so that the Android operation system 2 runs starting procedure.The GPIO feet export low level to the ends PWRKEY The process of mouth is equivalent to the operation that physical button in analogue mobile phone is pressed, and runs and opens after the ports PWRKEY reception low level The process of machine flow is identical as the software flow that Android operation system 2 in the prior art is switched on, and this will not be repeated here.
When the switch 3 disconnects, VCC feet power-off, the microcontroller 1 shuts down, which is pulled low, Android operations System 2 just knows that the VCC feet have powered off by this variation of the level of the ports INT, triggers external interrupt, should Android operation system 2 runs shutdown process.The Android operation system 2 triggers the mistake of operation shutdown process after external interrupt Journey is identical as the software flow that Android operation system 2 in the prior art is shut down, and this will not be repeated here.
The on/off circuit controls the switching on and shutting down of Android operation system 2, the i.e. booting of microcontroller 1 using microcontroller 1 then Android operation system 2 is switched on, and the shutdown of microcontroller 1 then shut down by Android operation system 2, eliminates existing Android behaviour The physical button for making trigger switch machine in system 2 realizes 2 synchronous switch machine of microcontroller 1 and Android operation system.
The model of an airplane remote controler of the present embodiment includes the on/off circuit so that the control system of the model of an airplane remote controler System is simplified.
Embodiment 2
The present embodiment and embodiment 1 are essentially identical, the difference is that, referring to Fig. 2, the on/off circuit further include one by Key 5, the button 5 are grounded and connect respectively the GPIO feet.
When the switch 3 is closed, the GPIO feet output it is low level when it is 2 seconds a length of.
When the button 5 is pressed, which is connected with ground, and the level of the GPIO feet is pulled low, that is, detects the button 5 In the state that is pressed, a length of 30 milliseconds of low level is to the ports PWRKEY when then exporting;When the button 5 end is pressed When state, which can bounce automatically, which restores off-state with ground.
The Android operation system in a dormant state when, user by press the button 5 realize wake up should Android operation system, specific operation principle are:When user presses the button 5, the GPIO feet a length of 30 milli when exporting Second low level to the ports PWRKEY, after which receives low level, first to judge receive low level be because It is closed generating for the switch 3 or presses generation because of the button 5, specific judgment mode is to be grasped by the Android Make system and judges whether the low level duration received is 30 milliseconds, if so, illustrate that the button 5 is pressed, Android operations System is waken up, if it is not, then illustrate that the low level received is not as the button 5 and presses and generate, Android operations System keeps dormant state.
The GPIO heels are low according to different triggering mode (switch 3 triggers and the button 5 triggers) different durations of output Level is that the prior art can be achieved with, and this will not be repeated here.
In the present embodiment, which passes through a length of 30 milliseconds of low level simulation existing Android operations when output Short-press physical button realizes the process for waking up dormant state in system, but the button 5 exists not with existing physical button again Same place:The button 5 is not directly connected to Android operation system, but is connect with microcontroller, then exports corresponding low electricity It is flat, it determines the need for waking up in suspend mode shape by the low level source received by Android operation system judgement The Android operation system of state.
In the control system of the model of an airplane remote controler of the present embodiment, the wake-up and switching on and shutting down of Android operation system are all It is controlled by microcontroller, has expanded the function of the control system of embodiment 1, optimize microcontroller is with Android operations The on/off circuit of system.
Although specific embodiments of the present invention have been described above, it will be appreciated by those of skill in the art that these It is merely illustrative of, protection scope of the present invention is defined by the appended claims.Those skilled in the art is not carrying on the back Under the premise of from the principle and substance of the present invention, many changes and modifications may be made, but these are changed Protection scope of the present invention is each fallen with modification.

Claims (4)

1. a kind of on/off circuit of model of an airplane remote controler, which is characterized in that including a microcontroller, Android operations system System, one switch and a power supply, the power supply connect with the VCC feet of the microcontroller by the switch, the VCC feet also with the Android The ports INT of operating system connect, and the GPIO feet of the microcontroller are also connect with the ports PWRKEY of the Android operation system;
When the switch is closed, which obtains electric, microcontroller booting, which exports low level to the ports PWRKEY, So that the Android operation system is switched on;
When the switch is off, which powers off, and microcontroller shutdown, INT Port detectings to the VCC feet power off, and triggering should Android operation system is shut down;
Further include a button, which is grounded and connects respectively the GPIO feet;
When the switch is closed, GPIO feet output it is low level when a length of first duration;
When this presses key pressing, the low level of GPIO feet output a length of second duration for the moment is to the ports PWRKEY;
The Android operation system in a dormant state when, if the ports PWRKEY receive low level, the Android Operating system judges whether the low level duration received is the second duration, if so, the Android operation system is waken up;
If it is not, the Android operation system keeps dormant state.
2. on/off circuit as described in claim 1, which is characterized in that second duration is less than first duration.
3. on/off circuit as claimed in claim 2, which is characterized in that this first when it is 2 seconds a length of, this second when it is a length of 30 milli Second.
4. a kind of model of an airplane remote controler, which is characterized in that include the switch electromechanics as described in any one of claim 1-3 Road.
CN201410341936.0A 2014-07-17 2014-07-17 Model of an airplane remote controler and its on/off circuit Active CN105334763B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410341936.0A CN105334763B (en) 2014-07-17 2014-07-17 Model of an airplane remote controler and its on/off circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410341936.0A CN105334763B (en) 2014-07-17 2014-07-17 Model of an airplane remote controler and its on/off circuit

Publications (2)

Publication Number Publication Date
CN105334763A CN105334763A (en) 2016-02-17
CN105334763B true CN105334763B (en) 2018-08-28

Family

ID=55285375

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410341936.0A Active CN105334763B (en) 2014-07-17 2014-07-17 Model of an airplane remote controler and its on/off circuit

Country Status (1)

Country Link
CN (1) CN105334763B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110286950A (en) * 2019-06-28 2019-09-27 深圳市智微智能科技开发有限公司 A kind of method of network booting
CN111244881A (en) * 2020-03-12 2020-06-05 甄十信息科技(上海)有限公司 Method and device for automatically restarting electronic equipment in case of power failure or jamming

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201732337U (en) * 2010-09-01 2011-02-02 福建三元达软件有限公司 Switching circuit of handheld device
CN103389755A (en) * 2013-08-05 2013-11-13 内蒙古农业大学 Accumulated temperature controller for energy conservation and consumption reduction of facility agriculture and service system of accumulated temperature controller

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7740516B2 (en) * 2005-02-24 2010-06-22 Castle Creations, Inc Electronic speed control programming
JP2010158350A (en) * 2009-01-07 2010-07-22 Sega Toys:Kk Helicopter toy
CN202424672U (en) * 2012-01-20 2012-09-05 北京招通致晟科技有限公司 Circuit element for switching on and switching off hand-held electronic product and electronic product for preventing switching on and switching off by mistake
JP5921904B2 (en) * 2012-02-10 2016-05-24 双葉電子工業株式会社 Wireless control device
CN103105915B (en) * 2013-02-18 2016-02-03 广东欧珀移动通信有限公司 A kind of repositioning method of intelligent terminal and system
CN103592861A (en) * 2013-11-06 2014-02-19 福建三元达软件有限公司 Multifunctional single switch power source management system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201732337U (en) * 2010-09-01 2011-02-02 福建三元达软件有限公司 Switching circuit of handheld device
CN103389755A (en) * 2013-08-05 2013-11-13 内蒙古农业大学 Accumulated temperature controller for energy conservation and consumption reduction of facility agriculture and service system of accumulated temperature controller

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
双卡双待手机蓝牙复用技术的研究;万艳红;《中国优秀硕士学位论文全文数据库 信息科技辑(月刊)》;20130315(第03期);I136-922:第28-35页 *

Also Published As

Publication number Publication date
CN105334763A (en) 2016-02-17

Similar Documents

Publication Publication Date Title
US7472291B2 (en) Method and apparatus for integrating ACPI functionality and power button functionality into a single power key
WO2013166778A1 (en) Method and device for operating mobile terminal based on sensor, and mobile terminal
CN106484061A (en) Terminal resets control method, controller and system
CN104679347A (en) Method for solving failure of touch screen of mobile terminal and mobile terminal
CN101655733A (en) Method and device for collocating uninterruptible power supply to enable computer to safely hibernate during power cut
CN104536551A (en) Method and device for clearing away information on complementary metal oxide semiconductor (CMOS)
CN106292968B (en) Electronic system, wearable electronic device and its power control method
CN108540664B (en) Starting method and electronic equipment
CN105204601B (en) A kind of system electrification automatic boot circuit and its starting-up method
CN102437917B (en) A kind of network wake-up method, network wake-up device and computer
US11314318B2 (en) Server system and power-saving method thereof
CN201514611U (en) Switching circuit of handheld device
CN105334763B (en) Model of an airplane remote controler and its on/off circuit
CN104836869A (en) Mobile communication terminal and mobile communication terminal power-on method
CN107703821A (en) A kind of quiescent current control circuit of key wakeup circuit
US9672048B2 (en) Electronic device and method for waking up operating system thereof
US8661271B2 (en) Apparatus and method to control the state of a power supply when a trigger signal is received during a predetermined time period
CN205594571U (en) Power controlling means and computer
CN105491242B (en) Mobile communication terminal and control method and device thereof
CN101826685B (en) Power supply socket device special for computer
CN206209583U (en) A kind of calculator restarts protector
CN104538226A (en) Intelligent terminal
CN201917867U (en) Hibernating and waking-up circuit of microprocessor
CN104571434A (en) Server and reboot method thereof
CN201166827Y (en) Computer power supply

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