WO2020073585A1 - Network-port-based access method for home appliance, home appliance controller, and storage medium - Google Patents

Network-port-based access method for home appliance, home appliance controller, and storage medium Download PDF

Info

Publication number
WO2020073585A1
WO2020073585A1 PCT/CN2019/075906 CN2019075906W WO2020073585A1 WO 2020073585 A1 WO2020073585 A1 WO 2020073585A1 CN 2019075906 W CN2019075906 W CN 2019075906W WO 2020073585 A1 WO2020073585 A1 WO 2020073585A1
Authority
WO
WIPO (PCT)
Prior art keywords
home appliance
protocol
appliance
household electrical
network management
Prior art date
Application number
PCT/CN2019/075906
Other languages
French (fr)
Chinese (zh)
Inventor
骆恒
Original Assignee
广东美的制冷设备有限公司
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 广东美的制冷设备有限公司 filed Critical 广东美的制冷设备有限公司
Publication of WO2020073585A1 publication Critical patent/WO2020073585A1/en

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

Definitions

  • the present application relates to the field of data communication technology, and in particular to a network port-based access method for home appliance equipment, a home appliance controller, and a computer-readable storage medium.
  • the main purpose of this application is to provide a network port-based appliance access method, a household appliance controller, and a computer-readable storage medium.
  • a network port based on a household appliance controller to access household appliance, it solves the need
  • the device expands more dedicated communication interfaces at the hardware level, and can also access more home appliances.
  • the present application provides a network port-based appliance appliance access method.
  • the network port-based appliance appliance access method includes the following steps:
  • IP addresses Based on the network management protocol, assign IP addresses to household electrical appliances connected through the network port;
  • the home appliance equipment protocol package corresponding to the home appliance equipment protocol is delivered to the home appliance equipment to complete the access of the home appliance equipment to the home appliance controller.
  • the method for accessing household electrical appliances based on a network port further includes:
  • the network management protocol packet is obtained from the server.
  • the method before the step of acquiring the household appliance protocol corresponding to the household appliance according to the type of the household appliance after address allocation, the method further includes:
  • the step of acquiring a protocol of a household appliance corresponding to the household appliance according to the type of the household appliance after address allocation includes:
  • the household appliance protocol is acquired.
  • the method further includes:
  • the method further includes:
  • the household electrical appliance protocol corresponding to the selected household electrical appliance protocol type is acquired.
  • the step of delivering the protocol package of the household electrical appliance corresponding to the protocol of the household electrical appliance to the household electrical appliance includes:
  • the home appliance device protocol package is delivered to the home appliance device.
  • the step of assigning an IP address to household electrical appliances connected through a network port based on the network management protocol includes:
  • IP account information input based on the setting page, establishing an IP address mapping relationship with the home appliance according to the IP account information and the network management protocol, and assigning the IP address to the home appliance.
  • the present application also provides a home appliance controller, the home appliance controller includes:
  • the home appliance controller includes a memory, a processor, and a network port-based appliance access program that is stored on the memory and can run on the processor.
  • the network port-based appliance appliance access program is When the processor executes, it implements the steps of the network port-based home appliance access method as described above.
  • the present application also provides a computer-readable storage medium on which a network port-based home appliance access program is stored, and the network port-based home appliance access program is processed When the device is executed, the steps of the method for accessing a home appliance based on a network port as described above are implemented.
  • the home appliance controller can automatically obtain the corresponding type of information of the home appliance by acquiring the data packet sent by the home appliance to the broadcast network, so that the home appliance controller can access the home appliance Device agreement.
  • the home appliance controller automatically obtains the SNMP protocol package and the home appliance protocol in the broadcast network, the manual operation of the user is reduced, and the access of the home appliance can be completed more conveniently.
  • the home appliance controller's program file may also have some home appliance agreement. Therefore, if the program file is detected when the home appliance controller obtains the home appliance agreement, There is a home appliance agreement corresponding to the home appliance, and directly accessing and calling the home appliance agreement can complete the access of the home appliance more efficiently, effectively avoiding the redundancy of data files.
  • FIG. 1 is a schematic diagram of a hardware operating environment of a terminal according to an embodiment of the present application
  • FIG. 2 is a schematic flowchart of a first embodiment of a method for accessing a home appliance based on a network port according to this application;
  • FIG. 3 is a schematic flowchart of a second embodiment of a network port-based appliance access method of the present application
  • FIG. 4 is a schematic flowchart of a third embodiment of a network port-based appliance access method of the present application.
  • FIG. 5 is a schematic flowchart of a fourth embodiment of a network port-based appliance access method of this application.
  • FIG. 6 is a schematic flowchart of a fifth embodiment of a network port-based appliance access method of the present application.
  • This application provides a method for accessing home appliance equipment based on a network port.
  • a network port based on a home appliance controller to access home appliance equipment, it solves the problem that it is not necessary to extend more dedicated communication interfaces on the hardware level of the home appliance controller. The problem of being able to access more home appliances.
  • FIG. 1 is a schematic diagram of a hardware operating environment of a terminal according to an embodiment of the present application
  • the terminal may be a home appliance controller or a data converter.
  • 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 to realize the connection and communication between the components in the home appliance controller.
  • the memory 1002 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as disk storage.
  • the memory 1002 may optionally be a storage device independent of the foregoing processor 1001.
  • FIG. 1 does not constitute a limitation on the terminal in the embodiments of the present application, and may include more or fewer components than those illustrated, or a combination of certain components, or different components. Layout.
  • the memory 1002 as a computer storage medium may include a network port-based home appliance access program.
  • the processor 1001 may be used to call a network port-based home appliance access program stored in the memory 1002, and perform the following operations:
  • IP addresses Based on the network management protocol, assign IP addresses to household electrical appliances connected through the network port;
  • the home appliance equipment protocol package corresponding to the home appliance equipment protocol is delivered to the home appliance equipment to complete the access of the home appliance equipment to the home appliance controller.
  • the processor 1001 can call a network port-based home appliance access program stored in the memory 1002, and also perform the following operations:
  • the network management protocol packet is obtained from the server.
  • the processor 1001 can call a network port-based home appliance access program stored in the memory 1002, and also perform the following operations:
  • the processor 1001 can call a network port-based home appliance access program stored in the memory 1002, and also perform the following operations:
  • the household appliance protocol is acquired.
  • the processor 1001 can call a network port-based home appliance access program stored in the memory 1002, and also perform the following operations:
  • the processor 1001 can call a network port-based home appliance access program stored in the memory 1002, and also perform the following operations:
  • the household electrical appliance protocol corresponding to the selected household electrical appliance protocol type is acquired.
  • the processor 1001 can call a network port-based home appliance access program stored in the memory 1002, and also perform the following operations:
  • the home appliance device protocol package is delivered to the home appliance device.
  • the processor 1001 can call a network port-based home appliance access program stored in the memory 1002, and also perform the following operations:
  • IP account information input based on the setting page, establishing an IP address mapping relationship with the home appliance according to the IP account information and the network management protocol, and assigning the IP address to the home appliance.
  • the network port-based access method for household electrical appliances includes:
  • Step S10 Obtain a network management protocol package, and parse out the network management protocol in the network management protocol package.
  • most of the existing smart home systems connect home appliances to a home appliance controller, and users can use mobile terminals or the PC to issue control commands to the home appliance controller through the network, and then through the home appliance controller.
  • Control the corresponding household appliances such as air conditioners, dehumidifiers, purifiers, humidifiers, fans, etc.
  • most of the home appliance controllers are connected to the home appliance through a dedicated communication interface, such as an RS485 communication interface, so that the number of home appliance devices that the home appliance controller can access can only be determined by Determined by the number of dedicated communication interfaces. Since the number of dedicated communication interfaces has been determined during the production and preparation of the home appliance controller, it is difficult to connect more home appliance devices to the home appliance controller when the dedicated communication interface resources are all occupied .
  • the home appliance controller is also provided with a network port interface.
  • This application implements a network port based on the home appliance controller to access home appliance equipment, which solves the need to expand the home appliance controller at the hardware level.
  • Multiple dedicated communication interfaces can also access more household appliances. It should be noted that making full use of idle network port resources to access home appliances can not only play a role in saving resources. Relatively speaking, due to the unified type of network port interface and convenient wiring, at the hardware level, the network port The interface is easier to expand than the dedicated communication interface. Even in the case of limited network port interface resources, it is easy to expand more network port interfaces.
  • the network management protocol can be optionally SNMP (simple network management protocol).
  • the SNMP protocol package is obtained from the server. After the home appliance is connected to the home appliance controller through the network port interface, the user can select the "software upgrade function" in the setting interface of the home appliance controller or the setting page to issue a command for the device to access the network port.
  • the SNMP simple network management protocol package is obtained from the server. The server may be connected to the local area network or the wide area network.
  • the SNMP protocol is obtained from the home appliance controller After the package, the home appliance controller parses out the SNMP protocol in the SNMP protocol package and adds the SNMP protocol to the program software.
  • the network management protocol package that is, the SNMP protocol package
  • the network management protocol package can be established in the form of an SO library (a dynamic link library for SO files in the Unix Unix system), so that it can be implemented without changing the original appliance control
  • SO library a dynamic link library for SO files in the Unix Unix system
  • the SNMP protocol is added to the program file of the home appliance controller in the form of a transparent transmission protocol.
  • the home appliance controller can be connected to the user's mobile terminal or the PC terminal through a server, the Internet, the user can use a mobile terminal, such as a mobile phone, a tablet, or a PC terminal to enter the home appliance control through the network Settings page of the device.
  • a mobile terminal such as a mobile phone, a tablet, or a PC terminal to enter the home appliance control through the network Settings page of the device.
  • the acquisition of the SNMP protocol package may not be limited to the above, but may also be an SNMP protocol package in a flash memory device connected to the home appliance controller.
  • SNMP is a network management standard based on the TCP / IP protocol family, it is a standard protocol for managing network nodes (such as servers, workstations, routers, switches, etc.) in an IP network. Therefore, by using the protocol features of the SNMP protocol and through protocol conversion, the home appliance equipment protocol that was originally applicable to the dedicated communication interface such as the RS485 communication interface can be realized at the application layer, and can also be applied to the network port interface.
  • Step S20 Based on the network management protocol, assign IP addresses to the household electrical appliances connected through the network port.
  • the home appliance controller receives the IP account information input based on the setting page, establishes an IP address mapping relationship with the home appliance according to the IP account information and the SNMP protocol, and performs an IP address on the home appliance distribution. It should be noted that since the request to change the IP address mapping record (including user name, password, IP address, and physical address) can be changed through SNMP, at the application layer, IP address allocation to household electrical appliances can be achieved through the network port.
  • the buzzer of the home appliance controller sounds long, and the device access indicator flashes to remind the user that the home appliance controller has entered the home appliance access mode.
  • Step S30 Acquire a home appliance agreement corresponding to the home appliance according to the type of the home appliance after address allocation.
  • the household electrical appliance controller may obtain a data packet sent by the household electrical appliance corresponding to the IP address to the broadcast network by broadcasting a single IP address by starting a DHCP dynamic host configuration protocol ,
  • the data packet may be protocol type information corresponding to the type of home appliance.
  • the protocol types of household electrical appliances include private protocols, master-slave protocols and modulebus communication protocol, and different types of household electrical appliances correspond to different protocol types.
  • the home appliance controller After the home appliance controller obtains the data packet sent by the home appliance corresponding to the IP address, it parses the data packet through the SNMP protocol to obtain information on the type of the home appliance, and then allocates the home appliance according to the address Type, to obtain the household appliance agreement corresponding to the household appliance.
  • the home appliance controller may also acquire the protocol of the home appliance device corresponding to the selected protocol type of the home appliance device when receiving the protocol type setting instruction of the home appliance device set based on the setting page.
  • the dedicated communication interface may be already connected to the home appliance, there may be some home appliance agreement in the program file of the home appliance controller. Therefore, when the home appliance controller obtains the home appliance agreement, it may be first Detecting whether there is the home appliance agreement corresponding to the type of the home appliance in the program file, and when detecting that there is the home appliance agreement corresponding to the type of the home appliance, directly acquiring the home appliance agreement as the The home appliance controller is establishing a home appliance protocol of the connected home appliance; when detecting that there is no home appliance protocol corresponding to the type of the home appliance, the device corresponding to the home appliance protocol is acquired from the server The home appliance equipment protocol packet, parsing the home appliance equipment protocol packet, to obtain the home appliance equipment protocol.
  • the home appliance controller After acquiring the home appliance agreement, the home appliance controller adds the home appliance agreement to the program file.
  • the server may be connected to the local area network or the Internet.
  • the household appliance protocol package that has been sent to the broadcast network may also be acquired.
  • it may also be to obtain a protocol package of a home appliance device connected to a flash memory device of a home appliance controller.
  • Step S40 Based on the network management protocol, deliver a protocol package of the household electrical appliance corresponding to the household electrical appliance protocol to the household electrical appliance to complete the access of the household electrical appliance to the household electrical appliance controller.
  • the household electrical appliance controller after obtaining the information of the type of the household electrical appliance after the IP address is allocated, obtains the household electrical appliance protocol package corresponding to the type of the household electrical appliance, wherein, optionally, the protocol correspondence corresponding to the household electrical appliance
  • the home appliance device protocol package may also be a home appliance device protocol package in a flash memory device connected to the home appliance controller according to actual needs.
  • the home appliance controller communicates through the network port to deliver the home appliance protocol packet corresponding to the home appliance protocol to the home appliance to complete the access of the home appliance . It should be noted that if the home appliance controller obtains the home appliance agreement by parsing the home appliance agreement, it will directly issue the home appliance agreement to the home appliance.
  • the serial number of the household electrical appliance corresponding to the household electrical appliance can be registered and generated through the appliance management module of the household electrical appliance controller as the household appliance ID of the household electrical appliance to facilitate the future household electrical appliance controller Control of home appliances.
  • the indicator light of the home appliance controller is always on to remind the user that the home appliance is successfully connected.
  • the setting page of home appliance control is exited.
  • a network management protocol package is obtained, and the network management protocol in the network management protocol package is parsed; based on the network management protocol, IP addresses are allocated to household electrical appliances connected through a network port; according to the address allocation After the type of the home appliance, obtain a home appliance agreement corresponding to the home appliance; based on the network management protocol, distribute the home appliance agreement corresponding to the home appliance agreement to the home appliance, to Complete the access of the home appliance to the home appliance controller.
  • the home appliance controller-based network port access to home appliance equipment, the problem of being able to access more home appliance equipment without extending more dedicated communication interfaces on the hardware level of the home appliance controller is solved.
  • the household appliance protocol corresponding to the household appliance is acquired according to the type of the household appliance after address allocation Before the steps, also include:
  • Step S21 Obtain a data packet sent by the home appliance, and parse the data packet through the network management protocol to obtain information about the type of the home appliance.
  • the household electrical appliance controller may obtain a data packet sent by the household electrical appliance corresponding to the IP address to the broadcast network by broadcasting a single IP address by starting a DHCP dynamic host configuration protocol ,
  • the data packet may be protocol type information corresponding to the type of home appliance.
  • the protocol types of household electrical appliances include private protocols, master-slave protocols and modulebus communication protocol, and different types of household electrical appliances correspond to different protocol types.
  • the home appliance controller After the home appliance controller obtains the data packet sent by the home appliance corresponding to the IP address, it parses the data packet through the SNMP protocol to obtain information on the type of the home appliance, and then allocates the home appliance according to the address Type, to obtain the household appliance agreement corresponding to the household appliance.
  • a data packet sent by the household electrical appliance is obtained, and the data packet is parsed through the SNMP protocol to obtain information on the type of the household electrical appliance.
  • the home appliance controller can automatically obtain the corresponding type information of the home appliance by acquiring the data packet sent by the home appliance to the broadcast network.
  • the household appliance corresponding to the household appliance is acquired according to the type of the household appliance after address allocation
  • the steps of the agreement include:
  • Step S50 Detect whether there is a protocol of the household appliance corresponding to the type of the household appliance.
  • Step S51 When it is detected that the household appliance protocol corresponding to the type of the household appliance exists, acquire the household appliance protocol.
  • Step S52 When it is detected that there is no household appliance protocol corresponding to the type of household appliance, the household appliance protocol package corresponding to the household appliance protocol is acquired from a server.
  • Step S53 Parse the household appliance protocol package to obtain the household appliance protocol.
  • the home appliance controller may first detect whether the program file There is the home appliance protocol corresponding to the type of the home appliance, and when it is detected that the home appliance protocol corresponding to the type of the home appliance is directly acquired, the home appliance protocol is established as being established with the home appliance controller Household appliance protocol of the connected household appliance; when it is detected that the household appliance protocol corresponding to the type of the household appliance does not exist, obtain the household appliance protocol package corresponding to the household appliance protocol from the server, Parse the household appliance protocol package to obtain the household appliance protocol. After acquiring the home appliance agreement, the home appliance controller adds the home appliance agreement to the program file.
  • the server may be connected to the local area network or the Internet.
  • the household appliance protocol package that has been sent to the broadcast network may also be acquired.
  • it may also be to obtain a protocol package of a home appliance device connected to a flash memory device of a home appliance controller.
  • the household appliance controller acquires the home appliance protocol corresponding to the home appliance after the IP address is allocated.
  • Step S60 When receiving the protocol type setting instruction of the household appliance set based on the setting page, obtain the household appliance agreement corresponding to the selected household appliance agreement type.
  • the household electrical appliance controller may acquire the protocol type corresponding to the selected household electrical appliance when it receives the protocol type setting instruction of the household electrical appliance based on the setting page The home appliance agreement.
  • the home appliance controller may first detect whether the program file There is the home appliance protocol corresponding to the type of the home appliance, and when it is detected that the home appliance protocol corresponding to the type of the home appliance is directly acquired, the home appliance protocol is established as being established with the home appliance controller Household appliance protocol of the connected household appliance; when it is detected that the household appliance protocol corresponding to the type of the household appliance does not exist, obtain the household appliance protocol package corresponding to the household appliance protocol from the server, Parse the household appliance protocol package to obtain the household appliance protocol. After acquiring the home appliance agreement, the home appliance controller adds the home appliance agreement to the program file.
  • the household appliance agreement corresponding to the selected household appliance agreement type is acquired.
  • the home appliance controller acquires the home appliance protocol corresponding to the home appliance after the IP address is allocated.
  • the home appliance device protocol package corresponding to the home appliance agreement is delivered based on the network management protocol
  • the steps to the household electrical appliance include:
  • Step S70 Acquire the home appliance equipment protocol package corresponding to the home appliance protocol from the server.
  • Step S71 Deliver the protocol package of the household electrical appliance to the household electrical appliance based on the network management protocol.
  • the home appliance controller after the home appliance controller obtains the information of the type of the home appliance after the IP address is allocated, the home appliance device protocol package corresponding to the home appliance agreement is obtained from the server, of course, according to actual needs. Then, based on the SNMP protocol at the application layer, the home appliance controller communicates through the network port to deliver the home appliance protocol packet corresponding to the home appliance protocol to the home appliance to complete the access of the home appliance .
  • the present application also proposes a household appliance controller.
  • the household appliance controller includes a memory, a processor, and a network port-based appliance access program stored on the memory and executable on the processor.
  • the processor executes When the network port-based home appliance device access program is implemented, the steps of the network port-based home appliance device access method described in the above embodiment are implemented.
  • the present application also proposes a computer-readable storage medium, wherein the computer-readable storage medium includes a network port-based home appliance access program, when the network port-based home appliance access program is executed by a processor The steps of implementing the network port-based appliance access method as described in the above embodiment.
  • the methods in the above embodiments can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware, but in many cases the former is better Implementation.
  • the technical solution of the present application can be embodied in the form of a software product in essence or part that contributes to the existing technology, and the computer software product is stored in a storage medium (such as ROM / RAM) as described above , Magnetic disks, optical disks), including several instructions to enable a terminal device (which can be a TV, mobile phone, computer, server, air conditioner, or network equipment, etc.) to perform the method described in each embodiment of the present application.
  • a terminal device which can be a TV, mobile phone, computer, server, air conditioner, or network equipment, etc.
  • These computer program instructions can be provided to the processor of a general-purpose computer, special-purpose computer, embedded processing machine, or other programmable data processing device to produce a machine that enables the generation of instructions executed by the processor of the computer or other programmable data processing device
  • These computer program instructions may also be stored in a computer readable memory that can guide a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, the instructions The device implements the functions specified in one block or multiple blocks of the flowchart one flow or multiple flows and / or block diagrams.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operating steps are performed on the computer or other programmable device to produce computer-implemented processing, which is executed on the computer or other programmable device
  • the instructions provide steps for implementing the functions specified in one block or multiple blocks of the flowchart one flow or multiple flows and / or block diagrams.

Landscapes

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

Abstract

The present application discloses a network-port-based access method for a home appliance. The method comprises: obtaining a network management protocol packet, and parsing out a network management protocol from the network management protocol packet; performing, on the basis of the network management protocol, IP address allocation for a home appliance connected by means of a network port; obtaining, according to the type of the home appliance obtained after the IP address allocation, a home appliance protocol corresponding to the home appliance; and issuing, to the home appliance, a home appliance protocol packet corresponding to the home appliance protocol on the basis of the network management protocol, such that the home appliance accesses a home appliance controller. The present application further discloses a home appliance controller and a computer-readable storage medium.

Description

基于网口的家电设备接入方法、家电控制器及存储介质  Home appliance equipment access method based on network port, home appliance controller and storage medium The
相关申请Related application
本申请要求2018年10月9日申请的,申请号为201811176774.4,名称为“基于网口的家电设备接入方法、家电控制器及存储介质”的中国专利申请的优先权,在此将其全文引入作为参考。This application requires the priority of the Chinese patent application filed on October 9, 2018, with the application number 201811176774.4, titled "Access Method for Home Appliances Based on Network Ports, Home Appliance Controllers, and Storage Media," the full text of which is here. Introduced as a reference.
技术领域Technical field
本申请涉及数据通信技术领域,尤其涉及一种基于网口的家电设备接入方法、家电控制器以及计算机可读存储介质。The present application relates to the field of data communication technology, and in particular to a network port-based access method for home appliance equipment, a home appliance controller, and a computer-readable storage medium.
背景技术Background technique
在现有的家电控制器中,家电控制器大多都是通过专用通讯接口(如RS485通讯接口等)与家电设备连接通信的,导致家电控制器能接入的家电设备的数量的多少由专用通讯接口的数量所决定。由于专用通讯接口的数量在家电控制器生产制备的过程中就已经决定了,在专用通讯接口资源已全部被占用的情况下,就很难实现将更多的家电设备接入到家电控制器中。In the existing home appliance controllers, most of the home appliance controllers are connected to the home appliance through a dedicated communication interface (such as RS485 communication interface, etc.), resulting in the number of home appliance devices that the home appliance controller can access by dedicated communication The number of interfaces is determined. Since the number of dedicated communication interfaces has been determined during the production and preparation of the home appliance controller, it is difficult to connect more home appliance devices to the home appliance controller when the dedicated communication interface resources are all occupied .
申请内容Application content
本申请的主要目的在于提供一种基于网口的家电设备接入方法、家电控制器以及计算机可读存储介质,通过实现基于家电控制器的网口接入家电设备,解决了不需要对家电控制器在硬件层面上扩展更多的专用通讯接口,也能接入更多的家电设备的问题。The main purpose of this application is to provide a network port-based appliance access method, a household appliance controller, and a computer-readable storage medium. By implementing a network port based on a household appliance controller to access household appliance, it solves the need The device expands more dedicated communication interfaces at the hardware level, and can also access more home appliances.
为实现上述目的,本申请提供一种基于网口的家电设备接入方法,所述基于网口的家电设备接入方法包括以下步骤:In order to achieve the above object, the present application provides a network port-based appliance appliance access method. The network port-based appliance appliance access method includes the following steps:
获取网络管理协议包,解析出所述网络管理协议包中的网络管理协议;Obtain the network management protocol package, and parse out the network management protocol in the network management protocol package;
基于所述网络管理协议,对通过网口连接的家电设备进行IP地址分配;Based on the network management protocol, assign IP addresses to household electrical appliances connected through the network port;
根据地址分配后的所述家电设备的类型,获取与所述家电设备对应的家电设备协议;以及Obtain a home appliance agreement corresponding to the home appliance according to the type of the home appliance after address assignment; and
基于所述网络管理协议,将与所述家电设备协议对应的家电设备协议包下发至所述家电设备,以完成所述家电设备接入到家电控制器中。Based on the network management protocol, the home appliance equipment protocol package corresponding to the home appliance equipment protocol is delivered to the home appliance equipment to complete the access of the home appliance equipment to the home appliance controller.
可选地,所述基于网口的家电设备接入方法还包括:Optionally, the method for accessing household electrical appliances based on a network port further includes:
在接收到设备接入网口指令时,从服务器上获取所述网络管理协议包。When receiving the device access network port instruction, the network management protocol packet is obtained from the server.
可选地,所述根据地址分配后的所述家电设备的类型,获取与所述家电设备对应的家电设备协议的步骤之前,还包括:Optionally, before the step of acquiring the household appliance protocol corresponding to the household appliance according to the type of the household appliance after address allocation, the method further includes:
获取所述家电设备发出的数据包,通过所述网络管理协议解析所述数据包,得到所述家电设备的类型的信息。Obtain a data packet sent by the home appliance, and parse the data packet through the network management protocol to obtain information about the type of the home appliance.
可选地,所述根据地址分配后的所述家电设备的类型,获取与所述家电设备对应的家电设备协议的步骤包括:Optionally, the step of acquiring a protocol of a household appliance corresponding to the household appliance according to the type of the household appliance after address allocation includes:
检测是否存在与所述家电设备的类型对应的所述家电设备协议;以及Detect whether there is the household appliance protocol corresponding to the type of household appliance; and
在检测到存在与所述家电设备的类型对应的所述家电设备协议时,获取所述家电设备协议。When it is detected that there is the household appliance protocol corresponding to the type of the household appliance, the household appliance protocol is acquired.
可选地,所述检测是否存在与所述家电设备的类型对应的所述家电设备协议的步骤之后,还包括:Optionally, after the step of detecting whether there is a protocol of the household appliance corresponding to the type of the household appliance, the method further includes:
在检测到不存在与所述家电设备的类型对应的所述家电设备协议时,从服务器上获取与所述家电设备协议对应的所述家电设备协议包;以及When it is detected that the household appliance protocol corresponding to the type of the household appliance does not exist, acquire the household appliance protocol package corresponding to the household appliance protocol from the server; and
解析所述家电设备协议包,得到所述家电设备协议。Parse the household appliance protocol package to obtain the household appliance protocol.
可选地,所述基于所述网络管理协议,对通过网口连接的家电设备进行IP地址分配的步骤之后,还包括:Optionally, after the step of assigning an IP address to the home appliance connected through the network port based on the network management protocol, the method further includes:
在接收到基于设置页面设置的所述家电设备的协议类型设置指令时,获取与选中的家电设备协议类型对应的所述家电设备协议。When receiving the protocol type setting instruction of the household electrical appliance set based on the setting page, the household electrical appliance protocol corresponding to the selected household electrical appliance protocol type is acquired.
可选地,所述基于所述网络管理协议,将与所述家电设备协议对应的家电设备协议包下发至所述家电设备的步骤包括:Optionally, based on the network management protocol, the step of delivering the protocol package of the household electrical appliance corresponding to the protocol of the household electrical appliance to the household electrical appliance includes:
从服务器上获取与所述家电协议对应的所述家电设备协议包;以及Obtaining the home appliance equipment protocol package corresponding to the home appliance protocol from the server; and
基于所述网络管理协议将所述家电设备协议包下发至所述家电设备。Based on the network management protocol, the home appliance device protocol package is delivered to the home appliance device.
可选地,所述基于所述网络管理协议,对通过网口连接的家电设备进行IP地址分配的步骤包括:Optionally, the step of assigning an IP address to household electrical appliances connected through a network port based on the network management protocol includes:
接收基于设置页面输入的IP账号信息,根据所述IP账号信息和所述网络管理协议建立与所述家电设备的IP地址映射关系,并对所述家电设备进行IP地址分配。Receiving the IP account information input based on the setting page, establishing an IP address mapping relationship with the home appliance according to the IP account information and the network management protocol, and assigning the IP address to the home appliance.
为实现上述目的,本申请还提供一种家电控制器,所述家电控制器包括:To achieve the above objective, the present application also provides a home appliance controller, the home appliance controller includes:
所述家电控制器包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的基于网口的家电设备接入程序,所述基于网口的家电设备接入程序被所述处理器执行时实现如上述基于网口的家电设备接入方法的步骤。The home appliance controller includes a memory, a processor, and a network port-based appliance access program that is stored on the memory and can run on the processor. The network port-based appliance appliance access program is When the processor executes, it implements the steps of the network port-based home appliance access method as described above.
为实现上述目的,本申请还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有基于网口的家电设备接入程序,所述基于网口的家电设备接入程序被处理器执行时实现如上述基于网口的家电设备接入方法的步骤。To achieve the above object, the present application also provides a computer-readable storage medium on which a network port-based home appliance access program is stored, and the network port-based home appliance access program is processed When the device is executed, the steps of the method for accessing a home appliance based on a network port as described above are implemented.
本申请实施例中提供的一个或多个技术方案,至少具有如下技术效果或优点:The one or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
1、由于专用通讯接口的数量在家电控制器生产制备的过程中就已经决定了,在专用通讯接口资源已全部被占用的情况下,通过实现基于家电控制器的网口接入家电设备,解决了不需要对家电控制器在硬件层面上扩展更多的专用通讯接口,也能接入更多的家电设备的问题。1. Since the number of dedicated communication interfaces has been determined during the production and preparation of the home appliance controller, when the dedicated communication interface resources have been fully occupied, access to home appliance equipment through the implementation of the network port based on the home appliance controller can be solved There is no need to extend more dedicated communication interfaces on the hardware level of the home appliance controller, but also the problem of being able to access more home appliance devices.
2、在家电设备没有完成接入家电控制器的情况下,通过获取家电设备发送到广播网络的数据包,实现家电控制器能自动获取到家电设备对应类型的信息,以方便家电控制器获取家电设备协议。2. When the home appliance is not connected to the home appliance controller, the home appliance controller can automatically obtain the corresponding type of information of the home appliance by acquiring the data packet sent by the home appliance to the broadcast network, so that the home appliance controller can access the home appliance Device agreement.
3、通过实现家电控制器自动获取在广播网络中的SNMP协议包以及家电设备协议,减少了用户的手动操作,能更加方便地完成家电设备的接入。3. By realizing that the home appliance controller automatically obtains the SNMP protocol package and the home appliance protocol in the broadcast network, the manual operation of the user is reduced, and the access of the home appliance can be completed more conveniently.
4、由于专用通讯接口可以是已经连接有家电设备,家电控制器的程序文件中也就可以是存在着一些家电设备协议,因此,通过实现在家电控制器获取家电设备协议时若是检测到程序文件中存在与家电设备对应的家电设备协议,直接获取调用该家电设备协议,能够更高效地完成家电设备的接入,有效避免了数据文件的冗余。4. Since the dedicated communication interface may be already connected to the home appliance, the home appliance controller's program file may also have some home appliance agreement. Therefore, if the program file is detected when the home appliance controller obtains the home appliance agreement, There is a home appliance agreement corresponding to the home appliance, and directly accessing and calling the home appliance agreement can complete the access of the home appliance more efficiently, effectively avoiding the redundancy of data files.
附图说明BRIEF DESCRIPTION
图1为本申请实施例方案涉及的实施例终端的硬件运行环境示意图;FIG. 1 is a schematic diagram of a hardware operating environment of a terminal according to an embodiment of the present application;
图2为本申请基于网口的家电设备接入方法第一实施例的流程示意图;2 is a schematic flowchart of a first embodiment of a method for accessing a home appliance based on a network port according to this application;
图3为本申请基于网口的家电设备接入方法第二实施例的流程示意图;FIG. 3 is a schematic flowchart of a second embodiment of a network port-based appliance access method of the present application;
图4为本申请基于网口的家电设备接入方法第三实施例的流程示意图;FIG. 4 is a schematic flowchart of a third embodiment of a network port-based appliance access method of the present application;
图5为本申请基于网口的家电设备接入方法第四实施例的流程示意图;FIG. 5 is a schematic flowchart of a fourth embodiment of a network port-based appliance access method of this application;
图6为本申请基于网口的家电设备接入方法第五实施例的流程示意图。FIG. 6 is a schematic flowchart of a fifth embodiment of a network port-based appliance access method of the present application.
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The implementation, functional characteristics and advantages of the present application will be further described in conjunction with the embodiments and with reference to the drawings.
具体实施方式detailed description
应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。It should be understood that the specific embodiments described herein are only used to explain the present application, and are not used to limit the present application.
本申请提供一种基于网口的家电设备接入方法,通过实现基于家电控制器的网口接入家电设备,解决了不需要对家电控制器在硬件层面上扩展更多的专用通讯接口,也能接入更多的家电设备的问题。This application provides a method for accessing home appliance equipment based on a network port. By implementing a network port based on a home appliance controller to access home appliance equipment, it solves the problem that it is not necessary to extend more dedicated communication interfaces on the hardware level of the home appliance controller. The problem of being able to access more home appliances.
为了更好的理解上述技术方案,下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。In order to better understand the above technical solutions, the exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
如图1所示,图1是本申请实施例方案涉及的实施例终端的硬件运行环境示意图;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 application;
本申请实施例终端可以是家电控制器,也可以是数据转换器。In this embodiment of the present application, the terminal may be a home appliance controller or a data converter.
如图1所示,该家电控制器可以包括:处理器1001,例如CPU,存储器1002,通信总线1003。其中,通信总线1003用于实现该家电控制器中各组成部件之间的连接通信。存储器1002可以是高速RAM存储器,也可以是稳定的存储器(non-volatile memory),例如磁盘存储器。存储器1002可选的还可以是独立于前述处理器1001的存储装置。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. Among them, the communication bus 1003 is used to realize the connection and communication between the components in the home appliance controller. The memory 1002 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as disk storage. The memory 1002 may optionally be a storage device independent of the foregoing processor 1001.
本领域技术人员可以理解,图1中示出的终端的结构并不构成对本申请实施例终端的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art may understand that the structure of the terminal shown in FIG. 1 does not constitute a limitation on the terminal in the embodiments of the present application, and may include more or fewer components than those illustrated, or a combination of certain components, or different components. Layout.
如图1所示,作为一种计算机存储介质的存储器1002中可以包括基于网口的家电设备接入程序。As shown in FIG. 1, the memory 1002 as a computer storage medium may include a network port-based home appliance access program.
在图1所示的终端中,处理器1001可以用于调用存储器1002中存储的基于网口的家电设备接入程序,并执行以下操作:In the terminal shown in FIG. 1, the processor 1001 may be used to call a network port-based home appliance access program stored in the memory 1002, and perform the following operations:
获取网络管理协议包,解析出所述网络管理协议包中的网络管理协议;Obtain the network management protocol package, and parse out the network management protocol in the network management protocol package;
基于所述网络管理协议,对通过网口连接的家电设备进行IP地址分配;Based on the network management protocol, assign IP addresses to household electrical appliances connected through the network port;
根据地址分配后的所述家电设备的类型,获取与所述家电设备对应的家电设备协议;以及Obtain a home appliance agreement corresponding to the home appliance according to the type of the home appliance after address assignment; and
基于所述网络管理协议,将与所述家电设备协议对应的家电设备协议包下发至所述家电设备,以完成所述家电设备接入到家电控制器中。Based on the network management protocol, the home appliance equipment protocol package corresponding to the home appliance equipment protocol is delivered to the home appliance equipment to complete the access of the home appliance equipment to the home appliance controller.
进一步地,处理器1001可以调用存储器1002中存储的基于网口的家电设备接入程序,还执行以下操作:Further, the processor 1001 can call a network port-based home appliance access program stored in the memory 1002, and also perform the following operations:
在接收到设备接入网口指令时,从服务器上获取所述网络管理协议包。When receiving the device access network port instruction, the network management protocol packet is obtained from the server.
进一步地,处理器1001可以调用存储器1002中存储的基于网口的家电设备接入程序,还执行以下操作:Further, the processor 1001 can call a network port-based home appliance access program stored in the memory 1002, and also perform the following operations:
获取所述家电设备发出的数据包,通过所网络管理协议解析所述数据包,得到所述家电设备的类型的信息。Obtaining a data packet sent by the home appliance, and parsing the data packet through the network management protocol to obtain information about the type of the home appliance.
进一步地,处理器1001可以调用存储器1002中存储的基于网口的家电设备接入程序,还执行以下操作:Further, the processor 1001 can call a network port-based home appliance access program stored in the memory 1002, and also perform the following operations:
检测是否存在与所述家电设备的类型对应的所述家电设备协议;以及Detect whether there is the household appliance protocol corresponding to the type of household appliance; and
在检测到存在与所述家电设备的类型对应的所述家电设备协议时,获取所述家电设备协议。When it is detected that there is the household appliance protocol corresponding to the type of the household appliance, the household appliance protocol is acquired.
进一步地,处理器1001可以调用存储器1002中存储的基于网口的家电设备接入程序,还执行以下操作:Further, the processor 1001 can call a network port-based home appliance access program stored in the memory 1002, and also perform the following operations:
在检测到不存在与所述家电设备的类型对应的所述家电设备协议时,从服务器上获取与所述家电设备协议对应的所述家电设备协议包;以及When it is detected that the household appliance protocol corresponding to the type of the household appliance does not exist, acquire the household appliance protocol package corresponding to the household appliance protocol from the server; and
解析所述家电设备协议包,得到所述家电设备协议。Parse the household appliance protocol package to obtain the household appliance protocol.
进一步地,处理器1001可以调用存储器1002中存储的基于网口的家电设备接入程序,还执行以下操作:Further, the processor 1001 can call a network port-based home appliance access program stored in the memory 1002, and also perform the following operations:
在接收到基于设置页面设置的所述家电设备的协议类型设置指令时,获取与选中的家电设备协议类型对应的所述家电设备协议。When receiving the protocol type setting instruction of the household electrical appliance set based on the setting page, the household electrical appliance protocol corresponding to the selected household electrical appliance protocol type is acquired.
进一步地,处理器1001可以调用存储器1002中存储的基于网口的家电设备接入程序,还执行以下操作:Further, the processor 1001 can call a network port-based home appliance access program stored in the memory 1002, and also perform the following operations:
从服务器上获取与所述家电协议对应的所述家电设备协议包;以及Obtaining the home appliance equipment protocol package corresponding to the home appliance protocol from the server; and
基于所述网络管理协议将所述家电设备协议包下发至所述家电设备。Based on the network management protocol, the home appliance device protocol package is delivered to the home appliance device.
进一步地,处理器1001可以调用存储器1002中存储的基于网口的家电设备接入程序,还执行以下操作:Further, the processor 1001 can call a network port-based home appliance access program stored in the memory 1002, and also perform the following operations:
接收基于设置页面输入的IP账号信息,根据所述IP账号信息和所述网络管理协议建立与所述家电设备的IP地址映射关系,并对所述家电设备进行IP地址分配。Receiving the IP account information input based on the setting page, establishing an IP address mapping relationship with the home appliance according to the IP account information and the network management protocol, and assigning the IP address to the home appliance.
为了更好的理解上述技术方案,下面将结合说明书附图以及具体的实施方式对上述技术方案进行详细的说明。In order to better understand the above technical solutions, the above technical solutions will be described in detail in conjunction with the drawings and specific implementations of the description.
参照图2,在一实施例中,所述基于网口的家电设备接入方法包括:Referring to FIG. 2, in an embodiment, the network port-based access method for household electrical appliances includes:
步骤S10、获取网络管理协议包,解析出所述网络管理协议包中的网络管理协议。Step S10: Obtain a network management protocol package, and parse out the network management protocol in the network management protocol package.
本实施例中,现有的智能家居系统大多都是通过将家电设备连接到一个家电控制器,而用户可以利用移动终端,或者PC端通过网络向家电控制器下达控制指令,再通过家电控制器控制对应的家电设备,如空调,除湿机,净化器,加湿器,风扇等。在现有的家电控制器中,家电控制器大多都是通过专用通讯接口,如RS485通讯接口,与家电设备连接通信的,这样,家电控制器能接入的家电设备的数量的多少只能由专用通讯接口的数量所决定。由于专用通讯接口的数量在家电控制器生产制备的过程中就已经决定了,在专用通讯接口资源已全部被占用的情况下,就很难再将更多的家电设备接入到家电控制器中。In this embodiment, most of the existing smart home systems connect home appliances to a home appliance controller, and users can use mobile terminals or the PC to issue control commands to the home appliance controller through the network, and then through the home appliance controller. Control the corresponding household appliances, such as air conditioners, dehumidifiers, purifiers, humidifiers, fans, etc. In the existing home appliance controllers, most of the home appliance controllers are connected to the home appliance through a dedicated communication interface, such as an RS485 communication interface, so that the number of home appliance devices that the home appliance controller can access can only be determined by Determined by the number of dedicated communication interfaces. Since the number of dedicated communication interfaces has been determined during the production and preparation of the home appliance controller, it is difficult to connect more home appliance devices to the home appliance controller when the dedicated communication interface resources are all occupied .
由于家电控制器除了具有专用通讯接口之外,还设置有网口接口,本申请通过实现基于家电控制器的网口来接入家电设备,解决了不需要对家电控制器在硬件层面上扩展更多的专用通讯接口,也能接入更多的家电设备的问题。需要说明的是,充分利用闲置的网口资源接入家电设备,不仅能起到节约资源的作用,相对来说,由于网口接口的类型统一,方便布线等特点,在硬件层面上,网口接口比专用通讯接口更容易扩展,即便在网口接口资源有限的情况下,也可以很容易扩展更多的网口接口。In addition to the dedicated communication interface, the home appliance controller is also provided with a network port interface. This application implements a network port based on the home appliance controller to access home appliance equipment, which solves the need to expand the home appliance controller at the hardware level. Multiple dedicated communication interfaces can also access more household appliances. It should be noted that making full use of idle network port resources to access home appliances can not only play a role in saving resources. Relatively speaking, due to the unified type of network port interface and convenient wiring, at the hardware level, the network port The interface is easier to expand than the dedicated communication interface. Even in the case of limited network port interface resources, it is easy to expand more network port interfaces.
所述网络管理协议可选为SNMP(简单网络管理协议),具体地,在接收到设备接入网口指令时,从服务器上获取所述SNMP协议包。在家电设备通过网口接口与家电控制器连接之后,用户可以是在家电控制器的设置界面,或者设置页面中,选择“软件升级功能”,以发出设备接入网口指令,家电控制器在接收到基于设置界面发出的设备接入网口指令时,从服务器上获取SNMP简单网络管理协议包,所述服务器可以是连接局域网的,也可以是连接广域网的,在家电控制器获取到SNMP协议包之后,家电控制器解析出所述SNMP协议包中的SNMP协议,并将该SNMP协议添加到程序软件中。需要说明的是,所述网络管理协议包,即SNMP协议包,可以是以SO库(unix尤尼斯系统SO文件的动态链接库)的形式建立,这样,就可以实现不改变原有的家电控制器中的程序文件的情况下,将SNMP协议以透传协议的形式添加到家电控制器的程序文件中。The network management protocol can be optionally SNMP (simple network management protocol). Specifically, when receiving the device access network port instruction, the SNMP protocol package is obtained from the server. After the home appliance is connected to the home appliance controller through the network port interface, the user can select the "software upgrade function" in the setting interface of the home appliance controller or the setting page to issue a command for the device to access the network port. When receiving the device access network port instruction based on the setting interface, the SNMP simple network management protocol package is obtained from the server. The server may be connected to the local area network or the wide area network. The SNMP protocol is obtained from the home appliance controller After the package, the home appliance controller parses out the SNMP protocol in the SNMP protocol package and adds the SNMP protocol to the program software. It should be noted that the network management protocol package, that is, the SNMP protocol package, can be established in the form of an SO library (a dynamic link library for SO files in the Unix Unix system), so that it can be implemented without changing the original appliance control In the case of the program file in the device, the SNMP protocol is added to the program file of the home appliance controller in the form of a transparent transmission protocol.
需要说明的是,由于家电控制器可以是通过服务器,或者互联网与用户的移动端,或者PC端连接的,用户可以是利用移动端,如手机、平板,或者PC端等设备通过网络进入家电控制器的设置页面。It should be noted that, since the home appliance controller can be connected to the user's mobile terminal or the PC terminal through a server, the Internet, the user can use a mobile terminal, such as a mobile phone, a tablet, or a PC terminal to enter the home appliance control through the network Settings page of the device.
当然,根据实际情况需要,所述SNMP协议包的获取可以不限于上述所述,也可以是获取连接到家电控制器的闪存设备中的SNMP协议包。Of course, according to actual needs, the acquisition of the SNMP protocol package may not be limited to the above, but may also be an SNMP protocol package in a flash memory device connected to the home appliance controller.
由于SNMP是基于TCP/IP协议族的网络管理标准,是一种在IP网络中管理网络节点(如服务器、工作站、路由器、交换机等)的标准协议。因此,利用SNMP协议的协议特性,通过协议转换,便可以在应用层上实现将原来适用于RS485通讯接口等专用通讯接口的家电设备协议,也能适用于网口接口。Since SNMP is a network management standard based on the TCP / IP protocol family, it is a standard protocol for managing network nodes (such as servers, workstations, routers, switches, etc.) in an IP network. Therefore, by using the protocol features of the SNMP protocol and through protocol conversion, the home appliance equipment protocol that was originally applicable to the dedicated communication interface such as the RS485 communication interface can be realized at the application layer, and can also be applied to the network port interface.
步骤S20、基于所述网络管理协议,对通过网口连接的家电设备进行IP地址分配。Step S20: Based on the network management protocol, assign IP addresses to the household electrical appliances connected through the network port.
本实施例中,家电控制器接收基于设置页面输入的IP账号信息,根据所述IP账号信息和所述SNMP协议建立与所述家电设备的IP地址映射关系,并对所述家电设备进行IP地址分配。需要说明的是,由于能通过SNMP更改IP地址映射记录的请求(包括用户名,密码,IP地址和物理地址),因此,在应用层上,可以实现通过网口对家电设备进行IP地址分配。In this embodiment, the home appliance controller receives the IP account information input based on the setting page, establishes an IP address mapping relationship with the home appliance according to the IP account information and the SNMP protocol, and performs an IP address on the home appliance distribution. It should be noted that since the request to change the IP address mapping record (including user name, password, IP address, and physical address) can be changed through SNMP, at the application layer, IP address allocation to household electrical appliances can be achieved through the network port.
IP地址配置成功后,家电控制器的蜂鸣器长响,设备接入指示灯闪烁,以提示用户家电控制器已经进入家电设备接入模式。After the IP address is configured successfully, the buzzer of the home appliance controller sounds long, and the device access indicator flashes to remind the user that the home appliance controller has entered the home appliance access mode.
步骤S30、根据地址分配后的所述家电设备的类型,获取与所述家电设备对应的家电设备协议。Step S30: Acquire a home appliance agreement corresponding to the home appliance according to the type of the home appliance after address allocation.
本实施例中,在对家电设备进行IP地址分配后,家电控制器可以是通过启动DHCP动态主机配置协议,以广播单一IP地址的方式,获取对应IP地址的家电设备发送到广播网络的数据包,所述数据包可以家电设备的类型对应的协议类型信息。需要说明的是,家电设备协议类型包括私有协议、主从协议和modulebus模块总线通讯协议,不同类型的家电设备对应着不同的协议类型。In this embodiment, after assigning an IP address to a household electrical appliance, the household electrical appliance controller may obtain a data packet sent by the household electrical appliance corresponding to the IP address to the broadcast network by broadcasting a single IP address by starting a DHCP dynamic host configuration protocol , The data packet may be protocol type information corresponding to the type of home appliance. It should be noted that the protocol types of household electrical appliances include private protocols, master-slave protocols and modulebus communication protocol, and different types of household electrical appliances correspond to different protocol types.
家电控制器获取到对应IP地址的家电设备发出的数据包后,通过所述SNMP协议解析所述数据包,便可得到所述家电设备的类型的信息,然后根据地址分配后的所述家电设备的类型,获取与所述家电设备对应的家电设备协议。After the home appliance controller obtains the data packet sent by the home appliance corresponding to the IP address, it parses the data packet through the SNMP protocol to obtain information on the type of the home appliance, and then allocates the home appliance according to the address Type, to obtain the household appliance agreement corresponding to the household appliance.
当然,所述家电控制器也可以是在接收到基于设置页面设置的所述家电设备的协议类型设置指令时,获取与选中的家电设备协议类型对应的所述家电设备协议。Of course, the home appliance controller may also acquire the protocol of the home appliance device corresponding to the selected protocol type of the home appliance device when receiving the protocol type setting instruction of the home appliance device set based on the setting page.
需要说明的是,由于专用通讯接口可以是已经连接有家电设备,家电控制器的程序文件中也就可以是存在着一些家电设备协议,因此,在家电控制器获取家电设备协议时,可以是先检测程序文件中是否存在与所述家电设备的类型对应的所述家电设备协议,在检测到存在与所述家电设备的类型对应的所述家电设备协议时,直接获取所述家电设备协议作为与家电控制器正在建立接入的家电设备的家电设备协议;在检测到不存在与所述家电设备的类型对应的所述家电设备协议时,从服务器上获取与所述家电设备协议对应的所述家电设备协议包,解析所述家电设备协议包,得到所述家电设备协议。It should be noted that since the dedicated communication interface may be already connected to the home appliance, there may be some home appliance agreement in the program file of the home appliance controller. Therefore, when the home appliance controller obtains the home appliance agreement, it may be first Detecting whether there is the home appliance agreement corresponding to the type of the home appliance in the program file, and when detecting that there is the home appliance agreement corresponding to the type of the home appliance, directly acquiring the home appliance agreement as the The home appliance controller is establishing a home appliance protocol of the connected home appliance; when detecting that there is no home appliance protocol corresponding to the type of the home appliance, the device corresponding to the home appliance protocol is acquired from the server The home appliance equipment protocol packet, parsing the home appliance equipment protocol packet, to obtain the home appliance equipment protocol.
在获取到家电设备协议之后,家电控制器将该家电设备协议添加到程序文件中。After acquiring the home appliance agreement, the home appliance controller adds the home appliance agreement to the program file.
其中,所述服务器可以是连接在局域网上的,也可以是连接在互联网上的。在从服务器上获取与所述家电设备协议对应的所述家电设备协议包时,也可以是获取已经发送到广播网络中的家电设备协议包。当然,根据实际情况需要,也可以是获取连接到家电控制器的闪存设备中的家电设备协议包。Wherein, the server may be connected to the local area network or the Internet. When acquiring the household appliance protocol package corresponding to the household appliance protocol from the server, the household appliance protocol package that has been sent to the broadcast network may also be acquired. Of course, according to actual needs, it may also be to obtain a protocol package of a home appliance device connected to a flash memory device of a home appliance controller.
步骤S40、基于所述网络管理协议,将与所述家电设备协议对应的家电设备协议包下发至所述家电设备,以完成所述家电设备接入到家电控制器中。Step S40: Based on the network management protocol, deliver a protocol package of the household electrical appliance corresponding to the household electrical appliance protocol to the household electrical appliance to complete the access of the household electrical appliance to the household electrical appliance controller.
本实施例中,家电控制器得到IP地址分配后的家电设备的类型的信息之后,获取与家电设备的类型对应的家电设备协议包,其中,可选从服务器上获取与所述家电设备协议对应的所述家电设备协议包,当然,根据实际情况需要,也可以是获取连接到家电控制器的闪存设备中的家电设备协议包。然后,家电控制器在应用层上基于所述SNMP协议,通过网口通信,将与所述家电设备协议对应的家电设备协议包下发至所述家电设备,以完成所述家电设备的接入。需要说明的是,若是家电控制器是通过解析家电设备协议包得到家电设备协议的,便直接将该家电设备协议包下发至所述家电设备。In this embodiment, after obtaining the information of the type of the household electrical appliance after the IP address is allocated, the household electrical appliance controller obtains the household electrical appliance protocol package corresponding to the type of the household electrical appliance, wherein, optionally, the protocol correspondence corresponding to the household electrical appliance Of course, the home appliance device protocol package may also be a home appliance device protocol package in a flash memory device connected to the home appliance controller according to actual needs. Then, based on the SNMP protocol at the application layer, the home appliance controller communicates through the network port to deliver the home appliance protocol packet corresponding to the home appliance protocol to the home appliance to complete the access of the home appliance . It should be noted that if the home appliance controller obtains the home appliance agreement by parsing the home appliance agreement, it will directly issue the home appliance agreement to the home appliance.
在所述家电设备成功接入家电控制器之后,可以通过家电控制器的设备管理模块注册生成与所述家电设备对应的家电设备序列号,作为该家电设备的家电ID,以方便今后家电控制器对家电设备的控制。After the household electrical appliance is successfully connected to the household electrical appliance controller, the serial number of the household electrical appliance corresponding to the household electrical appliance can be registered and generated through the appliance management module of the household electrical appliance controller as the household appliance ID of the household electrical appliance to facilitate the future household electrical appliance controller Control of home appliances.
家电设备接入成功之后,家电控制器的指示灯常亮,以提示用户家电设备接入成功,这时,在接收到用户基于设置页面点击的确认信号时,退出家电控制的设置页面。After the home appliance is successfully connected, the indicator light of the home appliance controller is always on to remind the user that the home appliance is successfully connected. At this time, when receiving the confirmation signal clicked by the user based on the setting page, the setting page of home appliance control is exited.
在第一实施例中,获取网络管理协议包,解析出所述网络管理协议包中的网络管理协议;基于所述网络管理协议,对通过网口连接的家电设备进行IP地址分配;根据地址分配后的所述家电设备的类型,获取与所述家电设备对应的家电设备协议;基于所述网络管理协议,将与所述家电设备协议对应的家电设备协议包下发至所述家电设备,以完成所述家电设备接入到家电控制器中。这样,通过实现基于家电控制器的网口接入家电设备,解决了不需要对家电控制器在硬件层面上扩展更多的专用通讯接口,也能接入更多的家电设备的问题。In the first embodiment, a network management protocol package is obtained, and the network management protocol in the network management protocol package is parsed; based on the network management protocol, IP addresses are allocated to household electrical appliances connected through a network port; according to the address allocation After the type of the home appliance, obtain a home appliance agreement corresponding to the home appliance; based on the network management protocol, distribute the home appliance agreement corresponding to the home appliance agreement to the home appliance, to Complete the access of the home appliance to the home appliance controller. In this way, by implementing the home appliance controller-based network port access to home appliance equipment, the problem of being able to access more home appliance equipment without extending more dedicated communication interfaces on the hardware level of the home appliance controller is solved.
在第二实施例中,如图3所示,在上述图2所示的实施例基础上,所述根据地址分配后的所述家电设备的类型,获取与所述家电设备对应的家电设备协议的步骤之前,还包括:In the second embodiment, as shown in FIG. 3, based on the embodiment shown in FIG. 2 above, the household appliance protocol corresponding to the household appliance is acquired according to the type of the household appliance after address allocation Before the steps, also include:
步骤S21、获取所述家电设备发出的数据包,通过所述网络管理协议解析所述数据包,得到所述家电设备的类型的信息。Step S21: Obtain a data packet sent by the home appliance, and parse the data packet through the network management protocol to obtain information about the type of the home appliance.
本实施例中,在对家电设备进行IP地址分配后,家电控制器可以是通过启动DHCP动态主机配置协议,以广播单一IP地址的方式,获取对应IP地址的家电设备发送到广播网络的数据包,所述数据包可以家电设备的类型对应的协议类型信息。需要说明的是,家电设备协议类型包括私有协议、主从协议和modulebus模块总线通讯协议,不同类型的家电设备对应着不同的协议类型。In this embodiment, after assigning an IP address to a household electrical appliance, the household electrical appliance controller may obtain a data packet sent by the household electrical appliance corresponding to the IP address to the broadcast network by broadcasting a single IP address by starting a DHCP dynamic host configuration protocol , The data packet may be protocol type information corresponding to the type of home appliance. It should be noted that the protocol types of household electrical appliances include private protocols, master-slave protocols and modulebus communication protocol, and different types of household electrical appliances correspond to different protocol types.
家电控制器获取到对应IP地址的家电设备发出的数据包后,通过所述SNMP协议解析所述数据包,便可得到所述家电设备的类型的信息,然后根据地址分配后的所述家电设备的类型,获取与所述家电设备对应的家电设备协议。After the home appliance controller obtains the data packet sent by the home appliance corresponding to the IP address, it parses the data packet through the SNMP protocol to obtain information on the type of the home appliance, and then allocates the home appliance according to the address Type, to obtain the household appliance agreement corresponding to the household appliance.
在第二实施例中,获取所述家电设备发出的数据包,通过所述SNMP协议解析所述数据包,得到所述家电设备的类型的信息。这样,在家电设备没有完成接入家电控制器的情况下,通过获取家电设备发送到广播网络的数据包,实现家电控制器自动得到家电设备对应类型的信息。In the second embodiment, a data packet sent by the household electrical appliance is obtained, and the data packet is parsed through the SNMP protocol to obtain information on the type of the household electrical appliance. In this way, when the home appliance does not complete the access to the home appliance controller, the home appliance controller can automatically obtain the corresponding type information of the home appliance by acquiring the data packet sent by the home appliance to the broadcast network.
在第三实施例中,如图4所示,在上述图2至图3的实施例基础上,所述根据地址分配后的所述家电设备的类型,获取与所述家电设备对应的家电设备协议的步骤包括:In the third embodiment, as shown in FIG. 4, based on the above embodiments of FIGS. 2 to 3, the household appliance corresponding to the household appliance is acquired according to the type of the household appliance after address allocation The steps of the agreement include:
步骤S50、检测是否存在与所述家电设备的类型对应的所述家电设备协议。Step S50: Detect whether there is a protocol of the household appliance corresponding to the type of the household appliance.
步骤S51、在检测到存在与所述家电设备的类型对应的所述家电设备协议时,获取所述家电设备协议。Step S51: When it is detected that the household appliance protocol corresponding to the type of the household appliance exists, acquire the household appliance protocol.
步骤S52、在检测到不存在与所述家电设备的类型对应的所述家电设备协议时,从服务器上获取与所述家电设备协议对应的所述家电设备协议包。Step S52: When it is detected that there is no household appliance protocol corresponding to the type of household appliance, the household appliance protocol package corresponding to the household appliance protocol is acquired from a server.
步骤S53、解析所述家电设备协议包,得到所述家电设备协议。Step S53: Parse the household appliance protocol package to obtain the household appliance protocol.
由于专用通讯接口可以是已经连接有家电设备,家电控制器的程序文件中也就可以是存在着一些家电设备协议,因此,在家电控制器获取家电设备协议时,可以是先检测程序文件中是否存在与所述家电设备的类型对应的所述家电设备协议,在检测到存在与所述家电设备的类型对应的所述家电设备协议时,直接获取所述家电设备协议作为与家电控制器正在建立接入的家电设备的家电设备协议;在检测到不存在与所述家电设备的类型对应的所述家电设备协议时,从服务器上获取与所述家电设备协议对应的所述家电设备协议包,解析所述家电设备协议包,得到所述家电设备协议。在获取到家电设备协议之后,家电控制器将该家电设备协议添加到程序文件中。Since the dedicated communication interface may be already connected to the home appliance, there may be some home appliance agreement in the program file of the home appliance controller. Therefore, when the home appliance controller obtains the home appliance agreement, it may first detect whether the program file There is the home appliance protocol corresponding to the type of the home appliance, and when it is detected that the home appliance protocol corresponding to the type of the home appliance is directly acquired, the home appliance protocol is established as being established with the home appliance controller Household appliance protocol of the connected household appliance; when it is detected that the household appliance protocol corresponding to the type of the household appliance does not exist, obtain the household appliance protocol package corresponding to the household appliance protocol from the server, Parse the household appliance protocol package to obtain the household appliance protocol. After acquiring the home appliance agreement, the home appliance controller adds the home appliance agreement to the program file.
其中,所述服务器可以是连接在局域网上的,也可以是连接在互联网上的。在从服务器上获取与所述家电设备协议对应的所述家电设备协议包时,也可以是获取已经发送到广播网络中的家电设备协议包。当然,根据实际情况需要,也可以是获取连接到家电控制器的闪存设备中的家电设备协议包。Wherein, the server may be connected to the local area network or the Internet. When acquiring the household appliance protocol package corresponding to the household appliance protocol from the server, the household appliance protocol package that has been sent to the broadcast network may also be acquired. Of course, according to actual needs, it may also be to obtain a protocol package of a home appliance device connected to a flash memory device of a home appliance controller.
在第三实施例中,检测是否存在与所述家电设备的类型对应的所述家电设备协议,在检测到存在与所述家电设备的类型对应的所述家电设备协议时,获取所述家电设备协议,在检测到不存在与所述家电设备的类型对应的所述家电设备协议时,从服务器上获取与所述家电设备协议对应的所述家电设备协议包,解析所述家电设备协议包,得到所述家电设备协议。这样,实现了家电控制器对IP地址分配后的家电设备对应的家电设备协议的获取。In the third embodiment, it is detected whether there is the household appliance protocol corresponding to the type of the household appliance, and when it is detected that there is the household appliance protocol corresponding to the type of the household appliance, the household appliance is acquired Protocol, when it is detected that there is no home appliance agreement corresponding to the type of home appliance, acquiring the home appliance agreement packet corresponding to the home appliance agreement from a server, and parsing the home appliance agreement, Obtain the home appliance agreement. In this way, the home appliance controller acquires the home appliance protocol corresponding to the home appliance after the IP address is allocated.
在第四实施例中,如图5所示,在上述图2至图4的实施例基础上,所述基于所述网络管理协议,对通过网口连接的家电设备进行IP地址分配的步骤之后,还包括:In the fourth embodiment, as shown in FIG. 5, on the basis of the above embodiments of FIGS. 2 to 4, after the step of assigning IP addresses to household electrical appliances connected through a network port based on the network management protocol ,Also includes:
步骤S60、在接收到基于设置页面设置的所述家电设备的协议类型设置指令时,获取与选中的家电设备协议类型对应的所述家电设备协议。Step S60: When receiving the protocol type setting instruction of the household appliance set based on the setting page, obtain the household appliance agreement corresponding to the selected household appliance agreement type.
本实施例中,在对家电设备进行IP地址分配后,所述家电控制器可以是在接收到基于设置页面设置的所述家电设备的协议类型设置指令时,获取与选中的家电设备协议类型对应的所述家电设备协议。In this embodiment, after assigning an IP address to a household electrical appliance, the household electrical appliance controller may acquire the protocol type corresponding to the selected household electrical appliance when it receives the protocol type setting instruction of the household electrical appliance based on the setting page The home appliance agreement.
由于专用通讯接口可以是已经连接有家电设备,家电控制器的程序文件中也就可以是存在着一些家电设备协议,因此,在家电控制器获取家电设备协议时,可以是先检测程序文件中是否存在与所述家电设备的类型对应的所述家电设备协议,在检测到存在与所述家电设备的类型对应的所述家电设备协议时,直接获取所述家电设备协议作为与家电控制器正在建立接入的家电设备的家电设备协议;在检测到不存在与所述家电设备的类型对应的所述家电设备协议时,从服务器上获取与所述家电设备协议对应的所述家电设备协议包,解析所述家电设备协议包,得到所述家电设备协议。在获取到家电设备协议之后,家电控制器将该家电设备协议添加到程序文件中。Since the dedicated communication interface may be already connected to the home appliance, there may be some home appliance agreement in the program file of the home appliance controller. Therefore, when the home appliance controller obtains the home appliance agreement, it may first detect whether the program file There is the home appliance protocol corresponding to the type of the home appliance, and when it is detected that the home appliance protocol corresponding to the type of the home appliance is directly acquired, the home appliance protocol is established as being established with the home appliance controller Household appliance protocol of the connected household appliance; when it is detected that the household appliance protocol corresponding to the type of the household appliance does not exist, obtain the household appliance protocol package corresponding to the household appliance protocol from the server, Parse the household appliance protocol package to obtain the household appliance protocol. After acquiring the home appliance agreement, the home appliance controller adds the home appliance agreement to the program file.
在第四实施例中,在接收到基于设置页面设置的所述家电设备的协议类型设置指令时,获取与选中的家电设备协议类型对应的所述家电设备协议。这样,实现了家电控制器对IP地址分配后的家电设备对应的家电设备协议的获取。In the fourth embodiment, upon receiving the protocol type setting instruction of the household appliance set based on the setting page, the household appliance agreement corresponding to the selected household appliance agreement type is acquired. In this way, the home appliance controller acquires the home appliance protocol corresponding to the home appliance after the IP address is allocated.
在第五实施例中,如图6所示,在上述图2至图5的实施例基础上,所述基于所述网络管理协议,将与所述家电设备协议对应的家电设备协议包下发至所述家电设备的步骤包括:In a fifth embodiment, as shown in FIG. 6, based on the above-mentioned embodiments of FIGS. 2 to 5, the home appliance device protocol package corresponding to the home appliance agreement is delivered based on the network management protocol The steps to the household electrical appliance include:
步骤S70、从服务器上获取与所述家电协议对应的所述家电设备协议包。Step S70: Acquire the home appliance equipment protocol package corresponding to the home appliance protocol from the server.
步骤S71、基于所述网络管理协议将所述家电设备协议包下发至所述家电设备。Step S71: Deliver the protocol package of the household electrical appliance to the household electrical appliance based on the network management protocol.
本实施例中,家电控制器得到IP地址分配后的家电设备的类型的信息之后,从服务器上获取与所述家电设备协议对应的所述家电设备协议包,当然,根据实际情况需要。然后,家电控制器在应用层上基于所述SNMP协议,通过网口通信,将与所述家电设备协议对应的家电设备协议包下发至所述家电设备,以完成所述家电设备的接入。In this embodiment, after the home appliance controller obtains the information of the type of the home appliance after the IP address is allocated, the home appliance device protocol package corresponding to the home appliance agreement is obtained from the server, of course, according to actual needs. Then, based on the SNMP protocol at the application layer, the home appliance controller communicates through the network port to deliver the home appliance protocol packet corresponding to the home appliance protocol to the home appliance to complete the access of the home appliance .
此外,本申请还提出一种家电控制器,所述家电控制器包括存储器、处理器及存储在存储器上并可在处理器上运行的基于网口的家电设备接入程序,所述处理器执行所述基于网口的家电设备接入程序时实现如以上实施例所述的基于网口的家电设备接入方法的步骤。In addition, the present application also proposes a household appliance controller. The household appliance controller includes a memory, a processor, and a network port-based appliance access program stored on the memory and executable on the processor. The processor executes When the network port-based home appliance device access program is implemented, the steps of the network port-based home appliance device access method described in the above embodiment are implemented.
此外,本申请还提出一种计算机可读存储介质,其中,所述计算机可读存储介质包括基于网口的家电设备接入程序,所述基于网口的家电设备接入程序被处理器执行时实现如以上实施例所述的基于网口的家电设备接入方法的步骤。In addition, the present application also proposes a computer-readable storage medium, wherein the computer-readable storage medium includes a network port-based home appliance access program, when the network port-based home appliance access program is executed by a processor The steps of implementing the network port-based appliance access method as described in the above embodiment.
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。The sequence numbers of the above embodiments of the present application are for description only, and do not represent the advantages and disadvantages of the embodiments.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在如上所述的一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是电视机,手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods in the above embodiments can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware, but in many cases the former is better Implementation. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence or part that contributes to the existing technology, and the computer software product is stored in a storage medium (such as ROM / RAM) as described above , Magnetic disks, optical disks), including several instructions to enable a terminal device (which can be a TV, mobile phone, computer, server, air conditioner, or network equipment, etc.) to perform the method described in each embodiment of the present application.
本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。This application is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the application. It should be understood that each flow and / or block in the flowchart and / or block diagram and a combination of the flow and / or block in the flowchart and / or block diagram may be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, special-purpose computer, embedded processing machine, or other programmable data processing device to produce a machine that enables the generation of instructions executed by the processor of the computer or other programmable data processing device A device for realizing the functions specified in one block or multiple blocks of one flow or multiple flows of a flowchart and / or one block or multiple blocks of a block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer readable memory that can guide a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, the instructions The device implements the functions specified in one block or multiple blocks of the flowchart one flow or multiple flows and / or block diagrams.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operating steps are performed on the computer or other programmable device to produce computer-implemented processing, which is executed on the computer or other programmable device The instructions provide steps for implementing the functions specified in one block or multiple blocks of the flowchart one flow or multiple flows and / or block diagrams.
应当注意的是,在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的部件或步骤。位于部件之前的单词“一”或“一个”不排除存在多个这样的部件。本申请可以借助于包括有若干不同部件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that, in the claims, any reference signs between parentheses should not be constructed as limitations on the claims. The word "comprising" does not exclude the presence of components or steps not listed in the claims. The word "a" or "one" before a part does not exclude the existence of multiple such parts. The application can be realized by means of hardware including several different components and by means of a suitably programmed computer. In the unit claims enumerating several devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third does not indicate any order. These words can be interpreted as names.
尽管已描述了本申请的可选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括可选实施例以及落入本申请范围的所有变更和修改。Although optional embodiments of the present application have been described, those skilled in the art can make additional changes and modifications to these embodiments once they learn the basic inventive concept. Therefore, the appended claims are intended to be interpreted as including optional embodiments and all changes and modifications falling within the scope of the present application.
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. In this way, if these modifications and variations of the present application fall within the scope of the claims of the present application and equivalent technologies thereof, the present application is also intended to include these modifications and variations.
以上仅为本申请的可选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。The above are only optional embodiments of the present application, and therefore do not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made by the description and drawings of this application, or directly or indirectly used in other related technologies In the field, the same reason is included in the patent protection scope of this application.

Claims (15)

  1. 一种基于网口的家电设备接入方法,其中,所述基于网口的家电设备接入方法包括以下步骤: A method for accessing household electrical appliances based on a network port, wherein the method for accessing household electrical appliances based on a network port includes the following steps:
    获取网络管理协议包,解析出所述网络管理协议包中的网络管理协议;Obtain the network management protocol package, and parse out the network management protocol in the network management protocol package;
    基于所述网络管理协议,对通过网口连接的家电设备进行IP地址分配;Based on the network management protocol, assign IP addresses to household electrical appliances connected through the network port;
    根据IP地址分配后的所述家电设备的类型,获取与所述家电设备对应的家电设备协议;以及Obtain the home appliance protocol corresponding to the home appliance according to the type of the home appliance after the IP address is assigned; and
    基于所述网络管理协议,将与所述家电设备协议对应的家电设备协议包下发至所述家电设备,配置完成所述家电设备接入到家电控制器中。Based on the network management protocol, the home appliance equipment protocol package corresponding to the home appliance equipment protocol is delivered to the home appliance equipment, and the home appliance equipment is configured to be connected to the home appliance controller.
  2. 如权利要求1所述的基于网口的家电设备接入方法,其中,所述基于网口的家电设备接入方法还包括:The network port-based appliance access method according to claim 1, wherein the network port-based appliance access method further comprises:
    接收设备接入网口指令,从服务器上获取所述网络管理协议包。Receiving an instruction for the device to access the network port, and obtaining the network management protocol package from the server.
  3. 如权利要求1所述的基于网口的家电设备接入方法,其中,所述获取网络管理协议包,解析出所述网络管理协议包中的网络管理协议的步骤之后,还包括:The method for accessing household electrical appliances based on a network port according to claim 1, wherein after the steps of obtaining a network management protocol package and parsing out the network management protocol in the network management protocol package, the method further comprises:
    将所述网络管理协议添加到所述家电控制器的程序文件中。Add the network management protocol to the program file of the home appliance controller.
  4. 如权利要求要求1所述的基于网口的家电设备接入方法,其中,所述根据IP地址分配后的所述家电设备的类型,获取与所述家电设备对应的家电设备协议的步骤之前,还包括:The method for accessing a home appliance device based on a network port according to claim 1, wherein before the step of acquiring a home appliance agreement corresponding to the home appliance according to the type of the home appliance after the IP address is assigned, Also includes:
    获取所述家电设备发出的数据包,通过所述网络管理协议解析所述数据包,得到所述家电设备的类型的信息。Obtain a data packet sent by the home appliance, and parse the data packet through the network management protocol to obtain information about the type of the home appliance.
  5. 如权利要求要求4所述的基于网口的家电设备接入方法,其中,所述家电设备在IP地址分配完成的条件下,将所述数据包发出至广播网络。The method for accessing household electrical appliances based on a network port according to claim 4, wherein the household electrical appliances send the data packet to the broadcast network under the condition that the IP address allocation is completed.
  6. 如权利要求要求1所述的基于网口的家电设备接入方法,其中,所述根据IP地址分配后的所述家电设备的类型,获取与所述家电设备对应的家电设备协议的步骤包括:The network port-based appliance access method according to claim 1, wherein the step of acquiring an appliance protocol corresponding to the appliance according to the type of the appliance after IP address allocation includes:
    检测是否存在与所述家电设备的类型对应的所述家电设备协议;以及Detect whether there is the household appliance protocol corresponding to the type of household appliance; and
    在检测到存在与所述家电设备的类型对应的所述家电设备协议的条件下,获取所述家电设备协议。Acquire the home appliance protocol under the condition that the home appliance protocol corresponding to the type of the home appliance is detected.
  7. 如权利要求6所述的基于网口的家电设备接入方法,其中,所述检测是否存在与所述家电设备的类型对应的所述家电设备协议的步骤之后,还包括:The method for accessing household electrical appliances based on a network port according to claim 6, wherein after the step of detecting whether there is the household electrical appliance protocol corresponding to the type of the household electrical appliances, the method further comprises:
    在检测到不存在与所述家电设备的类型对应的所述家电设备协议的条件下,从服务器上获取与所述家电设备协议对应的所述家电设备协议包;以及Acquiring the household electrical appliance protocol package corresponding to the household electrical appliance protocol from a server if it is detected that there is no household electrical appliance protocol corresponding to the type of household electrical appliance; and
    解析所述家电设备协议包,得到所述家电设备协议。Parse the household appliance protocol package to obtain the household appliance protocol.
  8. 如权利要求1所述的基于网口的家电设备接入方法,其中,所述根据IP地址分配后的所述家电设备的类型,获取与所述家电设备对应的家电设备协议的步骤包括:The method for accessing a home appliance device based on a network port according to claim 1, wherein the step of acquiring a home appliance agreement corresponding to the home appliance according to the type of the home appliance after the IP address is assigned includes:
    根据所述家电设备的类型对应的家电设备协议,从与所述家电控制器连接的闪存设备上获取所述家电设备协议对应的家电设备协议包;以及Acquiring, from the flash memory device connected to the home appliance controller, the home appliance device protocol package corresponding to the home appliance device protocol according to the home appliance device protocol corresponding to the type of the home appliance device; and
    解析所述家电设备协议包,得到所述家电设备协议。Parse the household appliance protocol package to obtain the household appliance protocol.
  9. 如权利要求1所述的基于网口的家电设备接入方法,其中,所述基于所述网络管理协议,对通过网口连接的家电设备进行IP地址分配的步骤之后,还包括:The method for accessing household electrical appliances based on a network port according to claim 1, wherein the step of assigning an IP address to household electrical appliances connected via a network port based on the network management protocol further comprises:
    接收基于设置页面设置的所述家电设备的协议类型设置指令,获取与选中的家电设备协议类型对应的所述家电设备协议。Receiving a protocol type setting instruction of the household appliance based on the setting page, and acquiring the household appliance protocol corresponding to the selected household appliance protocol type.
  10. 如权利要求1所述的基于网口的家电设备接入方法,其中,所述基于所述网络管理协议,将与所述家电设备协议对应的家电设备协议包下发至所述家电设备的步骤包括:The method for accessing a household electrical appliance based on a network port according to claim 1, wherein the step of delivering a household electrical appliance protocol packet corresponding to the household electrical appliance protocol to the household electrical appliance based on the network management protocol include:
    从服务器上获取与所述家电协议对应的所述家电设备协议包;以及Obtaining the home appliance equipment protocol package corresponding to the home appliance protocol from the server; and
    基于所述网络管理协议将所述家电设备协议包下发至所述家电设备。Based on the network management protocol, the home appliance device protocol package is delivered to the home appliance device.
  11. 如权利要求1所述的基于网口的家电设备接入方法,其中,所述基于所述网络管理协议,对通过网口连接的家电设备进行IP地址分配的步骤包括:The method for accessing household electrical appliances based on a network port according to claim 1, wherein the step of assigning an IP address to household electrical appliances connected via a network port based on the network management protocol includes:
    接收基于设置页面输入的IP账号信息,根据所述IP账号信息和所述网络管理协议建立与所述家电设备的IP地址映射关系,并对所述家电设备进行IP地址分配。Receiving the IP account information input based on the setting page, establishing an IP address mapping relationship with the home appliance according to the IP account information and the network management protocol, and assigning the IP address to the home appliance.
  12. 如权利要求1所述的基于网口的家电设备接入方法,其中,所述根据IP地址分配后的所述家电设备的类型,获取与所述家电设备对应的家电设备协议的步骤之后,还包括:The method for accessing household electrical appliances based on a network port according to claim 1, wherein after the step of acquiring the household electrical appliance protocol corresponding to the household electrical appliance according to the type of the household electrical appliance after the IP address is allocated, further include:
    将所述家电设备协议添加到所述家电控制器的程序文件中。Add the home appliance protocol to the program file of the home appliance controller.
  13. 如权利要求1所述的基于网口的家电设备接入方法,其中,所述基于所述网络管理协议,将与所述家电设备协议对应的家电设备协议包下发至所述家电设备,配置完成所述家电设备接入到家电控制器中的步骤之后,还包括:The method for accessing household electrical appliances based on a network port according to claim 1, wherein, based on the network management protocol, the household electrical appliance protocol packet corresponding to the household electrical appliance protocol is delivered to the household electrical appliance and configured After completing the step of connecting the home appliance to the home appliance controller, the method further includes:
    在所述家电控制器的设备管理单元中生成与所述家电设备对应的设备序列号。A device serial number corresponding to the home appliance is generated in the device management unit of the home appliance controller.
  14. 一种家电控制器,其中,所述家电控制器包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的基于网口的家电设备接入程序,所述基于网口的家电设备接入程序被所述处理器执行时实现以下所述的基于网口的家电设备接入方法的步骤:A home appliance controller, wherein the home appliance controller includes a memory, a processor, and a network port-based appliance access program stored on the memory and capable of running on the processor, the network port-based access program Of the home appliance access program executed by the processor to implement the following steps of the network port-based appliance access method described below:
    获取网络管理协议包,解析出所述网络管理协议包中的网络管理协议;Obtain the network management protocol package, and parse out the network management protocol in the network management protocol package;
    基于所述网络管理协议,对通过网口连接的家电设备进行IP地址分配;Based on the network management protocol, assign IP addresses to household electrical appliances connected through the network port;
    根据IP地址分配后的所述家电设备的类型,获取与所述家电设备对应的家电设备协议;以及Obtain the home appliance protocol corresponding to the home appliance according to the type of the home appliance after the IP address is assigned; and
    基于所述网络管理协议,将与所述家电设备协议对应的家电设备协议包下发至所述家电设备,配置完成所述家电设备接入到家电控制器中。Based on the network management protocol, the home appliance equipment protocol package corresponding to the home appliance equipment protocol is delivered to the home appliance equipment, and the home appliance equipment is configured to be connected to the home appliance controller.
  15. 一种计算机可读存储介质,其中,所述计算机可读存储介质上存储有基于网口的家电设备接入程序,所述基于网口的家电设备接入程序被处理器执行时实现以下所述的基于网口的家电设备接入方法的步骤:A computer-readable storage medium, wherein the computer-readable storage medium stores a network port-based home appliance access program, and the network port-based home appliance access program is implemented when the processor executes the following Steps of the network port-based appliance access method:
    获取网络管理协议包,解析出所述网络管理协议包中的网络管理协议;Obtain the network management protocol package, and parse out the network management protocol in the network management protocol package;
    基于所述网络管理协议,对通过网口连接的家电设备进行IP地址分配;Based on the network management protocol, assign IP addresses to household electrical appliances connected through the network port;
    根据IP地址分配后的所述家电设备的类型,获取与所述家电设备对应的家电设备协议;以及Obtain the home appliance protocol corresponding to the home appliance according to the type of the home appliance after the IP address is assigned; and
    基于所述网络管理协议,将与所述家电设备协议对应的家电设备协议包下发至所述家电设备,配置完成所述家电设备接入到家电控制器中。 Based on the network management protocol, the home appliance equipment protocol package corresponding to the home appliance equipment protocol is delivered to the home appliance equipment, and the home appliance equipment is configured to be connected to the home appliance controller. The
