CN109525417B - Household appliance access method based on internet access, household appliance controller and storage medium - Google Patents

Household appliance access method based on internet access, household appliance controller and storage medium Download PDF

Info

Publication number
CN109525417B
CN109525417B CN201811176774.4A CN201811176774A CN109525417B CN 109525417 B CN109525417 B CN 109525417B CN 201811176774 A CN201811176774 A CN 201811176774A CN 109525417 B CN109525417 B CN 109525417B
Authority
CN
China
Prior art keywords
household appliance
protocol
appliance
home
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.)
Active
Application number
CN201811176774.4A
Other languages
Chinese (zh)
Other versions
CN109525417A (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
GD Midea Air Conditioning 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 GD Midea Air Conditioning Equipment Co Ltd filed Critical GD Midea Air Conditioning 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

Images

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 household appliance access method based on a network port, which comprises the following steps: acquiring a network management protocol packet, and analyzing a network management protocol in the network management protocol packet; based on the network management protocol, IP address allocation is carried out on the household electrical appliance connected through the network port; acquiring a household appliance protocol corresponding to the household appliance according to the type of the household appliance after address allocation; and based on the network management protocol, issuing a household appliance protocol packet corresponding to the household appliance protocol to the household appliance so as to complete the access of the household appliance to a household appliance controller. The invention also discloses a household appliance controller and a computer readable storage medium. The invention solves the problem that more household appliances can be accessed without expanding more special communication interfaces on the hardware level of the household appliance controller by realizing the network port based on the household appliance controller to access the household appliances.

Description

Household appliance access method based on internet access, household appliance controller and storage medium
Technical Field
The present invention relates to the field of data communication technologies, and in particular, to a home appliance access method based on a network interface, a home appliance controller, and a computer-readable storage medium.
Background
In most of the existing home appliance controllers, the home appliance controllers are connected and communicated with the home appliance devices through dedicated communication interfaces (such as RS485 communication interfaces), so that the number of the home appliance devices that can be accessed by the home appliance controllers is determined by the number of the dedicated communication interfaces. Because the number of the special communication interfaces is already determined in the production and preparation process of the household electrical appliance controller, under the condition that the resources of the special communication interfaces are completely occupied, more household electrical appliances are difficult to access into the household electrical appliance controller.
Disclosure of Invention
The invention mainly aims to provide a household appliance access method based on a network port, a household appliance controller and a computer readable storage medium.
In order to achieve the above object, the present invention provides a home appliance access method based on a network port, which comprises the following steps:
acquiring a network management protocol packet, and analyzing a network management protocol in the network management protocol packet;
based on the network management protocol, IP address allocation is carried out on the household electrical appliance connected through the network port;
acquiring a household appliance protocol corresponding to the household appliance according to the type of the household appliance after address allocation;
and based on the network management protocol, issuing a household appliance protocol packet corresponding to the household appliance protocol to the household appliance so as to complete the access of the household appliance to a household appliance controller.
Preferably, the home appliance access method based on the internet access further includes:
and when receiving an equipment access network port instruction, acquiring the network management protocol packet from the server.
Preferably, before the step of obtaining a home device protocol corresponding to the home device according to the type of the home device after address assignment, the method further includes:
and acquiring a data packet sent by the household appliance, and analyzing the data packet through the network management protocol to obtain the type information of the household appliance.
Preferably, the step of acquiring a home appliance protocol corresponding to the home appliance according to the type of the home appliance after address assignment includes:
detecting whether the household appliance protocol corresponding to the type of the household appliance exists or not;
and when detecting that the household appliance protocol corresponding to the type of the household appliance exists, acquiring the household appliance protocol.
Preferably, after the step of detecting whether the home device protocol corresponding to the type of the home device exists, the method further includes:
when detecting that the household appliance protocol corresponding to the type of the household appliance does not exist, acquiring the household appliance protocol packet corresponding to the household appliance protocol from a server;
and analyzing the household appliance protocol packet to obtain the household appliance protocol.
Preferably, after the step of allocating an IP address to the home device connected through the internet access based on the network management protocol, the method further includes:
and when a protocol type setting instruction of the household appliance set based on the setting page is received, acquiring the household appliance protocol corresponding to the selected household appliance protocol type.
Preferably, the step of issuing a home appliance protocol packet corresponding to the home appliance protocol to the home appliance device based on the network management protocol includes:
acquiring the household appliance protocol packet corresponding to the household appliance protocol from a server;
and issuing the household appliance protocol packet to the household appliance based on the network management protocol.
Preferably, the step of allocating an IP address to the home device connected through the internet access based on the network management protocol includes:
receiving IP account information input based on a setting page, establishing an IP address mapping relation with the household appliance according to the IP account information and the network management protocol, and distributing an IP address to the household appliance.
In order to achieve the above object, the present invention also provides a home appliance controller, comprising:
the household appliance controller comprises a memory, a processor and a household appliance access program based on a network port, wherein the household appliance access program based on the network port is stored on the memory and can run on the processor, and when being executed by the processor, the household appliance access program based on the network port realizes the steps of the household appliance access method based on the network port.
In order to achieve the above object, the present invention further provides a computer-readable storage medium, where a home appliance access program based on a network port is stored, and when being executed by a processor, the home appliance access program based on the network port implements the steps of the home appliance access method based on the network port.
One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
1. the number of the special communication interfaces is already determined in the production and preparation process of the household electrical appliance controller, and under the condition that the resources of the special communication interfaces are completely occupied, the household electrical appliance device is accessed through the network port based on the household electrical appliance controller, so that the problem that more special communication interfaces do not need to be expanded on the hardware level of the household electrical appliance controller and more household electrical appliance devices can be accessed is solved.
2. Under the condition that the household appliance is not connected with the household appliance controller, the household appliance controller can automatically acquire the information of the corresponding type of the household appliance by acquiring the data packet sent to the broadcasting network by the household appliance, so that the household appliance controller can conveniently acquire the protocol of the household appliance.
3. By automatically acquiring the SNMP protocol packet and the household appliance protocol in the broadcast network by the household appliance controller, the manual operation of a user is reduced, and the access of the household appliance can be more conveniently finished.
4. Because the special communication interface can be connected with the household appliance, and some household appliance protocols can exist in the program file of the household appliance controller, the household appliance protocol can be directly acquired and called if the household appliance protocol corresponding to the household appliance exists in the program file when the household appliance controller acquires the household appliance protocol, so that the household appliance can be more efficiently accessed, and the redundancy of the data file is effectively avoided.
Drawings
Fig. 1 is a schematic diagram of a hardware operating environment of a terminal according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a first embodiment of a home appliance access method based on a network port according to the present invention;
fig. 3 is a flowchart illustrating a second embodiment of a home appliance access method based on a network port according to the present invention;
fig. 4 is a flowchart illustrating a third embodiment of a method for accessing a home appliance based on a network port according to the present invention;
fig. 5 is a schematic flow chart of a fourth embodiment of a home appliance access method based on a network port according to the present invention;
fig. 6 is a flowchart illustrating a fifth embodiment of a method for accessing a home device based on a portal according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The invention provides a household appliance access method based on a network port, which solves the problem that more household appliances can be accessed without expanding more special communication interfaces on the hardware level of a household appliance controller by realizing the network port access of the household appliance based on the household appliance controller.
For a better understanding of the above technical solutions, exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
As shown in fig. 1, fig. 1 is a schematic diagram of a hardware operating environment of a terminal according to an embodiment of the present invention;
the terminal of the embodiment of the invention can be a household appliance controller or a data converter.
As shown in fig. 1, the home appliance controller may include: a processor 1001, such as a CPU, a memory 1002, and a communication bus 1003. The communication bus 1003 is used for implementing connection and communication between the components in the home appliance controller. The memory 1002 may be a high-speed RAM memory or a non-volatile memory (e.g., a disk memory). The memory 1002 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration of the terminal shown in fig. 1 is not intended to be limiting of the terminal of embodiments of the present invention and may include more or less components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a storage 1002, which is a computer storage medium, may include a portal-based home appliance access program.
In the terminal shown in fig. 1, the processor 1001 may be configured to call the portal-based home appliance access program stored in the memory 1002, and perform the following operations:
acquiring a network management protocol packet, and analyzing a network management protocol in the network management protocol packet;
based on the network management protocol, IP address allocation is carried out on the household electrical appliance connected through the network port;
acquiring a household appliance protocol corresponding to the household appliance according to the type of the household appliance after address allocation;
and based on the network management protocol, issuing a household appliance protocol packet corresponding to the household appliance protocol to the household appliance so as to complete the access of the household appliance to a household appliance controller.
Further, the processor 1001 may call the portal-based home device access program stored in the memory 1002, and further perform the following operations:
and when receiving an equipment access network port instruction, acquiring the network management protocol packet from the server.
Further, the processor 1001 may call the portal-based home device access program stored in the memory 1002, and further perform the following operations:
and acquiring a data packet sent by the household appliance, and analyzing the data packet through the network management protocol to obtain the type information of the household appliance.
Further, the processor 1001 may call the portal-based home device access program stored in the memory 1002, and further perform the following operations:
detecting whether the household appliance protocol corresponding to the type of the household appliance exists or not;
and when detecting that the household appliance protocol corresponding to the type of the household appliance exists, acquiring the household appliance protocol.
Further, the processor 1001 may call the portal-based home device access program stored in the memory 1002, and further perform the following operations:
when detecting that the household appliance protocol corresponding to the type of the household appliance does not exist, acquiring the household appliance protocol packet corresponding to the household appliance protocol from a server;
and analyzing the household appliance protocol packet to obtain the household appliance protocol.
Further, the processor 1001 may call the portal-based home device access program stored in the memory 1002, and further perform the following operations:
and when a protocol type setting instruction of the household appliance set based on the setting page is received, acquiring the household appliance protocol corresponding to the selected household appliance protocol type.
Further, the processor 1001 may call the portal-based home device access program stored in the memory 1002, and further perform the following operations:
acquiring the household appliance protocol packet corresponding to the household appliance protocol from a server;
and issuing the household appliance protocol packet to the household appliance based on the network management protocol.
Further, the processor 1001 may call the portal-based home device access program stored in the memory 1002, and further perform the following operations:
receiving IP account information input based on a setting page, establishing an IP address mapping relation with the household appliance according to the IP account information and the network management protocol, and distributing an IP address to the household appliance.
In order to better understand the technical solution, the technical solution will be described in detail with reference to the drawings and the specific embodiments.
Referring to fig. 2, in an embodiment, the method for accessing a home device based on a portal includes:
step S10, acquiring the network management protocol package, and analyzing the network management protocol in the network management protocol package.
In this embodiment, most of the existing smart home systems are implemented by connecting home devices to a home controller, and a user may use a mobile terminal, or a PC terminal issues a control instruction to the home controller through a network, and then controls corresponding home devices through the home controller, such as an air conditioner, a dehumidifier, a purifier, a humidifier, a fan, and the like. In the existing home appliance controller, most of the home appliance controllers are connected and communicated with the home appliance devices through dedicated communication interfaces, such as RS485 communication interfaces, so that the number of the home appliance devices that can be accessed by the home appliance controller can only be determined by the number of the dedicated communication interfaces. Because the number of the special communication interfaces is already determined in the production and preparation process of the household electrical appliance controller, under the condition that the resources of the special communication interfaces are completely occupied, more household electrical appliances are difficult to be connected into the household electrical appliance controller.
Because the household appliance controller is provided with the internet access interface besides the special communication interface, the household appliance controller can be accessed into the household appliance through the internet access based on the household appliance controller, and the problem that the household appliance controller can be accessed into more household appliances without expanding more special communication interfaces on a hardware layer is solved. It should be noted that, the idle network port resources are fully utilized to access the household electrical appliance, which not only can save resources, but also, relatively speaking, because the network port interfaces are uniform in type and convenient for wiring, on the hardware level, the network port interfaces are easier to expand than the dedicated communication interfaces, and even under the condition that the network port interface resources are limited, more network port interfaces can be easily expanded.
The network management protocol is preferably an SNMP (simple network management protocol), and specifically, the SNMP protocol packet is obtained from a server when a device access port instruction is received. After the household appliance is connected with the household appliance controller through the network interface, a user can select a software upgrading function in a setting interface of the household appliance controller or a setting page to send an equipment access network interface instruction, the household appliance controller obtains an SNMP simple network management protocol package from a server when receiving the equipment access network interface instruction sent based on the setting interface, the server can be connected with a local area network or a wide area network, and after the household appliance controller obtains the SNMP protocol package, the household appliance controller analyzes an SNMP protocol in the SNMP protocol package and adds the SNMP protocol into program software. It should be noted that the network management protocol package, i.e. the SNMP protocol package, may be established in the form of an SO library (dynamic link library of unix yunis system SO files), SO that the SNMP protocol may be added to the program file of the home appliance controller in the form of a transparent transmission protocol without changing the program file in the original home appliance controller.
It should be noted that, because the home appliance controller may be connected to the mobile terminal or the PC terminal of the user through the server or the internet, the user may enter the setting page of the home appliance controller through the network by using the mobile terminal, such as a mobile phone, a tablet, or the PC terminal.
Of course, the acquiring of the SNMP protocol packet may not be limited to the above, and may also be acquiring the SNMP protocol packet in a flash memory device connected to the home appliance controller, according to the actual requirement.
Since SNMP is a network management standard based on the TCP/IP protocol suite, it is a standard protocol for managing network nodes (e.g., servers, workstations, routers, switches, etc.) in an IP network. Therefore, the protocol characteristics of the SNMP protocol are utilized, and the protocol conversion can realize the household appliance protocol which is originally suitable for the special communication interfaces such as the RS485 communication interface and the like on the application layer and can also be suitable for the network interface.
And step S20, based on the network management protocol, allocating IP addresses to the household appliances connected through the network port.
In this embodiment, the home appliance controller receives IP account information input based on a setting page, establishes an IP address mapping relationship with the home appliance device according to the IP account information and the SNMP protocol, and allocates an IP address to the home appliance device. It should be noted that, because the request (including the user name, the password, the IP address and the physical address) for changing the IP address mapping record through the SNMP can be used, the IP address allocation of the home appliance through the internet access can be implemented on the application layer.
After the IP address configuration is successful, a buzzer of the household appliance controller makes a long sound, and the equipment access indicator lamp flickers to prompt a user that the household appliance controller enters a household appliance access mode.
And step S30, acquiring a household appliance protocol corresponding to the household appliance according to the type of the household appliance after address allocation.
In this embodiment, after the home appliance is allocated with the IP address, the home appliance controller may obtain, by starting the DHCP dynamic host configuration protocol, a data packet sent to the broadcast network by the home appliance device corresponding to the IP address in a manner of broadcasting a single IP address, where the data packet may be protocol type information corresponding to the type of the home appliance device. It should be noted that the types of the protocols of the home appliances include a private protocol, a master-slave protocol and a modulebus module bus communication protocol, and different types of the home appliances correspond to different types of the protocols.
After acquiring a data packet sent by the household appliance equipment corresponding to the IP address, the household appliance controller analyzes the data packet through the SNMP protocol to obtain the type information of the household appliance equipment, and then acquires the household appliance equipment protocol corresponding to the household appliance equipment according to the type of the household appliance equipment after address allocation.
Of course, the home appliance controller may also obtain the home appliance protocol corresponding to the selected home appliance protocol type when receiving the protocol type setting instruction of the home appliance set based on the setting page.
It should be noted that, since the dedicated communication interface may be connected to a home appliance, and some home appliance protocols may also exist in a program file of the home appliance controller, when the home appliance controller acquires the home appliance protocols, it may first detect whether the home appliance protocols corresponding to the types of the home appliances exist in the program file, and when detecting that the home appliance protocols corresponding to the types of the home appliances exist, directly acquire the home appliance protocols as the home appliance protocols of the home appliances that are being accessed to the home appliance controller; and when detecting that the household appliance protocol corresponding to the type of the household appliance does not exist, acquiring the household appliance protocol packet corresponding to the household appliance protocol from a server, and analyzing the household appliance protocol packet to obtain the household appliance protocol.
After obtaining the home device protocol, the home device controller adds the home device protocol to the program file.
The server may be connected to a local area network or to the internet. When the home appliance protocol packet corresponding to the home appliance protocol is acquired from the server, the home appliance protocol packet that has been transmitted to the broadcast network may be acquired. Of course, the protocol package of the home device in the flash memory device connected to the home controller may be acquired according to the actual requirement.
And step S40, based on the network management protocol, sending a household appliance protocol packet corresponding to the household appliance protocol to the household appliance so as to complete the access of the household appliance to a household appliance controller.
In this embodiment, after obtaining the information of the type of the home appliance after the IP address is assigned, the home appliance controller obtains a home appliance protocol packet corresponding to the type of the home appliance, where the home appliance protocol packet corresponding to the home appliance protocol is preferably obtained from a server, and of course, according to actual needs, the home appliance protocol packet may also be obtained from a flash memory device connected to the home appliance controller. And then, the household appliance controller transmits a household appliance protocol packet corresponding to the household appliance protocol to the household appliance through internet access communication on an application layer based on the SNMP protocol so as to complete the access of the household appliance. It should be noted that, if the home appliance controller obtains the home appliance protocol by analyzing the home appliance protocol packet, the home appliance protocol packet is directly sent to the home appliance.
After the household appliance is successfully accessed to the household appliance controller, a household appliance serial number corresponding to the household appliance can be registered and generated through an appliance management module of the household appliance controller to serve as a household appliance ID of the household appliance, so that the household appliance controller can conveniently control the household appliance in the future.
After the household appliance is successfully accessed, an indicator lamp of the household appliance controller is normally on to prompt a user that the household appliance is successfully accessed, and at the moment, when a confirmation signal that the user clicks based on the setting page is received, the setting page controlled by the household appliance exits.
In the first embodiment, a network management protocol packet is obtained, and a network management protocol in the network management protocol packet is analyzed; based on the network management protocol, IP address allocation is carried out on the household electrical appliance connected through the network port; acquiring a household appliance protocol corresponding to the household appliance according to the type of the household appliance after address allocation; and based on the network management protocol, issuing a household appliance protocol packet corresponding to the household appliance protocol to the household appliance so as to complete the access of the household appliance to a household appliance controller. Therefore, the network port based on the household appliance controller is connected into the household appliance, and the problem that more special communication interfaces do not need to be expanded on the hardware level of the household appliance controller and more household appliances can be connected is solved.
In a second embodiment, as shown in fig. 3, on the basis of the embodiment shown in fig. 2, before the step of obtaining a home device protocol corresponding to the home device according to the type of the home device after address assignment, the method further includes:
and step S21, acquiring a data packet sent by the household appliance, and analyzing the data packet through the network management protocol to obtain the type information of the household appliance.
In this embodiment, after the home appliance is allocated with the IP address, the home appliance controller may obtain, by starting the DHCP dynamic host configuration protocol, a data packet sent to the broadcast network by the home appliance device corresponding to the IP address in a manner of broadcasting a single IP address, where the data packet may be protocol type information corresponding to the type of the home appliance device. It should be noted that the types of the protocols of the home appliances include a private protocol, a master-slave protocol and a modulebus module bus communication protocol, and different types of the home appliances correspond to different types of the protocols.
After acquiring a data packet sent by the household appliance equipment corresponding to the IP address, the household appliance controller analyzes the data packet through the SNMP protocol to obtain the type information of the household appliance equipment, and then acquires the household appliance equipment protocol corresponding to the household appliance equipment according to the type of the household appliance equipment after address allocation.
In a second embodiment, a data packet sent by the home appliance device is acquired, and the data packet is analyzed through the SNMP protocol to obtain information of the type of the home appliance device. Therefore, under the condition that the household appliance is not accessed to the household appliance controller, the household appliance controller can automatically obtain the information of the corresponding type of the household appliance by acquiring the data packet sent to the broadcasting network by the household appliance.
In a third embodiment, as shown in fig. 4, based on the embodiments of fig. 2 to 3, the step of acquiring a home device protocol corresponding to the home device according to the type of the home device after address assignment includes:
and step S50, detecting whether the household appliance protocol corresponding to the type of the household appliance exists.
And step S51, when the existence of the household appliance protocol corresponding to the type of the household appliance is detected, acquiring the household appliance protocol.
And step S52, when detecting that the household appliance protocol corresponding to the type of the household appliance does not exist, acquiring the household appliance protocol packet corresponding to the household appliance protocol from the server.
And step S53, analyzing the household appliance protocol packet to obtain the household appliance protocol.
The method comprises the steps that a special communication interface can be connected with household appliances, and a program file of a household appliance controller can also contain some household appliance protocols, so that when the household appliance controller obtains the household appliance protocols, whether the household appliance protocols corresponding to the types of the household appliances exist in the program file can be detected firstly, and when the household appliance protocols corresponding to the types of the household appliances exist are detected, the household appliance protocols are directly obtained to serve as the household appliance protocols of the household appliances which are connected with the household appliance controller; and when detecting that the household appliance protocol corresponding to the type of the household appliance does not exist, acquiring the household appliance protocol packet corresponding to the household appliance protocol from a server, and analyzing the household appliance protocol packet to obtain the household appliance protocol. After obtaining the home device protocol, the home device controller adds the home device protocol to the program file.
The server may be connected to a local area network or to the internet. When the home appliance protocol packet corresponding to the home appliance protocol is acquired from the server, the home appliance protocol packet that has been transmitted to the broadcast network may be acquired. Of course, the protocol package of the home device in the flash memory device connected to the home controller may be acquired according to the actual requirement.
In a third embodiment, whether the household appliance protocol corresponding to the type of the household appliance exists or not is detected, the household appliance protocol is acquired when the household appliance protocol corresponding to the type of the household appliance exists, the household appliance protocol packet corresponding to the household appliance protocol is acquired from a server when the household appliance protocol corresponding to the type of the household appliance does not exist, and the household appliance protocol packet is analyzed to obtain the household appliance protocol. Therefore, the household appliance controller can acquire the household appliance protocol corresponding to the household appliance after the IP address is allocated.
In a fourth embodiment, as shown in fig. 5, on the basis of the embodiments of fig. 2 to 4, after the step of allocating an IP address to a home appliance connected through a portal based on the network management protocol, the method further includes:
and step S60, when receiving the protocol type setting instruction of the household appliance set based on the setting page, acquiring the household appliance protocol corresponding to the selected household appliance protocol type.
In this embodiment, after the home appliance device is assigned with the IP address, the home appliance controller may obtain the home appliance device protocol corresponding to the selected home appliance device protocol type when receiving the protocol type setting instruction of the home appliance device set on the basis of the setting page.
The method comprises the steps that a special communication interface can be connected with household appliances, and a program file of a household appliance controller can also contain some household appliance protocols, so that when the household appliance controller obtains the household appliance protocols, whether the household appliance protocols corresponding to the types of the household appliances exist in the program file can be detected firstly, and when the household appliance protocols corresponding to the types of the household appliances exist are detected, the household appliance protocols are directly obtained to serve as the household appliance protocols of the household appliances which are connected with the household appliance controller; and when detecting that the household appliance protocol corresponding to the type of the household appliance does not exist, acquiring the household appliance protocol packet corresponding to the household appliance protocol from a server, and analyzing the household appliance protocol packet to obtain the household appliance protocol. After obtaining the home device protocol, the home device controller adds the home device protocol to the program file.
In a fourth embodiment, when a protocol type setting instruction of the home appliance set on the basis of a setting page is received, the home appliance protocol corresponding to the selected home appliance protocol type is acquired. Therefore, the household appliance controller can acquire the household appliance protocol corresponding to the household appliance after the IP address is allocated.
In a fifth embodiment, as shown in fig. 6, based on the embodiments of fig. 2 to fig. 5, the step of issuing, to the home device, a home device protocol packet corresponding to the home device protocol based on the network management protocol includes:
and step S70, acquiring the household appliance protocol packet corresponding to the household appliance protocol from the server.
And step S71, based on the network management protocol, the household appliance protocol package is sent to the household appliance.
In this embodiment, after obtaining the information of the type of the home appliance after the IP address is allocated, the home appliance controller obtains the home appliance protocol packet corresponding to the home appliance protocol from the server, which is naturally required according to the actual situation. And then, the household appliance controller transmits a household appliance protocol packet corresponding to the household appliance protocol to the household appliance through internet access communication on an application layer based on the SNMP protocol so as to complete the access of the household appliance.
In addition, the present invention further provides a home appliance controller, where the home appliance controller includes a memory, a processor, and a home appliance access program based on a network port, where the home appliance access program based on the network port is stored in the memory and is executable on the processor, and the processor implements the steps of the home appliance access method based on the network port as described in the above embodiment when executing the home appliance access program based on the network port.
In addition, the present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium includes a home appliance access program based on a portal, and when executed by a processor, the home appliance access program based on the portal implements the steps of the home appliance access method based on the portal according to the above embodiment.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a television, a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should be noted that the word 'comprising' does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (9)

1. A household electrical appliance access method based on network port is characterized in that the household electrical appliance access method based on network port comprises the following steps:
acquiring a network management protocol packet from a server, analyzing a network management protocol in the network management protocol packet, and adding the network management protocol to a program file of a household appliance controller in a transparent transmission protocol form;
based on the network management protocol, IP address allocation is carried out on the household appliance equipment connected with the household appliance controller through the network port of the household appliance controller;
starting a dynamic host configuration protocol, acquiring a data packet which is sent to a broadcast network by the household appliance equipment with a corresponding IP address in a mode of broadcasting a single IP address, and analyzing the data packet through the network management protocol to obtain the type information of the household appliance equipment;
acquiring a household appliance protocol corresponding to the household appliance according to the type of the household appliance after address allocation;
and based on the network management protocol, issuing a household appliance protocol packet corresponding to the household appliance protocol to the household appliance so as to complete the access of the household appliance to a household appliance controller.
2. The home appliance access method based on the internet access as claimed in claim 1, wherein the home appliance access method based on the internet access further comprises:
and when receiving an equipment access network port instruction, acquiring the network management protocol packet from the server.
3. The home appliance access method based on the internet access of claim 1, wherein the step of obtaining a home appliance protocol corresponding to the home appliance according to the type of the home appliance after address assignment comprises:
detecting whether the household appliance protocol corresponding to the type of the household appliance exists or not;
and when detecting that the household appliance protocol corresponding to the type of the household appliance exists, acquiring the household appliance protocol.
4. The home device access method based on the internet access of claim 3, wherein after the step of detecting whether the home device protocol corresponding to the type of the home device exists, the method further comprises:
when detecting that the household appliance protocol corresponding to the type of the household appliance does not exist, acquiring the household appliance protocol packet corresponding to the household appliance protocol from a server;
and analyzing the household appliance protocol packet to obtain the household appliance protocol.
5. The home device access method based on internet access of claim 1, wherein after the step of allocating the IP address to the home device connected through the internet access based on the network management protocol, the method further comprises:
and when a protocol type setting instruction of the household appliance set based on the setting page is received, acquiring the household appliance protocol corresponding to the selected household appliance protocol type.
6. The home appliance access method based on the internet access of claim 1, wherein the step of sending a home appliance protocol packet corresponding to the home appliance protocol to the home appliance based on the network management protocol comprises:
acquiring the household appliance protocol packet corresponding to the household appliance protocol from a server;
and issuing the household appliance protocol packet to the household appliance based on the network management protocol.
7. The home device access method based on the internet access of claim 1, wherein the step of allocating the IP address to the home device connected through the internet access based on the network management protocol comprises:
receiving IP account information input based on a setting page, establishing an IP address mapping relation with the household appliance according to the IP account information and the network management protocol, and distributing an IP address to the household appliance.
8. A home appliance controller, comprising a memory, a processor and a portal-based home appliance access program stored in the memory and executable on the processor, wherein the portal-based home appliance access program, when executed by the processor, implements the steps of the portal-based home appliance access method of any one of claims 1 to 7.
9. A computer-readable storage medium, wherein a portal-based home device access program is stored on the computer-readable storage medium, and when executed by a processor, the portal-based home device access program implements the steps of the portal-based home device access method according to any one of claims 1 to 7.
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 CN109525417A (en) 2019-03-26
CN109525417B true 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)

