CN109525417A - Household appliance cut-in method, domestic electric appliances controller and storage medium based on network interface - Google Patents

Household appliance cut-in method, domestic electric appliances controller and storage medium based on network interface Download PDF

Info

Publication number
CN109525417A
CN109525417A CN201811176774.4A CN201811176774A CN109525417A CN 109525417 A CN109525417 A CN 109525417A CN 201811176774 A CN201811176774 A CN 201811176774A CN 109525417 A CN109525417 A CN 109525417A
Authority
CN
China
Prior art keywords
household appliance
agreement
network interface
protocol
household
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
CN201811176774.4A
Other languages
Chinese (zh)
Other versions
CN109525417B (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.)
GD Midea Air Conditioning Equipment Co Ltd
Original Assignee
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 Guangdong Midea Refrigeration Equipment Co Ltd filed Critical Guangdong Midea Refrigeration Equipment Co Ltd
Priority to CN201811176774.4A priority Critical patent/CN109525417B/en
Priority to PCT/CN2019/075906 priority patent/WO2020073585A1/en
Publication of CN109525417A publication Critical patent/CN109525417A/en
Application granted granted Critical
Publication of CN109525417B publication Critical patent/CN109525417B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0213Standardised network management protocols, e.g. simple network management protocol [SNMP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2807Exchanging configuration information on appliance services in a home automation network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • H04L41/0886Fully automatic configuration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Automation & Control Theory (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses a kind of household appliance cut-in method based on network interface, comprising the following steps: obtain Network Management Protocol packet, parse the Network Management Protocol in the Network Management Protocol packet;Based on the Network Management Protocol, IP address distribution is carried out to by the household appliance of network interface connection;The type of the household appliance after being distributed according to address obtains household appliance agreement corresponding with the household appliance;Based on the Network Management Protocol, household appliance protocol package corresponding with the household appliance agreement is issued to the household appliance, is linked into domestic electric appliances controller with completing the household appliance.The invention also discloses a kind of domestic electric appliances controller and computer readable storage mediums.The present invention is by realizing the network interface access appliance equipment based on domestic electric appliances controller, the problem of solving and do not need to extend domestic electric appliances controller on hardware view more special communication interfaces, can also access more household appliances.

Description

Household appliance cut-in method, domestic electric appliances controller and storage medium based on network interface
Technical field
The present invention relates to data communication technology field more particularly to a kind of household appliance cut-in methods based on network interface, family Electric controller and computer readable storage medium.
Background technique
In existing domestic electric appliances controller, domestic electric appliances controller is all that (such as RS485 communication connects by special communication interface mostly Mouthful etc.) with household appliance connection communication, the quantity for the household appliance for causing domestic electric appliances controller that can access number by dedicated logical The quantity of communication interface is determined.Since the quantity of special communication interface has just been determined during domestic electric appliances controller is produced and prepared It is fixed, under special communication interface resource whole occupied situations, it is difficult to realization and is linked into more household appliances In domestic electric appliances controller.
Summary of the invention
The household appliance cut-in method that the main purpose of the present invention is to provide a kind of based on network interface, domestic electric appliances controller and Computer readable storage medium is solved and is not needed to family by realizing the network interface access appliance equipment based on domestic electric appliances controller The problem of electric controller extends more special communication interfaces on hardware view, can also access more household appliances.
To achieve the above object, the present invention provides a kind of household appliance cut-in method based on network interface, described to be based on network interface Household appliance cut-in method the following steps are included:
Network Management Protocol packet is obtained, the Network Management Protocol in the Network Management Protocol packet is parsed;
Based on the Network Management Protocol, IP address distribution is carried out to by the household appliance of network interface connection;
The type of the household appliance after being distributed according to address obtains household appliance association corresponding with the household appliance View;
Based on the Network Management Protocol, household appliance protocol package corresponding with the household appliance agreement is issued to institute Household appliance is stated, is linked into domestic electric appliances controller with completing the household appliance.
Preferably, the household appliance cut-in method based on network interface further include:
When receiving equipment access network interface instruction, the Network Management Protocol packet is obtained from server.
Preferably, it is described distributed according to address after the household appliance type, obtain it is corresponding with the household appliance Household appliance agreement the step of before, further includes:
The data packet that the household appliance issues is obtained, the data packet is parsed by the Network Management Protocol, is obtained The information of the type of the household appliance.
Preferably, it is described distributed according to address after the household appliance type, obtain it is corresponding with the household appliance Household appliance agreement the step of include:
Detect whether there is the household appliance agreement corresponding with the type of the household appliance;
When detecting the presence of the household appliance agreement corresponding with the type of the household appliance, the household electrical appliances are obtained Device protocol.
Preferably, the step detected whether in the presence of the household appliance agreement corresponding with the type of the household appliance After rapid, further includes:
When detecting there is no the household appliance agreement corresponding with the type of the household appliance, from server Obtain the household appliance protocol package corresponding with the household appliance agreement;
The household appliance protocol package is parsed, the household appliance agreement is obtained.
Preferably, described to be based on the Network Management Protocol, IP address point is carried out to by the household appliance of network interface connection With the step of after, further includes:
In the protocol type setting instruction for receiving the household appliance based on setting page setup, obtains and choose The corresponding household appliance agreement of household appliance protocol type.
Preferably, described to be based on the Network Management Protocol, it will household appliance association corresponding with the household appliance agreement Discussing the step of packet is issued to the household appliance includes:
The household appliance protocol package corresponding with the household electrical appliances agreement is obtained from server;
The household appliance protocol package is issued to the household appliance based on the Network Management Protocol.
Preferably, described to be based on the Network Management Protocol, IP address point is carried out to by the household appliance of network interface connection With the step of include:
The IP account information inputted based on the setting page is received, according to the IP account information and the Network Management Protocol The IP address mapping relations with the household appliance are established, and IP address distribution is carried out to the household appliance.
To achieve the above object, the present invention also provides a kind of domestic electric appliances controller, the domestic electric appliances controller includes:
The domestic electric appliances controller includes memory, processor and is stored on the memory and can be on the processor The household appliance joining procedure based on network interface of operation, the household appliance joining procedure based on network interface are held by the processor It realizes when row such as the step of the above-mentioned household appliance cut-in method based on network interface.
To achieve the above object, the present invention also provides a kind of computer readable storage medium, the computer-readable storages The household appliance joining procedure based on network interface is stored on medium, the household appliance joining procedure based on network interface is by processor It realizes when execution such as the step of the above-mentioned household appliance cut-in method based on network interface.
One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
1, it has just been determined during domestic electric appliances controller is produced and prepared due to the quantity of special communication interface, special With communication interface resource all in occupied situations, by realizing the network interface access appliance equipment based on domestic electric appliances controller, It solves and does not need to extend domestic electric appliances controller on hardware view more special communication interfaces, can also access more household electrical appliances The problem of equipment.
2, in the case where household appliance does not complete access appliance controller, broadcast is sent to by obtaining household appliance The data packet of network realizes that domestic electric appliances controller can get the information of household appliance corresponding types automatically, to facilitate home wiring control Device obtains household appliance agreement.
3, by realizing that domestic electric appliances controller obtains snmp protocol packet and household appliance agreement in broadcasting network automatically, Reduce the manual operation of user, can more easily complete the access of household appliance.
4, it has been connected with household appliance since special communication interface can be, in the program file of domestic electric appliances controller also It can be that there is some household appliance agreements, therefore, if by realizing when domestic electric appliances controller obtains household appliance agreement It detects there is household appliance agreement corresponding with household appliance in program file, directly acquires and call the household appliance agreement, It can be more efficiently completed the access of household appliance, effectively prevent the redundancy of data file.
Detailed description of the invention
Fig. 1 is the hardware running environment schematic diagram for the embodiment terminal that the embodiment of the present invention is related to;
Fig. 2 is that the present invention is based on the flow diagrams of the household appliance cut-in method first embodiment of network interface;
Fig. 3 is that the present invention is based on the flow diagrams of the household appliance cut-in method second embodiment of network interface;
Fig. 4 is that the present invention is based on the flow diagrams of the household appliance cut-in method 3rd embodiment of network interface;
Fig. 5 is that the present invention is based on the flow diagrams of the household appliance cut-in method fourth embodiment of network interface;
Fig. 6 is that the present invention is based on the flow diagrams of the 5th embodiment of household appliance cut-in method of network interface.
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 embodiment
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 provides a kind of household appliance cut-in method based on network interface, by realizing the network interface based on domestic electric appliances controller Access appliance equipment solves and does not need to extend domestic electric appliances controller on hardware view more special communication interfaces, also can The problem of accessing more household appliances.
In order to better understand the above technical scheme, the exemplary reality of the disclosure is more fully described below with reference to accompanying drawings Apply example.Although showing the exemplary embodiment of the disclosure in attached drawing, it being understood, however, that may be realized in various forms this public affairs It opens and should not be limited by the embodiments set forth herein.It is to be able to thoroughly understand this on the contrary, providing these embodiments It is open, and the scope of the present disclosure can be fully disclosed to those skilled in the art.
As shown in Figure 1, Fig. 1 is the hardware running environment schematic diagram for the embodiment terminal that the embodiment of the present invention is related to;
The terminal of that embodiment of the invention can be domestic electric appliances controller, be also possible to data converter.
As shown in Figure 1, the domestic electric appliances controller may include: processor 1001, such as CPU, memory 1002, communication bus 1003.Wherein, communication bus 1003 is for realizing the connection communication between each building block in the domestic electric appliances controller.Memory 1002 can be high speed RAM memory, be also possible to stable memory (non-volatile memory), such as disk is deposited Reservoir.Memory 1002 optionally can also be the storage device independently of aforementioned processor 1001.
It will be understood by those skilled in the art that the structure of terminal shown in Fig. 1 was not constituted to end of the embodiment of the present invention The restriction at end may include perhaps combining certain components or different component layouts than illustrating more or fewer components.
As shown in Figure 1, as may include the household electrical appliances based on network interface in a kind of memory 1002 of computer storage medium Equipment joining procedure.
In terminal shown in Fig. 1, processor 1001 can be used for calling stored in memory 1002 based on network interface Household appliance joining procedure, and execute following operation:
Network Management Protocol packet is obtained, the Network Management Protocol in the Network Management Protocol packet is parsed;
Based on the Network Management Protocol, IP address distribution is carried out to by the household appliance of network interface connection;
The type of the household appliance after being distributed according to address obtains household appliance association corresponding with the household appliance View;
Based on the Network Management Protocol, household appliance protocol package corresponding with the household appliance agreement is issued to institute Household appliance is stated, is linked into domestic electric appliances controller with completing the household appliance.
Further, processor 1001 can call the household appliance access journey based on network interface stored in memory 1002 Sequence also executes following operation:
When receiving equipment access network interface instruction, the Network Management Protocol packet is obtained from server.
Further, processor 1001 can call the household appliance access journey based on network interface stored in memory 1002 Sequence also executes following operation:
The data packet that the household appliance issues is obtained, the data packet is parsed by institute's Network Management Protocol, obtains institute State the information of the type of household appliance.
Further, processor 1001 can call the household appliance access journey based on network interface stored in memory 1002 Sequence also executes following operation:
Detect whether there is the household appliance agreement corresponding with the type of the household appliance;
When detecting the presence of the household appliance agreement corresponding with the type of the household appliance, the household electrical appliances are obtained Device protocol.
Further, processor 1001 can call the household appliance access journey based on network interface stored in memory 1002 Sequence also executes following operation:
When detecting there is no the household appliance agreement corresponding with the type of the household appliance, from server Obtain the household appliance protocol package corresponding with the household appliance agreement;
The household appliance protocol package is parsed, the household appliance agreement is obtained.
Further, processor 1001 can call the household appliance access journey based on network interface stored in memory 1002 Sequence also executes following operation:
In the protocol type setting instruction for receiving the household appliance based on setting page setup, obtains and choose The corresponding household appliance agreement of household appliance protocol type.
Further, processor 1001 can call the household appliance access journey based on network interface stored in memory 1002 Sequence also executes following operation:
The household appliance protocol package corresponding with the household electrical appliances agreement is obtained from server;
The household appliance protocol package is issued to the household appliance based on the Network Management Protocol.
Further, processor 1001 can call the household appliance access journey based on network interface stored in memory 1002 Sequence also executes following operation:
The IP account information inputted based on the setting page is received, according to the IP account information and the Network Management Protocol The IP address mapping relations with the household appliance are established, and IP address distribution is carried out to the household appliance.
In order to better understand the above technical scheme, in conjunction with appended figures and specific embodiments to upper Technical solution is stated to be described in detail.
Referring to Fig. 2, in one embodiment, the household appliance cut-in method based on network interface includes:
Step S10, Network Management Protocol packet is obtained, the Network Management Protocol in the Network Management Protocol packet is parsed.
In the present embodiment, existing smart home system is all by the way that household appliance is connected to a home wiring control mostly Device, and user can use mobile terminal or the end PC and assign control instruction to domestic electric appliances controller by network, then pass through household electrical appliances Controller controls corresponding household appliance, such as air-conditioning, dehumidifier, clarifier, humidifier, fan etc..In existing home wiring control In device, domestic electric appliances controller be all mostly by special communication interface, such as RS485 communication interface, and household appliance connection communication, In this way, the number of the quantity for the household appliance that domestic electric appliances controller can access can only be determined by the quantity of special communication interface.By It has just determined during domestic electric appliances controller is produced and prepared in the quantity of special communication interface, has been provided in special communication interface Source in whole occupied situations, is difficult to that more household appliances are linked into domestic electric appliances controller again.
Since domestic electric appliances controller is other than with special communication interface, it is additionally provided with network interface interface, the application passes through reality Now based on the network interface of domestic electric appliances controller come access appliance equipment, solves and do not need to extend domestic electric appliances controller on hardware view More special communication interfaces, the problem of capable of also accessing more household appliances.It should be noted that making full use of idle net Mouth resource access appliance equipment, can not only play the role of economizing on resources, comparatively, since the type of network interface interface is unified, The features such as facilitating wiring, on hardware view, network interface interface is easier to extend than special communication interface, even if providing in network interface interface In the limited situation in source, it can also be easy to extend more network interface interfaces.
The Network Management Protocol is preferably SNMP (Simple Network Management Protocol), specifically, is receiving equipment access When network interface instructs, the snmp protocol packet is obtained from server.Connected in household appliance by network interface interface and domestic electric appliances controller After connecing, user be can be in the set interface in domestic electric appliances controller, or the setting page, be selected " software upgrading function ", with Issue equipment access network interface instruction, domestic electric appliances controller receive based on set interface issue equipment access network interface instruction when, Snmp simple network management protocol packet is obtained from server, the server can be connection local area network, be also possible to connect Wide area network is connect, after domestic electric appliances controller gets snmp protocol packet, domestic electric appliances controller is parsed in the snmp protocol packet Snmp protocol, and the snmp protocol is added in program software.It should be noted that the Network Management Protocol packet, i.e., Snmp protocol packet can be the form foundation with the library SO (dynamic link library of the outstanding Nice system SO file of unix), in this way, can In the case where realizing the program file not changed in original domestic electric appliances controller, snmp protocol is added in the form of transparent protocol It is added in the program file of domestic electric appliances controller.
It should be noted that since domestic electric appliances controller can be the mobile terminal by server or internet and user, Or the connection of the end PC, user can be using mobile terminal, as the equipment such as mobile phone, plate or the end PC enter house by network The setting page of electric controller.
Certainly, it needs according to the actual situation, the acquisition of the snmp protocol packet can be not limited to described above, be also possible to Obtain the snmp protocol packet being connected in the flash memory device of domestic electric appliances controller.
It is that one kind manages network node in an ip network since SNMP is the network management standard based on TCP/IP protocol suite The standard agreement of (such as server, work station, router, interchanger).Therefore, using the protocol characteristic of snmp protocol, pass through Protocol conversion can be realized on the application layer and set the original household electrical appliances suitable for special communication interfaces such as RS485 communication interfaces Standby agreement, also can be suitably used for network interface interface.
Step S20, it is based on the Network Management Protocol, carries out IP address distribution to by the household appliance of network interface connection.
In the present embodiment, domestic electric appliances controller receives the IP account information inputted based on the setting page, according to the IP account Information and the snmp protocol establish the IP address mapping relations with the household appliance, and with carrying out IP to the household appliance Location distribution.It should be noted that due to request (including user name, password, the IP that can change IP address map record by SNMP Address and physical address), therefore, on the application layer, it may be implemented to carry out IP address distribution to household appliance by network interface.
After IP address configuration successful, the buzzer of domestic electric appliances controller is long to be rung, and equipment accesses indicator light flashing, to prompt user Domestic electric appliances controller comes into household appliance access module.
Step S30, the type of the household appliance after being distributed according to address obtains family corresponding with the household appliance Electric equipment agreement.
In the present embodiment, after carrying out IP address distribution to household appliance, domestic electric appliances controller be can be by starting DHCP Dynamic host configuration protocol, in a manner of broadcasting single IP address, the household appliance for obtaining corresponding IP address is sent to radio network The data packet of network, the data packet can be with the corresponding protocol type informations of the type of household appliance.It should be noted that household electrical appliances are set Standby protocol type includes proprietary protocol, master-Slave Protocol and modulebus module bus communications protocol, different types of household appliance Correspond to different protocol types.
After the data packet that the household appliance that domestic electric appliances controller gets corresponding IP address issues, pass through the snmp protocol solution The data packet is analysed, the information of the type of the household appliance can be obtained, the household electrical appliances after then being distributed according to address are set Standby type obtains household appliance agreement corresponding with the household appliance.
Certainly, the domestic electric appliances controller is also possible in the association for receiving the household appliance based on setting page setup When discussing type setting instruction, the household appliance agreement corresponding with the household appliance protocol type chosen is obtained.
It should be noted that it has been connected with household appliance since special communication interface can be, the journey of domestic electric appliances controller It also can be that there is some household appliance agreements in preface part, therefore, when domestic electric appliances controller obtains household appliance agreement, It can be and first detect in program file with the presence or absence of the household appliance agreement corresponding with the type of the household appliance, examining When measuring in the presence of the household appliance agreement corresponding with the type of the household appliance, the household appliance agreement is directly acquired Household appliance agreement as the household appliance for establishing access with domestic electric appliances controller;It is not present and the household electrical appliances detecting When the corresponding household appliance agreement of the type of equipment, obtained from server it is corresponding with the household appliance agreement described in Household appliance protocol package parses the household appliance protocol package, obtains the household appliance agreement.
After getting household appliance agreement, which is added in program file by domestic electric appliances controller.
Wherein, the server, which can be, connects on a local area network, is also possible to connect on the internet.From clothes When obtaining the household appliance protocol package corresponding with the household appliance agreement on business device, it is also possible to acquisition and is already sent to Household appliance protocol package in broadcasting network.Certainly, it needs according to the actual situation, is also possible to acquisition and is connected to domestic electric appliances controller Flash memory device in household appliance protocol package.
Step S40, it is based on the Network Management Protocol, it will household appliance protocol package corresponding with the household appliance agreement It is issued to the household appliance, is linked into domestic electric appliances controller with completing the household appliance.
In the present embodiment, after domestic electric appliances controller obtains the information of the type of the household appliance after IP address distribution, obtain Household appliance protocol package corresponding with the type of household appliance, wherein obtain preferably from server and assisted with the household appliance It discusses the corresponding household appliance protocol package to need according to the actual situation certainly, is also possible to acquisition and is connected to domestic electric appliances controller Flash memory device in household appliance protocol package.Then, domestic electric appliances controller is based on the snmp protocol on the application layer, passes through net Household appliance protocol package corresponding with the household appliance agreement is issued to the household appliance by port communications, described in completing The access of household appliance.It should be noted that if be domestic electric appliances controller being to obtain household electrical appliances by parsing household appliance protocol package and set Standby agreement, the household appliance protocol package is directly just issued to the household appliance.
After the household appliance is successfully accessed domestic electric appliances controller, the device management module of domestic electric appliances controller can be passed through Registration generates household appliance sequence number corresponding with the household appliance, as the household electrical appliances ID of the household appliance, to facilitate from now on Control of the domestic electric appliances controller to household appliance.
After household appliance is successfully accessed, the indicator light is always on for domestic electric appliances controller, with prompt user's household appliance access at At this moment function when receiving the confirmation signal that user is clicked based on the setting page, exits the setting page of home wiring control.
In the first embodiment, Network Management Protocol packet is obtained, the network pipe in the Network Management Protocol packet is parsed Manage agreement;Based on the Network Management Protocol, IP address distribution is carried out to by the household appliance of network interface connection;According to address point The type of the household appliance after matching obtains household appliance agreement corresponding with the household appliance;Based on the network pipe Agreement is managed, household appliance protocol package corresponding with the household appliance agreement is issued to the household appliance, described in completing Household appliance is linked into domestic electric appliances controller.In this way, being solved by realizing the network interface access appliance equipment based on domestic electric appliances controller It does not need to extend domestic electric appliances controller on hardware view more special communication interfaces, can access more household appliances yet The problem of.
In a second embodiment, described to be distributed according to address as shown in figure 3, on the basis of above-mentioned embodiment shown in Fig. 2 Before the step of type of the household appliance afterwards, acquisition household appliance agreement corresponding with the household appliance, further includes:
Step S21, the data packet that the household appliance issues is obtained, the data are parsed by the Network Management Protocol Packet, obtains the information of the type of the household appliance.
In the present embodiment, after carrying out IP address distribution to household appliance, domestic electric appliances controller be can be by starting DHCP Dynamic host configuration protocol, in a manner of broadcasting single IP address, the household appliance for obtaining corresponding IP address is sent to radio network The data packet of network, the data packet can be with the corresponding protocol type informations of the type of household appliance.It should be noted that household electrical appliances are set Standby protocol type includes proprietary protocol, master-Slave Protocol and modulebus module bus communications protocol, different types of household appliance Correspond to different protocol types.
After the data packet that the household appliance that domestic electric appliances controller gets corresponding IP address issues, pass through the snmp protocol solution The data packet is analysed, the information of the type of the household appliance can be obtained, the household electrical appliances after then being distributed according to address are set Standby type obtains household appliance agreement corresponding with the household appliance.
In a second embodiment, the data packet that the household appliance issues is obtained, by described in snmp protocol parsing Data packet obtains the information of the type of the household appliance.In this way, not completing the feelings of access appliance controller in household appliance Under condition, the data packet for being sent to broadcasting network by obtaining household appliance realizes that domestic electric appliances controller automatically derives household appliance pair Answer the information of type.
In the third embodiment, described according to address point as shown in figure 4, on the basis of the embodiment of above-mentioned Fig. 2 to Fig. 3 The type of the household appliance after matching, obtain household appliance agreement corresponding with the household appliance the step of include:
Step S50, detect whether there is the household appliance agreement corresponding with the type of the household appliance.
Step S51, it when detecting the presence of the household appliance agreement corresponding with the type of the household appliance, obtains The household appliance agreement.
Step S52, when detecting there is no the household appliance agreement corresponding with the type of the household appliance, from The household appliance protocol package corresponding with the household appliance agreement is obtained on server.
Step S53, the household appliance protocol package is parsed, the household appliance agreement is obtained.
It has been connected with household appliance since special communication interface can be, also can in the program file of domestic electric appliances controller To be that there is some household appliance agreements, therefore, when domestic electric appliances controller obtains household appliance agreement, it can be and first detect journey In preface part whether there is the household appliance agreement corresponding with the type of the household appliance, detect the presence of with it is described When the corresponding household appliance agreement of the type of household appliance, directly acquire the household appliance agreement as with home wiring control Device is establishing the household appliance agreement of the household appliance of access;Detecting that there is no corresponding with the type of the household appliance The household appliance agreement when, corresponding with the household appliance agreement household appliance agreement is obtained from server Packet, parses the household appliance protocol package, obtains the household appliance agreement.After getting household appliance agreement, household electrical appliances The household appliance agreement is added in program file by controller.
Wherein, the server, which can be, connects on a local area network, is also possible to connect on the internet.From clothes When obtaining the household appliance protocol package corresponding with the household appliance agreement on business device, it is also possible to acquisition and is already sent to Household appliance protocol package in broadcasting network.Certainly, it needs according to the actual situation, is also possible to acquisition and is connected to domestic electric appliances controller Flash memory device in household appliance protocol package.
In the third embodiment, detect whether there is the household appliance association corresponding with the type of the household appliance View, when detecting the presence of the household appliance agreement corresponding with the type of the household appliance, obtains the household appliance Agreement is being detected there is no when the household appliance agreement corresponding with the type of the household appliance, is being obtained from server The household appliance protocol package corresponding with the household appliance agreement is taken, the household appliance protocol package is parsed, is obtained described Household appliance agreement.In this way, realizing domestic electric appliances controller to the corresponding household appliance agreement of household appliance after IP address distribution Acquisition.
In the fourth embodiment, described to be based on the net as shown in figure 5, on the basis of the embodiment of above-mentioned Fig. 2 to Fig. 4 Network management agreement, after the step of carrying out IP address distribution by the household appliance of network interface connection, further includes:
Step S60, it in the protocol type setting instruction for receiving the household appliance based on setting page setup, obtains Take the household appliance agreement corresponding with the household appliance protocol type chosen.
In the present embodiment, after carrying out IP address distribution to household appliance, the domestic electric appliances controller, which can be, to be received When instruction is arranged in the protocol type of the household appliance based on setting page setup, the household appliance protocol class that obtains and choose The corresponding household appliance agreement of type.
It has been connected with household appliance since special communication interface can be, also can in the program file of domestic electric appliances controller To be that there is some household appliance agreements, therefore, when domestic electric appliances controller obtains household appliance agreement, it can be and first detect journey In preface part whether there is the household appliance agreement corresponding with the type of the household appliance, detect the presence of with it is described When the corresponding household appliance agreement of the type of household appliance, directly acquire the household appliance agreement as with home wiring control Device is establishing the household appliance agreement of the household appliance of access;Detecting that there is no corresponding with the type of the household appliance The household appliance agreement when, corresponding with the household appliance agreement household appliance agreement is obtained from server Packet, parses the household appliance protocol package, obtains the household appliance agreement.After getting household appliance agreement, household electrical appliances The household appliance agreement is added in program file by controller.
In the fourth embodiment, refer in the protocol type setting for receiving the household appliance based on setting page setup When enabling, the household appliance agreement corresponding with the household appliance protocol type chosen is obtained.In this way, realizing domestic electric appliances controller Acquisition to the corresponding household appliance agreement of household appliance after IP address distribution.
In the 5th embodiment, described to be based on the net as shown in fig. 6, on the basis of the embodiment of above-mentioned Fig. 2 to Fig. 5 Network management agreement, will household appliance protocol package corresponding with household appliance agreement the step of being issued to household appliance packet It includes:
Step S70, the household appliance protocol package corresponding with the household electrical appliances agreement is obtained from server.
Step S71, the household appliance protocol package is issued to by the household appliance based on the Network Management Protocol.
In the present embodiment, after domestic electric appliances controller obtains the information of the type of the household appliance after IP address distribution, from clothes The household appliance protocol package corresponding with the household appliance agreement is obtained on business device to need according to the actual situation certainly.So Afterwards, domestic electric appliances controller is based on the snmp protocol on the application layer, is communicated by network interface, will be corresponding with the household appliance agreement Household appliance protocol package be issued to the household appliance, to complete the access of the household appliance.
In addition, the present invention also proposes that a kind of domestic electric appliances controller, the domestic electric appliances controller include memory, processor and storage On a memory and the household appliance joining procedure based on network interface that can run on a processor, the processor execute the base The household appliance cut-in method based on network interface as described above in Example is realized when the household appliance joining procedure of network interface Step.
In addition, the present invention also proposes a kind of computer readable storage medium, which is characterized in that the computer-readable storage Medium includes the household appliance joining procedure based on network interface, and the household appliance joining procedure based on network interface is executed by processor The step of Shi Shixian as described above in Example household appliance cut-in method based on network interface.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in one as described above In storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be TV Machine, mobile phone, computer, server, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
It should be noted that in the claims, any reference symbol between parentheses should not be configured to power The limitation that benefit requires.Word "comprising" does not exclude the presence of component or step not listed in the claims.Before component Word "a" or "an" does not exclude the presence of multiple such components.The present invention can be by means of including several different components It hardware and is realized by means of properly programmed computer.In the unit claims listing several devices, these are filled Several in setting, which can be, to be embodied by the same item of hardware.The use of word first, second, and third is not Indicate any sequence.These words can be construed to title.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all 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 household appliance cut-in method based on network interface, which is characterized in that the household appliance access side based on network interface Method the following steps are included:
Network Management Protocol packet is obtained, the Network Management Protocol in the Network Management Protocol packet is parsed;
Based on the Network Management Protocol, IP address distribution is carried out to by the household appliance of network interface connection;
The type of the household appliance after being distributed according to address obtains household appliance agreement corresponding with the household appliance;
Based on the Network Management Protocol, household appliance protocol package corresponding with the household appliance agreement is issued to the family Electric equipment is linked into domestic electric appliances controller with completing the household appliance.
2. the household appliance cut-in method based on network interface as described in claim 1, which is characterized in that the family based on network interface Electric equipment cut-in method further include:
When receiving equipment access network interface instruction, the Network Management Protocol packet is obtained from server.
3. such as the household appliance cut-in method based on network interface as stated in claim 1, which is characterized in that described according to address Before the step of type of the household appliance after distribution, acquisition household appliance agreement corresponding with the household appliance, also Include:
The data packet that the household appliance issues is obtained, the data packet is parsed by the Network Management Protocol, is obtained described The information of the type of household appliance.
4. such as the household appliance cut-in method based on network interface as stated in claim 1, which is characterized in that described according to address The type of the household appliance after distribution, obtain household appliance agreement corresponding with the household appliance the step of include:
Detect whether there is the household appliance agreement corresponding with the type of the household appliance;
When detecting the presence of the household appliance agreement corresponding with the type of the household appliance, the household appliance is obtained Agreement.
5. the household appliance cut-in method based on network interface as claimed in claim 4, which is characterized in that described to detect whether exist After the step of household appliance agreement corresponding with the type of the household appliance, further includes:
It is detecting there is no when the household appliance agreement corresponding with the type of the household appliance, is being obtained from server The household appliance protocol package corresponding with the household appliance agreement;
The household appliance protocol package is parsed, the household appliance agreement is obtained.
6. the household appliance cut-in method based on network interface as described in claim 1, which is characterized in that described to be based on the network Management agreement, after the step of carrying out IP address distribution by the household appliance of network interface connection, further includes:
In the protocol type setting instruction for receiving the household appliance based on setting page setup, the family that obtains and choose The corresponding household appliance agreement of electric equipment protocol type.
7. the household appliance cut-in method based on network interface as described in claim 1, which is characterized in that described to be based on the network Management agreement, will household appliance protocol package corresponding with household appliance agreement the step of being issued to household appliance packet It includes:
The household appliance protocol package corresponding with the household electrical appliances agreement is obtained from server;
The household appliance protocol package is issued to the household appliance based on the Network Management Protocol.
8. the household appliance cut-in method based on network interface as described in claim 1, which is characterized in that described to be based on the network Management agreement includes: to the step of carrying out IP address distribution by the household appliance of network interface connection
The IP account information inputted based on the setting page is received, is established according to the IP account information and the Network Management Protocol With the IP address mapping relations of the household appliance, and to the household appliance carry out IP address distribution.
9. a kind of domestic electric appliances controller, which is characterized in that the domestic electric appliances controller includes memory, processor and is stored in described deposit On reservoir and the household appliance joining procedure based on network interface that can run on the processor, the household electrical appliances based on network interface are set Standby joining procedure is realized when being executed by the processor as the household electrical appliances described in any item of the claim 1 to 8 based on network interface are set The step of standby cut-in method.
10. a kind of computer readable storage medium, which is characterized in that be stored on the computer readable storage medium based on net The household appliance joining procedure of mouth is realized when the household appliance joining procedure based on network interface is executed by processor as right is wanted The step of household appliance cut-in method described in asking any one of 1 to 8 based on network interface.
CN201811176774.4A 2018-10-09 2018-10-09 Household appliance access method based on internet access, household appliance controller and storage medium Active CN109525417B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201811176774.4A CN109525417B (en) 2018-10-09 2018-10-09 Household appliance access method based on internet access, household appliance controller and storage medium
PCT/CN2019/075906 WO2020073585A1 (en) 2018-10-09 2019-02-22 Network-port-based access method for home appliance, home appliance controller, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811176774.4A CN109525417B (en) 2018-10-09 2018-10-09 Household appliance access method based on internet access, household appliance controller and storage medium

Publications (2)

Publication Number Publication Date
CN109525417A true CN109525417A (en) 2019-03-26
CN109525417B CN109525417B (en) 2020-10-20

Family

ID=65770254

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811176774.4A Active CN109525417B (en) 2018-10-09 2018-10-09 Household appliance access method based on internet access, household appliance controller and storage medium

Country Status (2)

Country Link
CN (1) CN109525417B (en)
WO (1) WO2020073585A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112311736A (en) * 2019-07-31 2021-02-02 广东美的制冷设备有限公司 Remote control device, household appliance and communication protocol configuration method and device thereof
CN114915561A (en) * 2022-04-19 2022-08-16 北京宝兰德软件股份有限公司 Network topological graph generation method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1322356A (en) * 1999-07-27 2001-11-14 三星电子株式会社 Device discovery and configuration in home network
US20100235480A1 (en) * 2006-05-19 2010-09-16 Cisco Technology Inc. Method and apparatus for simply configuring a subscriber appliance for performing a service controlled by a separate service provider
KR20130062598A (en) * 2011-12-05 2013-06-13 한전케이디엔주식회사 Network management system integrated a power line communication and control method of the same
CN107318119A (en) * 2017-08-28 2017-11-03 广东美的制冷设备有限公司 Home appliance network-building method, home appliance and computer-readable recording medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7702732B1 (en) * 1999-09-29 2010-04-20 Nortel Networks Limited Methods for auto-configuring a router on an IP subnet
CN101719927A (en) * 2009-11-18 2010-06-02 中兴通讯股份有限公司 Method and system thereof for carrying out remote management on gateway down-hanging device
CN101860539B (en) * 2010-05-28 2013-08-21 华南理工大学 Control system and control method of networked appliance with service discovery function
CN103312573B (en) * 2013-06-14 2016-12-28 西安交通大学 A kind of domestic network system equipment finds and recognition methods

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1322356A (en) * 1999-07-27 2001-11-14 三星电子株式会社 Device discovery and configuration in home network
US20100235480A1 (en) * 2006-05-19 2010-09-16 Cisco Technology Inc. Method and apparatus for simply configuring a subscriber appliance for performing a service controlled by a separate service provider
KR20130062598A (en) * 2011-12-05 2013-06-13 한전케이디엔주식회사 Network management system integrated a power line communication and control method of the same
CN107318119A (en) * 2017-08-28 2017-11-03 广东美的制冷设备有限公司 Home appliance network-building method, home appliance and computer-readable recording medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112311736A (en) * 2019-07-31 2021-02-02 广东美的制冷设备有限公司 Remote control device, household appliance and communication protocol configuration method and device thereof
CN112311736B (en) * 2019-07-31 2023-10-27 广东美的制冷设备有限公司 Remote control device, household appliance and communication protocol configuration method and device thereof
CN114915561A (en) * 2022-04-19 2022-08-16 北京宝兰德软件股份有限公司 Network topological graph generation method and device
CN114915561B (en) * 2022-04-19 2024-02-20 北京宝兰德软件股份有限公司 Network topology graph generation method and device

Also Published As

Publication number Publication date
CN109525417B (en) 2020-10-20
WO2020073585A1 (en) 2020-04-16

Similar Documents

Publication Publication Date Title
CN107995215B (en) Control method and device of intelligent household equipment and cloud platform server
CN109951325B (en) Network cable connection checking method and device
CN106411667A (en) Network chip based smart home multi-cloud control method and system
CN108401037B (en) Binding method, device and system of user terminal and equipment
CN109428911A (en) Apparatus control method, device, terminal device and operating system
CN102857370A (en) Resource allocating method and device
CN106375442B (en) Method and device for cross-platform management of equipment information
CN104581785A (en) Wireless network testing method, testing device and mobile terminal
CN107580040B (en) Method and device for upgrading communication module in intelligent household terminal
CN109525417A (en) Household appliance cut-in method, domestic electric appliances controller and storage medium based on network interface
CN103179467A (en) Terminal and information gathering method
CN108600841B (en) Parameter operation method of set top box
CN112817248A (en) Shared device management method and device, storage medium and electronic device
CN104320718B (en) It is a kind of to avoid multiple DMC from pushing the method and device that media play produces conflict
CN116032691A (en) Shooting range interconnection method, electronic equipment and readable storage medium
CN107807619A (en) Intelligent home control system and its method of work based on virtual server module
CN108092959A (en) A kind of BACnet protocol analysis methods based on configuration
CN105392179A (en) Local area network equipment mutual discovery method and device based on web application
CN111935832A (en) Network resource allocation method and device and computer equipment
CN114615139B (en) Automatic configuration management method and device for switch, electronic equipment and storage medium
CN115174383B (en) Equipment updating method, storage medium and electronic device
CN115776678B (en) Networking method, server and medium based on 5G local area network
CN117478449B (en) Control method and device of third party equipment, electronic equipment and medium
CN115002014B (en) Method and device for determining test result, storage medium and electronic device
CN113765904B (en) Authentication method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant