CN105376399A - A method and a device for controlling a smart device - Google Patents

A method and a device for controlling a smart device Download PDF

Info

Publication number
CN105376399A
CN105376399A CN201510642522.6A CN201510642522A CN105376399A CN 105376399 A CN105376399 A CN 105376399A CN 201510642522 A CN201510642522 A CN 201510642522A CN 105376399 A CN105376399 A CN 105376399A
Authority
CN
China
Prior art keywords
smart machine
control command
communications protocol
sent
described smart
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510642522.6A
Other languages
Chinese (zh)
Other versions
CN105376399B (en
Inventor
任桥
赵明
侯恩星
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Technology Co Ltd
Xiaomi Inc
Original Assignee
Xiaomi Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510642522.6A priority Critical patent/CN105376399B/en
Publication of CN105376399A publication Critical patent/CN105376399A/en
Application granted granted Critical
Publication of CN105376399B publication Critical patent/CN105376399B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User 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/72415User 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M11/00Telephonic communication systems specially adapted for combination with other electrical systems
    • H04M11/007Telephonic communication systems specially adapted for combination with other electrical systems with remote control systems

Abstract

The invention provides a method and a device for controlling a smart device. The method comprises the steps of providing an interface for visiting a smart device; receiving a control instruction from a third party application for the smart device via the interface; based on a communication protocol with the smart device, sending the control instruction to the smart device. The third party application does not need to care about the communication protocol requirements of different smart devices, so that the difficulty of control to the smart devices by the third party application is reduced, the third part application does not need to consume a great number of computing resources to meet the protocol requirements of different smart devices, and the operation efficiency of the third party application is raised.

Description

For controlling method and the device of smart machine
Technical field
The disclosure relates to communication field, particularly relates to a kind of method for controlling smart machine and device.
Background technology
In some correlation techniques, smart machine can be tied to user terminal by user.User can be controlled by the smart machine of relevant Based Intelligent Control application to binding at user terminal.
And the control that will realize smart machine, Based Intelligent Control application needs to carry out sending controling instruction according to the requirement of smart machine.Along with the appearance of increasing smart machine, this not only brings certain difficulty to Based Intelligent Control application to the control of smart machine, and, many Based Intelligent Control may be caused to apply and to occupy a large amount of computational resource on the subscriber terminal to meet the requirement of smart machine, reduce the operational efficiency of Based Intelligent Control application.
Summary of the invention
For overcoming Problems existing in correlation technique, the disclosure provides a kind of method for controlling smart machine and device.
According to the first aspect of disclosure embodiment, a kind of method for controlling smart machine is provided, comprise: the interface being provided for accessing smart machine, by described interface third-party application to the control command of described smart machine, based on the communications protocol between described smart machine, described control command is sent to described smart machine.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect: the method provided due to embodiment of the present disclosure provides the interface for accessing smart machine, by described interface third-party application to the control command of described smart machine, based on the communications protocol between described smart machine, described control command is sent to described smart machine, therefore, third-party application only need according to the requirement sending controling instruction of described interface, and without the need to being 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 is without the need to spending a large amount of computational resource to meet the protocol requirement of different intelligent equipment, improve the operational efficiency of third-party application.
In the first possible execution mode of disclosure embodiment first aspect, described method is applied to core resident service.
The technical scheme that the present embodiment provides can comprise following beneficial effect: the method provided due to the disclosure is applied to core resident service, therefore, calling of third-party application docking port can be received at any time, control command is sent to smart machine, in time, control efficiency is high in response.
In conjunction with the first possible execution mode of disclosure embodiment first aspect, in the execution mode that the second is possible, described based on the communications protocol between described smart machine, described control command is sent to described smart machine, comprising: generate message that include described control command, that meet described communications protocol; Predetermined encryption algorithm is used to be encrypted described message; Based on the communications protocol between described smart machine, the message after encryption is sent to described smart machine.
The technical scheme that the present embodiment provides can comprise following beneficial effect: because the present embodiment uses predetermined encryption algorithm to be encrypted the message including described control command, therefore, the communication security between user terminal and smart machine can be guaranteed, ensure the safety of smart machine, ensure the interests of user.And, third-party application is without the need to worrying the communication security problem between smart machine, third-party application, without the need to the calculating spending resource to carry out about communication security, further reduces the control difficulty of third-party application to terminal equipment, improves the operational efficiency of third-party application.
In conjunction with the execution mode that the first or the second of disclosure embodiment first aspect are possible, in the execution mode that the third is possible, described based on the communications protocol between described smart machine, described control command is sent to described smart machine, comprise: whether be safety applications by third-party application described in server authentication, when determining that described third-party application is safety applications, based on the communications protocol between described smart machine, described control command is sent to described smart machine.
The technical scheme that the present embodiment provides can comprise following beneficial effect: because the present embodiment carries out safety verification to the third-party application sending control command, therefore, can guarantee smart machine control by the third-party application of safety, ensure the safety of smart machine, ensure the interests of user.
In conjunction with the execution mode that the first or the second of disclosure embodiment first aspect are possible, in the 4th kind of possible execution mode, described based on the communications protocol between described smart machine, described control command is sent to described smart machine, comprise: judge whether described smart machine is the local intelligent equipment in local area network or the long-distance intelligent equipment outside local area network, when described smart machine is local intelligent equipment, based on the communications protocol between described smart machine, described control command is sent to described smart machine by local area network, when described smart machine is long-distance intelligent equipment, based on the communications protocol between described smart machine, described control command is sent to described smart machine by server.
The technical scheme that the present embodiment provides can comprise following beneficial effect: the method provided due to the present embodiment can find the local intelligent equipment in local area network automatically, local intelligent equipment and long-distance intelligent equipment are distinguished, respectively for local intelligent equipment, long-distance intelligent equipment adopts different transmission paths to carry out sending controling instruction, thus the control command that can send at third-party application for smart machine be local intelligent equipment, server sending controling instruction need not be passed through, but by local area network sending controling instruction, control command can be reached quickly and need controlled smart machine, not only save Internet resources, and make the speed of third-party application access smart machine faster, control efficiency is higher.
In conjunction with the 4th kind of possible execution mode of disclosure embodiment first aspect, in the 5th kind of possible execution mode, describedly judge that whether described smart machine is that local intelligent equipment in local area network comprises: send broadcast to the smart machine in local area network, receive the equipment unique identification that the smart machine in local area network feeds back for described broadcast, the smart machine that described equipment unique identification identifies is judged to be local intelligent equipment.
The technical scheme that the present embodiment provides can comprise following beneficial effect: because the equipment unique identification fed back according to broadcast judges local intelligent equipment, therefore, accuracy of judgement and also efficiency high.
According to the second aspect of disclosure embodiment, a kind of device for controlling smart machine being provided, comprising: interface provides module, be configured to the interface being provided for accessing smart machine.Command reception module, the described interface third-party application being configured to provide module to provide by described interface is to the control command of described smart machine.Instruction sending module, the communications protocol between being configured to based on described smart machine, sends to described smart machine by the described control command that described command reception module receives.
In the first possible execution mode of disclosure embodiment second aspect, described instruction sending module, comprising: message generates submodule, is configured to generate message that include described control command, that meet described communications protocol.Message encryption submodule, is configured to use predetermined encryption algorithm to be encrypted described message.Send submodule, the communications protocol between being configured to based on described smart machine, the message after encryption is sent to described smart machine.
In conjunction with the first possible execution mode of disclosure embodiment second aspect, in the execution mode that the second is possible, described instruction sending module, comprising: whether checking submodule, being configured to by third-party application described in server authentication is safety applications.Send submodule, be configured to, when described checking submodule determines that described third-party application is safety applications, based on the communications protocol between described smart machine, described control command be sent to described smart machine.
In conjunction with the first possible execution mode of disclosure embodiment second aspect, in the execution mode that the third is possible, described instruction sending module, comprise: judge submodule, be configured to judge whether described smart machine is the local intelligent equipment in local area network or the long-distance intelligent equipment outside local area network.Send submodule, be configured to, when described smart machine is local intelligent equipment, based on the communications protocol between described smart machine, described control command be sent to described smart machine by local area network; When described smart machine is long-distance intelligent equipment, based on the communications protocol between described smart machine, described control command is sent to described smart machine by server.
In conjunction with the third possible execution mode of disclosure embodiment second aspect, in the 4th kind of possible execution mode, described judgement submodule comprises: broadcast submodule, is configured to send broadcast to the smart machine in local area network.Mark receives submodule, is configured to the equipment unique identification that the smart machine in reception local area network feeds back for described broadcast.Submodule is determined in this locality, and the smart machine be configured to described equipment unique identification identifies is judged to be local intelligent equipment.
According to the third aspect of disclosure embodiment, a kind of device for controlling smart machine being provided, comprising: processor; For the memory of storage of processor executable instruction; Wherein, described processor is configured to: be provided for the interface of accessing smart machine; By described interface third-party application to the control command of described smart machine; Based on the communications protocol between described smart machine, described control command is sent to described smart machine.
Should be understood that, it is only exemplary and explanatory that above general description and details hereinafter describe, and can not limit the disclosure.
Accompanying drawing explanation
Accompanying drawing to be herein merged in specification and to form the part of this specification, shows and meets embodiment of the present disclosure, and is used from specification one and explains principle of the present disclosure.
Fig. 1 is the structural representation of a kind of implementation environment according to an exemplary embodiment.
Fig. 2 is the flow chart of the method for controlling smart machine according to an exemplary embodiment.
Fig. 3 is the flow chart of the method for controlling smart machine according to another exemplary embodiment.
Fig. 4 is the flow chart of the method for controlling smart machine according to another exemplary embodiment.
Fig. 5 is the flow chart of the method for controlling smart machine according to another exemplary embodiment.
Fig. 6 a is the schematic network structure according to an exemplary embodiment.
Fig. 6 b is the schematic network structure according to another exemplary embodiment.
Fig. 7 is the flow chart of the method for controlling smart machine according to another exemplary embodiment.
Fig. 8 is a kind of device block diagram for controlling smart machine according to an exemplary embodiment.
Fig. 9 is a kind of device block diagram for controlling smart machine according to another exemplary embodiment.
Figure 10 is the block diagram of a kind of device for controlling smart machine according to an exemplary embodiment.
Figure 11 is the block diagram of a kind of device for controlling smart machine according to another exemplary embodiment.
Embodiment
Here will be described exemplary embodiment in detail, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawing represents same or analogous key element.Execution mode described in following exemplary embodiment does not represent all execution modes consistent with the disclosure.On the contrary, they only with as in appended claims describe in detail, the example of apparatus and method that aspects more of the present disclosure are consistent.
Fig. 1 is the structural representation of a kind of implementation environment according to an exemplary embodiment.As shown in Figure 1, this implementation environment can comprise: smart machine 110 and user terminal 120.
Smart machine 110 can be connected with user terminal 120 by network, and is intercomed by network and user terminal 120 phase.This network such as can include but not limited to: the network such as WiFi (WirelessFidelity, Wireless Fidelity), 2G, 3G, 4G.In FIG, smart machine 110 is illustrated for picture pick-up device.Such as, picture pick-up device can be intelligent camera or the intelligent video camera head with memory function and processing capacity.Can direct communication or via server communication between user terminal 120 and smart machine 110.When via server communication, server may be used for storing, processing and/or send the interaction data between smart machine 110 and user terminal 120.
User terminal 120 can be wearable device, smart mobile phone, panel computer, PC, notebook computer etc.This user terminal 120 can pass through network control smart machine 110.In FIG, user terminal 120 is illustrated for smart mobile phone.
Fig. 2 is the flow chart of the method for controlling smart machine according to an exemplary embodiment.The method can be applied to user terminal.Such as, the user terminal 120 shown in Fig. 1 can be applied to.As shown in Figure 2, the method can comprise:
In step 210, the interface of accessing smart machine is provided for.
Such as, by providing a kind of kit appSDK for developing third-party application, in the operating system of smart mobile phone shown in Fig. 1, the service applying the method for controlling smart machine that the disclosure provides can be added.This service can start when handset starting and memory-resident automatically.This service can provide the interface for accessing smart machine.Be understandable that, this service can to calling call instruction that this interface will use and call parameters defines.Such as, this call parameters at least can comprise equipment unique identification and the control command of controlled smart machine.As long as third-party application uses correct call instruction and respective calls parameter, namely send control command to smart machine by calling this interface.
In a step 220, by described interface third-party application to the control command of described smart machine.Wherein, described control command, can show as the command content being used to indicate described smart machine to perform certain operation.Such as, third-party application can be received to control commands such as the unlatching of camera shown in Fig. 1 or closedowns by described interface.This control command can show as command content " camera unlatching " or " camera closedown ".Such as, this third-party application can for being arranged on the Based Intelligent Control application of user terminal as shown in Figure 1.
Such as, when this interface is called, the equipment unique identification providing the service of this interface can obtain controlled smart machine and control command.Be understandable that, relevant to the requirement of the requirement and smart machine self of control command, the requirement of different intelligent equipment to control command is different, specifically can be decided by smart machine.There is provided the service of this interface according to the requirement of different intelligent equipment, the legitimacy checking algorithm of corresponding control command can be previously provided with, legitimacy verification is carried out to the associated control parameters of control command.
In step 230, based on the communications protocol between described smart machine, described control command is sent to described smart machine.
Such as, communications protocol described in the disclosure can comprise: to for sending controling instruction to the requirement of the form of the message of smart machine, control command and relevant parameter.Such as, when receiving control command, can according to control command for smart machine, inquire and need communications protocol corresponding to controlled smart machine, and then the requirement of message format corresponding to this communications protocol and relevant parameter, generate the message carrying control command.After message is sent to smart machine, smart machine can be resolved message according to communications protocol and then obtain control command, completes the control to smart machine.
Be understandable that, according to actual needs, there is provided the service of this interface can also be provided for adding, delete, the interface of amendment communications protocol, by call this interface can to controlled the communications protocol of smart machine add, delete, revise, etc. operation.
In sum, the method provided due to the disclosure provides the interface for accessing smart machine, by described interface third-party application to the control command of described smart machine, based on the communications protocol between described smart machine, described control command is sent to described smart machine, therefore, third-party application only need according to the requirement sending controling instruction of described interface, and without the need to being 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 is without the need to spending a large amount of computational resource to meet the protocol requirement of different intelligent equipment, improve the operational efficiency of third-party application.
In a kind of possible execution mode, such as, in the operating system of smart mobile phone shown in Fig. 1, the service applying the method for controlling smart machine that the disclosure provides can be added.This service can start when handset starting and memory-resident automatically.The method provided due to the disclosure is applied to core resident service, therefore, can receive calling of third-party application docking port at any time, send control command to smart machine, and in time, control efficiency is high in response.Such as, the third-party application for controlling smart machine as shown in Figure 1 can be run in smart mobile phone shown in Fig. 1.This third-party application can demonstrate the interactive interface of smart mobile phone as shown in Figure 1.When user is controlled smart machine by this interaction page, third-party application by calling the interface that core resident service provides, can send the control command to smart machine shown in Fig. 1.This service can by this interface third-party application to the control command of smart machine shown in Fig. 1, based on the communications protocol between described smart machine, described control command is sent to described smart machine, thus makes third-party application complete control to smart machine.
Fig. 3 is the flow chart of the method for controlling smart machine according to another exemplary embodiment.The method can be applied to user terminal.Such as, the user terminal 120 shown in Fig. 1 can be applied to.As shown in Figure 3, the method can comprise:
In the step 310, the interface of accessing smart machine is provided for.
In step 320, by described interface third-party application to the control command of described smart machine.
In a step 330, whether be safety applications by third-party application described in server authentication.
Such as, certification be safe third-party application server side can preserve relevant log-on message (such as, the unique identification of third-party application, log-in password, etc.).As above the service that this interface is provided mentioned in example, can while reception third-party application be to the control command of smart machine, obtain the log-on message of third-party application, and then send the checking request carrying the log-on message of described third-party application to server.Server is after receiving checking request, the log-on message that receives can be judged to be whether the certification being kept at server side be the log-on message of certain safe third-party application, if and described third-party application have corresponding authority (this authority such as can comprise: to corresponding smart machine use corresponding control command authority, etc.), then can determine to be verified, and the result be fed back to the described service running on subscriber terminal side internal memory.
In step 331, when determining that described third-party application is safety applications, based on the communications protocol between described smart machine, described control command is sent to described smart machine.
In sum, because the present embodiment carries out safety verification to the third-party application sending control command, therefore, can guarantee smart machine control by the third-party application of safety, ensure the safety of smart machine, ensure the interests of user.
Fig. 4 is the flow chart of the method for controlling smart machine according to another exemplary embodiment.The method can be applied to user terminal.Such as, the user terminal 120 shown in Fig. 1 can be applied to.As shown in Figure 4, the method can comprise:
In step 410, the interface of accessing smart machine is provided for.
At step 420 which, by described interface third-party application to the control command of described smart machine.
In step 430, message that include described control command, that meet described communications protocol is generated.
Wherein, described message, organizes according to certain format, exchanges the data block with transmission in a network.Such as, in the data head of message, communications protocol flag bit can be comprised, in data volume, described control command can be comprised.Such as, for the control command such as unlatching or closedown of camera shown in Fig. 1.This control command can show as command content " camera unlatching " or " camera closedown ".For receiving the intelligent terminal of message, command content " camera unlatching " in its data volume or " camera closedown " can be obtained by analytic message.In step 431, predetermined encryption algorithm is used to be encrypted described message.
Such as, described predetermined encryption algorithm can be AES encryption algorithm.
In step 432, based on the communications protocol between described smart machine, the message after encryption is sent to described smart machine.
In sum, because the present embodiment uses predetermined encryption algorithm to be encrypted the message including described control command, therefore, the communication security between user terminal and smart machine can be guaranteed, ensure the safety of smart machine, ensure the interests of user.And, third-party application is without the need to worrying the communication security problem between smart machine, third-party application, without the need to the calculating spending resource to carry out about communication security, further reduces the control difficulty of third-party application to terminal equipment, improves the operational efficiency of third-party application.
Fig. 5 is the flow chart of the method for controlling smart machine according to another exemplary embodiment.The method can be applied to user terminal.Such as, the user terminal 120 shown in Fig. 1 can be applied to.As shown in Figure 5, the method can comprise:
In step 510, the interface of accessing smart machine is provided for.
In step 520, by described interface third-party application to the control command of described smart machine.
In step 530, judge whether described smart machine is the local intelligent equipment in local area network or the long-distance intelligent equipment outside local area network.
Such as, broadcast can be sent to the smart machine in local area network, receive the equipment unique identification that the smart machine in local area network feeds back for described broadcast, the smart machine that described equipment unique identification identifies is judged to be local intelligent equipment.Be understandable that, after determining local intelligent equipment, the smart machine outside local intelligent equipment can be defined as the long-distance intelligent equipment outside local area network.The equipment unique identification that this execution mode feeds back according to broadcast judges local intelligent equipment, accuracy of judgement and also efficiency high.
In step 531, when described smart machine is local intelligent equipment, based on the communications protocol between described smart machine, described control command is sent to described smart machine by local area network.
In step 532, when described smart machine is long-distance intelligent equipment, based on the communications protocol between described smart machine, described control command is sent to described smart machine by server.
In order to make the present embodiment easy to understand more, below, network structure shown in composition graphs 6a, when being local intelligent equipment to described smart machine, the delivering path of control command is described in detail.Fig. 6 a is the schematic network structure according to an exemplary embodiment.Such as, network structure as shown in Figure 6 a, can have user terminal 120, smart machine 110, router one 30 in local area network.Wherein, user terminal 120 by router one 30 and smart machine 110, can communicate with the server 140 outside local area network.Smart machine 110 can be communicated with the server 140 outside local area network by router one 30.In user terminal 120, core resident service can send broadcast by router one 30 to the smart machine in local area network, received the equipment unique identification of the smart machine feedback in local area network by described router one 30, the smart machine that the equipment unique identification received identifies is judged to be local intelligent equipment.When determine third-party application control command for smart machine be the local intelligent equipment in local area network, in user terminal 120, control command can be sent to smart machine 110 by router one 30 by core resident service.
In order to make the present embodiment easy to understand more, below, network structure shown in composition graphs 6b, when being long-distance intelligent equipment to described smart machine, the delivering path of control command is described in detail.Fig. 6 b is the schematic network structure according to another exemplary embodiment.Such as, network structure as shown in Figure 6 b, can have user terminal 120, router one 30 in the local area network of user terminal 120 place.Wherein, user terminal 120 can be communicated with the long-distance intelligent equipment 110 outside local area network, server 140 by router one 30.Smart machine 110 can be networked by router one 50, and then communicates with server 140.In user terminal 120, core resident service can send broadcast by router one 30 to the smart machine in local area network, received the equipment unique identification of the smart machine feedback in local area network by described router one 30, the smart machine that the equipment unique identification received identifies is judged to be local intelligent equipment.When determine third-party application control command for smart machine be not the local intelligent equipment in local area network, in user terminal 120, control command can be sent to server 140 by router one 30 by core resident service, by server 140, control command is sent to smart machine 110 by router one 50.
In sum, the method provided due to the present embodiment can find the local intelligent equipment in local area network automatically, local intelligent equipment and long-distance intelligent equipment are distinguished, respectively for local intelligent equipment, long-distance intelligent equipment adopts different transmission paths to carry out sending controling instruction, thus the control command that can send at third-party application for smart machine be local intelligent equipment, server sending controling instruction need not be passed through, but by local area network sending controling instruction, control command can be reached quickly and need controlled smart machine, not only save Internet resources, and make the speed of third-party application access smart machine faster, control efficiency is higher.
Below, in conjunction with above-mentioned several possible execution mode, another the possible execution mode of the method that the disclosure provides is described in detail.Such as, see Fig. 7, it is the flow chart of the method for controlling smart machine according to another exemplary embodiment.The method can be applied to the service of resident user tag memory.Such as, the user terminal 120 shown in Fig. 1 can be applied to.As shown in Figure 7, the method can comprise:
In step 700, be provided for the interface of accessing smart machine.
In step 720, by described interface third-party application to the control command of described smart machine.
In step 720, whether be safety applications by third-party application described in server authentication.
In step 730, when determining that described third-party application is safety applications, generate message that include described control command, that meet described communications protocol.
In step 740, predetermined encryption algorithm is used to be encrypted described message.
In step 750, send broadcast to the smart machine in local area network.
In step 760, the equipment unique identification that the smart machine in local area network feeds back for described broadcast is received.
In step 770, the smart machine that described equipment unique identification identifies is judged to be local intelligent equipment.
In step 780, when described smart machine is local intelligent equipment, based on the communications protocol between described smart machine, the message after encryption is sent to described smart machine by local area network.
In step 790, when described smart machine is long-distance intelligent equipment, based on the communications protocol between described smart machine, the message after encryption is sent to described smart machine by server.
In sum, the api interface that can be called the service that applies the present embodiment method provided by the third-party application of safety verification visits smart machine, third-party application only need be concerned about oneself service logic, and the realization of the realization of underlying device communications protocol, the realization distinguishing local/remote device talk for speed-optimization, secure access, etc. all served by core resident and realize, thus reduce the control difficulty of third-party application, relatively independent when not only making third-party application develop, and operational efficiency is higher.
Fig. 8 is a kind of device block diagram for controlling smart machine according to an exemplary embodiment.With reference to Fig. 8, this device can comprise interface provides module 810, command reception module 820 and instruction sending module 830.
This interface provides module 810, can be configured to the interface being provided for accessing smart machine.
This command reception module 820, the described interface third-party application that can be configured to provide module to provide by described interface is to the control command of described smart machine.
This instruction sending module 830, the communications protocol between can being configured to based on described smart machine, sends to described smart machine by the described control command that described command reception module receives.
In sum, the interface of the device provided due to the disclosure provides module 810 to provide interface for accessing smart machine, command reception module 820 by described interface third-party application to the control command of described smart machine, instruction sending module 830 is based on the communications protocol between described smart machine, described control command is sent to described smart machine, therefore, third-party application only need according to the requirement sending controling instruction of described interface, and without the need to being 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 is without the need to spending a large amount of computational resource to meet the protocol requirement of different intelligent equipment, improve the operational efficiency of third-party application.
Fig. 9 is a kind of device block diagram for controlling smart machine according to another exemplary embodiment.With reference to Fig. 9, described instruction sending module 830, can comprise: checking submodule 831 and transmission submodule 832.
Whether this checking submodule 831, can be configured to by third-party application described in server authentication is safety applications.
This transmission submodule 832, can be configured to, when described checking submodule 831 determines that described third-party application is safety applications, based on the communications protocol between described smart machine, described control command be sent to described smart machine.
In a kind of possible execution mode, as shown in Figure 9, described instruction sending module 830, can comprise: message generates submodule 833, message encryption submodule 834 and sends submodule 832.
This message generates submodule 833, can be configured to generate message that include described control command, that meet described communications protocol.
This message encryption submodule 834, can be configured to use predetermined encryption algorithm to be encrypted described message.
This transmission submodule 832, the communications protocol between can being configured to based on described smart machine, sends to described smart machine by the message after encryption.
In a kind of possible execution mode, as shown in Figure 9, described instruction sending module 830, can comprise: judge submodule 835 and send submodule 832.
This judgement submodule 835, can be configured to judge whether described smart machine is the local intelligent equipment in local area network or the long-distance intelligent equipment outside local area network.
This transmission submodule 832, can be configured to, when described smart machine is local intelligent equipment, based on the communications protocol between described smart machine, described control command be sent to described smart machine by local area network; When described smart machine is long-distance intelligent equipment, based on the communications protocol between described smart machine, described control command is sent to described smart machine by server.
In a kind of possible execution mode, as shown in Figure 9, described judgement submodule 835, can comprise: broadcast submodule 8351, mark receive submodule 8352, submodule 8353 is determined in this locality.
This broadcast submodule 8351, can be configured to send broadcast to the smart machine in local area network.
This mark receives submodule 8352, can be configured to the equipment unique identification that the smart machine in reception local area network feeds back for described broadcast.
Submodule 8353 is determined in this this locality, and the smart machine that can be configured to described equipment unique identification identifies is judged to be local intelligent equipment.
About the device in above-described embodiment, wherein the concrete mode of modules executable operations has been described in detail in about the embodiment of the method, will not elaborate explanation herein.
Figure 10 is the block diagram of a kind of device 1000 for controlling smart machine according to an exemplary embodiment.Such as, device 1000 can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, flat-panel devices, Medical Devices, body-building equipment, personal digital assistant etc.
With reference to Figure 10, device 1000 can comprise following one or more assembly: processing components 1002, memory 1004, electric power assembly 1006, multimedia groupware 1008, audio-frequency assembly 1010, the interface 1012 of I/O (I/O), sensor cluster 1014, and communications component 1016.
The integrated operation of the usual control device 1000 of processing components 1002, such as with display, call, data communication, camera operation and record operate the operation be associated.Processing components 1002 can comprise one or more processor 1020 to perform instruction, to complete all or part of step of the above-mentioned method for controlling smart machine.In addition, processing components 1002 can comprise one or more module, and what be convenient between processing components 1002 and other assemblies is mutual.Such as, processing components 1002 can comprise multi-media module, mutual with what facilitate between multimedia groupware 1008 and processing components 1002.
Memory 1004 is configured to store various types of data to be supported in the operation of device 1000.The example of these data comprises for any application program of operation on device 1000 or the instruction of method, contact data, telephone book data, message, picture, video etc.Memory 1004 can be realized by the volatibility of any type or non-volatile memory device or their combination, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, disk or CD.
The various assemblies that electric power assembly 1006 is device 1000 provide electric power.Electric power assembly 1006 can comprise power-supply management system, one or more power supply, and other and the assembly generating, manage and distribute electric power for device 1000 and be associated.
Multimedia groupware 1008 is included in the screen providing an output interface between described device 1000 and user.In certain embodiments, screen can comprise liquid crystal display (LCD) and touch panel (TP).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel comprises one or more touch sensor with the gesture on sensing touch, slip and touch panel.Described touch sensor can the border of not only sensing touch or sliding action, but also detects the duration relevant to described touch or slide and pressure.In certain embodiments, multimedia groupware 1008 comprises a front-facing camera and/or post-positioned pick-up head.When device 1000 is in operator scheme, during as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and post-positioned pick-up head can be fixing optical lens systems or have focal length and optical zoom ability.
Audio-frequency assembly 1010 is configured to export and/or input audio signal.Such as, audio-frequency assembly 1010 comprises a microphone (MIC), and when device 1000 is in operator scheme, during as call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.The audio signal received can be stored in memory 1004 further or be sent via communications component 1016.In certain embodiments, audio-frequency assembly 1010 also comprises a loud speaker, for output audio signal.
I/O interface 1012 is for providing interface between processing components 1002 and peripheral interface module, and above-mentioned peripheral interface module can be keyboard, some striking wheel, button etc.These buttons can include but not limited to: home button, volume button, start button and locking press button.
Sensor cluster 1014 comprises one or more transducer, for providing the state estimation of various aspects for device 1000.Such as, sensor cluster 1014 can detect the opening/closing state of device 1000, the relative positioning of assembly, such as described assembly is display and the keypad of device 1000, the position of all right checkout gear 1000 of sensor cluster 1014 or device 1000 assemblies changes, the presence or absence that user contacts with device 1000, the variations in temperature of device 1000 orientation or acceleration/deceleration and device 1000.Sensor cluster 1014 can comprise proximity transducer, be configured to without any physical contact time detect near the existence of object.Sensor cluster 1014 can also comprise optical sensor, as CMOS or ccd image sensor, for using in imaging applications.In certain embodiments, this sensor cluster 1014 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communications component 1016 is configured to the communication being convenient to wired or wireless mode between device 1000 and other equipment.Device 1000 can access the wireless network based on communication standard, as WiFi, 2G or 3G, or their combination.In one exemplary embodiment, communications component 1016 receives from the broadcast singal of external broadcasting management system or broadcast related information via broadcast channel.In one exemplary embodiment, described communications component 1016 also comprises near-field communication (NFC) module, to promote junction service.Such as, can based on radio-frequency (RF) identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 1000 can be realized, for performing the above-mentioned method for controlling smart machine by one or more application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components.
In the exemplary embodiment, additionally provide a kind of non-transitory computer-readable recording medium comprising instruction, such as comprise the memory 1004 of instruction, above-mentioned instruction can perform the above-mentioned method for controlling smart machine by the processor 1020 of device 1000.Such as, described non-transitory computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc.
Figure 11 is the block diagram of a kind of device 1100 for controlling smart machine according to another exemplary embodiment.Such as, device 1100 may be provided in a server.With reference to Figure 11, device 1100 comprises processing components 1122, and it comprises one or more processor further, and the memory resource representated by memory 1132, can such as, by the instruction of the execution of processing components 1122, application program for storing.The application program stored in memory 1132 can comprise each module corresponding to one group of instruction one or more.In addition, processing components 1122 is configured to perform instruction, to perform in above-described embodiment for controlling all or part of step of the server side mentioned in the method for smart machine.
Device 1100 can also comprise the power management that a power supply module 1126 is configured to final controlling element 1100, and a wired or wireless network interface 1150 is configured to device 1100 to be connected to network, and input and output (I/O) interface 1158.Device 1100 can operate the operating system based on being stored in memory 1132, such as WindowsServerTM, MacOSXTM, UnixTM, LinuxTM, FreeBSDTM or similar.
Those skilled in the art, at consideration specification and after putting into practice the disclosure, will easily expect other embodiment of the present disclosure.The application is intended to contain any modification of the present disclosure, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present disclosure and comprised the undocumented common practise in the art of the disclosure or conventional techniques means.Specification and embodiment are only regarded as exemplary, and true scope of the present disclosure and spirit are pointed out by claim below.
Should be understood that, the disclosure is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendment and change not departing from its scope.The scope of the present disclosure is only limited by appended claim.

Claims (12)

1. for controlling a method for smart machine, it is characterized in that, comprising:
Be provided for the interface of accessing smart machine;
By described interface third-party application to the control command of described smart machine;
Based on the communications protocol between described smart machine, described control command is sent to described smart machine.
2. method according to claim 1, is characterized in that, described method is applied to core resident service.
3. method according to claim 1, is characterized in that, described based on the communications protocol between described smart machine, described control command is sent to described smart machine, comprising:
Generate message that include described control command, that meet described communications protocol;
Predetermined encryption algorithm is used to be encrypted described message;
Based on the communications protocol between described smart machine, the message after encryption is sent to described smart machine.
4., according to described method arbitrary in claims 1 to 3, it is characterized in that, described based on the communications protocol between described smart machine, described control command is sent to described smart machine, comprising:
Whether be safety applications by third-party application described in server authentication;
When determining that described third-party application is safety applications, based on the communications protocol between described smart machine, described control command is sent to described smart machine.
5., according to described method arbitrary in claims 1 to 3, it is characterized in that, described based on the communications protocol between described smart machine, described control command is sent to described smart machine, comprising:
Judge whether described smart machine is the local intelligent equipment in local area network or the long-distance intelligent equipment outside local area network;
When described smart machine is local intelligent equipment, based on the communications protocol between described smart machine, described control command is sent to described smart machine by local area network;
When described smart machine is long-distance intelligent equipment, based on the communications protocol between described smart machine, described control command is sent to described smart machine by server.
6. method according to claim 5, is characterized in that, describedly judges that whether described smart machine is that local intelligent equipment in local area network comprises:
Broadcast is sent to the smart machine in local area network;
Receive the equipment unique identification that the smart machine in local area network feeds back for described broadcast;
The smart machine that described equipment unique identification identifies is judged to be local intelligent equipment.
7. for controlling a device for smart machine, it is characterized in that, comprising:
Interface provides module, is configured to the interface being provided for accessing smart machine;
Command reception module, the described interface third-party application being configured to provide module to provide by described interface is to the control command of described smart machine;
Instruction sending module, the communications protocol between being configured to based on described smart machine, sends to described smart machine by the described control command that described command reception module receives.
8. device according to claim 7, is characterized in that, described instruction sending module, comprising:
Message generates submodule, is configured to generate message that include described control command, that meet described communications protocol;
Message encryption submodule, is configured to use predetermined encryption algorithm to be encrypted described message;
Send submodule, the communications protocol between being configured to based on described smart machine, the message after encryption is sent to described smart machine.
9. the device according to claim 7 or 8, is characterized in that, described instruction sending module, comprising:
Checking submodule, whether be configured to by third-party application described in server authentication is safety applications;
Send submodule, be configured to, when described checking submodule determines that described third-party application is safety applications, based on the communications protocol between described smart machine, described control command be sent to described smart machine.
10. the device according to claim 7 or 8, is characterized in that, described instruction sending module, comprising:
Judge submodule, be configured to judge whether described smart machine is the local intelligent equipment in local area network or the long-distance intelligent equipment outside local area network;
Send submodule, be configured to, when described smart machine is local intelligent equipment, based on the communications protocol between described smart machine, described control command be sent to described smart machine by local area network; When described smart machine is long-distance intelligent equipment, based on the communications protocol between described smart machine, described control command is sent to described smart machine by server.
11. devices according to claim 10, is characterized in that, described judgement submodule comprises:
Broadcast submodule, is configured to send broadcast to the smart machine in local area network;
Mark receives submodule, is configured to the equipment unique identification that the smart machine in reception local area network feeds back for described broadcast;
Submodule is determined in this locality, and the smart machine be configured to described equipment unique identification identifies is judged to be local intelligent equipment.
12. 1 kinds for controlling the device of smart machine, is characterized in that, comprising:
Processor;
For the memory of storage of processor executable instruction;
Wherein, described processor is configured to:
Be provided for the interface of accessing smart machine;
By described interface third-party application to the control command of described smart machine;
Based on the communications protocol between described smart machine, described control command is sent to described smart machine.
CN201510642522.6A 2015-09-30 2015-09-30 For controlling the method and device of smart machine Active CN105376399B (en)

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 true CN105376399A (en) 2016-03-02
CN105376399B 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)

Cited By (3)

* Cited by examiner, † Cited by third party
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
CN110275532A (en) * 2019-06-21 2019-09-24 珠海格力智能装备有限公司 Control method and device, the control method and device of visual apparatus of robot
CN110932939A (en) * 2019-12-06 2020-03-27 杭州视洞科技有限公司 Scheme for monitoring APP and IPC network conditions in real time

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120131158A1 (en) * 2008-12-02 2012-05-24 ioBridge, Inc. Activating a device via a module-based device interaction system
CN102932695A (en) * 2012-11-02 2013-02-13 华为技术有限公司 Remote control method, intelligent terminal and intelligent remote control system
CN103019197A (en) * 2012-12-03 2013-04-03 海信集团有限公司 Method and system for conducting long-range control on intelligent terminal device
CN104902476A (en) * 2015-05-28 2015-09-09 神州融安科技(北京)有限公司 Control method for Bluetooth security management

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120131158A1 (en) * 2008-12-02 2012-05-24 ioBridge, Inc. Activating a device via a module-based device interaction system
CN102932695A (en) * 2012-11-02 2013-02-13 华为技术有限公司 Remote control method, intelligent terminal and intelligent remote control system
CN103019197A (en) * 2012-12-03 2013-04-03 海信集团有限公司 Method and system for conducting long-range control on intelligent terminal device
CN104902476A (en) * 2015-05-28 2015-09-09 神州融安科技(北京)有限公司 Control method for Bluetooth security management

Cited By (4)

* Cited by examiner, † Cited by third party
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
CN110275532A (en) * 2019-06-21 2019-09-24 珠海格力智能装备有限公司 Control method and device, the control method and device of visual apparatus of robot
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

Also Published As

Publication number Publication date
CN105376399B (en) 2019-04-12

Similar Documents

Publication Publication Date Title
JP6220993B2 (en) Smart hardware device control method, apparatus, program, and recording medium
US10608988B2 (en) Method and apparatus for bluetooth-based identity recognition
CN105243318A (en) User equipment control right determining method and apparatus and terminal device
CN105357262A (en) Device control method and device control apparatus
EP2981116B1 (en) Method and apparatus for accessing wi-fi network and computer program product
CN104219388A (en) Voice control method and device
JP2017528928A (en) Usage authority acquisition method and apparatus
CN105468767A (en) Method and device for acquiring calling card information
CN104376273A (en) Data access control method and device
CN104159218A (en) Network connection establishment method and device
CN104038536A (en) Plug-in communication method and device
CN104958898A (en) Method, apparatus and system for controlling video games
CN105049213A (en) File signature method and device
CN105100074A (en) Data operation processing method, device and terminal equipment
CN105471814A (en) Account number management method and account number management device
CN105120505A (en) Method, apparatus and system for making intelligent equipment accessed to router
CN104735670A (en) Network access method and device
CN104536935A (en) Calculation displaying method, calculation editing method and device
CN104837154A (en) Wireless access point control method and device
CN105207994A (en) Account number binding method and device
CN107820300A (en) Network search method and device
CN103916468A (en) System upgrading method, terminal, server and upgrading system
CN105407070A (en) Logging-in authorization method and device
CN105392141A (en) Device control method and device
CN104159283A (en) Method and device for controlling message transmission

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