CN105446154B - The control method and system of internet of things home appliance - Google Patents

The control method and system of internet of things home appliance Download PDF

Info

Publication number
CN105446154B
CN105446154B CN201510980716.7A CN201510980716A CN105446154B CN 105446154 B CN105446154 B CN 105446154B CN 201510980716 A CN201510980716 A CN 201510980716A CN 105446154 B CN105446154 B CN 105446154B
Authority
CN
China
Prior art keywords
code file
client
server
protocol code
internet
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
CN201510980716.7A
Other languages
Chinese (zh)
Other versions
CN105446154A (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.)
Midea Group Co Ltd
GD Midea Air Conditioning Equipment Co Ltd
Original Assignee
Midea Group Co Ltd
Guangdong Midea Refrigeration Equipment Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Midea Group Co Ltd, Guangdong Midea Refrigeration Equipment Co Ltd filed Critical Midea Group Co Ltd
Priority to CN201510980716.7A priority Critical patent/CN105446154B/en
Publication of CN105446154A publication Critical patent/CN105446154A/en
Application granted granted Critical
Publication of CN105446154B publication Critical patent/CN105446154B/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
    • G05B15/00Systems controlled by a computer
    • G05B15/02Systems controlled by a computer electric
    • 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/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/26Pc applications
    • G05B2219/2642Domotique, domestic, home control, automation, smart house

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Manufacturing & Machinery (AREA)
  • Quality & Reliability (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a kind of control systems of internet of things home appliance, including home wiring control end, server and client, the home wiring control end is equipped with protocol code file, and the protocol code file record is for home wiring control end and the power function of server, client call;The server and client obtain the protocol code file from home wiring control end, and realize the interaction between client, server and home wiring control end based on the protocol code file.The invention also discloses a kind of control methods of internet of things home appliance.Increased development cost and testing cost present invention saves the respective code of each terminal maintenance.

Description

The control method and system of internet of things home appliance
Technical field
The present invention relates to internet of things home appliance field more particularly to the control methods and system of internet of things home appliance.
Background technology
Inside current Internet of things system, there are several big communicating terminals.When hardware household electrical appliances end, second is that server end, third, Client.And client therein is divided into as Android end, the ends IOS, ends PC etc..These communicating terminals are used with portion Then communications protocol is realized and is safeguarded with respective code.Since each terminal respectively safeguards respective code, go to realize same The function of one agreement, causes workload to increase, and cost increases.
Invention content
The main purpose of the present invention is to provide a kind of control method of internet of things home appliance and systems, it is intended to save each The respective code of terminal maintenance and increased development cost and testing cost.
To achieve the above object, the control system of a kind of internet of things home appliance provided by the invention, including home wiring control end, clothes Business device and client, the home wiring control end are equipped with protocol code file, and the protocol code file record is for home wiring control The power function of end and server, client call;The server and client obtain the agreement from home wiring control end Code file, and the interaction between client, server and home wiring control end is realized based on the protocol code file.
Preferably, the power function is made of C language code.
Preferably, when the client is Android system, the protocol code text is being obtained from the home wiring control end After part, by the protocol code file generated dynamic link library, for client call.
Preferably, the server calls compiling work after obtaining the protocol code file from the home wiring control end The protocol code file, is compiled into the calling module of the required format of the server, for server calls by tool.
Preferably, the home wiring control end updates the protocol code file, and updated protocol code file is same It walks to the server and client.
In addition, to achieve the above object, a kind of control method of internet of things home appliance is applied to internet of things home appliance control system System, the internet of things home appliance control system includes home wiring control end, server, client;The controlling party of the internet of things home appliance Method includes the following steps:
Home wiring control end provides a preset protocol code file;The protocol code file record for home wiring control end, The power function of server and client call;
The server and client obtain the protocol code file from home wiring control end, and are based on the agreement generation Code file realizes the interaction between client, server and home wiring control end.
Preferably, the power function is made of C language code.
Preferably, when the client is Android system, the protocol code text is being obtained from the home wiring control end After part, by the protocol code file generated dynamic link library, for client call.
Preferably, the server calls compiling work after obtaining the protocol code file from the home wiring control end The protocol code file, is compiled into the calling module of the required format of the server, for server calls by tool.
Preferably, the control method further includes:
The home wiring control end updates the protocol code file, and by updated protocol code file synchronization to described Server and client.
Protocol code file is arranged by home wiring control end in the present invention, so that server and client side calls, to save Each terminal maintenance respective code and increased development cost and testing cost.
Description of the drawings
Fig. 1 is the high-level schematic functional block diagram of the control system of internet of things home appliance of the present invention;
Fig. 2 is the flow diagram of the control method first embodiment of internet of things home appliance of the present invention;
Fig. 3 be internet of things home appliance of the present invention control method in client call protocol code file flow diagram;
Fig. 4 be internet of things home appliance of the present invention control method in server calls protocol code file flow diagram;
Fig. 5 is the flow diagram of the control method second embodiment of internet of things home appliance of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific implementation mode
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The present invention proposes a kind of control system of internet of things home appliance, and a protocol code file is arranged by home wiring control end, Server and client obtain the protocol code file from home wiring control end, and based on the protocol code file realize client, Interaction between server and home wiring control end.
The control system is in internet of things home appliance equipment, to control the working condition of each household appliance.The household appliance It may include air-conditioning, television set, electric fan, water heater, refrigerator, air purifier, lamp etc..The household appliance can be a family Electric equipment, or multiple identical or different household appliances.As shown in Figure 1, all internet of things home appliance equipment 101 with Home wiring control end 100 connects.User sends control instruction using client 200 and is sent to server 300, and by server 300 To home wiring control end 100, work so that home wiring control end 100 controls corresponding household electrical appliances according to control instruction, such as open command, Out code, adjusting man electric working parameter etc..
The client 200 can be the portable terminal with network function, such as mobile phone, tablet computer, laptop computer Etc..It is operated for the ease of the control of client 200, corresponding control program can be installed in the client 200, and provide Corresponding control interface, for user's operation.The control backstage of the client 200 has corresponding control function, i.e., according to user In the operation of control interface, corresponding operational order is generated, and home wiring control end 100 is sent to by server 300.Certainly, It is understood that the client 200 can also have the function of directly controlling household appliance 101.By taking air-conditioning as an example, the client The control program of air-conditioning can also be installed on end 200, and corresponding airconditioning control interface is provided, for the work of user's control air-conditioning Make state, the corresponding operating parameter of setting.It can both realize the control to household appliance, but the former is to pass through Internet of Things (i.e. server) is controlled, and the latter is to directly control.Therefore, the former need client 200 have network communication function (because This, may be implemented the remote control of household appliance), the client 200 of the latter can be real by the near-field communications such as infrared, bluetooth mode The transmission of existing operational order.Above-mentioned client 200 can be one, or multiple.
It should be noted that above-mentioned home wiring control end 100 can be an independently arranged control device, or set Set the control device in certain household appliance 101.
Due to the interaction between home wiring control end 100, server 300,200 three of client, needed between three In accordance with same operation rules, the control to household appliance 101 is realized.Server 300, home wiring control end 100 and client 200 are all It needs to abide by interactive operation rule, to control household appliance 101.Therefore, the embodiment of the present invention proposes a kind of internet of things home appliance Control system, by home wiring control end 100 be arranged a protocol code file.The protocol code file may include Protocol document and Code file, the Protocol document are used for predetermined operation specification, such as regulation 0x01 is represented and opened air-conditioning.Code file is then used for real Existing air-conditioning open function.Wherein, code file record has multiple power functions, such as opens air-conditioning, close air-conditioning, adjust air-conditioning Set temperature etc..Each power function includes corresponding parameter item, when the power function is called, as long as incoming phase The parameter value answered, you can realize the corresponding function of the power function.
Server 300 and client 200 obtain above-mentioned protocol code file from home wiring control end 100, and are based on the association Discuss the interaction between code file realization server 300,100 three of client 200 and home wiring control end.Specially:Server 300 and client 200 get the protocol code file, can be generated corresponding according to the Protocol document in protocol code file Control routine so that server 300 and client 200 can call corresponding work(in code file depending on the user's operation Energy function, and the parameter needed for incoming power function, realize the control to household appliance.
Protocol code file is arranged by home wiring control end 100 in the embodiment of the present invention, for server 300 and client 200 call, to save the respective code of each terminal maintenance and increased development cost and testing cost.
Further, the power function in above-mentioned code file is made of C language code, naturally it is also possible to by other language Code is realized.It is preferably C language in the embodiment of the present invention, because of home wiring control end 100, client 200 and server 300 To call C programmer.Therefore, client 200 and server 300 get the protocol code generated in home wiring control end 100 After file, can preferably it call.
Further, since the system of client 200 may include Android system, IOS systems.When the system of client 200 For Android system when, although Android system itself is write using java codes, itself there are one JNI mechanism.I.e. The code file of above-mentioned C language is packaged and generates dynamic link library by the tool of a ndk in the environment of Linux system, Such as the libraries .so.This library .so is put into the engineering code of Android system exploitation in the following, can realize that client 200 is called .so the function code in library.
When the system of client 200 is IOS systems, since IOS systems are inherently with the object_c based on C language It is write with swift, therefore it directly imports the calling that can be realized to function code by a .h file.
Further, since the language of server 300 is relatively more, there are PHP, JAVA, C++, or even there are some itself all It is C.Although there are many category of language, being all can be by various compilation tool, to call C language code.
By taking PHP as an example, code file is packaged as Android system and generates dynamic link library, such as .so by the first step Library.Second step is fabricated to php modules using this library .so, external.Third walks, then is fabricated to php modules.Finally, server 300 can call the php modules.
Further, in the control system of above-mentioned internet of things home appliance, functional requirement is if desired updated, it can be first automatically controlled by family Corresponding function program is changed at end 100 processed, updates protocol code file, and updated protocol code file synchronization is extremely serviced Device 300 and client 200.Server 300 and client 200 obtain the newer protocol code file from home wiring control end 100, And handled newer protocol code file accordingly, so that server 300 and client 200 call.Once agreement becomes More, it is only necessary to protocol code file be changed accordingly at home wiring control end 100, server 300 and client 200 obtain After taking the protocol code file after change, it is called the control that can be realized to household appliance.
Therefore, the embodiment of the present invention not only saves the respective code of each terminal maintenance and increased development cost and survey BUG caused by when trying cost, and also avoiding maintenance code personnel's modification function of respective terminal, therefore improve exploitation and imitate Rate and maintenance efficiency.
The control system of above-mentioned internet of things home appliance will be described with a specific example below.Specially:Household appliances enterprise The control system that above-mentioned internet of things home appliance can be utilized, is provided out the SDK softwares of intelligent appliance exploitation, that is, includes above-mentioned agreement Code file.Non- household appliances enterprise's unit no longer needs to be concerned about how to control household electrical appliances, using the SDK software development interfaces of standard, just The Intelligent internet of things function of being applicable in the household appliances enterprise can quickly be developed.Simultaneously as this intelligent appliance exploitation sdk softwares use Standard interface substantially reduces the access difficulty of each development platform, and it is universal to accelerate intelligent appliance.
Accordingly, as shown in Fig. 2, the present invention proposes a kind of control method of internet of things home appliance, it is applied to above-mentioned Internet of Things Net appliance control system.The control method includes the following steps:
Step S110, home wiring control end provides a preset protocol code file;The protocol code file record is for family Electric control end, server and client call power function;
The protocol code file may include Protocol document and code file, which is used for predetermined operation specification, Such as regulation 0x01 is represented and is opened air-conditioning.Code file is then for realizing air-conditioning open function.Wherein, code file record has more A power function, such as open air-conditioning, closing air-conditioning, the set temperature etc. for adjusting air-conditioning.Each power function includes phase The parameter item answered, when the power function is called, as long as being passed to corresponding parameter value, you can realize that the power function is corresponding Function.
Step S120, the described server and client obtain the protocol code file from home wiring control end, and are based on The protocol code file realizes the interaction between client, server and home wiring control end.
Server 300 and client 200 obtain above-mentioned protocol code file from home wiring control end 100, and are based on the association Discuss the interaction between code file realization server 300,100 three of client 200 and home wiring control end.Specially:Server 300 and client 200 get the protocol code file, can be generated corresponding according to the Protocol document in protocol code file Control routine so that server 300 and client 200 can call corresponding work(in code file depending on the user's operation Energy function, and the parameter needed for incoming power function, realize the control to household appliance.
Protocol code file is arranged by home wiring control end 100 in the embodiment of the present invention, for server 300 and client 200 call, to save the respective code of each terminal maintenance and increased development cost and testing cost.
Further, as shown in figure 3, further including after above-mentioned steps S120:
Step S130, when the client is Android system, the protocol code is being obtained from the home wiring control end After file, by the protocol code file generated dynamic link library, for client call.
Since the system of client 200 may include Android system, IOS systems.When the system of client 200 is Android system When, although Android system itself is write using java codes, there are one the mechanism of JNI for itself.I.e. in Linux system Environment the code file of above-mentioned C language is packaged and generates dynamic link library, such as the libraries .so by the tool of a ndk. This library .so is put into the engineering code of Android system exploitation in the following, can realize that client 200 calls the function in the libraries .so Code.
When the system of client 200 is IOS systems, since IOS systems are inherently with the object_c based on C language It is write with swift, therefore it directly imports the calling that can be realized to function code by a .h file.
Further, as shown in figure 4, further including after above-mentioned steps S130:
Step S140, the described server calls compiling after obtaining the protocol code file from the home wiring control end The protocol code file is compiled into the calling module of the required format of the server, for server calls by tool.
Since the language of server 300 is relatively more, there is PHP, JAVA, C++, or even have some itself is all C.Although language Say that there are many type, but being all can be by various compilation tool, to call C language code.By taking PHP as an example, the first step, with Android System is the same, and code file is packaged and generates dynamic link library, such as the libraries .so.Second step is fabricated to php using this library .so Module, it is external.Third walks, then is fabricated to php modules.Finally, so that it may to call.
Further, as shown in figure 5, further including after above-mentioned steps S130:
Step S150, the home wiring control end 100 updates the protocol code file, and by updated protocol code text Part is synchronized to the server and client.
In the control system of above-mentioned internet of things home appliance, functional requirement is if desired updated, can first be repaiied by home wiring control end 100 Change corresponding function program, update protocol code file, and by updated protocol code file synchronization to server 300 and visitor Family end 200.Server 300 and client 200 obtain the newer protocol code file from home wiring control end 100, and will update Protocol code file handled accordingly, so that server 300 and client 200 are called.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of control system of internet of things home appliance, including home wiring control end, server and client, which is characterized in that described Home wiring control end is equipped with protocol code file, and the protocol code file record is for home wiring control end and server, client The power function of calling;The server and client obtain the protocol code file from home wiring control end, and are based on institute State the interaction between protocol code file realization client, server and home wiring control end.
2. the control system of internet of things home appliance as described in claim 1, which is characterized in that the power function is by C language generation Code composition.
3. the control system of internet of things home appliance as described in claim 1, which is characterized in that when the client is Android system When, after obtaining the protocol code file from the home wiring control end, by the protocol code file generated dynamic link library, For client call.
4. the control system of internet of things home appliance as described in claim 1, which is characterized in that the server is from the household electrical appliances After control terminal obtains the protocol code file, compilation tool is called, the protocol code file is compiled into the server The calling module of required format, for server calls.
5. the control system of internet of things home appliance according to any one of claims 1-4, which is characterized in that the home wiring control end Update the protocol code file, and by updated protocol code file synchronization to the server and client.
6. a kind of control method of internet of things home appliance is applied to internet of things home appliance control system, which is characterized in that the Internet of Things Appliance control system includes home wiring control end, server, client;The control method of the internet of things home appliance includes following step Suddenly:
Home wiring control end provides a preset protocol code file;The protocol code file record is for home wiring control end, service The power function of device and client call;
The server and client obtain the protocol code file from home wiring control end, and based on protocol code text Part realizes the interaction between client, server and home wiring control end.
7. the control method of internet of things home appliance as claimed in claim 6, which is characterized in that the power function is by C language generation Code composition.
8. the control method of internet of things home appliance as claimed in claim 6, which is characterized in that when the client is Android system When, after obtaining the protocol code file from the home wiring control end, by the protocol code file generated dynamic link library, For client call.
9. the control method of internet of things home appliance as claimed in claim 6, which is characterized in that the server is from the household electrical appliances After control terminal obtains the protocol code file, compilation tool is called, the protocol code file is compiled into the server The calling module of required format, for server calls.
10. such as the control method of claim 6-9 any one of them internet of things home appliance, which is characterized in that the control method Further include:
The home wiring control end updates the protocol code file, and by updated protocol code file synchronization to the service Device and client.
CN201510980716.7A 2015-12-22 2015-12-22 The control method and system of internet of things home appliance Active CN105446154B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510980716.7A CN105446154B (en) 2015-12-22 2015-12-22 The control method and system of internet of things home appliance

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510980716.7A CN105446154B (en) 2015-12-22 2015-12-22 The control method and system of internet of things home appliance

Publications (2)

Publication Number Publication Date
CN105446154A CN105446154A (en) 2016-03-30
CN105446154B true CN105446154B (en) 2018-08-14

Family

ID=55556490

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510980716.7A Active CN105446154B (en) 2015-12-22 2015-12-22 The control method and system of internet of things home appliance

Country Status (1)

Country Link
CN (1) CN105446154B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110351321A (en) * 2018-04-08 2019-10-18 上海擎感智能科技有限公司 Data interactive method, data interaction system and electric terminal
CN109373524B (en) * 2018-11-30 2020-11-24 青岛海信日立空调系统有限公司 Protocol conversion method and system for air conditioner to access cloud and air conditioning system
CN113364823B (en) * 2020-03-04 2022-11-01 松下家电(中国)有限公司 Cloud platform switching method, wireless communication module and intelligent household appliance
CN115296998B (en) * 2022-07-07 2023-08-11 珠海格力电器股份有限公司 Analysis protocol upgrading method and device, electronic equipment and storage medium

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004229266A (en) * 2002-11-29 2004-08-12 Sanyo Electric Co Ltd House electric appliance network system, house electric appliance network adapter, index server, house electric appliance network connection method, house electric appliance network adapter control method, and index server operating method
CN102355390B (en) * 2011-08-16 2014-06-18 中国科学院电工研究所 Intelligent home system
CN103970080A (en) * 2013-01-30 2014-08-06 广东美的制冷设备有限公司 Household appliance control system and function upgrading control method
CN103237056B (en) * 2013-03-29 2018-07-03 Tcl集团股份有限公司 A kind of device end, control terminal and server and its control method
CN103716129A (en) * 2013-12-18 2014-04-09 广东美的厨房电器制造有限公司 Internet of Things-used wireless communication method and Internet of Things-used wireless communication apparatus
CN103941665B (en) * 2013-12-31 2017-11-07 海尔集团公司 The control method of domestic electric appliances controller and home appliance
CN105138609B (en) * 2015-08-04 2019-07-30 广东瑞德智能科技股份有限公司 A kind of household appliance based on XML language describes method
CN105159122B (en) * 2015-09-15 2018-12-14 海信集团有限公司 A kind of intelligent home control system and control method

Also Published As

Publication number Publication date
CN105446154A (en) 2016-03-30

Similar Documents

Publication Publication Date Title
CN105446154B (en) The control method and system of internet of things home appliance
CN105207863B (en) Method for controlling heterogeneous intelligent household electrical appliance, cloud platform and home gateway
CN103023681B (en) Smart home control device, update method
US10949255B2 (en) Compact schedules for resource-constrained devices
CN202218258U (en) Intelligent home gateway and system thereof
Lin et al. IoTtalk-RC: Sensors as universal remote control for aftermarket home appliances
WO2020168568A1 (en) Data processing method and apparatus, electronic device and readable storage medium
CN106557034A (en) A kind of intelligent home furnishing control method based on instant messaging
CN106713113A (en) Intelligent household control apparatus based on instant messaging, and personalized interaction method
Riaz et al. Wireless android based home automation system
RU2006123259A (en) DISTRIBUTED WIRELESS AUTOMATION SYSTEMS FOR HOME AND COMMERCIAL ELECTRIC NETWORKS
CN104615456A (en) Information processing method and center control equipment
CN106130838A (en) Smart Home steward system based on wechat
CN103412547A (en) Method for controlling intelligent housing system through handheld remote control terminal
CN103576656A (en) Method, device and system for controlling household appliances
CN110703616A (en) Intelligent interaction method, cloud server, intelligent interaction system and storage medium
CN111158256A (en) Intelligent household scene simulation and equipment control method and system based on intelligent television
WO2021103619A1 (en) Network configuration terminal, network configuration method for household appliance, and computer-readable storage medium
CN106331284A (en) Communication system based on WIFI Internet of things technology
CN110837228A (en) Intelligent household appliance single and circulating cloud timing control system and control method thereof
DK3050188T3 (en) CONTROL OF ELECTRONIC EQUIPMENT CONTROLS WHICH CAN BE CONTROLLED BY INFRARED CONTROL SIGNALS
CN107809356B (en) Control method and system for accessing internet resources to intelligent home platform
CN104320689A (en) Remote control unit and terminal control method
CN109240101B (en) Equipment remote control method and control system
US11500343B2 (en) Method for controlling a home automation installation, associated equipment and installation

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