CN108958074A - A kind of smart machine control method and mobile terminal - Google Patents
A kind of smart machine control method and mobile terminal Download PDFInfo
- Publication number
- CN108958074A CN108958074A CN201810636434.9A CN201810636434A CN108958074A CN 108958074 A CN108958074 A CN 108958074A CN 201810636434 A CN201810636434 A CN 201810636434A CN 108958074 A CN108958074 A CN 108958074A
- Authority
- CN
- China
- Prior art keywords
- application program
- target device
- control
- instruction
- control instruction
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44521—Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
- G06F9/44526—Plug-ins; Add-ons
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
Abstract
The present invention provides a kind of smart machine control method and mobile terminals, this method comprises: receiving the control instruction to target device in the runnable interface of the first application program;The control instruction is executed by target device described in the second application program controlling corresponding with the target device.In the embodiment of the present invention, user only needs through the first application program, so that it may realize the control to the target device for using different communication protocol, simplify operation when user controls the equipment for using different communication protocol.
Description
Technical field
The present invention relates to the communications fields, more particularly to a kind of smart machine control method and mobile terminal.
Background technique
With the development of internet, the smart machines such as smart home, intelligent robot are more and more applied.In order to
Market is seized, large-scale internet manufacturer usually defines the communication protocol of oneself to the smart machine of oneself, so that going out in the market
Now use the smart machine of different type communication protocol.
In the prior art, when controlling the equipment for using different type communication protocol, it will usually be provided using manufacturer
Remote controler, corresponding smart machine is controlled by remote controler;Or in the control equipment such as mobile terminal, pacify respectively
The application that Zhuan Ge manufacturer provides controls corresponding smart machine by application.
It is found by the applicant that above-mentioned technical proposal has the following disadvantages: user usually with the intelligence that will use different vendor's offer
Equipment, since smart machine has used different communication protocol, user is when using smart machine, it has in multiple remote controlers
It is selected, or is selected application corresponding with smart machine in multiple applications of mobile terminal, it could be further
It realizes the control to smart machine, operates very cumbersome.
Summary of the invention
The embodiment of the present invention provides a kind of smart machine control method and mobile terminal, to use when solving smart machine control
The cumbersome problem in family.
In order to solve the above-mentioned technical problems, the present invention provides a kind of smart machine control methods, which comprises
The control instruction to target device is received in the application interface of the first application program;
By first application program according to the control instruction, journey is applied in starting corresponding with the target device second
Sequence;
By second application program according to the control protocol for supporting the target device, institute is executed to the target device
State the corresponding control operation of control instruction.
The embodiment of the invention also provides a kind of smart machines to control mobile terminal, comprising:
Control instruction receiving module refers to the control of target device for receiving in the runnable interface of the first application program
It enables;
Execution module is controlled, for passing through target device described in the second application program controlling corresponding with the target device
Execute the control instruction.
The embodiment of the present invention still further provides a kind of mobile terminal, including processor, memory and is stored in described deposit
On reservoir and the computer program that can run on the processor, the computer program are realized when being executed by the processor
The step of smart machine control method above-mentioned.
The embodiment of the present invention still further provides a kind of computer readable storage medium, the computer readable storage medium
Upper storage computer program, the computer program realize the step of smart machine control method above-mentioned when being executed by processor
Suddenly.
First application program is set, and user only needs through first application program, so that it may real in the embodiment of the present invention
The now control to the equipment for using different communication protocol.Specifically, it receives in the runnable interface of the first application program to mesh
After the control instruction of marking device, control instruction is executed by the second application program controlling target device corresponding with target device.
In the embodiment of the present invention, after receiving the control instruction to target device by the first application program, no matter target device is used
Be any communication protocol, as long as can realize the control to the target device by corresponding second application program, because
This user only needs through the first application program, so that it may realize the control to the target device for using different communication protocol, letter
Operation when user controls the equipment for using different communication protocol is changed.
Detailed description of the invention
Fig. 1 is a kind of step flow chart of smart machine control method of the embodiment of the present invention one;
Fig. 2 is a kind of specific steps flow chart of smart machine control method of the embodiment of the present invention two;
Fig. 3 is a kind of structural block diagram of smart machine control mobile terminal of apparatus of the present invention embodiment three;
Fig. 4 is a kind of specific block diagram of smart machine control mobile terminal of apparatus of the present invention embodiment three;
Fig. 5 is a kind of structural block diagram of mobile terminal of the embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts
Example, shall fall within the protection scope of the present invention.
Embodiment of the method one
Referring to Fig.1, the step flow chart of one of embodiment of the present invention smart machine control method is shown.This method
Specific steps include:
Step 101: the control instruction to target device is received in the runnable interface of the first application program.
The embodiment of the present invention can be applied to mobile terminal, and mobile terminal may include mobile phone, computer, electronic reading device
Deng the embodiment of the present invention is not specifically limited.
In the embodiment of the present invention, the first application program can be the application that mobile terminal is arranged in, first application program
The Software Development Kit using different communication protocol can be loaded, to support the communication with various equipment, first application
Program can have runnable interface, and user is supported to issue the control instruction to target device by runnable interface.
Wherein, target device can be various intelligent appliances, such as air-conditioning, refrigerator, TV, washing machine etc..It is appreciated that
In practical application, mobile terminal can be independent from each other with target device, i.e. target device immobile terminal itself.
In concrete application, user can log in the first application program, the first application program by user name, password etc. in advance
It can be the application program for integrating various equipment, target device mark and phase can be shown in the runnable interface of the first application program
The control control answered, target device mark can be title, model of target device etc.;Control control can be addition, unlatching,
Close, reinforce, weaken etc., user, which can click target device and identify corresponding control control and issue, refers to the control of target device
It enables, control instruction can be addition instruction, open command, out code, reinforce instruction, weaken and instruct etc., and mobile terminal can be with
The control instruction to target device is received in the runnable interface of the first application program.
Certainly, in practical applications, the equipment that the initial launch interface after user logs in can only show device being added
Icon and newly-increased control.When receiving user in initial launch interface to the clicking operation of an appliance icon, Ke Yijin
The control interface for entering the corresponding equipment, then shows various control controls relevant to the equipment in the control interface.When with
Newly-increased control is clicked at family, can be added the process of equipment.
Step 102: by described in the execution of target device described in the second application program controlling corresponding with the target device
Control instruction.
In the embodiment of the present invention, the second application program can be the application program having been started up in the first application program, then
After receiving in the runnable interface in the first application program to the control instruction of target device, can directly by with target device
Corresponding second application program controlling target device executes control instruction.
In concrete application, the control protocol that the second application program uses is the control protocol of support described in target device, because
This, the second application program can execute the corresponding control of control instruction to target device and operate.
It is air-conditioning open command, the second application program as the second application program of company A using control instruction in concrete application
For, after starting the second application program, in the second Application Program Interface, it is shown that company A provides, public for controlling A
Second Application Program Interface of minister of public works in ancient china tune, the second application program can send user by the runnable interface of the first application program
Air-conditioning open command, be converted to adaptable second application program air-conditioning open command in the second application program, user is not
It needs further to select to open in the second Application Program Interface, the second application program is directly realized by the unlatching control to target device
System;Second application program can also further receive user in the instruction of the second Application Program Interface, pass through the further of user
Instruction, to target device executive control operation.Those skilled in the art can carry out different controls according to actual application scenarios
System operation, the embodiment of the present invention are not specifically limited this.
As a kind of preferred embodiment of the embodiment of the present invention, the second application program may not start at the beginning, therefore,
It, can be first by the first application program root after receiving the control instruction to target device in the runnable interface in the first application program
According to the control instruction, starts the second application program corresponding with target device, then answered by corresponding with target device second
Control instruction is executed with the process control target device.
In the embodiment of the present invention, the second application program can be fast application, and the exploitation of front-end technology stack can be used in fast application,
It is provided simultaneously with the dual excellent of HTML (HyperText Markup Language, the hypertext markup language) page and native applications
Point, user is without downloading installation, i.e., point is used, and the performance with native applications is experienced.
In concrete application, the first application program starts the second application program corresponding with target device according to control instruction
Specific implementation can be, which may include the identity informations such as the device identification of target device, the first application program root
The identity informations such as the device identification according to target device notify the second applications engine, the second applications engine pull-up target
Corresponding second application program such as device identification, the runnable interface of the first application program jump to corresponding second application program circle
The starting of the second application program is realized in face.For example, the first application program receives the control instruction to company A air-conditioning, then first
Application program can notify the second application program of the second applications engine pull-up company A, in the first application program, by initial
The first application program user interface jump to the second Application Program Interface of company A.Then, it is answered by company A corresponding second
Control instruction is executed with the process control target device.
First application program is set, and user only needs through first application program, so that it may real in the embodiment of the present invention
The now control to the equipment for using different communication protocol.Specifically, the reception pair in the runnable interface in the first application program
After the control instruction of target device, control is executed by the second application program controlling target device corresponding with target device and is referred to
It enables.In the embodiment of the present invention, after receiving the control instruction to target device by the first application program, no matter target device makes
It is any communication protocol, as long as can realize the control to the target device by corresponding second application program,
Therefore user only needs through the first application program, so that it may realize the control to the target device for using different communication protocol,
Simplify operation when user controls the equipment for using different communication protocol.
Embodiment of the method two
Referring to Fig. 2, the specific steps flow chart of one of embodiment of the present invention smart machine control method is shown.It should
Method specific steps include:
Step 201: receiving the addition to target device in the runnable interface of the first application program and instruct.
In the embodiment of the present invention, if user needs the target device controlled not add in advance in the first application program,
Then the first application program cannot achieve the control to target device, it is therefore desirable to carry out target first in the first application program and set
Standby addition.
In concrete application, addition operating area can be set in the runnable interface of the first application program, add operating area
The device identification etc. of presentation device, equipment shown in the addition operating area are that the first application program can provide control and support
Equipment, specifically, the first application program is available to the software development for controlling equipment of the displaying in application interface
Kit, and then support can be provided for equipment control by Software Development Kit.User can be in the first application program
The target device added is wished in selection in runnable interface, then mobile terminal can receive in the runnable interface of the first application program
To the addition instruction to target device.
As a kind of preferred embodiment of the embodiment of the present invention, step 201 may include: the fortune in first application program
The equipment that row interface is shown is shown in list, is received the addition to target device and is instructed.
The equipment used for user's addition is set in the embodiment of the present invention, in the first application program and shows list, in equipment
The content in list can be shown by selection equipment with the words identification of presentation device, picture identification etc., user by showing in list,
The addition that mobile terminal is received to target device can be triggered to instruct.
In the embodiment of the present invention, since equipment shows that list has preferable user interface effect, user passes through equipment exhibition
Showing that list can clearly, easily be found needs target device to be added, so that user's progress equipment addition is more convenient.
Step 202: being instructed, obtained corresponding with the target device soft according to the addition by first application program
Part development kit.
In the embodiment of the present invention, the first application program can be instructed according to addition, got from server etc. and set with target
Standby corresponding Software Development Kit, Software Development Kit SDK (Software Development Kit) can be each
Smart machine producer, to the SDK of its company's smart machine exploitation, for providing external interface, to realize external progress to intelligence
The control of equipment, the Software Development Kit are constructed using the control protocol that can be communicated with smart machine, therefore
It can be realized the control to target device by the SDK.In concrete application, the first application program can be in the server of each manufacturer
In or other provide Software Development Kit positions download SDK, the first application program, can be by the SDK after obtaining SDK
It is loaded into the first application program as plug-in unit, makes a new functional interface of the SDK as the first application program.
For example, in an application scenarios of the embodiment of the present invention, the embodiment of the present invention is for realizing to smart home
Control, smart home specifically can be air-conditioning, refrigerator, washing machine etc. can in mobile terminal etc. control equipment realize communication family
It occupies.Assuming that the first application program receives the instruction of the addition to the air-conditioning of company A, then the first application program obtains company A air-conditioning
Software Development Kit, and then the Software Development Kit is loaded into the first application program of mobile terminal.Certainly, right
In the air-conditioning of B company, can also be executed using aforesaid way, the embodiment of the present invention does not limit it.
Step 203: being instructed by first application program according to the addition, start corresponding with the target device the
Two application programs.
In the embodiment of the present invention, the first application program applies journey according to addition instruction starting corresponding with target device second
The specific implementation of sequence can be, and the first application program notifies the second applications engine according to the device identification etc. of target device,
Corresponding second application programs such as second applications engine pull-up target device mark, the application interface of the first application program
Corresponding second application program addition interface is jumped to, realizes the starting of the second application program.For example, the first application program receives
To the addition instruction to company A air-conditioning, then the first application program can notify the second of the second applications engine pull-up company A
Application program in the first application program, jumps to the second application program of company A by the first initial application program user interface and adds
Add interface.
Step 204: the Software Development Kit in the first application program as described in second application call,
Operation is added to the target device.
In the embodiment of the present invention, the second application program is usually showed in the form of the page, can call the by script etc.
The Software Development Kit for corresponding to target device in one application program is completed under the support of Software Development Kit to mesh
The addition of marking device operates.
In concrete application, after starting the second application program in step 203, jumping to the second application program addition interface is
Example, the addition of the second application program can be set on interface: the controls such as equipment prepares, equipment detects, equipment addition, user is in point
After hitting equipment preparation, addition status control be can be set into state to be added, such as in target device for target device setting, used
Family, which presses the status controls, target device can be arranged to state to be added;Pointing device detects user again, can detecte
To target device;Equipment addition is further clicked on, the addition to target device is completed.It is appreciated that the second application program can also
According to a pre-set procedure, to be automatically performed the addition operation to target device, the embodiment of the present invention does not limit this specifically
It is fixed.
By step 201 to step 204, the embodiment of the present invention can be completed in the first application program to target device
Addition, the target device that can have completed addition to this later, in the first application program control.
Step 205: the control instruction to target device is received in the runnable interface of the first application program.
Step 206: determining the instruction type of the control instruction.
In the embodiment of the present invention, control instruction can be the control instruction for the first application program, the first application program
After receiving the control instruction of the type, directly target device can not be controlled, specifically by the second application program
Such as the record of step 210.
In the embodiment of the present invention, control instruction is also possible to the control instruction for the second application program, and first applies journey
Sequence needs to control target device by the second application program after receiving the control instruction of the type, specific as walked
Rapid 207 to step 209 record.
Step 207: when described instruction type is the instruction of the type executed by the second application program, by with the mesh
Target device described in corresponding second application program controlling of marking device executes the control instruction.
As a kind of preferred embodiment of the embodiment of the present invention, step 207 may include: by corresponding with the target device
Pre-loaded Software Development Kit in first application program described in second application call controls the target device and holds
The row control instruction;The Software Development Kit is corresponding with the target device;The Software Development Kit supports institute
State the control protocol of target device.
In the embodiment of the present invention, the first application program has been completed corresponding to target device when adding target device
The load of Software Development Kit, the second application program can be opened the corresponding software of invocation target equipment in the first application program
Kit is sent out, and then the control protocol for supporting target device is provided by the Software Development Kit, completes the control to target device
System operation.
Step 208: operating or add operation in the control to the target device by second application program and complete
Afterwards, notice is sent completely to first application program.
Step 209: first application program updates the state of the corresponding target device according to the completion notice.
In the embodiment of the present invention, the second application program, can after completing the control to target device and operating or add operation
To be sent completely notice to the first application program, the first application program can carry out the behaviour such as database update according to completion notice
Make, updates the state for completing the equipment of addition operation or control operation.For example, if the second application program is completed to target device
Addition, then send the notice that target device is completed and adds to the first application program, and the first application program can will be completed to add
Equipment update in the database of device being added, user could be aware that at the target device by checking device being added
In the state of having added, and then control operation can be carried out to the target device;If the second application program is completed to target device
Control operation, such as complete opening operation, then the second application program can send to the first application program and target device is completed
The state of target device can be updated to open state by the notice of unlatching, the first application program, and user is by checking that target is set
It is standby, it could be aware that the target device is in the open state.
In the embodiment of the present invention, the second application program, can after completing the control to target device and operating or add operation
To be sent completely notice to the first application program, the first application program updates the state of target device, then uses according to completion notice
Family can know the current state of target device in the first application program, and user is facilitated to carry out the operation of next step.
Step 210: when described instruction type is the type executed by the first application program, by first application program
The Software Development Kit is called to execute the corresponding control operation of the control instruction.
In the embodiment of the present invention, in order to be more convenient user's operation, it can be provided in the application interface of the first application program general
Control interface, for example, setting timing control interface, then when user set evening 8:00 open family in three air-conditionings, then
8:00 at night, the first application program voluntarily call the corresponding Software Development Kit of three air-conditionings, execute to three air-conditionings
Opening operation.It is of course also possible to be configured the type that it is executed by the first application program individually for single target equipment
Control instruction.
In the embodiment of the present invention, the instruction type that the first application program of setting executes can if receiving the instruction of the type
To there is the first application program to be automatically performed the control operation to target device so that user to the control of target device more just
It is prompt.
Certainly, in practical applications, in the interface of the second application program there may also be the control control to target device,
When user operates in the control control of the second Application Program Interface, triggers control instruction, the second application program is then led to
The communication with the first application program is crossed, the SDK for loading the target device of the correspondence in the first application program is called, thereby executing
Control operation to the target device.
First application program is set, and user only needs through first application program, so that it may real in the embodiment of the present invention
The now control to the equipment for using different communication protocol.Specifically, the reception pair in the runnable interface in the first application program
After the control instruction of target device, control is executed by the second application program controlling target device corresponding with target device and is referred to
It enables.After receiving the control instruction to target device by the first application program, no matter target device uses any lead to
Agreement is believed, as long as can realize the control to the target device, therefore user only needs by corresponding second application program
Pass through the first application program, so that it may realize control to the target device for using different communication protocol, simplify user to making
Operation when being controlled with the equipment of different communication protocol.
It should be noted that for the aforementioned method embodiment, for simple description, therefore, it is stated as a series of
Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described, because according to
According to the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know that,
The embodiments described in the specification are all preferred embodiments, and related movement is not necessarily essential to the invention.
Installation practice three
Referring to Fig. 3, the structural block diagram of one of embodiment of the present invention smart machine control mobile terminal 300 is shown.
Include:
Control instruction receiving module 310, for receiving the control to target device in the runnable interface of the first application program
System instruction;
Execution module 320 is controlled, for passing through target described in the second application program controlling corresponding with the target device
Equipment executes the control instruction.
Preferably, referring to Fig. 4, on the basis of Fig. 3, smart machine control mobile terminal 300 can also include:
Command reception module 330 is added, target device is added for being received in the runnable interface of the first application program
Add instruction;
Software Development Kit obtains module 340, for being instructed by first application program according to the addition, obtains
Software Development Kit corresponding with the target device, and
Start adding module 350, for being instructed by first application program according to the addition, starting and the target
Corresponding second application program of equipment;
Target device adding module 360, for the institute in the first application program as described in second application call
Software Development Kit is stated, operation is added to the target device.
Notify sending module 370, for being operated by second application program in the control to the target device or
After the completion of addition operation, notice is sent completely to first application program;
State update module 380 updates the corresponding target for first application program according to the completion notice
The state of equipment.
Determining module 390 is instructed, for determining the instruction type of the control instruction;When described instruction type is by first
When the type that application program executes, the Software Development Kit as described in first application call executes the control instruction
Corresponding control operation;When described instruction type is the instruction of the type executed by the second application program, by the control
The step of execution module processed executes.
The control execution module 320 includes:
Implementation sub-module 3201 is controlled, for first as described in the second application call corresponding with the target device
Pre-loaded Software Development Kit in application program controls the target device and executes the control instruction;The software
Development kit is corresponding with the target device;The Software Development Kit supports the control protocol of the target device.
The addition command reception module 330 includes:
Add command reception submodule 3301, the equipment exhibition for being shown in the runnable interface of first application program
Show in list, receives the addition to target device and instruct.
First application program is set, and user only needs through first application program, so that it may real in the embodiment of the present invention
The now control to the equipment for using different communication protocol.Specifically, the reception pair in the runnable interface in the first application program
After the control instruction of target device, control is executed by the second application program controlling target device corresponding with target device and is referred to
It enables.In the embodiment of the present invention, after receiving the control instruction to target device by the first application program, no matter target device makes
It is any communication protocol, as long as can realize the control to the target device by corresponding second application program,
Therefore user only needs through the first application program, so that it may realize the control to the target device for using different communication protocol,
Simplify operation when user controls the equipment for using different communication protocol.
Above-mentioned mobile terminal can be realized each process that mobile terminal is realized in the embodiment of the method for Fig. 1, Fig. 2, to keep away
Exempt to repeat, which is not described herein again.
A kind of hardware structural diagram of Fig. 5 mobile terminal of each embodiment to realize the present invention.
The mobile terminal 500 includes but is not limited to: radio frequency unit 501, network module 502, audio output unit 503, defeated
Enter unit 504, sensor 505, display unit 506, user input unit 507, interface unit 508, memory 509, processor
The components such as 510 and power supply 511.It will be understood by those skilled in the art that mobile terminal structure shown in Fig. 5 is not constituted
Restriction to mobile terminal, mobile terminal may include than illustrating more or fewer components, perhaps combine certain components or
Different component layouts.In embodiments of the present invention, mobile terminal include but is not limited to mobile phone, tablet computer, laptop,
Palm PC, car-mounted terminal, wearable device and pedometer etc..
Wherein, processor 510 refer to the control of target device for receiving in the runnable interface of the first application program
It enables;The control instruction is executed by target device described in the second application program controlling corresponding with the target device.
First application program is set, and user only needs through first application program, so that it may real in the embodiment of the present invention
The now control to the equipment for using different communication protocol.Specifically, the reception pair in the runnable interface in the first application program
After the control instruction of target device, control is executed by the second application program controlling target device corresponding with target device and is referred to
It enables.In the embodiment of the present invention, after receiving the control instruction to target device by the first application program, no matter target device makes
It is any communication protocol, as long as can realize the control to the target device by corresponding second application program,
Therefore user only needs through the first application program, so that it may realize the control to the target device for using different communication protocol,
Simplify operation when user controls the equipment for using different communication protocol.
It should be understood that the embodiment of the present invention in, radio frequency unit 501 can be used for receiving and sending messages or communication process in, signal
Send and receive, specifically, by from base station downlink data receive after, to processor 510 handle;In addition, by uplink
Data are sent to base station.In general, radio frequency unit 501 includes but is not limited to antenna, at least one amplifier, transceiver, coupling
Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 501 can also by wireless communication system and network and other set
Standby communication.
Mobile terminal provides wireless broadband internet by network module 502 for user and accesses, and such as user is helped to receive
It sends e-mails, browse webpage and access streaming video etc..
Audio output unit 503 can be received by radio frequency unit 501 or network module 502 or in memory 509
The audio data of storage is converted into audio signal and exports to be sound.Moreover, audio output unit 503 can also be provided and be moved
The relevant audio output of specific function that dynamic terminal 500 executes is (for example, call signal receives sound, message sink sound etc.
Deng).Audio output unit 503 includes loudspeaker, buzzer and receiver etc..
Input unit 504 is for receiving audio or video signal.Input unit 504 may include graphics processor
(Graphics Processing Unit, GPU) 5041 and microphone 5042, graphics processor 5041 is in video acquisition mode
Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out
Reason.Treated, and picture frame may be displayed on display unit 506.Through graphics processor 5041, treated that picture frame can be deposited
Storage is sent in memory 509 (or other storage mediums) or via radio frequency unit 501 or network module 502.Mike
Wind 5042 can receive sound, and can be audio data by such acoustic processing.Treated audio data can be
The format output that mobile communication base station can be sent to via radio frequency unit 501 is converted in the case where telephone calling model.
Mobile terminal 500 further includes at least one sensor 505, such as optical sensor, motion sensor and other biographies
Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 5061, and proximity sensor can close when mobile terminal 500 is moved in one's ear
Display panel 5061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify mobile terminal posture (ratio
Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);It passes
Sensor 505 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, wet
Meter, thermometer, infrared sensor etc. are spent, details are not described herein.
Display unit 506 is for showing information input by user or being supplied to the information of user.Display unit 506 can wrap
Display panel 5061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used
Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 5061.
User input unit 507 can be used for receiving the number or character information of input, and generate the use with mobile terminal
Family setting and the related key signals input of function control.Specifically, user input unit 507 include touch panel 5071 and
Other input equipments 5072.Touch panel 5071, also referred to as touch screen collect the touch operation of user on it or nearby
(for example user uses any suitable objects or attachment such as finger, stylus on touch panel 5071 or in touch panel 5071
Neighbouring operation).Touch panel 5071 may include both touch detecting apparatus and touch controller.Wherein, touch detection
Device detects the touch orientation of user, and detects touch operation bring signal, transmits a signal to touch controller;Touch control
Device processed receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 510, receiving area
It manages the order that device 510 is sent and is executed.Furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc.
Seed type realizes touch panel 5071.In addition to touch panel 5071, user input unit 507 can also include other input equipments
5072.Specifically, other input equipments 5072 can include but is not limited to physical keyboard, function key (such as volume control button,
Switch key etc.), trace ball, mouse, operating stick, details are not described herein.
Further, touch panel 5071 can be covered on display panel 5061, when touch panel 5071 is detected at it
On or near touch operation after, send processor 510 to determine the type of touch event, be followed by subsequent processing device 510 according to touching
The type for touching event provides corresponding visual output on display panel 5061.Although in Fig. 5, touch panel 5071 and display
Panel 5061 is the function that outputs and inputs of realizing mobile terminal as two independent components, but in some embodiments
In, can be integrated by touch panel 5071 and display panel 5061 and realize the function that outputs and inputs of mobile terminal, it is specific this
Place is without limitation.
Interface unit 508 is the interface that external device (ED) is connect with mobile terminal 500.For example, external device (ED) may include having
Line or wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, storage card end
Mouth, port, the port audio input/output (I/O), video i/o port, earphone end for connecting the device with identification module
Mouthful etc..Interface unit 508 can be used for receiving the input (for example, data information, electric power etc.) from external device (ED) and
By one or more elements that the input received is transferred in mobile terminal 500 or can be used in 500 He of mobile terminal
Data are transmitted between external device (ED).
Memory 509 can be used for storing software program and various data.Memory 509 can mainly include storing program area
The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function
Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as
Audio data, phone directory etc.) etc..In addition, memory 509 may include high-speed random access memory, it can also include non-easy
The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 510 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection
A part by running or execute the software program and/or module that are stored in memory 509, and calls and is stored in storage
Data in device 509 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place
Managing device 510 may include one or more processing units;Preferably, processor 510 can integrate application processor and modulatedemodulate is mediated
Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main
Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 510.
Mobile terminal 500 can also include the power supply 511 (such as battery) powered to all parts, it is preferred that power supply 511
Can be logically contiguous by power-supply management system and processor 510, to realize management charging by power-supply management system, put
The functions such as electricity and power managed.
In addition, mobile terminal 500 includes some unshowned functional modules, details are not described herein.
Preferably, the embodiment of the present invention also provides a kind of mobile terminal, including processor 510, and memory 509 is stored in
On memory 509 and the computer program that can run on the processor 510, the computer program are executed by processor 510
Each process of the above-mentioned smart machine control method embodiment of Shi Shixian, and identical technical effect can be reached, to avoid repeating,
Which is not described herein again.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium
Calculation machine program, the computer program realize each process of above-mentioned smart machine control method embodiment when being executed by processor,
And identical technical effect can be reached, to avoid repeating, which is not described herein again.Wherein, the computer readable storage medium,
Such as read-only memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, letter
Claim RAM), magnetic or disk etc..
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service
Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific
Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art
Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much
Form belongs within protection of the invention.
Claims (10)
1. a kind of smart machine control method, which is characterized in that be applied to mobile terminal, which comprises
The control instruction to target device is received in the runnable interface of the first application program;
The control instruction is executed by target device described in the second application program controlling corresponding with the target device.
2. the method according to claim 1, wherein described pass through the second application corresponding with the target device
Target device described in process control executes the step of control instruction, comprising:
Pre-loaded software is opened in the first application program as described in the second application call corresponding with the target device
Kit is sent out, the target device is controlled and executes the control instruction;The Software Development Kit and the target device pair
It answers;The Software Development Kit supports the control protocol of the target device.
3. according to the method described in claim 2, it is characterized in that, being received in the runnable interface of the first application program described
Before the step of to the control instruction of target device, further includes:
The addition to target device is received in the runnable interface of the first application program to instruct;
It is instructed by first application program according to the addition, obtains Software Development Tools corresponding with the target device
Packet, and
It is instructed by first application program according to the addition, starts the second application program corresponding with the target device;
The Software Development Kit in the first application program as described in second application call, sets the target
It is standby to be added operation.
4. method according to claim 1 or 3, which is characterized in that answered by corresponding with the target device second
The target device described in process control executed after the step of control instruction, further includes:
By second application program after the completion of control to the target device operates or add operation, to described first
Application program is sent completely notice;
First application program updates the state of the corresponding target device according to the completion notice.
5. according to the method described in claim 3, it is characterized in that, being received in the runnable interface of the first application program described
After the step of to the control instruction of target device, further includes:
Determine the instruction type of the control instruction;
When described instruction type is the type executed by the first application program, the software as described in first application call
Development kit executes the corresponding control operation of the control instruction;
When described instruction type is the instruction of the type executed by the second application program, enter through and the target device pair
Target device described in the second application program controlling answered executes the step of control instruction.
6. a kind of smart machine controls mobile terminal, which is characterized in that the mobile terminal includes:
Control instruction receiving module, for receiving the control instruction to target device in the runnable interface of the first application program;
Execution module is controlled, for executing by target device described in the second application program controlling corresponding with the target device
The control instruction.
7. mobile terminal according to claim 6, which is characterized in that the control execution module includes:
Implementation sub-module is controlled, in the first application program described in the second application call corresponding with the target device
Pre-loaded Software Development Kit controls the target device and executes the control instruction;The Software Development Kit
It is corresponding with the target device;The Software Development Kit supports the control protocol of the target device.
8. mobile terminal according to claim 7, which is characterized in that further include:
Command reception module is added, for receiving the addition instruction to target device in the runnable interface of the first application program;
Software Development Kit obtains module, for being instructed by first application program according to the addition, acquisition with it is described
The corresponding Software Development Kit of target device, and
Start adding module, for being instructed by first application program according to the addition, starting and the target device pair
The second application program answered;
Target device adding module is opened for the software in the first application program as described in second application call
Kit is sent out, operation is added to the target device.
9. the mobile terminal according to claim 6 or 8, which is characterized in that further include:
Sending module is notified, for operating or adding operation in the control to the target device by second application program
After the completion, notice is sent completely to first application program;
State update module updates the corresponding target device for first application program according to the completion notice
State.
10. mobile terminal according to claim 8, which is characterized in that further include:
Determining module is instructed, for determining the instruction type of the control instruction;When described instruction type is to apply journey by first
When the type that sequence executes, it is corresponding that the Software Development Kit as described in first application call executes the control instruction
Control operation;When described instruction type is the instruction of the type executed by the second application program, executed by the control
The step of module executes.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810636434.9A CN108958074B (en) | 2018-06-20 | 2018-06-20 | A kind of smart machine control method and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810636434.9A CN108958074B (en) | 2018-06-20 | 2018-06-20 | A kind of smart machine control method and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108958074A true CN108958074A (en) | 2018-12-07 |
CN108958074B CN108958074B (en) | 2019-11-29 |
Family
ID=64489621
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810636434.9A Active CN108958074B (en) | 2018-06-20 | 2018-06-20 | A kind of smart machine control method and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108958074B (en) |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109885360A (en) * | 2019-02-28 | 2019-06-14 | 北京小米移动软件有限公司 | A kind of data processing method, device and storage medium |
CN109885302A (en) * | 2019-01-29 | 2019-06-14 | 维沃移动通信有限公司 | A kind of methods of exhibiting and terminal device applied fastly |
CN109921943A (en) * | 2019-03-19 | 2019-06-21 | 维沃移动通信有限公司 | One kind matching network method and terminal |
CN110083138A (en) * | 2019-05-21 | 2019-08-02 | 无锡微茗智能科技有限公司 | A kind of management method and device of industrial system |
CN111399392A (en) * | 2020-04-02 | 2020-07-10 | 深圳创维-Rgb电子有限公司 | Smart home interaction control method and device based on smart screen and smart screen |
CN111722885A (en) * | 2020-06-19 | 2020-09-29 | 北京字节跳动网络技术有限公司 | Program running method and device and electronic equipment |
WO2020223854A1 (en) * | 2019-05-05 | 2020-11-12 | 深圳市欢太科技有限公司 | Device network configuration method and apparatus, electronic device and storage medium |
WO2020228033A1 (en) * | 2019-05-16 | 2020-11-19 | 深圳市欢太科技有限公司 | Sdk plug-in loading method and apparatus, and mobile terminal and storage medium |
CN112025704A (en) * | 2020-08-25 | 2020-12-04 | 杭州湖西云百生科技有限公司 | Real-time distributed robot control method and system based on memory type database |
CN113168334A (en) * | 2019-02-22 | 2021-07-23 | 深圳市欢太科技有限公司 | Data processing method and device, electronic equipment and readable storage medium |
CN113169992A (en) * | 2019-02-22 | 2021-07-23 | 深圳市欢太科技有限公司 | Equipment network distribution method and device, electronic equipment and storage medium |
CN113169991A (en) * | 2019-02-22 | 2021-07-23 | 深圳市欢太科技有限公司 | Intelligent device network distribution method and device, electronic device and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150249720A1 (en) * | 2014-03-03 | 2015-09-03 | Airpush, Inc. | In-app content channel |
CN105610660A (en) * | 2016-03-23 | 2016-05-25 | 美的集团股份有限公司 | Home device control system, method and smart home system |
CN205281140U (en) * | 2015-12-08 | 2016-06-01 | 深圳众乐智府科技有限公司 | Smart home system |
CN106130853A (en) * | 2016-08-31 | 2016-11-16 | 深圳Tcl智能家庭科技有限公司 | A kind of intarconnected cotrol method of intelligent home device and system thereof |
CN106533860A (en) * | 2016-11-18 | 2017-03-22 | 深圳Tcl智能家庭科技有限公司 | Intelligent household interaction software bus system and realization method |
CN107154946A (en) * | 2017-06-06 | 2017-09-12 | 宁波小匠物联网科技有限公司 | A kind of smart machine control method for supporting various communications protocols |
-
2018
- 2018-06-20 CN CN201810636434.9A patent/CN108958074B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150249720A1 (en) * | 2014-03-03 | 2015-09-03 | Airpush, Inc. | In-app content channel |
CN205281140U (en) * | 2015-12-08 | 2016-06-01 | 深圳众乐智府科技有限公司 | Smart home system |
CN105610660A (en) * | 2016-03-23 | 2016-05-25 | 美的集团股份有限公司 | Home device control system, method and smart home system |
CN106130853A (en) * | 2016-08-31 | 2016-11-16 | 深圳Tcl智能家庭科技有限公司 | A kind of intarconnected cotrol method of intelligent home device and system thereof |
CN106533860A (en) * | 2016-11-18 | 2017-03-22 | 深圳Tcl智能家庭科技有限公司 | Intelligent household interaction software bus system and realization method |
CN107154946A (en) * | 2017-06-06 | 2017-09-12 | 宁波小匠物联网科技有限公司 | A kind of smart machine control method for supporting various communications protocols |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109885302A (en) * | 2019-01-29 | 2019-06-14 | 维沃移动通信有限公司 | A kind of methods of exhibiting and terminal device applied fastly |
CN113168334A (en) * | 2019-02-22 | 2021-07-23 | 深圳市欢太科技有限公司 | Data processing method and device, electronic equipment and readable storage medium |
CN113169992A (en) * | 2019-02-22 | 2021-07-23 | 深圳市欢太科技有限公司 | Equipment network distribution method and device, electronic equipment and storage medium |
CN113169991A (en) * | 2019-02-22 | 2021-07-23 | 深圳市欢太科技有限公司 | Intelligent device network distribution method and device, electronic device and storage medium |
CN109885360A (en) * | 2019-02-28 | 2019-06-14 | 北京小米移动软件有限公司 | A kind of data processing method, device and storage medium |
CN109885360B (en) * | 2019-02-28 | 2022-06-03 | 北京小米移动软件有限公司 | Data processing method, device and storage medium |
CN109921943A (en) * | 2019-03-19 | 2019-06-21 | 维沃移动通信有限公司 | One kind matching network method and terminal |
WO2020223854A1 (en) * | 2019-05-05 | 2020-11-12 | 深圳市欢太科技有限公司 | Device network configuration method and apparatus, electronic device and storage medium |
CN113412469A (en) * | 2019-05-05 | 2021-09-17 | 深圳市欢太科技有限公司 | Equipment network distribution method and device, electronic equipment and storage medium |
CN113412468A (en) * | 2019-05-16 | 2021-09-17 | 深圳市欢太科技有限公司 | SDK plug-in loading method and device, mobile terminal and storage medium |
WO2020228033A1 (en) * | 2019-05-16 | 2020-11-19 | 深圳市欢太科技有限公司 | Sdk plug-in loading method and apparatus, and mobile terminal and storage medium |
CN110083138A (en) * | 2019-05-21 | 2019-08-02 | 无锡微茗智能科技有限公司 | A kind of management method and device of industrial system |
CN111399392A (en) * | 2020-04-02 | 2020-07-10 | 深圳创维-Rgb电子有限公司 | Smart home interaction control method and device based on smart screen and smart screen |
CN111722885A (en) * | 2020-06-19 | 2020-09-29 | 北京字节跳动网络技术有限公司 | Program running method and device and electronic equipment |
CN111722885B (en) * | 2020-06-19 | 2023-08-08 | 抖音视界有限公司 | Program running method and device and electronic equipment |
CN112025704A (en) * | 2020-08-25 | 2020-12-04 | 杭州湖西云百生科技有限公司 | Real-time distributed robot control method and system based on memory type database |
Also Published As
Publication number | Publication date |
---|---|
CN108958074B (en) | 2019-11-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108958074B (en) | A kind of smart machine control method and mobile terminal | |
CN110430558A (en) | Apparatus control method, device, electronic equipment and storage medium | |
CN109921943A (en) | One kind matching network method and terminal | |
CN109271121A (en) | A kind of application display method and mobile terminal | |
CN110109593A (en) | A kind of screenshotss method and terminal device | |
CN108287650A (en) | One-handed performance method based on mobile terminal and mobile terminal | |
CN107885512B (en) | A kind of application program installation method, mobile terminal | |
CN110058836A (en) | A kind of output method and terminal device of audio signal | |
CN109284144A (en) | A kind of fast application processing method and mobile terminal | |
CN108595201A (en) | A kind of application program update method and mobile terminal | |
CN108320148A (en) | A kind of resource transfers method and relevant device | |
CN108681483A (en) | A kind of task processing method and device | |
CN109947650A (en) | Script step process methods, devices and systems | |
CN109521684A (en) | A kind of home equipment control method and terminal device | |
CN109814777A (en) | The setting method to show topics and a kind of mobile terminal | |
CN108345474A (en) | Startup method, starter and the mobile terminal of application program | |
CN108491148A (en) | A kind of application sharing method and terminal | |
CN109407948A (en) | A kind of interface display method and mobile terminal | |
CN109885323A (en) | A kind of application program updating method, mobile terminal and readable storage medium storing program for executing | |
CN110035181A (en) | It is a kind of to apply card theme setting method and terminal fastly | |
CN109358931A (en) | A kind of interface display method and terminal | |
CN109491670A (en) | A kind of page display method and terminal device | |
CN108009031A (en) | The control method and mobile terminal of a kind of application program | |
CN108540668B (en) | A kind of program starting method and mobile terminal | |
CN107943361B (en) | A kind of application icon display methods, device and mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |