CN105376399B - For controlling the method and device of smart machine - Google Patents
For controlling the method and device of smart machine Download PDFInfo
- Publication number
- CN105376399B CN105376399B CN201510642522.6A CN201510642522A CN105376399B CN 105376399 B CN105376399 B CN 105376399B CN 201510642522 A CN201510642522 A CN 201510642522A CN 105376399 B CN105376399 B CN 105376399B
- Authority
- CN
- China
- Prior art keywords
- smart machine
- control instruction
- communications protocol
- party application
- sent
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/72409—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
- H04M1/72415—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories for remote control of appliances
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M11/00—Telephonic communication systems specially adapted for combination with other electrical systems
- H04M11/007—Telephonic communication systems specially adapted for combination with other electrical systems with remote control systems
Abstract
The disclosure is directed to a kind of for controlling the method and device of smart machine.Wherein, this method comprises: providing the interface for accessing smart machine, by the interface third-party application to the control instruction of the smart machine, based on the communications protocol between the smart machine, the control instruction is sent to the smart machine.Since third-party application is not necessarily to be concerned about the communications protocol requirement of different intelligent equipment, not only reduce the difficulty that third-party application controls smart machine, and, third-party application improves the operational efficiency of third-party application without spending a large amount of computing resources to meet the protocol requirement of different intelligent equipment.
Description
Technical field
This disclosure relates to communication field more particularly to a kind of for controlling the method and device of smart machine.
Background technique
It is some in the related technology, smart machine can be tied to user terminal by user.User can lead in user terminal
Relevant intelligent control is crossed using controlling the smart machine of binding.
And to realize the control to smart machine, intelligent control application needs to send control according to the requirement of smart machine
Instruction.With the appearance of more and more smart machines, this not only applies to intelligent control and brings one to the control of smart machine
Difficulty is determined, furthermore, it is possible to which many intelligent control applications is caused to occupy a large amount of computing resources on the subscriber terminal to meet intelligence
The requirement of equipment reduces the operational efficiency of intelligent control application.
Summary of the invention
To overcome the problems in correlation technique, the disclosure provides a kind of for controlling the method and dress of smart machine
It sets.
According to the first aspect of the embodiments of the present disclosure, a kind of method for controlling smart machine is provided, comprising: provide use
It is based in the interface of access smart machine by the interface third-party application to the control instruction of the smart machine
With the communications protocol between the smart machine, the control instruction is sent to the smart machine.
The technical scheme provided by this disclosed embodiment can include the following benefits: by embodiment of the disclosure institute
The method of offer provides the interface for accessing smart machine, is set by the interface third-party application to the intelligence
The control instruction is sent to the intelligence and is set by standby control instruction based on the communications protocol between the smart machine
Standby, therefore, third-party application only need to send control instruction according to the requirement of the interface, without being concerned about different intelligent equipment
Communications protocol requirement, not only reduces the difficulty that third-party application controls smart machine, moreover, third-party application is without spending
A large amount of computing resources meet the protocol requirement of different intelligent equipment, improve the operational efficiency of third-party application.
In the first possible embodiment of embodiment of the present disclosure first aspect, the method is applied to memory-resident
Service.
Technical solution provided in this embodiment can include the following benefits: the method application as provided by the disclosure
In the service of memory-resident, therefore, third-party application can be received at any time to the calling of interface, control is issued to smart machine and is referred to
It enables, in time, control efficiency is high for response.
In conjunction with the first possible embodiment of embodiment of the present disclosure first aspect, in second of possible embodiment
In, the control instruction is sent to the smart machine by the communications protocol based between the smart machine, packet
Include: generation include the control instruction, meet the message of the communications protocol;Using predetermined encryption algorithm to the message
It is encrypted;Based on the communications protocol between the smart machine, encrypted message is sent to the smart machine.
Technical solution provided in this embodiment can include the following benefits: since the present embodiment is calculated using predetermined encryption
Method encrypts the message for including the control instruction, thereby it can be assured that logical between user terminal and smart machine
News safety, guarantees the safety of smart machine, guarantees the interests of user.Moreover, third-party application without having to worry about with smart machine it
Between communication security problem, third-party application further reduces without spending resource to carry out the calculating in relation to communication security
Third-party application improves the operational efficiency of third-party application to the control difficulty of terminal device.
It is possible at the third in conjunction with the first or second of possible embodiment of embodiment of the present disclosure first aspect
In embodiment, the control instruction is sent to the intelligence by the communications protocol based between the smart machine
Equipment, comprising: by third-party application described in server authentication whether be security application, determining the third-party application for peace
In the case where full application, based on the communications protocol between the smart machine, the control instruction is sent to the intelligence
Equipment.
Technical solution provided in this embodiment can include the following benefits: since the present embodiment is to sending control instruction
Third-party application carry out safety verification, thereby it can be assured that smart machine is controlled by the third-party application of safety, guarantee intelligence
The safety of energy equipment, guarantees the interests of user.
It is possible at the 4th kind in conjunction with the first or second of possible embodiment of embodiment of the present disclosure first aspect
In embodiment, the control instruction is sent to the intelligence by the communications protocol based between the smart machine
Equipment, comprising: judge whether the smart machine is local intelligent equipment or remote outside local area network in local area network
Journey smart machine, in the case where the smart machine is local intelligent equipment, based on the communication between the smart machine
The control instruction is sent to the smart machine by local area network by agreement, is long-distance intelligent in the smart machine
In the case where equipment, based on the communications protocol between the smart machine, the control instruction is sent to by server
The smart machine.
Technical solution provided in this embodiment can include the following benefits: since method provided in this embodiment can
Local intelligent equipment in automatic discovery local area network, distinguishes local intelligent equipment and long-distance intelligent equipment, respectively
Control instruction is sent using different transmission paths for local intelligent equipment, long-distance intelligent equipment, so as in third
In the case that the targeted smart machine of the control instruction that Fang Yingyong is issued is local intelligent equipment, it is not necessary to be sent out by server
Control instruction is sent, but control instruction is sent by local area network, allows control instruction quickly to reach needs controlled
The smart machine of system not only saves Internet resources, but also the speed for making third-party application access smart machine is faster, controls effect
Rate is higher.
In conjunction with the 4th kind of possible embodiment of embodiment of the present disclosure first aspect, in the 5th kind of possible embodiment
In, it is described to judge that the smart machine whether be local intelligent equipment in local area network includes: into local area network
Smart machine issues broadcast message, and the smart machine received in local area network is unique for the equipment of the broadcast message feedback
Mark, is determined as local intelligent equipment for the smart machine that the equipment unique identification is identified.
Technical solution provided in this embodiment can include the following benefits: due to the equipment according to broadcast message feedback
Unique identification determines local intelligent equipment, therefore, accuracy of judgement and high-efficient.
According to the second aspect of an embodiment of the present disclosure, it provides a kind of for controlling the device of smart machine, comprising: interface mentions
For module, it is configured to supply the interface for accessing smart machine.Command reception module is configured as mentioning by the interface
The interface third-party application provided for module is to the control instruction of the smart machine.Instruction sending module is matched
It is set to based on the communications protocol between the smart machine, the received control instruction of described instruction receiving module is sent
To the smart machine.
In the first possible embodiment of embodiment of the present disclosure second aspect, described instruction sending module, comprising:
Message generate submodule, be configurable to generate include the control instruction, meet the message of the communications protocol.Message adds
Close submodule is configured with predetermined encryption algorithm and encrypts to the message.Sending submodule, be configured as based on
Encrypted message is sent to the smart machine by the communications protocol between the smart machine.
In conjunction with the first possible embodiment of embodiment of the present disclosure second aspect, in second of possible embodiment
In, described instruction sending module, comprising: verifying submodule, be configured as by third-party application described in server authentication whether
For security application.Sending submodule is configured as determining that the third-party application is security application in the verifying submodule
In the case of, based on the communications protocol between the smart machine, the control instruction is sent to the smart machine.
In conjunction with the first possible embodiment of embodiment of the present disclosure second aspect, in the third possible embodiment
In, described instruction sending module, comprising: judging submodule is configured as judging whether the smart machine is local area network
Long-distance intelligent equipment outside interior local intelligent equipment or local area network.Sending submodule is configured as setting in the intelligence
In the case where for local intelligent equipment, based on the communications protocol between the smart machine, the control instruction is passed through
Local area network is sent to the smart machine;The smart machine be long-distance intelligent equipment in the case where, based on it is described
The control instruction is sent to the smart machine by server by the communications protocol between smart machine.
In conjunction with the third possible embodiment of embodiment of the present disclosure second aspect, in the 4th kind of possible embodiment
In, the judging submodule includes: broadcast submodule, and the smart machine sending broadcast being configured as into local area network disappears
Breath.Receiving submodule is identified, is configured as receiving smart machine the setting for the broadcast message feedback in local area network
Standby unique identification.It is local to determine submodule, it is configured as the smart machine that the equipment unique identification is identified being determined as this
Ground smart machine.
According to the third aspect of an embodiment of the present disclosure, it provides a kind of for controlling the device of smart machine, comprising: processing
Device;Memory for storage processor executable instruction;Wherein, the processor is configured to: provide for accessing intelligence
The interface of equipment;By the interface third-party application to the control instruction of the smart machine;Based on the intelligence
The control instruction is sent to the smart machine by the communications protocol between equipment.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not
The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure
Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 is a kind of structural schematic diagram of implementation environment shown according to an exemplary embodiment.
Fig. 2 is shown according to an exemplary embodiment for controlling the flow chart of the method for smart machine.
Fig. 3 is the flow chart of the method for controlling smart machine shown according to another exemplary embodiment.
Fig. 4 is the flow chart of the method for controlling smart machine shown according to a further exemplary embodiment.
Fig. 5 is the flow chart of the method for controlling smart machine shown according to a further exemplary embodiment.
Fig. 6 a is schematic network structure shown according to an exemplary embodiment.
Fig. 6 b is the schematic network structure shown according to another exemplary embodiment.
Fig. 7 is the flow chart of the method for controlling smart machine shown according to a further exemplary embodiment.
Fig. 8 is shown according to an exemplary embodiment a kind of for controlling the device block diagram of smart machine.
Fig. 9 be show according to another exemplary embodiment it is a kind of for controlling the device block diagram of smart machine.
Figure 10 is shown according to an exemplary embodiment a kind of for controlling the block diagram of the device of smart machine.
Figure 11 be show according to another exemplary embodiment it is a kind of for controlling the block diagram of the device of smart machine.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended
The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
Fig. 1 is a kind of structural schematic diagram of implementation environment shown according to an exemplary embodiment.As shown in Figure 1, the reality
Applying environment may include: smart machine 110 and user terminal 120.
Smart machine 110 can be connect by network with user terminal 120, and mutual by network and user terminal 120
Communication.The network for example can include but is not limited to: the nets such as WiFi (Wireless Fidelity, Wireless Fidelity), 2G, 3G, 4G
Network.In Fig. 1, smart machine 110 is illustrated by taking picture pick-up device as an example.For example, picture pick-up device can be with store function and
The intelligent camera or intelligent video camera head of processing function.Between user terminal 120 and smart machine 110 can with direct communication or
Via server communication.Via server communication, server can be used for storing, processing, and/or transmission are intelligent
Interaction data between equipment 110 and user terminal 120.
User terminal 120 can be wearable device, smart phone, tablet computer, PC machine, laptop etc..It should
User terminal 120 can pass through network-control smart machine 110.In Fig. 1, user terminal 120 shows by taking smart phone as an example
Meaning.
Fig. 2 is shown according to an exemplary embodiment for controlling the flow chart of the method for smart machine.This method can
To be applied to user terminal.For example, can be applied to user terminal 120 shown in FIG. 1.As shown in Fig. 2, this method can wrap
It includes:
In step 210, the interface for accessing smart machine is provided.
For example, can be a kind of for developing the kit app SDK of third-party application, intelligence shown in Fig. 1 by providing
In the operating system of mobile phone, the service that the method for controlling smart machine of disclosure offer is provided is added.The service can
To start simultaneously memory-resident automatically when mobile phone starts.The service can provide the interface for accessing smart machine.It can be with
Understand, which can be defined the call instruction to be used of calling interface institute and call parameters.For example, should
Call parameters at least may include the equipment unique identification and control instruction of the smart machine controlled.As long as third-party application
It, can be by calling interface sending to refer to the control of smart machine using correct call instruction and respective calls parameter
It enables.
In a step 220, by the interface third-party application to the control instruction of the smart machine.Wherein,
The control instruction can show as being used to indicate the smart machine to execute the command content centainly operated.For example, passing through
The interface can receive third-party application to the control instructions such as open or close of camera shown in Fig. 1.The control instruction can
To show as command content " camera unlatching " or " camera closing ".For example, the third-party application can be to be mounted on such as Fig. 1
The intelligent control application of shown user terminal.
For example, the service for providing the interface can obtain the equipment of the smart machine controlled only when the interface is called
One mark and control instruction.It is understood that the requirement to control instruction is related with the requirement of smart machine itself, it is different
Requirement of the smart machine to control instruction is different, and can specifically be determined by smart machine.The service for providing the interface can
The legitimacy verifies algorithm of corresponding control instruction is previously provided with, to control instruction according to the requirement of different intelligent equipment
Associated control parameters carry out legitimacy verifies.
In step 230, based on the communications protocol between the smart machine, the control instruction is sent to described
Smart machine.
For example, communications protocol described in the disclosure may include: to the message for sending control instruction to smart machine
The requirement of format, control instruction and relevant parameter.For example, when receiving control instruction, it can be according to control instruction institute needle
Pair smart machine, inquiring needs communications protocol corresponding to smart machine to be controlled, and then according to the communications protocol institute
The requirement of corresponding message format and relevant parameter generates the message for carrying control instruction.Message is sent to intelligence to set
After standby, smart machine parse to message and then obtain control instruction according to communications protocol, complete to smart machine
Control.
It is understood that according to actual needs, the service for providing the interface can be provided for adding, delete, repair
The interface for changing communications protocol, by calling the interface can be to being added, delete, repair by the communications protocol of control smart machine
Change, etc. operation.
In conclusion the method as provided by the disclosure provides the interface for accessing smart machine, by described
Interface third-party application is to the control instruction of the smart machine, based on the communications protocol between the smart machine,
The control instruction is sent to the smart machine, therefore, third-party application need to only send according to the requirement of the interface and control
System instruction not only reduces third-party application to smart machine control without being concerned about the communications protocol requirement of different intelligent equipment
The difficulty of system, moreover, third-party application is improved without spending a large amount of computing resources to meet the protocol requirement of different intelligent equipment
The operational efficiency of third-party application.
In a kind of possible embodiment, for example, can be application be added in the operating system of smart phone shown in Fig. 1
The service for the method for controlling smart machine that the disclosure provides.The service can mobile phone start when automatically starting and it is normal
In memory.The method as provided by the disclosure is applied to the service of memory-resident, third-party application can be received at any time
To the calling of interface, control instruction is issued to smart machine, in time, control efficiency is high for response.For example, intelligence hand shown in Fig. 1
The third-party application for controlling smart machine as shown in Figure 1 can be run in machine.The third-party application can show as
The interactive interface of smart phone shown in FIG. 1.In the case that user controls smart machine by the interaction page, the
Tripartite's application can issue the control instruction to smart machine shown in Fig. 1 by the interface for calling the service of memory-resident to provide.
The service can be based on and the intelligence by the interface third-party application to the control instruction of smart machine shown in Fig. 1
The control instruction is sent to the smart machine by the communications protocol between equipment, so that third-party application be made to complete to intelligence
The control of energy equipment.
Fig. 3 is the flow chart of the method for controlling smart machine shown according to another exemplary embodiment.This method
It can be applied to user terminal.For example, can be applied to user terminal 120 shown in FIG. 1.As shown in figure 3, this method can wrap
It includes:
In the step 310, the interface for accessing smart machine is provided.
In step 320, by the interface third-party application to the control instruction of the smart machine.
It in a step 330, whether is security application by third-party application described in server authentication.
For example, certification can preserve relevant registration information (for example, the in server side for the third-party application of safety
Tripartite application unique identification, log-in password, etc.).The service for the offer interface mentioned in example as above can receive the
While tripartite applies the control instruction to smart machine, the registration information of third-party application is obtained, and then send to server
Carry the checking request of the registration information of the third-party application.Server is after receiving checking request, it can be determined that connects
The registration information received whether be stored in server side certification be certain safe third-party application registration information, if it is
And with corresponding permission, (permission for example may include: to use corresponding control to corresponding smart machine to the third-party application
The permission of instruction, etc.), then it can determine and be verified, and verification result is fed back to and runs on subscriber terminal side memory
The service.
In step 331, in the case where determining the third-party application is security application, it is based on and the smart machine
Between communications protocol, the control instruction is sent to the smart machine.
In conclusion since the present embodiment carries out safety verification to the third-party application for issuing control instruction, it can be with
Ensure that smart machine is controlled by the third-party application of safety, guarantee the safety of smart machine, guarantees the interests of user.
Fig. 4 is the flow chart of the method for controlling smart machine shown according to a further exemplary embodiment.This method
It can be applied to user terminal.For example, can be applied to user terminal 120 shown in FIG. 1.As shown in figure 4, this method can wrap
It includes:
In step 410, the interface for accessing smart machine is provided.
At step 420, by the interface third-party application to the control instruction of the smart machine.
In step 430, generation include the control instruction, meet the message of the communications protocol.
Wherein, the message is data block organizing according to certain format, exchanging and transmit in a network.Example
Such as, it may include communications protocol flag bit in the data head of message, may include the control instruction in data volume.For example, needle
To the control instructions such as open or close of camera shown in Fig. 1.The control instruction can show as command content, and " camera is opened
Open " or " camera closing ".For the intelligent terminal for receiving message, it can be obtained by analytic message in its data volume
Command content " camera unlatching " or " camera closing ".In step 431, the message is carried out using predetermined encryption algorithm
Encryption.
For example, the predetermined encryption algorithm can be AES encryption algorithm.
In step 432, based on the communications protocol between the smart machine, encrypted message is sent to described
Smart machine.
In conclusion since the present embodiment using predetermined encryption algorithm adds the message for including the control instruction
It is close, thereby it can be assured that the communication security between user terminal and smart machine, guarantees the safety of smart machine, guarantee user
Interests.Moreover, third-party application is without having to worry about the communication security problem between smart machine, third-party application is without spending
Resource carries out the calculating in relation to communication security, further reduces third-party application to the control difficulty of terminal device, improves
The operational efficiency of third-party application.
Fig. 5 is the flow chart of the method for controlling smart machine shown according to a further exemplary embodiment.This method
It can be applied to user terminal.For example, can be applied to user terminal 120 shown in FIG. 1.As shown in figure 5, this method can wrap
It includes:
In step 510, the interface for accessing smart machine is provided.
In step 520, by the interface third-party application to the control instruction of the smart machine.
In step 530, judge whether the smart machine is local intelligent equipment or local office in local area network
Long-distance intelligent equipment outside the net of domain.
For example, can smart machine into local area network issue broadcast message, receive the intelligence in local area network
The equipment unique identification that equipment is fed back for the broadcast message, the smart machine that the equipment unique identification is identified determine
For local intelligent equipment.It, can will be except local intelligent equipment it is understood that after determining local intelligent equipment
Smart machine is determined as the long-distance intelligent equipment except local area network.The embodiment according to broadcast message feedback equipment only
One mark determines local intelligent equipment, accuracy of judgement and high-efficient.
In step 531, the smart machine be local intelligent equipment in the case where, based on the smart machine it
Between communications protocol, the control instruction is sent to the smart machine by local area network.
In step 532, the smart machine be long-distance intelligent equipment in the case where, based on the smart machine it
Between communications protocol, the control instruction is sent to the smart machine by server.
In order to understand the present embodiment more easily, in the following, the network structure in conjunction with shown in Fig. 6 a, to the smart machine
In the case where local intelligent equipment, the delivering path of control instruction is described in detail.Fig. 6 a is according to an exemplary implementation
The schematic network structure exemplified.For example, network structure as shown in Figure 6 a, can there is user terminal in local area network
120, smart machine 110, router 130.Wherein, user terminal 120 can be by router 130 and smart machine 110, with this
Server 140 except ground local area network communicates.Smart machine 110 can pass through the clothes except router 130 and local area network
Business device 140 communicates.The service of memory-resident can pass through intelligence of the router 130 into local area network in user terminal 120
Equipment issues broadcast message, and the equipment that the smart machine feedback in local area network is received by the router 130 is uniquely marked
Know, the smart machine that the equipment unique identification received is identified is determined as local intelligent equipment.Determining third-party application
The targeted smart machine of control instruction be local intelligent equipment in local area network in the case where, in user terminal 120
Control instruction can be sent to smart machine 110 by router 130 by the service of memory-resident.
In order to understand the present embodiment more easily, in the following, the network structure in conjunction with shown in Fig. 6 b, to the smart machine
In the case where long-distance intelligent equipment, the delivering path of control instruction is described in detail.Fig. 6 b is according to another exemplary reality
Apply the schematic network structure exemplified.For example, network structure as shown in Figure 6 b, in 120 place local area of user terminal
Can there are user terminal 120, router 130 in net.Wherein, user terminal 120 can pass through router 130 and local area network
Outer long-distance intelligent equipment 110, server 140 communicate.Smart machine 110 can be networked by router 150, so with service
Device 140 communicates.The service of memory-resident can be set by intelligence of the router 130 into local area network in user terminal 120
Preparation goes out to broadcast the message, and the equipment unique identification of the smart machine feedback in local area network is received by the router 130,
The smart machine that the equipment unique identification received is identified is determined as local intelligent equipment.In the control for determining third-party application
In the case that the targeted smart machine of system instruction is not the local intelligent equipment in local area network, in user terminal 120 often
Control instruction can be sent to server 140 by router 130 by the service in memory, by server 140 by control instruction
Smart machine 110 is sent to by router 150.
In conclusion since method provided in this embodiment can find that the local intelligent in local area network is set automatically
It is standby, local intelligent equipment and long-distance intelligent equipment are distinguished, used respectively for local intelligent equipment, long-distance intelligent equipment
Different transmission paths sends control instruction, so as to the targeted intelligence of the control instruction that is issued in third-party application
In the case that equipment is local intelligent equipment, it is not necessary to send control instruction by server, but be sent by local area network
Control instruction, control instruction, which is quickly reached, needs smart machine to be controlled, not only saves Internet resources, but also
So that the speed of third-party application access smart machine is faster, control efficiency is higher.
In the following, in conjunction with above-mentioned several possible embodiments, to method provided by the disclosure another can
The embodiment of energy is described in detail.It for example, with reference to Fig. 7, is shown according to a further exemplary embodiment for controlling intelligence
The flow chart of the method for energy equipment.This method can be applied to the service of resident user terminal memory.For example, can be applied to figure
User terminal 120 shown in 1.As shown in fig. 7, this method may include:
In step 700, the interface for accessing smart machine is provided.
In step 720, by the interface third-party application to the control instruction of the smart machine.
It in step 720, whether is security application by third-party application described in server authentication.
In step 730, in the case where determining the third-party application is security application, generation includes the control
Message instruction, meeting the communications protocol.
In step 740, the message is encrypted using predetermined encryption algorithm.
In step 750, the smart machine into local area network issues broadcast message.
In step 760, the smart machine received in local area network is unique for the equipment of the broadcast message feedback
Mark.
In step 770, the smart machine that the equipment unique identification is identified is determined as local intelligent equipment.
In step 780, the smart machine be local intelligent equipment in the case where, based on the smart machine it
Between communications protocol, encrypted message is sent to the smart machine by local area network.
In step 790, the smart machine be long-distance intelligent equipment in the case where, based on the smart machine it
Between communications protocol, encrypted message is sent to the smart machine by server.
In conclusion the service for applying the present embodiment method can be called to provide by the third-party application of safety verification
Api interface access smart machine, third-party application need to only be concerned about the service logic of oneself, and underlying device communications protocol
Realize, distinguish for speed-optimization local/remote device talk realization, secure access realization, etc. all pass through memory-resident
Service realize, to reduce the control difficulty of third-party application, not only make third-party application relatively only when developing
It is vertical, and operational efficiency is higher.
Fig. 8 is shown according to an exemplary embodiment a kind of for controlling the device block diagram of smart machine.Reference Fig. 8,
The apparatus may include interfaces to provide module 810, command reception module 820 and instruction sending module 830.
The interface provides module 810, can be configured as the interface provided for accessing smart machine.
The command reception module 820 can be configured as and provide the interface that module provides by the interface
Control instruction of the third-party application to the smart machine.
The instruction sending module 830 can be configured as based on the communications protocol between the smart machine, will be described
The received control instruction of command reception module is sent to the smart machine.
It provides in conclusion the interface of the device as provided by the disclosure provides module 810 for accessing intelligent set
Standby interface, command reception module 820, to the control instruction of the smart machine, are referred to by the interface third-party application
It enables sending module 830 based on the communications protocol between the smart machine, the control instruction is sent to the intelligence and is set
Standby, therefore, third-party application only need to send control instruction according to the requirement of the interface, without being concerned about different intelligent equipment
Communications protocol requirement, not only reduces the difficulty that third-party application controls smart machine, moreover, third-party application is without spending
A large amount of computing resources meet the protocol requirement of different intelligent equipment, improve the operational efficiency of third-party application.
Fig. 9 be show according to another exemplary embodiment it is a kind of for controlling the device block diagram of smart machine.Referring to figure
9, described instruction sending module 830 may include: verifying submodule 831 and sending submodule 832.
The verifying submodule 831 can be configured as by the way that whether third-party application described in server authentication is to answer safely
With.
The sending submodule 832 can be configured as and determine the third-party application for peace in the verifying submodule 831
In the case where full application, based on the communications protocol between the smart machine, the control instruction is sent to the intelligence
Equipment.
In a kind of possible embodiment, as shown in figure 9, described instruction sending module 830, may include: that message generates
Submodule 833, message encryption submodule 834 and sending submodule 832.
The message generate submodule 833, can be configured as generate include the control instruction, meet the communication
The message of agreement.
The message encryption submodule 834 can be configured as and be encrypted using predetermined encryption algorithm to the message.
The sending submodule 832, can be configured as based on the communications protocol between the smart machine, after encryption
Message be sent to the smart machine.
In a kind of possible embodiment, as shown in figure 9, described instruction sending module 830, may include: judgement submodule
Block 835 and sending submodule 832.
The judging submodule 835 can be configured as and judge whether the smart machine is local in local area network
Long-distance intelligent equipment outside smart machine or local area network.
The sending submodule 832 can be configured as in the case where the smart machine is local intelligent equipment, be based on
With the communications protocol between the smart machine, the control instruction is sent to the smart machine by local area network;
It, will be described based on the communications protocol between the smart machine in the case where the smart machine is long-distance intelligent equipment
Control instruction is sent to the smart machine by server.
In a kind of possible embodiment, as shown in figure 9, the judging submodule 835, may include: broadcast submodule
8351, receiving submodule 8352, local determining submodule 8353 are identified.
The broadcast submodule 8351, the smart machine that can be configured as into local area network issue broadcast message.
The mark receiving submodule 8352 can be configured as the smart machine in reception local area network for described wide
Broadcast the equipment unique identification of message feedback.
This locally determines submodule 8353, can be configured as and sentences the smart machine that the equipment unique identification is identified
It is set to local intelligent equipment.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method
Embodiment in be described in detail, no detailed explanation will be given here.
Figure 10 is shown according to an exemplary embodiment a kind of for controlling the block diagram of the device 1000 of smart machine.Example
Such as, device 1000 can be mobile phone, computer, digital broadcasting terminal, messaging device, game console, and plate is set
It is standby, Medical Devices, body-building equipment, personal digital assistant etc..
Referring to Fig.1 0, device 1000 may include following one or more components: processing component 1002, memory 1004,
Electric power assembly 1006, multimedia component 1008, audio component 1010, the interface 1012 of input/output (I/O), sensor module
1014 and communication component 1016.
The integrated operation of the usual control device 1000 of processing component 1002, such as with display, telephone call, data communication,
Camera operation and record operate associated operation.Processing component 1002 may include one or more processors 1020 to execute
Instruction, it is above-mentioned for controlling all or part of the steps of the method for smart machine to complete.In addition, processing component 1002 can wrap
One or more modules are included, convenient for the interaction between processing component 1002 and other assemblies.For example, processing component 1002 can wrap
Multi-media module is included, to facilitate the interaction between multimedia component 1008 and processing component 1002.
Memory 1004 is configured as storing various types of data to support the operation in device 1000.These data
Example includes the instruction of any application or method for operating on device 1000, contact data, telephone book data,
Message, picture, video etc..Memory 1004 can by any kind of volatibility or non-volatile memory device or they
Combination is realized, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), it is erasable can
Program read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory
Reservoir, disk or CD.
Electric power assembly 1006 provides electric power for the various assemblies of device 1000.Electric power assembly 1006 may include power management
System, one or more power supplys and other with for device 1000 generate, manage, and distribute the associated component of electric power.
Multimedia component 1008 includes the screen of one output interface of offer between described device 1000 and user.?
In some embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel,
Screen may be implemented as touch screen, to receive input signal from the user.Touch panel includes that one or more touch passes
Sensor is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding is dynamic
The boundary of work, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more
Media component 1008 includes a front camera and/or rear camera.When device 1000 is in operation mode, as shot mould
When formula or video mode, front camera and/or rear camera can receive external multi-medium data.Each preposition camera shooting
Head and rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 1010 is configured as output and/or input audio signal.For example, audio component 1010 includes a wheat
Gram wind (MIC), when device 1000 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone quilt
It is configured to receive external audio signal.The received audio signal can be further stored in memory 1004 or via communication
Component 1016 is sent.In some embodiments, audio component 1010 further includes a loudspeaker, is used for output audio signal.
I/O interface 1012 provides interface, above-mentioned peripheral interface module between processing component 1002 and peripheral interface module
It can be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and
Locking press button.
Sensor module 1014 includes one or more sensors, and the state for providing various aspects for device 1000 is commented
Estimate.For example, sensor module 1014 can detecte the state that opens/closes of device 1000, the relative positioning of component, such as institute
The display and keypad that component is device 1000 are stated, sensor module 1014 can be with detection device 1000 or device 1,000 1
The position change of a component, the existence or non-existence that user contacts with device 1000,1000 orientation of device or acceleration/deceleration and dress
Set 1000 temperature change.Sensor module 1014 may include proximity sensor, be configured in not any physics
It is detected the presence of nearby objects when contact.Sensor module 1014 can also include optical sensor, as CMOS or ccd image are sensed
Device, for being used in imaging applications.In some embodiments, which can also include acceleration sensing
Device, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 1016 is configured to facilitate the communication of wired or wireless way between device 1000 and other equipment.Dress
The wireless network based on communication standard, such as WiFi can be accessed by setting 1000,2G or 3G or their combination.It is exemplary at one
In embodiment, communication component 1016 receives broadcast singal or broadcast correlation from external broadcasting management system via broadcast channel
Information.In one exemplary embodiment, the communication component 1016 further includes near-field communication (NFC) module, to promote short distance
Communication.For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band can be based in NFC module
(UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 1000 can be by one or more application specific integrated circuit (ASIC), number
Signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components are realized, above-mentioned for controlling intelligent set for executing
Standby method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided
It such as include the memory 1004 of instruction, above-metioned instruction can be executed above-mentioned for controlling to complete by the processor 1020 of device 1000
The method of smart machine.For example, the non-transitorycomputer readable storage medium can be ROM, random access memory
(RAM), CD-ROM, tape, floppy disk and optical data storage devices etc..
Figure 11 be show according to another exemplary embodiment it is a kind of for controlling the block diagram of the device 1100 of smart machine.
For example, device 1100 may be provided as a server.Referring to Fig.1 1, device 1100 includes processing component 1122, further
Including one or more processors, and the memory resource as representated by memory 1132, it can be by processing component for storing
The instruction of 1122 execution, such as application program.The application program stored in memory 1132 may include one or one with
On each correspond to one group of instruction module.In addition, processing component 1122 is configured as executing instruction, to execute above-mentioned reality
Apply all or part of the steps for the server side mentioned in the method in example for controlling smart machine.
Device 1100 can also include that a power supply module 1126 be configured as the power management of executive device 1100, and one
Wired or wireless network interface 1150 is configured as device 1100 being connected to network and input and output (I/O) interface
1158.Device 1100 can be operated based on the operating system for being stored in memory 1132, such as Windows ServerTM, Mac
OS XTM, UnixTM, LinuxTM, FreeBSDTM or similar.
Those skilled in the art will readily occur to other embodiment party of the disclosure after considering specification and practicing the disclosure
Case.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or adaptability
Variation follows the general principles of this disclosure and including the undocumented common knowledge or usual skill in the art of the disclosure
Art means.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following claim
It points out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.
Claims (11)
1. a kind of method for controlling smart machine, which is characterized in that the method is applied to the memory of resident user terminal
Service, comprising:
An interface for accessing different intelligent equipment is provided;
By the interface third-party application to the control instruction of the smart machine, the third-party application is mounted on institute
It states in user terminal;
According to the targeted smart machine of the control instruction, communications protocol corresponding to the smart machine is inquired;
Based on the communications protocol between the smart machine, the control instruction is sent to the smart machine.
2. the method according to claim 1, wherein the communication association based between the smart machine
View, is sent to the smart machine for the control instruction, comprising:
Generation include the control instruction, meet the message of the communications protocol;
The message is encrypted using predetermined encryption algorithm;
Based on the communications protocol between the smart machine, encrypted message is sent to the smart machine.
3. method according to claim 1 or 2, which is characterized in that the communication based between the smart machine
The control instruction is sent to the smart machine by agreement, comprising:
It whether is security application by third-party application described in server authentication;
In the case where determining the third-party application is security application, based on the communications protocol between the smart machine,
The control instruction is sent to the smart machine.
4. method according to claim 1 or 2, which is characterized in that the communication based between the smart machine
The control instruction is sent to the smart machine by agreement, comprising:
Judge whether the smart machine is the local intelligent equipment in local area network or the long-distance intelligent outside local area network
Equipment;
It, will based on the communications protocol between the smart machine in the case where the smart machine is local intelligent equipment
The control instruction is sent to the smart machine by local area network;
It, will based on the communications protocol between the smart machine in the case where the smart machine is long-distance intelligent equipment
The control instruction is sent to the smart machine by server.
5. according to the method described in claim 4, it is characterized in that, described judge whether the smart machine is local area network
Interior local intelligent equipment includes:
Smart machine into local area network issues broadcast message;
The smart machine in local area network is received for the equipment unique identification of the broadcast message feedback;
The smart machine that the equipment unique identification is identified is determined as local intelligent equipment.
6. a kind of for controlling the device of smart machine, which is characterized in that described device is for realizing in resident user terminal
The service deposited, comprising:
Interface provides module, is configured to supply an interface for accessing different intelligent equipment;
Command reception module is configured as providing the interface third-party application of module offer by the interface to institute
The control instruction of smart machine is stated, the third-party application is mounted in the user terminal;
It is configured as the smart machine targeted according to the control instruction, inquires the association of communication corresponding to the smart machine
The module of view;
Instruction sending module is configured as based on the communications protocol between the smart machine, by described instruction receiving module
The received control instruction is sent to the smart machine.
7. device according to claim 6, which is characterized in that described instruction sending module, comprising:
Message generate submodule, be configurable to generate include the control instruction, meet the message of the communications protocol;
Message encryption submodule is configured with predetermined encryption algorithm and encrypts to the message;
Sending submodule is configured as being sent to encrypted message based on the communications protocol between the smart machine
The smart machine.
8. device according to claim 6 or 7, which is characterized in that described instruction sending module, comprising:
Submodule is verified, is configured as through third-party application described in server authentication whether being security application;
Sending submodule is configured as in the case where the verifying submodule determines that the third-party application is security application,
Based on the communications protocol between the smart machine, the control instruction is sent to the smart machine.
9. device according to claim 6 or 7, which is characterized in that described instruction sending module, comprising:
Judging submodule is configured as judging whether the smart machine is local intelligent equipment or local in local area network
Long-distance intelligent equipment outside local area network;
Sending submodule is configured as in the case where the smart machine is local intelligent equipment, based on setting with the intelligence
Communications protocol between standby, is sent to the smart machine by local area network for the control instruction;It is set in the intelligence
In the case where for long-distance intelligent equipment, based on the communications protocol between the smart machine, the control instruction is passed through
Server is sent to the smart machine.
10. device according to claim 9, which is characterized in that the judging submodule includes:
Submodule is broadcasted, the smart machine being configured as into local area network issues broadcast message;
Receiving submodule is identified, is configured as receiving smart machine the setting for the broadcast message feedback in local area network
Standby unique identification;
It is local to determine submodule, it is configured as the smart machine that the equipment unique identification is identified being determined as that local intelligent is set
It is standby.
11. a kind of for controlling the device of smart machine, which is characterized in that described device is for realizing in resident user terminal
The service deposited, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
An interface for accessing different intelligent equipment is provided;
By the interface third-party application to the control instruction of the smart machine, the third-party application is mounted on institute
It states in user terminal;
According to the targeted smart machine of the control instruction, communications protocol corresponding to the smart machine is inquired;
Based on the communications protocol between the smart machine, the control instruction is sent to the smart machine.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510642522.6A CN105376399B (en) | 2015-09-30 | 2015-09-30 | For controlling the method and device of smart machine |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510642522.6A CN105376399B (en) | 2015-09-30 | 2015-09-30 | For controlling the method and device of smart machine |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105376399A CN105376399A (en) | 2016-03-02 |
CN105376399B true CN105376399B (en) | 2019-04-12 |
Family
ID=55378188
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510642522.6A Active CN105376399B (en) | 2015-09-30 | 2015-09-30 | For controlling the method and device of smart machine |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105376399B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106488443A (en) * | 2016-06-30 | 2017-03-08 | 深圳市美贝壳科技有限公司 | A kind of method protecting data in mobile phone with home intelligent equipment |
CN110275532B (en) * | 2019-06-21 | 2020-12-15 | 珠海格力智能装备有限公司 | Robot control method and device and visual equipment control method and device |
CN110932939A (en) * | 2019-12-06 | 2020-03-27 | 杭州视洞科技有限公司 | Scheme for monitoring APP and IPC network conditions in real time |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10756918B2 (en) * | 2008-12-02 | 2020-08-25 | ioBridge, Inc. | Activating a device via a module-based device interaction system |
CN102932695B (en) * | 2012-11-02 | 2016-03-30 | 华为技术有限公司 | A kind of remote control thereof, intelligent terminal and intelligent remote control system |
CN103019197B (en) * | 2012-12-03 | 2014-10-29 | 海信集团有限公司 | Method and system for conducting long-range control on intelligent terminal device |
CN104902476B (en) * | 2015-05-28 | 2019-02-05 | 神州融安科技(北京)有限公司 | A kind of control method of bluetooth security management |
-
2015
- 2015-09-30 CN CN201510642522.6A patent/CN105376399B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN105376399A (en) | 2016-03-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106302762B (en) | Smart machine binding method and device | |
KR101855602B1 (en) | Methods, apparatuses, program and recoding medium for controlling device | |
CN104159255B (en) | Terminal room shares the method and device of network | |
JP6220993B2 (en) | Smart hardware device control method, apparatus, program, and recording medium | |
CN104869612B (en) | Access the method and device of network | |
KR101793443B1 (en) | Method, apparatus, program and recording medium for setting smart device management account | |
JP6266111B2 (en) | Usage authority acquisition method and apparatus | |
KR102339713B1 (en) | Device network configuration method and apparatus, and medium | |
US20170063824A1 (en) | Method and device for determining control authority on user device | |
KR102044113B1 (en) | Methods and devices for accessing smart cameras | |
CN105607834B (en) | Screen control method, device and terminal | |
CN105744595B (en) | Access method, apparatus, system and the storage medium of WLAN | |
CN105282158A (en) | Intelligent equipment networking method, routing equipment, intelligent equipment and system | |
CN104933351A (en) | Information security processing method and information security processing device | |
CN104376273A (en) | Data access control method and device | |
KR101642019B1 (en) | Method, apparatus, program, and recording medium of verifying terminal | |
CN106506562B (en) | Method for connecting network, device and the smart machine of smart machine | |
CN109039860A (en) | Send and show method and device, the identity authentication method and device of message | |
CN107682538A (en) | The display methods and device of application interface | |
CN105376399B (en) | For controlling the method and device of smart machine | |
CN106488450B (en) | Connect the method and device of wireless network | |
CN105681261A (en) | Security authentication method and apparatus | |
CN106535194B (en) | Screen content sharing method, apparatus and system | |
CN105430642B (en) | Document transmission method and device | |
CN105306567B (en) | Method and device for terminal connection |
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 |