CN107800597B - Data transmission method and device for household appliance and computer readable storage medium - Google Patents

Data transmission method and device for household appliance and computer readable storage medium Download PDF

Info

Publication number
CN107800597B
CN107800597B CN201710937913.XA CN201710937913A CN107800597B CN 107800597 B CN107800597 B CN 107800597B CN 201710937913 A CN201710937913 A CN 201710937913A CN 107800597 B CN107800597 B CN 107800597B
Authority
CN
China
Prior art keywords
resource information
data transmission
data
household appliance
transmission method
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710937913.XA
Other languages
Chinese (zh)
Other versions
CN107800597A (en
Inventor
霍伟明
刘景春
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Midea Group Co Ltd
GD Midea Air Conditioning Equipment Co Ltd
Original Assignee
Midea Group Co Ltd
GD Midea Air Conditioning Equipment Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Midea Group Co Ltd, GD Midea Air Conditioning Equipment Co Ltd filed Critical Midea Group Co Ltd
Priority to CN201710937913.XA priority Critical patent/CN107800597B/en
Publication of CN107800597A publication Critical patent/CN107800597A/en
Application granted granted Critical
Publication of CN107800597B publication Critical patent/CN107800597B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/168Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP] specially adapted for link layer protocols, e.g. asynchronous transfer mode [ATM], synchronous optical network [SONET] or point-to-point protocol [PPP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Automation & Control Theory (AREA)
  • Computer Security & Cryptography (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses a data transmission method of household electrical appliance equipment, which comprises the steps of obtaining resource information to be transmitted in first household electrical appliance equipment, and coding the resource information; acquiring address information of second household electrical appliance equipment corresponding to the resource information; and packaging the encoded resource information into a data message, and sending the data message to the second household appliance equipment corresponding to the address information. The invention also discloses a data transmission detection device and a storage medium of the household appliance. The invention realizes the point-to-point transmission of information between the household appliances in a data message mode without distributing data through a specific gateway or a server, thereby reducing the data transmission cost.

Description

Data transmission method and device for household appliance and computer readable storage medium
Technical Field
The present invention relates to the field of internet of things, and in particular, to a data transmission method and apparatus for a home appliance, and a computer-readable storage medium.
Background
The household appliance of the internet of things is a product applying the internet of things technology to air conditioners, refrigerators, washing machines, televisions and the like. Along with the development of science and technology, the thing networking household electrical appliances kind is increasing gradually, and this type of household electrical appliances receive consumer's favor more, by the wide use.
When the home appliances in the internet of things need to be mutually controlled or mutually read (the state refers to a sensor state or an equipment running state), the appliances need to be associated and data distribution and transmission are realized through corresponding gateways or servers.
Disclosure of Invention
The invention mainly aims to provide a data transmission method and a data transmission device for household appliances, and aims to solve the technical problem that the data transmission cost between the household appliances is high in the prior art.
In order to achieve the above object, the present invention provides a data transmission method for a home appliance, the data transmission method for a home appliance comprising the steps of:
acquiring resource information to be transmitted in first household electrical appliance equipment, and coding the resource information;
acquiring address information of second household electrical appliance equipment corresponding to the resource information;
and packaging the encoded resource information into a data message, and sending the data message to a second household appliance corresponding to the address information.
Optionally, the step of packaging the encoded resource information into a data packet includes:
acquiring a Uniform Resource Identifier (URI) of the resource information;
and generating a data message according to the uniform resource identifier.
Optionally, the address information is an IP address.
Optionally, the data transmission method of the home appliance further includes:
when the first household appliance equipment joins in a local area network, acquiring resource information in the first household appliance equipment and an IP address of the first household appliance equipment;
generating a data message according to the resource information and the IP address of the first household appliance;
and broadcasting the data message to send the data message to a second household appliance in the environment where the first household appliance is located.
Optionally, after the step of broadcasting the data packet, the data transmission method of the home appliance further includes:
acquiring a preset multicast port;
generating a resource request data message according to the multicast port, and multicasting the resource request data message;
and when receiving a response data packet of the second household appliance equipment in the local area network based on the resource request data message, acquiring and storing the resource information in the response data packet.
Optionally, the data transmission method of the home appliance further includes:
when the first household appliance receives a data message broadcasted by a third household appliance, acquiring resource information in the data message;
and when the resource information is the resource information required by the first household appliance, the resource information and the source address of the data message are stored in a correlated manner.
Optionally, the step of encoding the resource information includes:
acquiring a coding mode of second household electrical appliance equipment corresponding to the resource information to be transmitted;
and coding the resource information according to the coding mode.
Optionally, the step of packaging the encoded resource information into a data packet includes:
and packaging the encoded resource information into a UDP open system interconnection message.
In addition, in order to achieve the above object, the present invention further provides a data transmission device of a home appliance, the data transmission device comprising: the data transmission method comprises the steps of the data transmission method of the household appliance, and the data transmission program of the household appliance is stored in the memory and can be operated on the processor.
In addition, to achieve the above object, the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium includes: the data transmission method comprises the steps of the data transmission method of the household appliance, and the data transmission program of the household appliance is stored in the memory and can be operated on the processor.
The data transmission method, the data transmission device and the computer-readable storage medium of the household electrical appliance provided by the embodiment of the invention are used for acquiring the resource information in the first household electrical appliance, transmitting the resource information to the physical layer for encoding, packaging the encoded resource information into the data message and transmitting the data message to the corresponding second household electrical appliance, realizing the point-to-point transmission of the information between the household electrical appliances in the data message mode, and not using a specific gateway or a server for data distribution, thereby reducing the data transmission cost.
Drawings
FIG. 1 is a schematic diagram of an apparatus in a hardware operating environment according to an embodiment of the present invention;
fig. 2 is a schematic flow chart illustrating a data transmission method of a home appliance according to a first embodiment of the present invention;
fig. 3 is a schematic flow chart of a data transmission method of a home appliance according to a third embodiment of the present invention;
fig. 4 is a flowchart illustrating a fourth embodiment of a data transmission method for a home appliance according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The main solution of the embodiment of the invention is as follows:
acquiring resource information to be transmitted in first household electrical appliance equipment, and coding the resource information;
acquiring address information of second household electrical appliance equipment corresponding to the resource information;
and packaging the encoded resource information into a data message, and sending the data message to a second household appliance corresponding to the address information.
In the prior art, when a first household appliance needs to control a second household appliance, control data must be forwarded to the second household appliance through a specific gateway (the specific gateway refers to a gateway supporting a special internet of things protocol) or a server, so that the data transmission cost between the household appliances is high. .
The invention provides a solution, which realizes the point-to-point transmission of information between household appliances in a data message mode without distributing data through a specific gateway or a server, thereby reducing the data transmission cost.
As shown in fig. 1, fig. 1 is a schematic device structure diagram of a hardware operating environment according to an embodiment of the present invention.
The device of the embodiment of the invention is household electrical appliance.
As shown in fig. 1, the apparatus may include: a processor 1001, such as a CPU, a network interface 1003, a memory 1004, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The network interface 1003 may optionally be a wireless interface (e.g., WI-FI interface), a bluetooth interface, a ZIGBEE wireless network interface, or the like. The memory 1004 may be a high-speed RAM memory or a non-volatile memory (e.g., a disk memory). The memory 1004 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include an operating system, a network communication module, a user interface module, and a data transmission program of the home appliance.
In the terminal shown in fig. 1, the network interface 1003 is mainly used for connecting to a backend server and performing data communication with the backend server; and the processor 1001 may be configured to call the data transmission program of the home device stored in the memory 1004 and perform the following operations:
acquiring resource information to be transmitted in first household electrical appliance equipment, and coding the resource information;
acquiring address information of second household electrical appliance equipment corresponding to the resource information;
and packaging the encoded resource information into a data message, and sending the data message to a second household appliance corresponding to the address information.
Further, before the step of acquiring the power consumption data within the first preset time interval, the processor 1001 may call the data transmission program of the home appliance stored in the memory 1004, and further perform the following operations:
acquiring a Uniform Resource Identifier (URI) of the resource information;
and generating a data message according to the uniform resource identifier.
Further, after the step of acquiring the power consumption data within the first preset time interval, the processor 1001 may call the data transmission program of the home appliance stored in the memory 1004, and further perform the following operations:
when the first household appliance equipment joins in a local area network, acquiring resource information in the first household appliance equipment and an IP address of the first household appliance equipment;
generating a data message according to the resource information and the IP address of the first household appliance;
and broadcasting the data message to send the data message to a second household appliance in the environment where the first household appliance is located.
Further, in generating the data transmission information of the home appliance whose electricity consumption rate satisfies the preset condition, the step of outputting the recommendation information includes that the processor 1001 may call the data transmission program of the home appliance stored in the memory 1004 to perform the following operations:
acquiring a preset multicast port;
generating a resource request data message according to the multicast port, and multicasting the resource request data message;
and when receiving a response data packet of the second household appliance equipment in the local area network based on the resource request data message, acquiring and storing the resource information in the response data packet.
Further, before the step of generating the recommendation information according to the billing method with the minimum electricity usage rate, the processor 1001 may call the data transmission program of the home appliance stored in the memory 1004, and further perform the following operations:
when the first household appliance receives a data message broadcasted by a third household appliance, acquiring resource information in the data message;
and when the resource information is the resource information required by the first household appliance, the resource information and the source address of the data message are stored in a correlated manner.
Further, in generating the data transmission information of the home appliance whose electricity consumption rate satisfies the preset condition, the step of outputting the recommendation information includes that the processor 1001 may call the data transmission program of the home appliance stored in the memory 1004, and further perform the following operations:
acquiring a coding mode of second household electrical appliance equipment corresponding to the resource information to be transmitted;
and coding the resource information according to the coding mode.
Further, after the step of marking the recommendation information according to the attribute of the charging mode, the processor 1001 may call the data transmission program of the home appliance stored in the memory 1004, and further perform the following operations:
and packaging the encoded resource information into a UDP open system interconnection message.
Referring to fig. 2, a data transmission method of a home appliance according to a first embodiment of the present invention includes:
step S10, acquiring resource information to be transmitted in the first household appliance, and encoding the resource information;
in the technical scheme disclosed in this embodiment, data transmission between the first household electrical appliance and the second household electrical appliance is achieved in a resource information manner, for example, the first household electrical appliance sends detected data to the second household electrical appliance, or the first household electrical appliance sends received voice information to the second household electrical appliance for identification, or the first household electrical appliance sends a control instruction to the second household electrical appliance, and the like.
The application layer of the first home device may be installed with a plurality of applications, and may trigger a plurality of processing operations in an operation process of the applications, for example, when a voice signal is received, the triggered processing operation may be voice recognition, or when the first home device performs control, an environmental parameter needs to be acquired, and the triggered processing operation is to acquire an environmental parameter, such as humidity, temperature, and the like, and corresponds to corresponding resource information.
The resources described in this embodiment may include devices, information, functional components (such as sensors) in the devices, and computing capabilities (such as image processing and face recognition capabilities, etc.), the resources may be implemented by using a Uniform Resource Identifier (URI), Resource information of other devices in the internet of things is stored in each home appliance device, and may include all Resource information of other devices in the internet of things, or only Resource information of some home appliances in the internet of things.
In this embodiment, a resource model is preset, and each resource is mapped to a state of an entity in the resource model, for example, a value sampled by a certain sensor in the device may be mapped to a resource of the entity in the resource model, and an identifier of the resource is mapped to a state of the entity, and other information such as computing capability and device behavior may be mapped to the entity, so as to facilitate sharing in the local area network.
The resource model group is to include entities, resources, locators (URIs), resource types, attributes, resource identifications, interfaces, collections, and connections, the entities being visible, interoperable, represented by resource abstractions, identified and related operations using URIs, and the attributes being "keys ═ values" and representing resource states. Resource identification is a snapshot of attributes, and URI is a package of resources that is used to identify, process, and name the resource.
The resource information can be coded through a physical layer, the physical layer is provided with a corresponding bottom layer communication protocol such as at least one of Bluetooth, ZIGBEE and WIFI, the resource information is coded through the communication protocol of the physical layer, and the protocol set in the physical layer can be selected to obtain and select the corresponding protocol to code when the coding is carried out.
Step S20, address information of the second household appliance corresponding to the resource information is obtained;
and step S30, packaging the encoded resource information into a data message, and sending the data message to the second household appliance corresponding to the address information.
In this embodiment, the communication Protocol for packing the resource information may be a TCP (Transmission Control Protocol) Protocol or a UDP (User data program, open internet Protocol), and both the protocols may obtain an IP address of an opposite end and then directly communicate with the opposite end without forwarding through a server or a specific gateway. The address information in this embodiment may be a dynamically changing address such as an IP address, or may be a fixed address such as a physical address.
The data packet in this embodiment may select unicast, multicast, or broadcast according to a scene, and may adopt a broadcast mode when the first home appliance device joins the local area network, a multicast mode when the first home appliance device requests a resource, and a unicast mode when the home appliance device transmits resource information to the second home appliance device.
The data transmission method of the home appliance equipment disclosed in this embodiment obtains resource information in a first home appliance equipment, transmits the resource information to a physical layer for encoding, packages the encoded resource information into a data message and sends the data message to a corresponding second home appliance equipment, and realizes point-to-point transmission of information between home appliance equipment in a data message manner without distributing data through a specific gateway or a server, thereby reducing data transmission cost.
Further, a second embodiment of the data transmission method for a home appliance device according to the present invention is provided based on the first embodiment, and in this embodiment, packing the encoded resource information into a data packet includes:
acquiring a Uniform Resource Identifier (URI) of the resource information;
and generating a data message according to the uniform resource identifier.
Each resource corresponds to a URI, and each URI may include an address and a port of each resource, for example, an abstract structure of the URI may include a shac: // IP address: port/< path >? And (4) < query >, the IP address of the second device can be obtained according to the URI, so as to communicate with the second device according to the IP address, that is, the step of generating the data processing request according to the resource includes: obtaining Uniform Resource Identifier (URI) corresponding to the resource; and generating a data message according to the URI.
When receiving the data message, the second household appliance obtains URI information in the data message, obtains the resource according to the URI, and performs corresponding processing operation according to the resource information, for example, when the resource information is a value detected by a sensor, feeds back the value detected by the sensor to the first appliance; and when the resource information is computing capacity such as voice recognition capacity, recognizing the voice information in the received data processing request to obtain a corresponding voice recognition result, and feeding the voice recognition result back to the first household appliance, namely responding to the processing operation of the first household appliance, wherein the resource information can also be a control parameter of the second household appliance and recognizing the operation corresponding to each resource through the mark of the resource attribute.
In the scheme disclosed in this embodiment, the resource information is transmitted through the URI, the resource information has a corresponding resource port, and the corresponding resource information in the second home appliance can be acquired according to the resource port, thereby improving the data transmission efficiency between the home appliances.
Further, a third embodiment of the data transmission method for a home appliance device according to the present invention is provided based on the first embodiment or the second embodiment, and in this embodiment, the address information is an IP address.
Each resource information corresponds to the IP address of the second home appliance device having the resource information, or the IP address of the second home appliance device requiring the resource information, and the data is transmitted to the corresponding second home appliance device through the IP address.
Because the IP address of the household appliance is a dynamic address, when the household appliance is powered off or is re-networked after being disconnected, the IP address of the household appliance can change, but the household appliance has fixed addresses such as MAC addresses and UUID addresses which are not changed, and the IP address can be determined by acquiring the fixed address of the household appliance. When a response message fed back by the second household appliance device based on the data message is not received within a preset time interval, a request for acquiring the address information is multicast, and the request is sent in a UDP multicast packet mode; when address information fed back according to the address information acquisition request is received, acquiring an IP address matched with the fixed address of the second household appliance in the address information; and updating the IP address of the second household appliance by adopting the IP address, and retransmitting the data message to the second household appliance according to the IP address.
The address information fed back by the household appliance equipment can comprise a fixed address and an IP address, the IP address of the second household appliance equipment is determined through the fixed address, the IP address of the second household appliance equipment is updated by adopting the obtained IP address, and the data processing request is sent to the new IP address.
After the household electrical appliances join the local area network, each household electrical appliance joins one household electrical appliance group, the port of the household electrical appliance group can be preset, and during multicast, the port is added in the address information of the multicast data packet, so that each household electrical appliance in the household electrical appliance group can receive the multicast data packet.
It can be understood that, if a packet loss of a transmitted data packet may be caused by a network problem, the data packet is retransmitted to the second home appliance device when a response message fed back by the second home appliance device based on the data packet is not received within a preset time interval; updating the number of times of retransmitting the data message; and executing the multicast address information acquisition request when the number of times of retransmitting the data message is greater than the preset number of times. And the second household appliance equipment is ensured to receive the data message sent by the first household appliance equipment through multiple sending, so that the accuracy of data transmission is improved.
Further, referring to fig. 3, a third embodiment of the data transmission method of a home appliance device according to the present invention is provided based on the first embodiment or the second embodiment, and in this embodiment, the data transmission method of the home appliance device further includes:
step S40, when the first household electrical appliance joins the local area network, acquiring the resource information in the first household electrical appliance and the IP address of the first household electrical appliance;
step S50, generating a data message according to the resource information and the IP address of the first household appliance;
step S60, broadcasting the data packet, so as to send the data packet to a second home appliance in the environment where the first home appliance is located.
When a first household appliance device joins a local area network, after a UDP data packet is broadcasted, a second household appliance device in the local area network can obtain resource information of the UDP data packet, when the resource information is resource information required by the second household appliance device, the resource information and a source IP address of UDP data, namely an IP address of the first household appliance device, can be stored, when the resource information is required to be obtained, the source IP address of the resource information can be obtained, and the source IP address is used as a destination address of a generated data message.
After a first terminal joins a local area network, a UDP broadcast message sent by other terminals can be received, and when the first household appliance receives a data message broadcasted by a third household appliance, resource information in the UDP is acquired; and when the resource information is the resource information required by the first household appliance, the resource information and the source address of the data message are stored in a correlated manner.
In the technical scheme disclosed by the embodiment, the second household appliance can be added into the local area network in a mode of broadcasting the UDP data packet, so that the second household appliance in the local area network can quickly acquire the resources of the first household appliance.
Further, referring to fig. 4, a fourth embodiment of the data transmission method for a home appliance device according to the present invention is provided based on the third embodiment, and in this embodiment, the step of broadcasting the data packet further includes:
step S70, acquiring a preset multicast port;
step S80, generating a resource request data message according to the multicast port, and multicasting the resource request data message;
step S90, when receiving a response packet of the second home appliance device in the local area network based on the resource request data packet, acquiring and storing the resource information in the response packet.
After the second household appliance equipment is added into the local area network, the resource request data message can be sent in a multicast mode to acquire resources owned by each second household appliance equipment in the local area network, and when the resources fed back by each household appliance equipment are acquired, the resource table in the first household appliance equipment can be updated.
It can be understood that multicast may also be performed when address information needs to be acquired, so as to acquire an updated IP address of each terminal in the local area network, which is not described herein with reference to the second embodiment.
In the technical scheme disclosed by the embodiment, the resource information of each household appliance in the local area network is acquired in a multicast mode, the data packet is prevented from being sent to other household appliances, and the accuracy of data transmission is improved.
Further, a fifth embodiment of the data transmission method for a home appliance device according to the present invention is provided based on any of the above embodiments, and in this embodiment, the step of encoding the resource information includes:
acquiring a coding mode of second household electrical appliance equipment corresponding to the resource information to be transmitted;
and coding the resource information according to the coding mode.
The resource information can be coded through a physical layer, the physical layer is provided with a corresponding bottom layer communication protocol such as at least one of Bluetooth, ZIGBEE and WIFI, the resource information is coded through the communication protocol of the physical layer, and the protocol set in the physical layer can be selected to obtain and select the corresponding protocol to code when the coding is carried out.
When each household appliance is added into the local area network, a supported communication protocol can be added into a UDP broadcast packet, when the first household appliance receives the UDP data packet, the corresponding protocol is obtained according to the UDP data packet, the protocol is sent to the UDP data packet, information of the third household appliance is related, such as an IP address, a plurality of protocol conversion gateways for converting the protocols can be arranged on a physical layer, and the intercommunication of a plurality of protocols is realized.
In the embodiment, multiple protocols are arranged on the bottom layer, so that information intercommunication among home appliances with different bottom layer protocols is realized.
Further, a sixth embodiment of the data transmission method for a home appliance device according to the present invention is provided based on any of the above embodiments, and in this embodiment, the step of packaging the encoded resource information into a data packet includes: packing the encoded resource information into UDP open system interconnection messages
The UDP protocol is a connectionless protocol, the household appliance does not need to maintain the connection with the household appliance, and the pressure on a CPU and a memory of the household appliance is small, so that the scheme of the invention has higher compatibility and wider application range; meanwhile, the UDP is adopted for data transmission, so that the pressure of a CPU and a memory of the household appliance is low, and the data processing efficiency is higher.
The resource information is put in the data area of the data message according to the format of the UDP protocol, then the type of the data is identified through the message header, and the data message is identified as unicast, multicast or broadcast through the target address.
In addition, the present invention further provides a data transmission device of an electrical household appliance, the data transmission device of the electrical household appliance includes: the data transmission method comprises a memory, a processor and a charging mode selection program which is stored on the memory and can be operated on the processor, wherein the charging mode selection program realizes the steps of the data transmission method of the electric household appliance when being executed by the processor.
Furthermore, the present invention also provides a computer-readable storage medium, comprising: memory, processor and data transmission program of household electrical appliance stored in the memory and capable of running on the processor, wherein the data transmission program of household electrical appliance realizes the steps of the data transmission method of household electrical appliance when executed by the processor
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A data transmission method of a home appliance is characterized by comprising the following steps:
acquiring resource information to be transmitted in first household electrical appliance equipment, and coding the resource information to realize information intercommunication among household electrical appliance equipment with different bottom layer protocols;
acquiring address information of second household electrical appliance equipment corresponding to the resource information;
and packaging the encoded resource information into a data message, and sending the data message to the second household appliance equipment corresponding to the address information so as to directly communicate with an opposite terminal in a data message mode.
2. The data transmission method for an electric home appliance according to claim 1, wherein the step of packaging the encoded resource information into a data packet comprises:
acquiring a Uniform Resource Identifier (URI) of the resource information;
and generating a data message according to the uniform resource identifier.
3. The data transmission method of a home appliance device according to claim 1, wherein the address information is an IP address.
4. The data transmission method of a home device as claimed in claim 1, wherein the data transmission method of the home device further comprises:
when the first household appliance equipment joins in a local area network, acquiring resource information in the first household appliance equipment and an IP address of the first household appliance equipment;
generating a data message according to the resource information and the IP address of the first household appliance;
and broadcasting the data message to send the data message to a second household appliance in the environment where the first household appliance is located.
5. The data transmission method of a home device according to claim 4, wherein after the step of broadcasting the data packet, the data transmission method of a home device further comprises:
acquiring a preset multicast port;
generating a resource request data message according to the multicast port, and multicasting the resource request data message;
and when receiving a response data packet of the second household appliance equipment in the local area network based on the resource request data message, acquiring and storing the resource information in the response data packet.
6. The data transmission method of a home device as claimed in claim 4, further comprising:
when the first household appliance receives a data message broadcasted by a third household appliance, acquiring resource information in the data message;
and when the resource information is the resource information required by the first household appliance, the resource information and the source address of the data message are stored in a correlated manner.
7. The data transmission method of the electric home appliance according to claim 6, wherein the step of encoding the resource information comprises:
acquiring a coding mode of second household electrical appliance equipment corresponding to the resource information to be transmitted;
and coding the resource information according to the coding mode.
8. The data transmission method for home appliances according to any one of claims 1 to 7, wherein the step of packaging the encoded resource information into a data packet comprises:
and packaging the encoded resource information into a UDP open system interconnection message.
9. A data transmission apparatus of a home appliance, the data transmission apparatus comprising: a memory, a processor and a data transmission program of a home device stored on the memory and operable on the processor, wherein the data transmission program of the home device, when executed by the processor, implements the steps of the data transmission method of the home device according to any one of claims 1 to 8.
10. A computer-readable storage medium, the computer-readable storage medium comprising: a memory, a processor and a data transmission program of a home device stored on the memory and operable on the processor, wherein the data transmission program of the home device, when executed by the processor, implements the steps of the data transmission method of the home device according to any one of claims 1 to 8.
CN201710937913.XA 2017-09-30 2017-09-30 Data transmission method and device for household appliance and computer readable storage medium Active CN107800597B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710937913.XA CN107800597B (en) 2017-09-30 2017-09-30 Data transmission method and device for household appliance and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710937913.XA CN107800597B (en) 2017-09-30 2017-09-30 Data transmission method and device for household appliance and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN107800597A CN107800597A (en) 2018-03-13
CN107800597B true CN107800597B (en) 2021-08-13

Family

ID=61533136

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710937913.XA Active CN107800597B (en) 2017-09-30 2017-09-30 Data transmission method and device for household appliance and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN107800597B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108737539A (en) * 2018-05-18 2018-11-02 济南浪潮高新科技投资发展有限公司 A method of it is serviced based on industry internet platform IOT Hub
CN108983627B (en) * 2018-07-27 2022-06-17 广东美的制冷设备有限公司 Household appliance and data sharing method and device thereof, and computer readable storage medium
CN111629018B (en) * 2019-02-28 2022-07-08 Oppo广东移动通信有限公司 Resource synchronization method, device, equipment and storage medium
CN110572440B (en) * 2019-08-16 2022-03-25 海尔优家智能科技(北京)有限公司 Method and device for data transmission, household appliance and storage medium
CN110493338B (en) * 2019-08-20 2022-09-13 深圳柚石物联技术有限公司 Equipment mutual control method, system and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1767474A (en) * 2004-10-27 2006-05-03 乐金电子(天津)电器有限公司 Household network system and its address setting method and associated electrical appliance equipment
CN103685467A (en) * 2013-11-15 2014-03-26 伏治军 Interconnection and internetworking platform of Internet of things, and communication method thereof
CN103997441A (en) * 2013-02-17 2014-08-20 海尔集团公司 Data sharing method, device and system and household equipment
CN104486762A (en) * 2014-12-22 2015-04-01 广东美的厨房电器制造有限公司 Access control method of intelligent home appliance and intelligent home appliance system
CN105843055A (en) * 2016-03-24 2016-08-10 苏州路之遥科技股份有限公司 Communication method of smart home system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7406214B2 (en) * 1999-05-19 2008-07-29 Digimarc Corporation Methods and devices employing optical sensors and/or steganography
KR101631435B1 (en) * 2014-09-05 2016-06-24 엘지전자 주식회사 Mobile terminal, home appliacne, and method for operaing the same

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1767474A (en) * 2004-10-27 2006-05-03 乐金电子(天津)电器有限公司 Household network system and its address setting method and associated electrical appliance equipment
CN103997441A (en) * 2013-02-17 2014-08-20 海尔集团公司 Data sharing method, device and system and household equipment
CN103685467A (en) * 2013-11-15 2014-03-26 伏治军 Interconnection and internetworking platform of Internet of things, and communication method thereof
CN104486762A (en) * 2014-12-22 2015-04-01 广东美的厨房电器制造有限公司 Access control method of intelligent home appliance and intelligent home appliance system
CN105843055A (en) * 2016-03-24 2016-08-10 苏州路之遥科技股份有限公司 Communication method of smart home system

Also Published As

Publication number Publication date
CN107800597A (en) 2018-03-13

Similar Documents

Publication Publication Date Title
CN107800597B (en) Data transmission method and device for household appliance and computer readable storage medium
CN107592367B (en) Resource sharing method and device for household appliances and computer readable storage medium
CN107566233B (en) Resource sharing method and device for household electrical appliance
US11240321B2 (en) Systems and methods for enabling access to third party services via a service layer
CN109391500B (en) Configuration management method, device and equipment
KR101806257B1 (en) Method and apparatus for implementing subscription notification
Jara et al. Glowbal IP: An adaptive and transparent IPv6 integration in the Internet of Things
KR101999039B1 (en) Device triggering
US8755404B2 (en) Facilitating communication between resource-constrained devices and wireless communication terminals
TWI712295B (en) Method, device and system for binding user terminal and equipment
WO2018165113A1 (en) Dynamic header compression for constrained networks
CN101262478A (en) Method and device for penetrating NAT
CN105814915B (en) Notice finger URL is switched to after a connection is established
KR20090016681A (en) A method for assigning address to the intelligent information household appliance and the sub-equipment in the household network
WO2017143743A1 (en) Heterogeneous protocol communication method and controller
KR102270909B1 (en) Multimedia sharing method, registration method, server and proxy server
CN101197724A (en) Long-range control system and method for information household electrical appliance in IGRS household network based on IPv6
CN107046537B (en) DNS-SD-based method for discovering AllJoyn service by OCF client
CN110365790B (en) Message transmission method and device, cascade networking equipment and readable storage medium
CN101465783B (en) Connection method, device and connection network bridge for isomery household network appliances
CN104168302A (en) Device control realizing method, device control realizing system and proxy gateway
CN104854930A (en) Method, control node, gateway and computer program for enabling communication with a newly detected device
CN108737347B (en) Data communication method, device and equipment
CN106452998B (en) Method and device for providing service
CN110661895A (en) Network address mapping method and network address mapping equipment of server

Legal Events

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