Families Citing this family (2)

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

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6801507B1 (en) * 1999-07-27 2004-10-05 Samsung Electronics Co., Ltd. Device discovery and configuration in a home network
US7702732B1 (en) * 1999-09-29 2010-04-20 Nortel Networks Limited Methods for auto-configuring a router on an IP subnet
US7751339B2 (en) * 2006-05-19 2010-07-06 Cisco Technology, Inc. Method and apparatus for simply configuring a subscriber appliance for performing a service controlled by a separate service provider
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
KR101303319B1 (en) * 2011-12-05 2013-09-03 한전케이디엔주식회사 Network Management System integrated a Power Line Communication and Control Method of the Same
CN103312573B (en) * 2013-06-14 2016-12-28 西安交通大学 A kind of domestic network system equipment finds and recognition methods
CN107318119B (en) * 2017-08-28 2021-02-09 广东美的制冷设备有限公司 Household appliance networking method, household appliance and computer readable storage medium

Also Published As

Publication number Publication date
CN109525417A (en) 2019-03-26
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
TWI516059B (en) Setup method and system for client and server environment
CN107592367B (en) Resource sharing method and device for household appliances and computer readable storage medium
JP6201917B2 (en) System and method for configuring field devices
US11303583B2 (en) Resource trees by management controller
CN109525417B (en) Household appliance access method based on internet access, household appliance controller and storage medium
CN112953774A (en) Network topology generation method, system, equipment and computer storage medium
CN113708957B (en) Configuration method, terminal device and medium for server BMC
CN112491630A (en) Bare computer automatic deployment method and device and cloud environment platform
CN105278413A (en) Communication method for upper computer and CAN equipment of same type
US11339989B2 (en) Communication method and device for air conditioner, outdoor unit, indoor unit, and air conditioner
CN113196721B (en) Method and device for discovering Internet of things equipment and terminal equipment
CN110809045B (en) Data communication method and related equipment thereof
CN109922120A (en) Improve the method and terminal of DNS availability
CN111541795B (en) Address allocation method, device, equipment and computer readable storage medium
WO2017158590A1 (en) System and method for connecting a plurality of devices to a communication network and remotely communicating therewith via serial ports
CN109039770B (en) Server CMC refreshing method and device and related equipment
CN105392179A (en) Local area network equipment mutual discovery method and device based on web application
CN115378750B (en) OTA upgrading method and equipment for electronic home equipment
CN111061503A (en) Cluster system configuration method and cluster system
CN110971716A (en) Address configuration method, device, system and computer readable storage medium
CN113949628B (en) Automatic equipment adding method and system
WO2017168408A1 (en) System and method for remotely troubleshooting network connection problems
CN112769887B (en) File downloading method, system, equipment and computer readable storage medium
CN118235370A (en) Connection configuration method, connection establishment method, device, equipment and storage medium

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