PCT/CN2019/075906 2018-10-09 2019-02-22 Network-port-based access method for home appliance, home appliance controller, and storage medium WO2020073585A1 (en)

Applications Claiming Priority (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
CN201811176774.4 2018-10-09

Publications (1)

Publication Number Publication Date
WO2020073585A1 true WO2020073585A1 (en) 2020-04-16

Family

ID=65770254

Family Applications (1)

Application Number Title Priority Date Filing Date
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

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

Citations (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
CN101860539A (en) * 2010-05-28 2010-10-13 华南理工大学 Control system and control method of networked appliance with service discovery function
CN103312573A (en) * 2013-06-14 2013-09-18 西安交通大学 Household network system equipment discovery and recognition protocol

Family Cites Families (4)

* 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
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
KR101303319B1 (en) * 2011-12-05 2013-09-03 한전케이디엔주식회사 Network Management System integrated a Power Line Communication and Control Method of the Same
CN107318119B (en) * 2017-08-28 2021-02-09 广东美的制冷设备有限公司 Household appliance networking method, household appliance and computer readable storage medium

Patent Citations (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
CN101860539A (en) * 2010-05-28 2010-10-13 华南理工大学 Control system and control method of networked appliance with service discovery function
CN103312573A (en) * 2013-06-14 2013-09-18 西安交通大学 Household network system equipment discovery and recognition protocol

Also Published As

Publication number Publication date
CN109525417A (en) 2019-03-26
CN109525417B (en) 2020-10-20

Similar Documents

Publication Publication Date Title
WO2020155360A1 (en) Network distribution method for household appliance, household appliance, mobile terminal and storage medium
WO2020155358A1 (en) Smart home device linkage control method and apparatus, and smart home device
WO2012034486A1 (en) Method and system for installing and upgrading software on application terminal in home network
WO2020199332A1 (en) Home appliance networking control method, module, control terminal, terminal, and medium
WO2020147396A1 (en) Method for dynamically configuring service domain name, device, apparatus, and storage medium
WO2015020360A1 (en) Method and device for registering and certifying device in wireless communication system
WO2014175602A1 (en) Electronic device and method of registering personal cloud apparatus in user portal server thereof
WO2018103315A1 (en) Monitoring data processing method, apparatus, server and storage equipment
EP3050253A1 (en) Method and apparatus for controlling devices for smart home service
WO2018214320A1 (en) Database service logic monitoring method and system, and storage medium
WO2017140080A1 (en) Addressing communication method and apparatus based on media access control address
WO2016026295A1 (en) Intelligent home controller and communication method thereof
WO2014121502A1 (en) Startup configuration method in base station, base station and server
EP2929652A1 (en) Method and apparatus for controlling access between home device and external server in home network system
WO2012026777A2 (en) Method and apparatus for establishing communication
WO2014189275A1 (en) Apparatus and method of recognizing external device in a communication system
WO2020237859A1 (en) Data migration method employing nbd device, apparatus, device, and storage medium
WO2020073585A1 (en) Network-port-based access method for home appliance, home appliance controller, and storage medium
WO2020119115A1 (en) Data verification method, device, apparatus, and storage medium
WO2019109957A1 (en) Esb-based service providing method, apparatus and device, and readable storage medium
WO2014112754A1 (en) Web service push method and web service push server and web service providing server performing same
WO2020119369A1 (en) Intelligent it operation and maintenance fault positioning method, apparatus and device, and readable storage medium
WO2020233073A1 (en) Blockchain environment test method, device and apparatus, and storage medium
WO2020073615A1 (en) Method for upgrading device software, and data converter and readable storage medium
EP2666256A2 (en) Method and apparatus for phone communication using home network

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19871007

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19871007

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 20/08/2021)

122 Ep: pct application non-entry in european phase

Ref document number: 19871007

Country of ref document: EP

Kind code of ref document: A1