CN104991466B - The method and system of conflict are avoided during a kind of control smart machine - Google Patents

The method and system of conflict are avoided during a kind of control smart machine Download PDF

Info

Publication number
CN104991466B
CN104991466B CN201510249885.3A CN201510249885A CN104991466B CN 104991466 B CN104991466 B CN 104991466B CN 201510249885 A CN201510249885 A CN 201510249885A CN 104991466 B CN104991466 B CN 104991466B
Authority
CN
China
Prior art keywords
smart machine
terminal
address
control
command
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510249885.3A
Other languages
Chinese (zh)
Other versions
CN104991466A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201510249885.3A priority Critical patent/CN104991466B/en
Publication of CN104991466A publication Critical patent/CN104991466A/en
Application granted granted Critical
Publication of CN104991466B publication Critical patent/CN104991466B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers

Abstract

The present invention relates to technical field of intelligent equipment, and in particular to the method and system of conflict are avoided during a kind of control smart machine.The inventive method includes:The order for the carried terminal IP address that smart machine receiving terminal is sent simultaneously judges the command type of the order;When the command type is request command, smart machine records the IP address that the request command includes;When the command type is control command, whether the IP address that the smart machine contrast control command includes is consistent with the IP address that it has been recorded, if unanimously, performing the control command;Otherwise, the control command is ignored.In the present invention, terminal is needed before smart machine is controlled to smart machine application control, smart machine only carries out the control command transmitted by the terminal for obtaining control, and conflict is produced during so as to solve the problems, such as multiple terminal control smart machines, greatly improves the operating experience of user.

Description

The method and system of conflict are avoided during a kind of control smart machine
Technical field
The present invention relates to technical field of intelligent equipment, and in particular to it is a kind of control smart machine when avoid conflict method and System.
Background technology
With the development of science and technology smart machine has enter into the every aspect of people's life.Smart machine passes through connection WIFI network, it can establish and communicate with terminals such as mobile phone, IPAD, notebook computers, the various orders that receiving terminal is sent, perform The desired various orders of user.
At present, in the market has had some smart machine products, and it is all to install an APP by terminal to be controlled 's.Smart machine can typically receive the connection request and control data of multiple terminals, i.e., multiple terminals can be connected by WIFI To smart machine, and control smart machine.Since so, with regard to generating a problem, i.e., multiple terminals are simultaneously to smart machine When sending order, command collision is easily produced, smart machine may receive multiple different orders simultaneously, and this will cause intelligence The situation that equipment performs after treatment to this multiple different order may be unexpected by, meanwhile, send multiple terminals of order Also different feedback can be received, in this way, causing very bad operating experience to user.
The content of the invention
In consideration of it, the present invention proposes to avoid the method and system of conflict during a kind of control smart machine, terminal in the present invention Needed before smart machine is controlled to smart machine application control, the terminal that smart machine only carries out acquisition control is sent out The control command sent, conflict is produced during so as to solve the problems, such as multiple terminal control smart machines, greatly improves user's Operating experience.
Technical solution of the present invention:
A kind of method for avoiding conflict during control smart machine, including:
The order for the carried terminal IP address that smart machine receiving terminal is sent simultaneously judges the command type of the order;
When the command type is request command, smart machine records the IP address that the request command includes;
When the command type is control command, smart machine contrast IP address that the control command includes whether with The IP address that it has been recorded is consistent, if unanimously, performing the control command;Otherwise, the control command is ignored.
Further, the order for the carried terminal IP address that the smart machine receiving terminal is sent and the order is judged Command type before, in addition to:The communication connection established between terminal and smart machine.
Further, the smart machine records the IP address that the request command includes, and is specially:The smart machine Interior setting proprietary variable, the proprietary variable are used to record the IP address that request command includes.
Further, the smart machine can push the status information of smart machine to all ends for having communication connection with it End.
Further, the communication connection includes wire communication or radio communication.
A kind of system for avoiding conflict during control smart machine, including:Terminal and smart machine;
The terminal includes:
Command sending unit, for sending the order of carried terminal IP address;
The smart machine includes:
Order receiving unit, the order of the carried terminal IP address for receiving receiving terminal transmission;
Command type judging unit, the command type of the order received for judging order receiving unit;
IP address recording unit, for when the command type is request command, recording what the request command included IP address;
IP address comparison unit, for when the command type is control command, contrasting what the control command included Whether IP address is consistent with the IP address that it has been recorded, if unanimously, performing the control command;Otherwise, the control is ignored Order.
Further, the terminal also includes:
Unit is established in communication connection, for establishing the communication connection between terminal and smart machine;
The smart machine, in addition to:
Unit is established in communication connection, for establishing the communication connection between terminal and smart machine.
Further, proprietary variable is set in the IP address recording unit, and the proprietary variable is used to record request life Make the IP address included.
Further, the terminal also includes:
The status information receiving unit of smart machine, the state letter of the smart machine for receiving the smart machine push Breath;
The smart machine also includes:
The status information push unit of smart machine, the status information for pushing smart machine have communication to all with it The terminal of connection.
Further, the communication connection includes wire communication or radio communication.
Beneficial effect of the present invention:
Method of the present invention includes:The order and judgement for the carried terminal IP address that smart machine receiving terminal is sent The command type of the order;When the command type is request command, smart machine records what the request command included IP address;When the command type is control command, smart machine contrast IP address that the control command includes whether with The IP address that it has been recorded is consistent, if unanimously, performing the control command;Otherwise, the control command is ignored.Institute of the present invention The method stated, terminal are needed before smart machine is controlled to smart machine application control, and smart machine, which only carries out, to be controlled Make the control command transmitted by the terminal of power, that is to say, that the same time only has the terminal for obtaining control to control intelligence The operation of equipment, conflict is produced during so as to solve the problems, such as multiple terminal control smart machines, greatly improve the behaviour of user Experience.
Brief description of the drawings
Fig. 1 avoids the flow chart of the method for conflict when being a kind of control smart machine of the invention.
Fig. 2 avoids the system block diagram of the system of conflict when being a kind of control smart machine of the invention.
Fig. 3 avoids another system block diagram of the system of conflict when being a kind of control smart machine of the invention.
Embodiment
Further illustrate technical scheme below in conjunction with the accompanying drawings and by embodiment.
Embodiment one
Fig. 1 avoids the flow chart of the method for conflict when being a kind of control smart machine of the invention.
As shown in figure 1, a kind of method for avoiding conflict during control smart machine, including:
The order for the carried terminal IP address that S101, smart machine receiving terminal are sent simultaneously judges the order class of the order Type.
In step S101, also include before the order for the carried terminal IP address that smart machine receiving terminal is sent:Build Vertical communication connection between terminal and smart machine.Terminal and smart machine constructing local network, are established by respective IP address Communication connection, for example, terminal is connected on a WIFI router with smart machine, terminal and smart machine are assigned to IP Address, terminal are established by IP address with smart machine and communicated to connect.Terminal and smart machine, can be with wired or wireless Mode access to LAN, for example, WIFI routers can be connected in wired or wireless manner, this connected mode is not done Concrete restriction.
After terminal establishes communication connection with smart machine, specific communication in terminal, it is necessary to install an APP (applications Program, Application abbreviation), APP refers to the third party application of terminal, and terminal and intelligence can be realized by APP The specific communication of equipment.
The order that terminal sends carried terminal IP address by APP includes two kinds to smart machine, the order of terminal transmission Type:Request command and control command, both order all carried terminal IP address.Wherein, request command is used to set to intelligence Standby application control, control command are used to be controlled smart machine operation;For example, when smart machine is intelligent sound box, control System order plays out control to smart machine, such as plays a upper song, plays next song, VOLUME UP, reduces volume.
After smart machine receives the order of the carried terminal IP address of terminal transmission, the order class of the order need to be judged Type, to carry out different operations.
S102, when the command type is request command, smart machine records the IP address that the request command includes.
In step S102, proprietary variable is set, the proprietary variable includes for recording request command in the smart machine IP address.By request command to smart machine application control, the mode that smart machine gives control is terminal:As long as Smart machine receives request command, then smart machine writes the IP address that the request command includes in proprietary variable.For example, Smart machine is in init state, proprietary variable blank, now, if smart machine receives a request command, intelligence Equipment writes the IP address that the request command includes in proprietary variable.For another example remember in proprietary variable in smart machine The IP address of record is 172.168.3.137, and now, if smart machine receives a request command, (IP address included is 173.168.3.111), then the IP address 172.168.3.137 of the original record in smart machine proprietary variable will be washed for New IP address 173.168.3.111.Controlled that is, smart machine is given to the last terminal for applying for control Power.
S103, when the command type is control command, smart machine contrasts the IP address that the control command includes It is whether consistent with the IP address that it has been recorded, if unanimously, performing S104;Otherwise, S105 is performed.
Step S103, as described in step S102, record has an IP address all the time in the proprietary variable in smart machine, Possess the IP address of the APP terminals of control;(order includes two types for the order that smart machine receiving terminal is sent:Please Order and control command are asked, both, which are ordered, all includes the IP address of terminal), when the order that smart machine is judged to receive When type is control command, smart machine then contrast IP address that the control command includes whether with the proprietary change in smart machine The IP address recorded in amount is consistent, that is to say, that smart machine judges whether the control command is the terminal for possessing control Send, if what the terminal for possessing control was sent, smart machine then performs the control command, and otherwise, smart machine is neglected Slightly described control command.Smart machine, which only performs, possesses the control command that the terminal of control is sent, so as to solve multiple ends The problem of producing conflict during the control smart machine of end, greatly improve the operating experience of user.
S104, perform the control command.
S105, ignore the control command.
In step S105, when IP address that the IP address that the smart machine contrast control command includes has recorded with it When (IP address for possessing the terminal of control) is inconsistent, smart machine ignores the control command, and smart machine is only performed and gathered around The control command that the terminal for having control is sent, solve the problems, such as to produce conflict during multiple terminal control smart machines with this.
In the present invention, the order that smart machine is sent to terminal has the process of an examination, and smart machine, which only performs, to be possessed The control command that the terminal of control is sent;Unlike reversely, smart machine can push the status information of smart machine to institute There is the terminal for having communication connection with it, do not influence the resource that multiple terminals browse smart machine so.
Method of the present invention, terminal need to control to smart machine application before the operation of control smart machine Power, smart machine only carry out the control command transmitted by the terminal for obtaining control, that is to say, that the same time is only controlled The terminal of system power could control the operation of smart machine, so as to produce asking for conflict when solving multiple terminal control smart machines Topic, greatly improve the operating experience of user.
Embodiment two
Fig. 2 avoids the system block diagram of the system of conflict when being a kind of control smart machine of the invention.
As shown in Fig. 2 the system for avoiding conflict during a kind of control smart machine, including:Terminal 10 and smart machine 20.
The terminal 10 includes:
Command sending unit 101, for sending the order of carried terminal IP address.
The smart machine 20 includes:
Order receiving unit 201, the order of the carried terminal IP address for receiving receiving terminal transmission.
Command type judging unit 202, the command type of the order received for judging order receiving unit.
IP address recording unit 203, for when the command type is request command, recording the request command and including IP address.
IP address comparison unit 204, for when the command type is control command, contrasting the control command and including IP address it is whether consistent with the IP address that it has been recorded, if unanimously, performing the control command;Otherwise, the control is ignored System order.
System of the present invention, terminal are needed before smart machine is controlled to smart machine application control, intelligence Equipment only carries out the control command transmitted by the terminal for obtaining control, that is to say, that the same time, which only has, obtains control Terminal could control the operation of smart machine, conflict be produced during so as to solve the problems, such as multiple terminal control smart machines, greatly The big operating experience for improving user.
Embodiment three
Fig. 3 avoids another system block diagram of the system of conflict when being a kind of control smart machine of the invention.
As shown in figure 3, the system for avoiding conflict during a kind of control smart machine, including:Terminal 10 and smart machine 20.
The terminal 10 includes:
Command sending unit 101, for sending the order of carried terminal IP address.
Unit 102 is established in communication connection, for establishing the communication connection between terminal 10 and smart machine 20.
The status information receiving unit 103 of smart machine, the smart machine pushed for receiving the smart machine 20 Status information.
The smart machine 20 includes:
Order receiving unit 201, the order of the carried terminal IP address for receiving the transmission of receiving terminal 10.
Command type judging unit 202, the command type of the order received for judging order receiving unit.
IP address recording unit 203, for when the command type is request command, recording the request command and including IP address.
Proprietary variable is set in the IP address recording unit 203, and the proprietary variable includes for recording request command IP address.
IP address comparison unit 204, for when the command type is control command, contrasting the control command and including IP address it is whether consistent with the IP address that it has been recorded, if unanimously, performing the control command;Otherwise, the control is ignored System order.
Unit 205 is established in communication connection, for establishing the communication connection between terminal 10 and smart machine 20.
The status information push unit 206 of smart machine, for push the status information of smart machine 20 to it is all and its There is the terminal 10 of communication connection.
System of the present invention, terminal are needed before smart machine is controlled to smart machine application control, intelligence Equipment only carries out the control command transmitted by the terminal for obtaining control, that is to say, that the same time, which only has, obtains control Terminal could control the operation of smart machine, conflict be produced during so as to solve the problems, such as multiple terminal control smart machines, greatly The big operating experience for improving user.
The technical principle of the present invention is described above in association with specific embodiment.These descriptions are intended merely to explain the present invention's Principle, and limiting the scope of the invention can not be construed in any way.Based on explanation herein, the technology of this area Personnel would not require any inventive effort the other embodiments that can associate the present invention, and these modes are fallen within Within protection scope of the present invention.

Claims (4)

1. a kind of method for avoiding conflict during control smart machine, it is characterised in that including:
The communication connection established between terminal and smart machine, the terminal and the smart machine constructing local network, by each From IP address establish communication connection;After terminal establishes communication connection with smart machine, pass through the application journey being installed in terminal Sequence realizes the specific communication between terminal and smart machine;
The order for the carried terminal IP address that smart machine receiving terminal is sent simultaneously judges the command type of the order;
When the command type is request command, smart machine with writing the IP that the request command includes in proprietary variable Location, the smart machine only record the IP address of the terminal of the last application control;The request command is used for described Smart machine application control;
Wherein, smart machine writes the IP address that the request command includes in proprietary variable and included:When intelligent terminal is initial During change state, proprietary variable is blank, and smart machine writes the IP address that the request command includes in proprietary variable;When special Have and IP address has been recorded in variable, then the IP address recorded is washed away to the IP address included for the request command;
When the command type is control command, smart machine contrast IP address that the control command includes whether with it The IP address of record is consistent, if unanimously, performing the control command;Otherwise, the control command is ignored;The control command For being controlled operation to the smart machine;
The smart machine can push the status information of smart machine to all terminals for having communication connection with it.
2. the method for avoiding conflict during a kind of control smart machine according to claim 1, it is characterised in that the communication Connection includes wire communication or radio communication.
A kind of 3. system for avoiding conflict during control smart machine, it is characterised in that including:Terminal and smart machine;
The terminal includes:
Command sending unit, for sending the order of carried terminal IP address;
The smart machine includes:
Order receiving unit, the order of the carried terminal IP address for receiving receiving terminal transmission;
Command type judging unit, the command type of the order received for judging order receiving unit;
IP address recording unit, for when the command type is request command, with recording the IP that the request command includes Location, the IP address recording unit is interior to set proprietary variable, and the proprietary variable is used to record the IP address that request command includes; The request command is used for the smart machine application control;
Wherein, smart machine writes the IP address that the request command includes in proprietary variable and included:When intelligent terminal is initial During change state, proprietary variable is blank, and smart machine writes the IP address that the request command includes in proprietary variable;When special Have and IP address has been recorded in variable, then the IP address recorded is washed away to the IP address included for the request command;
IP address comparison unit, for when the command type is control command, with contrasting the IP that the control command includes Whether location is consistent with the IP address that it has been recorded, if unanimously, performing the control command;Otherwise, the control command is ignored; The control command is used to be controlled operation to the smart machine;
The terminal also includes:
Unit is established in communication connection, for establishing the communication connection between terminal and smart machine;
The smart machine, in addition to:
Unit is established in communication connection, for establishing the communication connection between terminal and smart machine;
The terminal and the smart machine constructing local network, are established by respective IP address and communicated to connect;Terminal and intelligence After equipment establishes communication connection, realized by the application program being installed in terminal specific logical between terminal and smart machine Letter;
The terminal also includes:
The status information receiving unit of smart machine, the status information of the smart machine for receiving the smart machine push;
The smart machine also includes:
The status information push unit of smart machine, the status information for pushing smart machine have communication connection to all with it Terminal.
4. the system for avoiding conflict during a kind of control smart machine according to claim 3, it is characterised in that the communication Connection includes wire communication or radio communication.
CN201510249885.3A 2015-05-15 2015-05-15 The method and system of conflict are avoided during a kind of control smart machine Active CN104991466B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510249885.3A CN104991466B (en) 2015-05-15 2015-05-15 The method and system of conflict are avoided during a kind of control smart machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510249885.3A CN104991466B (en) 2015-05-15 2015-05-15 The method and system of conflict are avoided during a kind of control smart machine

Publications (2)

Publication Number Publication Date
CN104991466A CN104991466A (en) 2015-10-21
CN104991466B true CN104991466B (en) 2018-03-06

Family

ID=54303288

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510249885.3A Active CN104991466B (en) 2015-05-15 2015-05-15 The method and system of conflict are avoided during a kind of control smart machine

Country Status (1)

Country Link
CN (1) CN104991466B (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090106401A1 (en) * 2007-10-22 2009-04-23 Inventec Corporation System and method for Intra Network Internet Protocol (IP) address modification by dual controller
CN102143208A (en) * 2010-12-24 2011-08-03 Tcl集团股份有限公司 Remote control method and system for intelligent terminal
CN103973748B (en) * 2013-02-04 2017-08-01 珠海格力电器股份有限公司 Intelligent domestic system and its monitoring method
CN103685733B (en) * 2013-11-18 2017-01-25 华为终端有限公司 Remote control method and terminal
CN104618369A (en) * 2015-01-27 2015-05-13 广州市戴为智能科技有限公司 Method, device and system for unique authorization of Internet-of-Things equipment based on OAuth

Also Published As

Publication number Publication date
CN104991466A (en) 2015-10-21

Similar Documents

Publication Publication Date Title
CN105392181B (en) A kind of networking method of smart machine, apparatus and system
CN104581647A (en) Network access method and device of intelligent equipment
CN111856955A (en) Method and apparatus for controlling device for smart home service
CN106506595B (en) Upgrade method based on point-to-point Internet of Things intelligent Community equipment
CN104243616A (en) Wi-Fi (wireless fidelity) communication based cloud air conditioner system
CN109041140B (en) Method for rapidly switching wireless network, intelligent hardware and terminal equipment
CN102611710A (en) Data interaction method and data interaction system for scheduling master station and transformer substation based on MMS (Multimedia Messaging Service)
CN108431701A (en) Control method, control panel and the control system of smart home device
CN108738003A (en) Bluetooth matching method and system based on shared bluetooth communication address
CN111585801A (en) ZigBee device upgrading method and related device
CN105005217A (en) Control method, wireless sound box, terminal and system
CN111934904B (en) Capacity expansion method, controller and system
CN106789466A (en) The method and mobile terminal and intelligent appliance of a kind of control intelligent appliance
CN101808132A (en) Communication method of application layer in CAN bus system
CN104995892A (en) GRE tunnel determination method, gateway device and access station
CN110505614B (en) Communication method and device of ZigBee binding switch
CN106850554B (en) Method and device for dual-system directional connection
CN113436631A (en) Voice information processing method and system and device for voice information processing
CN110958570B (en) Wireless Internet of things data communication method and related device
CN103795856A (en) Information processing method and electronic device
CN104991466B (en) The method and system of conflict are avoided during a kind of control smart machine
CN105991788A (en) Method for realizing slave network address assignment based on NFC communication
CN104754749A (en) Communication control method and central control device
CN104601679B (en) Equipment soft method, mobile terminal and server
CN105207866A (en) Communication method of control terminal based on air conditioning control network and air conditioning control network

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
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.