CN111865739A - Method and device for displaying state of household appliance - Google Patents

Method and device for displaying state of household appliance Download PDF

Info

Publication number
CN111865739A
CN111865739A CN202010754119.3A CN202010754119A CN111865739A CN 111865739 A CN111865739 A CN 111865739A CN 202010754119 A CN202010754119 A CN 202010754119A CN 111865739 A CN111865739 A CN 111865739A
Authority
CN
China
Prior art keywords
mobile terminal
household appliance
environment information
network environment
network
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010754119.3A
Other languages
Chinese (zh)
Other versions
CN111865739B (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.)
Qingdao Haier Technology Co Ltd
Original Assignee
Qingdao Haier Technology 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 Qingdao Haier Technology Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202010754119.3A priority Critical patent/CN111865739B/en
Publication of CN111865739A publication Critical patent/CN111865739A/en
Application granted granted Critical
Publication of CN111865739B publication Critical patent/CN111865739B/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
    • H04L12/2807Exchanging configuration information on appliance services in a home automation network
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y10/00Economic sectors
    • G16Y10/80Homes; Buildings
    • 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
    • H04L12/2812Exchanging configuration information on appliance services in a home automation network describing content present in a home automation network, e.g. audio video content
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Automation & Control Theory (AREA)
  • Business, Economics & Management (AREA)
  • Structural Engineering (AREA)
  • Civil Engineering (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Computing Systems (AREA)
  • Multimedia (AREA)
  • Architecture (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The application relates to the technical field of Internet of things and discloses a method for displaying states of household appliances. The method for displaying the state of the household appliance comprises the following steps: the mobile terminal sends first network environment information of a network where the mobile terminal is located to the server, the household appliance sends second network environment information of the network where the household appliance is located to the server, the server sends the first network environment information to the household appliance, the second network environment information is sent to the mobile terminal, the household appliance and the server jointly judge whether the mobile terminal and the household appliance are in the same local area network or not according to the first network environment information and the second network environment information, and the mobile terminal displays a household appliance state corresponding to the judgment result according to the judgment result. The method for displaying the state of the household appliance can provide personalized experience for users. The application also discloses a device for displaying the state of the household appliance.

Description

Method and device for displaying state of household appliance
Technical Field
The application relates to the technical field of internet of things, for example, to a method and a device for displaying states of household appliances.
Background
At present, a smart home system connects various smart home devices (such as audio devices, lighting systems, curtain control, air conditioning control, security systems, digital cinema systems, network home appliances and the like) in a home together through an internet of things technology, and provides multiple functions and means such as home appliance control, lighting control, telephone remote control, indoor and outdoor remote control, anti-theft alarm, environment monitoring, heating and ventilation control, infrared forwarding, programmable timing control and the like. Greatly enriches and improves the life quality and user experience of the user.
In the process of implementing the embodiments of the present disclosure, it is found that at least the following problems exist in the related art:
the existing intelligent home system only collects various home appliance states and sends the various home appliance states to a user, and personalized experience cannot be provided for the user.
Disclosure of Invention
The following presents a simplified summary in order to provide a basic understanding of some aspects of the disclosed embodiments. This summary is not an extensive overview nor is intended to identify key/critical elements or to delineate the scope of such embodiments but rather as a prelude to the more detailed description that is presented later.
The embodiment of the disclosure provides a method and a device for displaying states of household appliances, and aims to solve the technical problem that an existing smart home system cannot provide personalized experience for a user.
In some embodiments, a method for displaying a home appliance status is applied to a mobile terminal, the method for displaying a home appliance status comprising:
sending first network environment information of a network where the mobile terminal is located to a server;
receiving second network environment information of a network where the household electrical appliance is located, which is sent by the server;
judging whether the mobile terminal and the household appliance are in the same local area network or not according to the first network environment information and the second network environment information;
and receiving and displaying the state of the household appliance corresponding to the judgment result according to the judgment result.
Optionally, receiving and displaying the state of the home appliance corresponding to the determination result according to the determination result, including:
under the condition that the mobile terminal and the household appliance are in the same local area network, receiving a first household appliance state sent by the server, and displaying the first household appliance state; or receiving a first household appliance state sent by the household appliance equipment, and displaying the first household appliance state;
and under the condition that the mobile terminal and the household appliance are in different local area networks, receiving a second household appliance state sent by the server, and displaying the second household appliance state.
In some embodiments, a method for displaying a home appliance status is applied to a home appliance, the method for displaying a home appliance status comprising:
sending second network environment information of the network where the household appliance is located to a server;
receiving first network environment information of a network where the mobile terminal is located, which is sent by the server;
judging whether the household appliance and the mobile terminal are in the same local area network or not according to the first network environment information and the second network environment information;
and sending the state of the household appliance corresponding to the judgment result to the server or the mobile terminal according to the judgment result.
Optionally, sending the home appliance state corresponding to the determination result to the server or the mobile terminal according to the determination result, including:
under the condition that the household appliance equipment and the mobile terminal are in the same local area network, sending a first household appliance state to the server; or sending a first household appliance state to the mobile terminal;
and sending a second household appliance state to the server under the condition that the household appliance and the mobile terminal are in different local area networks.
In some embodiments, a method for displaying a home appliance status is applied to a server, the method for displaying a home appliance status comprising:
receiving first network environment information sent by a mobile terminal; the first network environment information is network environment information of a network where the mobile terminal is located;
receiving second network environment information sent by the household appliance equipment; the second network environment information is network environment information of a network where the household electrical appliance is located;
sending the first network environment information to the household appliance;
sending the second network environment information to the mobile terminal;
judging whether the mobile terminal and the household appliance are in the same local area network or not according to the first network environment information and the second network environment information;
and communicating with the mobile terminal and the household appliance according to the judgment result.
Optionally, communicating with the mobile terminal and the home appliance device according to the determination result, including:
under the condition that the mobile terminal and the household appliance are in the same local area network, receiving a first household appliance state sent by the household appliance, and sending the first household appliance state to the mobile terminal; alternatively, the first and second electrodes may be,
and under the condition that the mobile terminal and the household appliance are in different local area networks, receiving a second household appliance state sent by the household appliance, and sending the second household appliance state to the mobile terminal.
Optionally, determining whether the mobile terminal and the home appliance device are in the same local area network according to the first network environment information and the second network environment information, includes:
performing an and operation on the Internet Protocol (IP) address of the mobile terminal and a subnet mask corresponding to the IP address to obtain a first network identifier; the first network environment information comprises the IP address of the mobile terminal and a subnet mask corresponding to the IP address;
performing AND operation on the IP address of the household appliance and the subnet mask corresponding to the IP address to obtain a second network identifier; the second network environment information comprises the IP address of the household appliance and a subnet mask corresponding to the IP address;
under the condition that the first network identifier is the same as the second network identifier, the mobile terminal and the household appliance are in the same local area network; under the condition that the first network identifier is different from the second network identifier, the mobile terminal and the household appliance are in different local area networks;
alternatively, the first and second electrodes may be,
judging whether a Media access control Address (MAC Address) of a local area network router where the mobile terminal is located is the same as an MAC Address of a local area network router where the household appliance device is located: if so, the mobile terminal and the household appliance are in the same local area network, otherwise, the mobile terminal and the household appliance are in different local area networks;
the first network environment information comprises an MAC address of a local area network router where the mobile terminal is located, and the second network environment information comprises the MAC address of the local area network router of the household appliance device.
In some embodiments, the apparatus for displaying a home appliance status is applied to a mobile terminal, and the apparatus for displaying a home appliance status includes:
the mobile terminal comprises a first sending module, a second sending module and a control module, wherein the first sending module is configured to send first network environment information of a network where the mobile terminal is located to a server;
the first receiving module is configured to receive second network environment information of a network where the home appliance is located, which is sent by the server;
the first judging module is configured to judge whether the mobile terminal and the household appliance are in the same local area network or not according to the first network environment information and the second network environment information;
and the execution module is configured to receive and display the household appliance state corresponding to the judgment result according to the judgment result.
In some embodiments, the apparatus for displaying a home appliance status is applied to a home appliance, and the apparatus for displaying a home appliance status includes:
the second sending module is configured to send second network environment information of a network where the household appliance is located to the server;
the second receiving module is configured to receive the first network environment information of the network where the mobile terminal is located, which is sent by the server;
the second judging module is configured to judge whether the household appliance and the mobile terminal are in the same local area network or not according to the first network environment information and the second network environment information;
and the third sending module is configured to send the household appliance state corresponding to the judgment result to the server or the mobile terminal according to the judgment result.
In some embodiments, the apparatus for displaying a home appliance status is applied to a server, and the apparatus for displaying a home appliance status includes:
the third receiving module is configured to receive the first network environment information sent by the mobile terminal; the first network environment information is network environment information of a network where the mobile terminal is located;
the fourth receiving module is configured to receive the second network environment information sent by the household appliance device; the second network environment information is network environment information of a network where the household electrical appliance is located;
the third judging module is configured to judge whether the mobile terminal and the household appliance are in the same local area network or not according to the first network environment information and the second network environment information;
and the transceiving module is configured to communicate with the mobile terminal and the household appliance according to the judgment result.
The method and the device for displaying the state of the household appliance provided by the embodiment of the disclosure can realize the following technical effects:
positioning the mobile terminal and the household appliance, and indicating that the user is in a 'home' state under the condition that the mobile terminal and the household appliance are in the same local area network; under the condition that the mobile terminal and the household appliance are in different local area networks, the situation that the user is in the 'out' state is shown, and the specific household appliance state is displayed for the user at the mobile terminal according to the 'at home' state or the 'out' state of the user, so that personalized experience is provided for the user.
The foregoing general description and the following description are exemplary and explanatory only and are not restrictive of the application.
Drawings
One or more embodiments are illustrated in drawings corresponding to, and not limiting to, embodiments in which elements having the same reference number designation are illustrated as similar elements and in which:
fig. 1 is an environment diagram of an implementation environment of a method for displaying a state of a home appliance according to an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of a method for displaying a status of a home appliance according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of a method for displaying a status of a home appliance according to an embodiment of the present disclosure;
FIG. 4 is a schematic diagram of a method for displaying a status of a home appliance according to an embodiment of the present disclosure;
FIG. 5 is a schematic diagram of a method for displaying a status of a home appliance according to an embodiment of the present disclosure;
FIG. 6 is a schematic diagram of a method for displaying a status of a home appliance according to an embodiment of the present disclosure;
FIG. 7 is a schematic diagram of a method for displaying a status of a home appliance according to an embodiment of the present disclosure;
FIG. 8 is a schematic diagram of an apparatus for displaying a status of a home appliance according to an embodiment of the present disclosure;
FIG. 9 is a schematic diagram of an apparatus for displaying a status of a home appliance according to an embodiment of the present disclosure;
FIG. 10 is a schematic diagram of an apparatus for displaying a status of a home appliance according to an embodiment of the present disclosure;
fig. 11 is a schematic diagram of an apparatus for displaying a status of a home appliance according to an embodiment of the present disclosure.
Detailed Description
So that the manner in which the features and elements of the disclosed embodiments can be understood in detail, a more particular description of the disclosed embodiments, briefly summarized above, may be had by reference to the embodiments, some of which are illustrated in the appended drawings. In the following description of the technology, for purposes of explanation, numerous details are set forth in order to provide a thorough understanding of the disclosed embodiments. However, one or more embodiments may be practiced without these details. In other instances, well-known structures and devices may be shown in simplified form in order to simplify the drawing.
The terms "first," "second," and the like in the description and in the claims, and the above-described drawings of embodiments of the present disclosure, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the present disclosure described herein may be made. Furthermore, the terms "comprising" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions.
The term "plurality" means two or more unless otherwise specified.
In the embodiment of the present disclosure, the character "/" indicates that the preceding and following objects are in an or relationship. For example, A/B represents: a or B.
The term "and/or" is an associative relationship that describes objects, meaning that three relationships may exist. For example, a and/or B, represents: a or B, or A and B.
Referring to fig. 1, an environment diagram of an implementation environment of a method for displaying a home appliance status is provided in an embodiment of the present disclosure. The implementation environment diagram includes the mobile terminal 110, the home device 120, and the server 130.
The mobile terminal 110 may be a terminal device such as a smart phone, a tablet Computer, an Ultra-mobile Personal Computer (UMPC), a netbook, a Personal Digital Assistant (PDA), and the like, but is not limited thereto.
The home appliance 120 refers to an intelligent home appliance having a networking function, and includes an intelligent air conditioner, an intelligent refrigerator, an intelligent washing machine, an intelligent water heater, an intelligent range hood, an intelligent gas cooker, an intelligent sound box, an intelligent curtain, a security system, an intelligent lighting system, a digital cinema system, an environment monitoring system, and the like, but is not limited thereto. The number of home devices 120 may be one or more.
The server 130 may be a machine, a server cluster composed of several servers, or a cloud computing center.
Referring to fig. 2, an embodiment of the present disclosure provides a method for displaying a status of a home appliance. The present embodiment is exemplified in that the method for displaying the home appliance status is applied to the mobile terminal shown in fig. 1. The method for displaying the state of the household appliance comprises the following steps:
s201, sending first network environment information of a network where the mobile terminal is located to a server.
The first network environment information comprises a mobile terminal IP address and a subnet mask corresponding to the mobile terminal IP address; or, the first network environment information includes a MAC address of a local area network router where the mobile terminal is located.
In some practical applications, the mobile terminal further sends terminal information of the mobile terminal to the server, wherein the terminal information includes a category, a brand or a model of the mobile terminal. For example, the category of the mobile terminal may be a handset, a PAD, or an APP name installed on the terminal, etc.
The first network environment information is used for the server to judge whether the mobile terminal and the household appliance are in the same local area network. And after receiving the first network environment information sent by the mobile terminal and the second network environment information sent by the household appliance equipment, the server judges whether the household appliance equipment and the mobile terminal are in the same local area network or not according to the first network environment information and the second network environment information.
The first network environment information is also used for the household appliance to judge whether the mobile terminal and the household appliance are in the same local area network. And the household appliance judges whether the mobile terminal and the household appliance are in the same local area network or not according to the first network environment information and the second network environment information. And the second network environment information is the network environment information of the network where the household electrical appliance is located.
And S202, receiving second network environment information of the network where the household appliance is located, which is sent by the server.
The second network environment information comprises an IP address of the household appliance and a subnet mask corresponding to the IP address; or, the second network environment information includes a MAC address of a local area network router where the home device is located.
The second network environment information corresponds to the first network environment information: under the condition that the first network environment information comprises the mobile terminal and a subnet mask corresponding to the mobile terminal, the second network environment information comprises an IP address of the household appliance and a subnet mask corresponding to the IP address; and under the condition that the first network environment information comprises the MAC address of the local area network router where the mobile terminal is located, the second network environment information comprises the MAC address of the local area network router where the household appliance is located.
S203, judging whether the mobile terminal and the household appliance are in the same local area network or not according to the first network environment information and the second network environment information.
Under the condition that the first network environment information comprises the mobile terminal and a subnet mask corresponding to the mobile terminal, and the second network environment information comprises the household appliance IP address and a subnet mask corresponding to the household appliance IP address, the mobile terminal IP address and the subnet mask corresponding to the mobile terminal IP address are subjected to AND operation to obtain a first network identifier, the household appliance IP address and the subnet mask corresponding to the household appliance IP address are subjected to AND operation to obtain a second network identifier, and under the condition that the first network identifier is the same as the second network identifier, the mobile terminal and the household appliance are in the same local area network; and under the condition that the first network identifier is different from the second network identifier, the mobile terminal and the household appliance are in different local area networks.
Under the condition that the first network environment information comprises the MAC address of the local area network router where the mobile terminal is located and the second network environment information comprises the MAC address of the local area network router where the household appliance is located, judging whether the MAC address of the local area network router where the mobile terminal is located is the same as the MAC address of the local area network router where the household appliance is located: if so, the mobile terminal and the household appliance are in the same local area network, otherwise, the mobile terminal and the household appliance are in different local area networks.
By the method, whether the mobile terminal and the household appliance are in the same local area network can be judged.
The mobile terminal judges whether the mobile terminal and the household appliance are in the same local area network or not according to the first network environment information and the second network environment information, and obtains a judgment result, so that the mobile terminal can be conveniently and actively communicated with a server or the household appliance. For example, when the mobile terminal and the home appliance are in the same local area network, the mobile terminal disconnects from the server and establishes a communication connection with the home appliance. In the process of establishing connection between the mobile terminal and the household appliance, a server is not needed, and the active communication capacity of the mobile terminal is improved.
The second network environment information is also used for establishing connection between the mobile terminal and the household appliance equipment, when the mobile terminal needs to establish connection with the household appliance equipment, the mobile terminal establishes connection with the household appliance equipment according to the second network environment information, meanwhile, the first network environment information is also used for verifying the mobile terminal by the household appliance equipment, whether the network environment information of the mobile equipment which requests to establish connection is consistent with the first network environment information or not is compared by the household appliance equipment, and under the condition that the network environment information of the mobile equipment which requests to establish connection is consistent with the first network environment information, the household appliance equipment agrees with the connection request of the mobile terminal, and the mobile terminal and the.
Or the first network environment information is also used for establishing connection between the household appliance and the mobile terminal, when the household appliance needs to establish connection with the mobile terminal, the household appliance establishes connection with the mobile terminal according to the first network environment information, meanwhile, the second network environment information is also used for verifying the household appliance by the mobile terminal, the mobile terminal compares whether the network environment information of the household appliance requesting to establish connection is consistent with the second network environment information, under the condition that the network environment information is consistent with the second network environment information, the mobile terminal agrees with the connection request of the household appliance, and the household appliance and the mobile terminal successfully establish communication connection.
The first network environment information and the second network environment information are also used for the server to judge whether the mobile terminal and the household appliance are in the same local area network. The server judges whether the mobile terminal and the household appliance are in the same local area network or not according to the first network environment information and the second network environment information, and obtains a judgment result, so that the server can be conveniently and actively communicated with the mobile terminal or the household appliance. For example, when the mobile terminal and the home appliance are in the same local area network, the server is disconnected from the mobile terminal, the server is disconnected from the home appliance, and the mobile terminal and the home appliance directly establish connection and communication.
The first network environment information and the second network environment information are also used for the household appliance to judge whether the mobile terminal and the household appliance are in the same local area network or not, and the household appliance judges whether the mobile terminal and the household appliance are in the same local area network or not according to the first network environment information and the second network environment information to obtain a judgment result, so that the household appliance can be conveniently and actively communicated with the server or the mobile terminal. For example, when the mobile terminal and the home appliance are in the same local area network, the home appliance disconnects from the server and establishes a connection with the mobile terminal. In the process of establishing connection between the household appliance and the mobile terminal, the participation of a server is not needed, and the active communication capacity of the household appliance is improved.
The mobile terminal, the server and the household appliance all independently judge whether the mobile terminal and the household appliance are in the same local area network, the mobile terminal, the server and the household appliance can independently obtain judgment results and independently execute related actions according to the judgment results, and when the household appliance state is transmitted, the server can not be completely relied on, for example, the mobile terminal and the household appliance in the same local area network are directly connected and communicated, the network load of the server can be reduced, and the risk of network congestion is reduced.
And S204, receiving and displaying the state of the household appliance corresponding to the judgment result according to the judgment result.
After judging whether the household appliance and the mobile terminal are in the same local area network, the following judgment results can be obtained: the mobile terminal and the household appliance are in the same local area network, or the mobile terminal and the household appliance are in different local area networks.
Under the condition that the mobile terminal and the household appliance are in the same local area network, the household appliance sends a first household appliance state to the server, the server receives the first household appliance state sent by the household appliance and then sends the first household appliance state to the mobile terminal, the mobile terminal receives the first household appliance state sent by the server, and the mobile terminal displays the first household appliance state.
Or the household appliance device sends the first household appliance state to the mobile terminal, the mobile terminal receives the first household appliance state sent by the household appliance device, and the mobile terminal displays the first household appliance state.
And under the condition that the mobile terminal and the household appliance are in different local area networks, the household appliance sends a second household appliance state to the server, the server receives the second household appliance state sent by the household appliance and then sends the second household appliance state to the mobile terminal, the mobile terminal receives the second household appliance state sent by the server, and the mobile terminal displays the second household appliance state.
In the disclosed embodiment, the first home device state is a state related to the use of the home device. The first home state includes a real-time operation parameter of the home device or an ecological service of the home device. The ecological services of the household electrical appliance comprise household electrical appliance maintenance service, household electrical appliance cleaning service, air detection service, water quality detection service and the like of the household electrical appliance; the real-time operation parameters of the household appliance comprise: the running parameters of the intelligent refrigerator, the running parameters of the intelligent air conditioner, the running parameters of the intelligent water heater and the like.
In some application scenarios, a plurality of users form a community through a service platform, and under the condition that the mobile terminal and the household electrical appliance are in the same local area network, the server also sends community interaction information to the mobile terminal, and the mobile terminal receives and displays the community interaction information.
The second home state is a home state related to security, including a home security state or a security state of the home device. The household safety state comprises anti-theft safety or indoor environment safety, and the indoor environment safety comprises whether gas leaks and whether fire occurs or not. The safety state of the household appliance comprises whether the household appliance is safe to use electricity or whether the household appliance fails; whether the household appliance is safe to use includes whether the input voltage of the household appliance is higher or lower and whether the input current of the household appliance is overlarge.
Under the condition that the mobile terminal and the household appliance are in the same local area network, determining that a user is in a 'home' state, and receiving and displaying a first household appliance state by the mobile terminal; and under the condition that the mobile terminal and the household appliance are in different local area networks, determining that the user is in an 'out' state, and receiving and displaying the second household appliance state by the mobile terminal.
Positioning the mobile terminal and the household appliance, and indicating that the user is in a 'home' state under the condition that the mobile terminal and the household appliance are in the same local area network; under the condition that the mobile terminal and the household appliance are in different local area networks, the situation that the user is in the 'out' state is shown, and the specific household appliance state is displayed for the user at the mobile terminal according to the 'at home' state or the 'out' state of the user, so that personalized experience is provided for the user.
Referring to fig. 3, an embodiment of the present disclosure provides a method for displaying a state of a home appliance. The present embodiment exemplifies that the method for displaying the home appliance status is applied to the home appliance shown in fig. 1. The method for displaying the state of the home appliance includes:
and S301, sending second network environment information of the network where the household appliance is located to the server.
The second network environment information comprises an IP address of the household appliance and a subnet mask corresponding to the IP address; or, the second network environment information includes a MAC address of a local area network router where the home device is located.
The second network environment information is used for the server to judge whether the mobile terminal and the household appliance are in the same local area network. And the server receives second network environment information sent by the household appliance equipment and first network environment information sent by the mobile terminal, and judges whether the mobile terminal and the household appliance equipment are in the same local area network or not according to the first network environment information and the second network environment information.
The second network environment information is also used for the mobile terminal to judge whether the mobile terminal and the household appliance are in the same local area network. And after receiving the second network environment information sent by the household appliance equipment, the server sends the second network environment information to the mobile terminal, and the mobile terminal judges whether the mobile terminal and the household appliance equipment are in the same local area network or not according to the first network environment information and the second network environment information. The first network environment information is network environment information of a network where the mobile terminal is located.
S302, first network environment information of a network where the mobile terminal is located, which is sent by the server, is received.
The first network environment information comprises a mobile terminal IP address and a subnet mask corresponding to the mobile terminal IP address; or, the first network environment information includes a MAC address of a local area network router where the mobile terminal is located.
The first network environment information and the second network environment information correspond to each other: under the condition that the second network environment information comprises the IP address of the household appliance and the subnet mask corresponding to the IP address, the first network environment information comprises the IP address of the mobile terminal and the subnet mask corresponding to the IP address of the mobile terminal; and under the condition that the second network environment comprises the MAC address of the local area network router where the household electrical appliance is located, the first network environment information comprises the MAC address of the local area network router where the mobile terminal is located.
And S303, judging whether the household appliance and the mobile terminal are in the same local area network or not according to the first network environment information and the second network environment information.
Under the condition that the second network environment information comprises the IP address of the household appliance and a subnet mask corresponding to the IP address, and the first network environment information comprises the mobile terminal and a subnet mask corresponding to the mobile terminal, the IP address of the mobile terminal and the subnet mask corresponding to the IP address are subjected to AND operation to obtain a first network identifier, the IP address of the household appliance and the subnet mask corresponding to the IP address of the household appliance are subjected to AND operation to obtain a second network identifier, and under the condition that the first network identifier and the second network identifier are the same, the mobile terminal and the household appliance are in the same local area network; and under the condition that the first network identifier is different from the second network identifier, the mobile terminal and the household appliance are in different local area networks.
And under the condition that the second network environment information comprises the MAC address of the local area network router where the household appliance is located and the first network environment information comprises the MAC address of the local area network router where the mobile terminal is located, judging whether the MAC address of the local area network router where the mobile terminal is located is the same as the MAC address of the local area network router where the household appliance is located: if so, the mobile terminal and the household appliance are in the same local area network, otherwise, the mobile terminal and the household appliance are in different local area networks.
By the method, whether the mobile terminal and the household appliance are in the same local area network can be judged.
The household appliance judges whether the mobile terminal and the household appliance are in the same local area network or not according to the first network environment information and the second network environment information, and obtains a judgment result, so that the household appliance can actively communicate with the server or the mobile terminal. For example, when the mobile terminal and the home appliance are in the same local area network, the home appliance disconnects from the server and establishes a connection with the mobile terminal. In the process of establishing connection between the household appliance and the mobile terminal, the participation of a server is not needed, and the active communication capacity of the household appliance is improved.
The first network environment information is also used for establishing connection between the household appliance and the mobile terminal, when the household appliance needs to establish connection with the mobile terminal, the household appliance establishes connection with the mobile terminal according to the first network environment information, meanwhile, the second network environment information is also used for verifying the household appliance by the mobile terminal, the mobile terminal compares whether the network environment information of the household appliance requesting to establish connection is consistent with the second network environment information, under the condition that the network environment information is consistent with the second network environment information, the mobile terminal agrees with the connection request of the household appliance, and the household appliance and the mobile terminal successfully establish communication connection.
Or the second network environment information is also used for establishing connection between the mobile terminal and the household appliance equipment, when the mobile terminal needs to establish connection with the household appliance equipment, the mobile terminal establishes connection with the household appliance equipment according to the second network environment information, meanwhile, the first network environment information is also used for verifying the mobile terminal by the household appliance equipment, whether the network environment information of the mobile equipment requesting to establish connection is consistent with the first network environment information is compared by the household appliance equipment, and under the condition that the network environment information of the mobile equipment requesting to establish connection is consistent with the first network environment information, the household appliance equipment agrees with the connection request of the mobile terminal, and the mobile terminal and the household appliance equipment successfully establish.
The first network environment information and the second network environment information are also used for the server to judge whether the mobile terminal and the household appliance are in the same local area network. The server judges whether the mobile terminal and the household appliance are in the same local area network or not according to the first network environment information and the second network environment information, and obtains a judgment result, so that the server can be conveniently and actively communicated with the mobile terminal or the household appliance. For example, when the mobile terminal and the home appliance are in the same local area network, the server is disconnected from the mobile terminal, the server is disconnected from the home appliance, and the mobile terminal and the home appliance directly establish connection and communication.
The first network environment information and the second network environment information are also used for the mobile terminal to judge whether the mobile terminal and the household appliance are in the same local area network. The mobile terminal judges whether the mobile terminal and the household appliance are in the same local area network or not according to the first network environment information and the second network environment information, and obtains a judgment result, so that the mobile terminal can be conveniently and actively communicated with a server or the household appliance. For example, when the mobile terminal and the home appliance are in the same local area network, the mobile terminal disconnects from the server and establishes a communication connection with the home appliance. In the process of establishing connection between the mobile terminal and the household appliance, a server is not needed, and the active communication capacity of the mobile terminal is improved.
The household appliance equipment, the server and the mobile terminal can independently judge whether the mobile terminal and the household appliance equipment are in the same local area network or not, the three can independently obtain a judgment result and independently execute related actions according to the judgment result, and when the household appliance state is transmitted, the server can not be completely relied on, for example, the mobile terminal and the household appliance equipment in the same local area network are directly connected and communicated, so that the network load of the server can be reduced, and the risk of network congestion is reduced.
And S304, sending the household appliance state corresponding to the judgment result to the server or the mobile terminal according to the judgment result.
After judging whether the household appliance and the mobile terminal are in the same local area network, the following judgment results can be obtained: the mobile terminal and the household appliance are in the same local area network, or the mobile terminal and the household appliance are in different local area networks.
Under the condition that the household appliance and the mobile terminal are in the same local area network, the household appliance sends a first household appliance state to the server, the server receives the first household appliance state and then sends the first household appliance state to the mobile terminal, and the mobile terminal receives and displays the first household appliance state.
Or the server sends the first household appliance state to the mobile terminal, and the mobile terminal receives and displays the first household appliance state.
And under the condition that the household appliance and the mobile terminal are in different local area networks, the household appliance sends a second household appliance state to the server, the server receives the second household appliance state and then sends the second household appliance state to the mobile terminal, and the mobile terminal receives and displays the second household appliance state.
Under the condition that the household appliance and the mobile terminal are in the same local area network, determining that a user is in a 'home' state, and sending a first household appliance state to a server or the mobile terminal by the household appliance; and under the condition that the household appliance and the mobile terminal are in different local area networks, determining that the user is in an 'out' state, and sending a second household appliance state to the server by the household appliance.
Positioning the mobile terminal and the household appliance, and indicating that the user is in a 'home' state under the condition that the mobile terminal and the household appliance are in the same local area network; under the condition that the mobile terminal and the household appliance are in different local area networks, the situation that the user is in the 'out' state is shown, and the specific household appliance state is displayed for the user at the mobile terminal according to the 'at home' state or the 'out' state of the user, so that personalized experience is provided for the user.
Referring to fig. 4, an embodiment of the present disclosure discloses a method for displaying a state of a home appliance. The present embodiment is exemplified by applying the method for displaying the home appliance status to the server shown in fig. 1. The method for displaying the state of the home appliance includes:
s401, receiving first network environment information sent by a mobile terminal; the first network environment information is network environment information of a network where the mobile terminal is located.
The first network environment information comprises a mobile terminal IP address and a subnet mask corresponding to the mobile terminal IP address; or, the first network environment information includes a MAC address of a local area network router where the mobile terminal is located.
In some practical applications, the mobile terminal further sends terminal information of the mobile terminal to the server, wherein the terminal information includes a terminal category, a brand or a model.
S402, receiving second network environment information sent by the household appliance; and the second network environment information is the network environment information of the network where the household electrical appliance is located.
The second network environment information comprises an IP address of the household appliance and a subnet mask corresponding to the IP address; or, the second network environment information includes a MAC address of a local area network router where the home device is located.
The second network environment information corresponds to the first network environment information: under the condition that the first network environment information comprises the IP address of the mobile terminal and the subnet mask corresponding to the IP address, the second network environment information comprises the IP address of the mobile terminal and the subnet mask corresponding to the IP address of the mobile terminal; and under the condition that the first network environment information comprises the MAC address of the local area network router where the mobile terminal is located, the second network environment information comprises the MAC address of the local area network router where the household appliance is located.
The two steps of receiving the first network environment information sent by the mobile terminal and receiving the second network environment information sent by the household appliance by the server are not in sequence: the server receives first network environment information sent by the mobile terminal, and then receives second network environment information sent by the household appliance equipment; or the server receives the second network environment information sent by the household appliance firstly and then receives the first network environment information sent by the mobile terminal.
And S403, sending the first network environment information to the household appliance.
S404, sending the second network environment information to the mobile terminal.
The two steps of sending the first network environment information to the household appliance equipment and sending the second network environment information to the mobile terminal by the server are not in sequence: the server firstly sends first network environment information to the household appliance equipment and then sends second network environment information to the mobile terminal; or the server firstly sends the second network environment information to the mobile terminal and then sends the first network environment information to the household appliance.
The server receives first network environment information sent by the mobile terminal, and then sends the first network environment information to the household appliance; the server receives the second network environment information sent by the household appliance equipment, and then sends the second network environment information to the mobile terminal.
S405, judging whether the mobile terminal and the household appliance are in the same local area network or not according to the first network environment information and the second network environment information.
Under the condition that the first network environment information comprises the mobile terminal and a subnet mask corresponding to the mobile terminal, and the second network environment information comprises the household appliance IP address and a subnet mask corresponding to the household appliance IP address, the mobile terminal IP address and the subnet mask corresponding to the mobile terminal IP address are subjected to AND operation to obtain a first network identifier, the household appliance IP address and the subnet mask corresponding to the household appliance IP address are subjected to AND operation to obtain a second network identifier, and under the condition that the first network identifier is the same as the second network identifier, the mobile terminal and the household appliance are in the same local area network; and under the condition that the first network identifier is different from the second network identifier, the mobile terminal and the household appliance are in different local area networks.
Under the condition that the first network environment information comprises the MAC address of the local area network router where the mobile terminal is located and the second network environment information comprises the MAC address of the local area network router where the household appliance is located, judging whether the MAC address of the local area network router where the mobile terminal is located is the same as the MAC address of the local area network router where the household appliance is located: if so, the mobile terminal and the household appliance are in the same local area network, otherwise, the mobile terminal and the household appliance are in different local area networks.
By the method, whether the mobile terminal and the household appliance are in the same local area network can be judged.
The server judges whether the mobile terminal and the household appliance are in the same local area network or not according to the first network environment information and the second network environment information, and obtains a judgment result, so that the server can be conveniently and actively communicated with the mobile terminal or the household appliance. For example, when the mobile terminal and the home appliance are in the same local area network, the server is disconnected from the mobile terminal, the server is disconnected from the home appliance, and the mobile terminal and the home appliance directly establish connection and communication.
The first network environment information and the second network environment information are also used for judging whether the household electrical appliance equipment and the mobile terminal are in the same local area network by the mobile terminal, and the mobile terminal judges whether the mobile terminal and the household electrical appliance equipment are in the same local area network according to the first network environment information and the second network environment information to obtain a judgment result, so that the mobile terminal can actively communicate with a server or the household electrical appliance equipment. For example, when the mobile terminal and the home appliance are in the same local area network, the mobile terminal disconnects from the server and establishes a communication connection with the home appliance. In the process of establishing connection between the mobile terminal and the household appliance, a server is not needed, and the active communication capacity of the mobile terminal is improved.
The first network environment information and the second network environment information are also used for the household appliance to judge whether the mobile terminal and the household appliance are in the same local area network or not, and the household appliance judges whether the mobile terminal and the household appliance are in the same local area network or not according to the first network environment information and the second network environment information to obtain a judgment result, so that the household appliance can be conveniently and actively communicated with the server or the mobile terminal. For example, when the mobile terminal and the home appliance are in the same local area network, the home appliance disconnects from the server and establishes a connection with the mobile terminal. In the process of establishing connection between the household appliance and the mobile terminal, the participation of a server is not needed, and the active communication capacity of the household appliance is improved.
The server, the mobile terminal and the household appliance all independently judge whether the mobile terminal and the household appliance are in the same local area network, the server, the mobile terminal and the household appliance can independently obtain judgment results and independently execute related actions according to the judgment results, and when the household appliance state is transmitted, the server can not be completely relied on, for example, the mobile terminal and the household appliance in the same local area network are directly connected and communicated, the network load of the server can be reduced, and the risk of network congestion is reduced.
The second network environment information is also used for establishing connection between the mobile terminal and the household appliance equipment, when the mobile terminal needs to establish connection with the household appliance equipment, the mobile terminal establishes connection with the household appliance equipment according to the second network environment information, meanwhile, the first network environment information is also used for verifying the mobile terminal by the household appliance equipment, whether the network environment information of the mobile equipment which requests to establish connection is consistent with the first network environment information or not is compared by the household appliance equipment, and under the condition that the network environment information of the mobile equipment which requests to establish connection is consistent with the first network environment information, the household appliance equipment agrees with the connection request of the mobile terminal, and the mobile terminal and the.
Or the first network environment information is also used for establishing connection between the household appliance and the mobile terminal, when the household appliance needs to establish connection with the mobile terminal, the household appliance establishes connection with the mobile terminal according to the first network environment information, meanwhile, the second network environment information is also used for verifying the household appliance by the mobile terminal, the mobile terminal compares whether the network environment information of the household appliance requesting to establish connection is consistent with the second network environment information, under the condition that the network environment information is consistent with the second network environment information, the mobile terminal agrees with the connection request of the household appliance, and the household appliance and the mobile terminal successfully establish communication connection.
And S405, communicating with the mobile terminal and the household appliance according to the judgment result.
After judging whether the household appliance and the mobile terminal are in the same local area network, the following judgment results can be obtained: the mobile terminal and the household appliance are in the same local area network, or the mobile terminal and the household appliance are in different local area networks.
Under the condition that the mobile terminal and the household appliance are in the same local area network, the household appliance sends a first household appliance state to the server, the server receives the first household appliance state sent by the household appliance, the server sends the first household appliance state to the mobile terminal, and the mobile terminal receives and displays the first household appliance state.
And under the condition that the mobile terminal and the household appliance are in different local area networks, the household appliance sends a second household appliance state to the server, the server receives the second household appliance state sent by the household appliance, the server sends the second household appliance state to the mobile terminal, and the mobile terminal receives and displays the second household appliance state.
Under the condition that the mobile terminal and the household appliance are in the same local area network, the user is determined to be in a 'home' state, the server receives a first household appliance state sent by the household appliance, and sends the first household appliance state to the mobile terminal; and under the condition that the mobile terminal and the household appliance are in different local area networks, determining that the user is in an 'out' state, receiving a second household appliance state sent by the household appliance by the server, and sending the second household appliance state to the mobile terminal.
Positioning the mobile terminal and the household appliance, and indicating that the user is in a 'home' state under the condition that the mobile terminal and the household appliance are in the same local area network; under the condition that the mobile terminal and the household appliance are in different local area networks, the situation that the user is in the 'out' state is shown, and the specific household appliance state is displayed for the user at the mobile terminal according to the 'at home' state or the 'out' state of the user, so that personalized experience is provided for the user.
Referring to fig. 5, an embodiment of the present disclosure provides a method for displaying a state of a home appliance. The present embodiment exemplifies a method for displaying a home appliance state in terms of information interaction among a mobile terminal, a home appliance, and a server. The method for displaying the state of the home appliance includes:
s501, the mobile terminal sends first network environment information of a network where the mobile terminal is located to a server;
s502, the household appliance sends second network environment information of a network where the household appliance is located to a server;
the two steps of the mobile terminal sending the first network environment information to the server and the household appliance sending the second network environment information to the server are not in sequence: the mobile terminal firstly sends first network environment information to the server, and the household appliance equipment then sends second network environment information to the server; or, the household appliance sends the second network environment information to the server, and the mobile terminal sends the first network environment information to the server.
S503, the server sends second network environment information to the mobile terminal;
the two steps of the mobile terminal sending the first network environment information to the server and the server sending the second network environment information to the mobile terminal are not in sequence: before the mobile terminal sends the first network environment information to the server, the server sends second network environment information to the mobile terminal; or after the mobile terminal sends the first network environment information to the server, the server sends the second network environment information to the mobile terminal.
S504, the server sends first network environment information to the household appliance;
the two steps of sending the second network environment information to the server by the household appliance and sending the first network environment information to the household appliance by the server are not in sequence: before the household appliance sends the second network environment information to the server, the server sends the first network environment information to the household appliance; or after the home appliance device sends the second network environment information to the server, the server sends the first network environment information to the home appliance device.
S505, under the condition that the mobile terminal and the household appliance are in the same local area network, the household appliance sends a first household appliance state to a server;
the mobile terminal judges whether the mobile terminal and the household appliance are in the same local area network or not according to the first network environment information and the second network environment information, the household appliance judges whether the mobile terminal and the household appliance are in the same local area network or not according to the first network environment information and the second network environment information, and the server judges whether the mobile terminal and the household appliance are in the same local area network or not according to the first network environment information and the second network environment information.
S506, the server sends the first household appliance state to the mobile terminal;
and S507, the mobile terminal displays the state of the first household appliance.
Referring to fig. 6, an embodiment of the present disclosure provides a method for displaying a state of a home appliance. The present embodiment exemplifies a method for displaying a home appliance state in terms of information interaction among a mobile terminal, a home appliance, and a server. The method for displaying the state of the home appliance includes:
s601, the mobile terminal sends first network environment information of a network where the mobile terminal is located to a server;
s602, the household appliance sends second network environment information of a network where the household appliance is located to a server;
s603, the server sends second network environment information to the mobile terminal;
s604, the server sends first network environment information to the household appliance;
s605, under the condition that the mobile terminal and the household appliance are in the same local area network, the household appliance sends a first household appliance state to the mobile terminal;
and S606, displaying the state of the first household appliance by the mobile terminal.
Referring to fig. 7, an embodiment of the present disclosure provides a method for displaying a state of a home appliance. The present embodiment exemplifies a method for displaying a home appliance state in terms of information interaction among a mobile terminal, a home appliance, and a server. The method for displaying the state of the home appliance includes:
s701, the mobile terminal sends first network environment information of a network where the mobile terminal is located to a server;
s702, the household appliance sends second network environment information of a network where the household appliance is located to a server;
s703, the server sends second network environment information to the mobile terminal;
s704, the server sends first network environment information to the household appliance;
s705, under the condition that the mobile terminal and the household appliance are in different local area networks, the household appliance sends a second household appliance state to the server;
s706, the server sends the second household appliance state to the mobile terminal;
and S707, the mobile terminal displays the first household appliance state.
Referring to fig. 8, in an embodiment of the present disclosure, an apparatus for displaying a state of a home appliance is provided. The apparatus for displaying the state of the home appliance may be implemented as a mobile terminal shown in fig. 1 by software, hardware, or a combination of both. The apparatus for displaying the state of a home appliance includes: a first sending module 81, a first receiving module 82, a first judging module 83 and an executing module 84; wherein, the first sending module 81 is configured to send first network environment information of a network where the mobile terminal is located to the server; the first receiving module 82 is configured to receive second network environment information of a network where the home appliance is located, which is sent by the server; the first judging module 83 is configured to judge whether the mobile terminal and the home appliance are in the same local area network according to the first network environment information and the second network environment information; the execution module 84 is configured to receive and display the home appliance status corresponding to the determination result according to the determination result.
Optionally, the first determining module 83 is specifically configured to perform an and operation on the IP address of the mobile terminal and the subnet mask corresponding to the IP address of the mobile terminal to obtain the first network identifier, where the first network environment information includes the IP address of the mobile terminal and the subnet mask corresponding to the IP address of the mobile terminal; performing AND operation on the IP address of the household appliance and the subnet mask corresponding to the IP address to obtain a second network identifier; the second network environment information comprises an IP address of the household appliance and a subnet mask corresponding to the IP address; under the condition that the first network identifier is the same as the second network identifier, the mobile terminal and the household appliance are in the same local area network; and under the condition that the first network identifier is different from the second network identifier, the mobile terminal and the household appliance are in different local area networks.
Optionally, the first determining module 83 is specifically configured to determine whether the MAC address of the local area network router where the mobile terminal is located and the MAC address of the local area network router where the home appliance is located are the same: if so, the mobile terminal and the household appliance are in the same local area network, otherwise, the mobile terminal and the household appliance are in different local area networks; the first network environment information comprises the MAC address of the local area network router where the mobile terminal is located, and the second network environment information comprises the MAC address of the local area network router of the household appliance.
Optionally, the executing module 84 is specifically configured to receive the first appliance status sent by the server and display the first appliance status when the mobile terminal and the appliance device are in the same local area network.
Optionally, the executing module 84 is specifically configured to, under the condition that the mobile terminal and the home appliance are in the same local area network, receive a first home appliance state sent by the home appliance, and display the first home appliance state;
optionally, the executing module 84 is specifically configured to receive the second appliance status sent by the server and display the second appliance status in a case that the mobile terminal and the appliance device are in different local area networks.
As shown in fig. 9, an embodiment of the present disclosure provides an apparatus for displaying a state of a home appliance. The device for displaying the state of the home appliance can be implemented as the home appliance shown in fig. 1 by software, hardware or a combination of the two. The apparatus for displaying the state of the household appliance includes a second sending module 91, a second receiving module 92, a second judging module 93 and a third sending module 94, wherein the second sending module 91 is configured to send second network environment information of a network where the household appliance is located to the server; the second receiving module 92 is configured to receive the first network environment information of the network where the mobile terminal is located, which is sent by the server; the second judging module 93 is configured to judge whether the home appliance device and the mobile terminal are in the same local area network according to the first network environment information and the second network environment information; the third transmitting module 94 is configured to transmit the home appliance status corresponding to the determination result to the server or the mobile terminal according to the determination result.
Optionally, the second determining module 93 is specifically configured to perform an and operation on the IP address of the mobile terminal and a subnet mask corresponding to the IP address of the mobile terminal to obtain the first network identifier, where the first network environment information includes the IP address of the mobile terminal and the subnet mask corresponding to the IP address of the mobile terminal; performing AND operation on the IP address of the household appliance and the subnet mask corresponding to the IP address to obtain a second network identifier; the second network environment information comprises an IP address of the household appliance and a subnet mask corresponding to the IP address; under the condition that the first network identifier is the same as the second network identifier, the mobile terminal and the household appliance are in the same local area network; and under the condition that the first network identifier is different from the second network identifier, the mobile terminal and the household appliance are in different local area networks.
Optionally, the second determining module 93 is specifically configured to determine whether the MAC address of the local area network router where the mobile terminal is located and the MAC address of the local area network router where the home appliance is located are the same: if so, the mobile terminal and the household appliance are in the same local area network, otherwise, the mobile terminal and the household appliance are in different local area networks; the first network environment information comprises the MAC address of the local area network router where the mobile terminal is located, and the second network environment information comprises the MAC address of the local area network router of the household appliance.
Optionally, the third sending module 94 is specifically configured to send the first appliance status to the server in case that the appliance device and the mobile terminal are in the same local area network.
Optionally, the third sending module 94 is specifically configured to send the first appliance status to the mobile terminal in a case where the home appliance and the mobile terminal are in the same local area network;
optionally, the third sending module 94 is specifically configured to send the second appliance status to the server in case that the home appliance and the mobile terminal are in different local area networks.
As shown in fig. 10, an embodiment of the present disclosure provides an apparatus for displaying a state of a home appliance. The device for displaying the state of the home appliance may be implemented as a server shown in fig. 1 by software, hardware or a combination of both. The apparatus for displaying the state of a home appliance includes: a third receiving module 101, a fourth receiving module 102, a fourth transmitting module 103, a fifth transmitting module 104, a third determining module 105, and a transceiver module 106. The third receiving module 101 is configured to receive first network environment information sent by the mobile terminal, where the first network environment information is network environment information of a network where the mobile terminal is located; the fourth receiving module 102 is configured to receive second network environment information sent by the home appliance device, where the second network environment information is network environment information of a network where the home appliance device is located; the fourth sending module 103 is configured to send the first network environment information to the home device; the fifth sending module 104 is configured to send the second network environment information to the mobile terminal; the third judging module 105 is configured to judge whether the mobile terminal and the home appliance are in the same local area network according to the first network environment information and the second network environment information; the transceiver module 106 is configured to communicate with the mobile terminal and the home device according to the determination result.
Optionally, the third determining module 105 is specifically configured to perform an and operation on the IP address of the mobile terminal and the subnet mask corresponding to the IP address of the mobile terminal to obtain the first network identifier, where the first network environment information includes the IP address of the mobile terminal and the subnet mask corresponding to the IP address of the mobile terminal; performing AND operation on the IP address of the household appliance and the subnet mask corresponding to the IP address to obtain a second network identifier; the second network environment information comprises an IP address of the household appliance and a subnet mask corresponding to the IP address; under the condition that the first network identifier is the same as the second network identifier, the mobile terminal and the household appliance are in the same local area network; and under the condition that the first network identifier is different from the second network identifier, the mobile terminal and the household appliance are in different local area networks.
Optionally, the third determining module 105 is specifically configured to determine whether the MAC address of the local area network router where the mobile terminal is located and the MAC address of the local area network router where the home appliance is located are the same: if so, the mobile terminal and the household appliance are in the same local area network, otherwise, the mobile terminal and the household appliance are in different local area networks; the first network environment information comprises the MAC address of the local area network router where the mobile terminal is located, and the second network environment information comprises the MAC address of the local area network router of the household appliance.
Optionally, the transceiver module 106 is specifically configured to receive the first home appliance state sent by the home appliance device and send the first home appliance state to the mobile terminal, when the mobile terminal and the home appliance device are in the same local area network.
Optionally, the transceiver module 106 is specifically configured to receive the second home appliance status sent by the home appliance device and send the second home appliance status to the mobile terminal, when the mobile terminal and the home appliance device are in different local area networks.
As shown in fig. 11, an embodiment of the present disclosure provides an apparatus for displaying a state of a home appliance. The apparatus for displaying a state of a home appliance includes:
a processor (processor)111 and a memory (memory)112, and may further include a Communication Interface (Communication Interface)113 and a bus 114. The processor 111, the communication interface 113, and the memory 112 may communicate with each other via the bus 114. The communication interface 113 may be used for information transfer. The processor 111 may call logic instructions in the memory 112 to perform the method for displaying the status of the appliance provided by the foregoing embodiments.
Furthermore, the logic instructions in the memory 112 may be implemented in software functional units and stored in a computer readable storage medium when sold or used as a stand-alone product.
The memory 112, which is a computer-readable storage medium, may be used for storing software programs, computer-executable programs, such as program instructions/modules corresponding to the methods in the embodiments of the present disclosure. The processor 111 executes the functional application and data processing by executing the software program, instructions and modules stored in the memory 112, that is, implements the method in the above-described method embodiments.
The memory 112 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal device, and the like. Further, the memory 112 may include high speed random access memory and may also include non-volatile memory.
The embodiment of the present disclosure provides a system for displaying a home appliance status, including the device for displaying a home appliance status provided in the foregoing embodiment.
The embodiment of the present disclosure provides a computer-readable storage medium storing computer-executable instructions configured to execute the method for displaying a state of a home appliance provided by the foregoing embodiment.
The disclosed embodiments provide a computer program product comprising a computer program stored on a computer-readable storage medium, the computer program comprising program instructions that, when executed by a computer, cause the computer to perform the method for displaying the status of a home appliance provided by the foregoing embodiments.
The computer-readable storage medium described above may be a transitory computer-readable storage medium or a non-transitory computer-readable storage medium.
The technical solution of the embodiments of the present disclosure may be embodied in the form of a software product, where the computer software product is stored in a storage medium and includes one or more instructions to enable a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method in the embodiments of the present disclosure. And the aforementioned storage medium may be a non-transitory storage medium comprising: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes, and may also be a transient storage medium.
The above description and drawings sufficiently illustrate embodiments of the disclosure to enable those skilled in the art to practice them. Other embodiments may incorporate structural, logical, electrical, process, and other changes. The examples merely typify possible variations. Individual components and functions are optional unless explicitly required, and the sequence of operations may vary. Portions and features of some embodiments may be included in or substituted for those of others. Furthermore, the words used in the specification are words of description only and are not intended to limit the claims. As used in the description of the embodiments and the claims, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. Similarly, the term "and/or" as used in this application is meant to encompass any and all possible combinations of one or more of the associated listed. Furthermore, the terms "comprises" and/or "comprising," when used in this application, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method or device comprising the element. In this document, each embodiment may be described with emphasis on differences from other embodiments, and the same and similar parts between the respective embodiments may be referred to each other. For methods, products, etc. of the embodiment disclosures, reference may be made to the description of the method section for relevance if it corresponds to the method section of the embodiment disclosure.
Those of skill in the art would appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software may depend upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the disclosed embodiments. It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the system, the apparatus and the unit described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments disclosed herein, the disclosed methods, products (including but not limited to devices, apparatuses, etc.) may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of a unit may be merely a division of a logical function, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form. Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to implement the present embodiment. In addition, functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. Each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.

Claims (10)

1. A method for displaying the state of a household appliance is applied to a mobile terminal, and is characterized in that the method comprises the following steps:
sending first network environment information of a network where the mobile terminal is located to a server;
receiving second network environment information of a network where the household electrical appliance is located, which is sent by the server;
judging whether the mobile terminal and the household appliance are in the same local area network or not according to the first network environment information and the second network environment information;
and receiving and displaying the state of the household appliance corresponding to the judgment result according to the judgment result.
2. The method of claim 1, wherein receiving and displaying the home appliance status corresponding to the determination result according to the determination result comprises:
under the condition that the mobile terminal and the household appliance are in the same local area network, receiving a first household appliance state sent by the server, and displaying the first household appliance state; or receiving a first household appliance state sent by the household appliance equipment, and displaying the first household appliance state;
and under the condition that the mobile terminal and the household appliance are in different local area networks, receiving a second household appliance state sent by the server, and displaying the second household appliance state.
3. A method for displaying the state of a home appliance, applied to a home appliance, the method comprising:
sending second network environment information of the network where the household appliance is located to a server;
receiving first network environment information of a network where the mobile terminal is located, which is sent by the server;
judging whether the household appliance and the mobile terminal are in the same local area network or not according to the first network environment information and the second network environment information;
and sending the state of the household appliance corresponding to the judgment result to the server or the mobile terminal according to the judgment result.
4. The method of claim 3, wherein sending the home appliance status corresponding to the determination result to the server or the mobile terminal according to the determination result comprises:
under the condition that the household appliance equipment and the mobile terminal are in the same local area network, sending a first household appliance state to the server; or sending a first household appliance state to the mobile terminal;
and sending a second household appliance state to the server under the condition that the household appliance and the mobile terminal are in different local area networks.
5. A method for displaying the state of a household appliance, which is applied to a server, is characterized in that the method comprises the following steps:
receiving first network environment information sent by a mobile terminal; the first network environment information is network environment information of a network where the mobile terminal is located;
receiving second network environment information sent by the household appliance equipment; the second network environment information is network environment information of a network where the household electrical appliance is located;
sending the first network environment information to the household appliance;
sending the second network environment information to the mobile terminal;
judging whether the mobile terminal and the household appliance are in the same local area network or not according to the first network environment information and the second network environment information;
and communicating with the mobile terminal and the household appliance according to the judgment result.
6. The method of claim 5, wherein communicating with the mobile terminal and the home device according to the determination comprises:
under the condition that the mobile terminal and the household appliance are in the same local area network, receiving a first household appliance state sent by the household appliance, and sending the first household appliance state to the mobile terminal; alternatively, the first and second electrodes may be,
and under the condition that the mobile terminal and the household appliance are in different local area networks, receiving a second household appliance state sent by the household appliance, and sending the second household appliance state to the mobile terminal.
7. The method according to any one of claims 1 to 6, wherein determining whether the mobile terminal and the home device are in the same local area network according to the first network environment information and the second network environment information comprises:
performing AND operation on the IP address of the mobile terminal and the subnet mask corresponding to the IP address of the mobile terminal to obtain a first network identifier; the first network environment information comprises the IP address of the mobile terminal and a subnet mask corresponding to the IP address;
performing AND operation on the IP address of the household appliance and the subnet mask corresponding to the IP address to obtain a second network identifier; the second network environment information comprises the IP address of the household appliance and a subnet mask corresponding to the IP address;
under the condition that the first network identifier is the same as the second network identifier, the mobile terminal and the household appliance are in the same local area network; under the condition that the first network identifier is different from the second network identifier, the mobile terminal and the household appliance are in different local area networks;
alternatively, the first and second electrodes may be,
judging whether the MAC address of the local area network router where the mobile terminal is located is the same as the MAC address of the local area network router where the household appliance is located: if so, the mobile terminal and the household appliance are in the same local area network, otherwise, the mobile terminal and the household appliance are in different local area networks;
the first network environment information comprises an MAC address of a local area network router where the mobile terminal is located, and the second network environment information comprises the MAC address of the local area network router of the household appliance device.
8. An apparatus for displaying a state of a home appliance, applied to a mobile terminal, the apparatus comprising:
the mobile terminal comprises a first sending module, a second sending module and a control module, wherein the first sending module is configured to send first network environment information of a network where the mobile terminal is located to a server;
the first receiving module is configured to receive second network environment information of a network where the home appliance is located, which is sent by the server;
the first judging module is configured to judge whether the mobile terminal and the household appliance are in the same local area network or not according to the first network environment information and the second network environment information;
and the execution module is configured to receive and display the household appliance state corresponding to the judgment result according to the judgment result.
9. An apparatus for displaying the status of a home appliance, applied to a home appliance, the apparatus comprising:
the second sending module is configured to send second network environment information of a network where the household appliance is located to the server;
the second receiving module is configured to receive the first network environment information of the network where the mobile terminal is located, which is sent by the server;
the second judging module is configured to judge whether the household appliance and the mobile terminal are in the same local area network or not according to the first network environment information and the second network environment information;
and the third sending module is configured to send the household appliance state corresponding to the judgment result to the server or the mobile terminal according to the judgment result.
10. An apparatus for displaying the status of an appliance, applied to a server, the apparatus comprising:
the third receiving module is configured to receive the first network environment information sent by the mobile terminal; the first network environment information is network environment information of a network where the mobile terminal is located;
the fourth receiving module is configured to receive the second network environment information sent by the household appliance device; the second network environment information is network environment information of a network where the household electrical appliance is located;
the third judging module is configured to judge whether the mobile terminal and the household appliance are in the same local area network or not according to the first network environment information and the second network environment information;
and the transceiving module is configured to communicate with the mobile terminal and the household appliance according to the judgment result.
CN202010754119.3A 2020-07-30 2020-07-30 Method and device for displaying state of household appliance Active CN111865739B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010754119.3A CN111865739B (en) 2020-07-30 2020-07-30 Method and device for displaying state of household appliance

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010754119.3A CN111865739B (en) 2020-07-30 2020-07-30 Method and device for displaying state of household appliance

Publications (2)

Publication Number Publication Date
CN111865739A true CN111865739A (en) 2020-10-30
CN111865739B CN111865739B (en) 2022-03-29

Family

ID=72945472

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010754119.3A Active CN111865739B (en) 2020-07-30 2020-07-30 Method and device for displaying state of household appliance

Country Status (1)

Country Link
CN (1) CN111865739B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104009898A (en) * 2014-06-10 2014-08-27 珠海格力电器股份有限公司 Household appliance and control method and device thereof
CN104378421A (en) * 2014-11-14 2015-02-25 四川长虹电器股份有限公司 Remote control system and method of intelligent household electrical appliance product
CN105652712A (en) * 2015-12-31 2016-06-08 广东美的制冷设备有限公司 Household appliances control system and control method
US20160165663A1 (en) * 2014-12-09 2016-06-09 Verizon Patent And Licensing Inc. Secure connected device control and monitoring system
US20180191585A1 (en) * 2013-05-13 2018-07-05 Panasonic Intellectual Property Corporation Of America Information management method
CN108650155A (en) * 2018-04-26 2018-10-12 珠海格力电器股份有限公司 A kind of control method of household appliance, apparatus and system
WO2019019018A1 (en) * 2017-07-25 2019-01-31 深圳前海达闼云端智能科技有限公司 Control method, control apparatus and control system for intelligent device
CN110716439A (en) * 2019-10-21 2020-01-21 合肥美的电冰箱有限公司 Household appliance state synchronization method, household appliance and medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180191585A1 (en) * 2013-05-13 2018-07-05 Panasonic Intellectual Property Corporation Of America Information management method
CN104009898A (en) * 2014-06-10 2014-08-27 珠海格力电器股份有限公司 Household appliance and control method and device thereof
CN104378421A (en) * 2014-11-14 2015-02-25 四川长虹电器股份有限公司 Remote control system and method of intelligent household electrical appliance product
US20160165663A1 (en) * 2014-12-09 2016-06-09 Verizon Patent And Licensing Inc. Secure connected device control and monitoring system
CN105652712A (en) * 2015-12-31 2016-06-08 广东美的制冷设备有限公司 Household appliances control system and control method
WO2019019018A1 (en) * 2017-07-25 2019-01-31 深圳前海达闼云端智能科技有限公司 Control method, control apparatus and control system for intelligent device
CN108650155A (en) * 2018-04-26 2018-10-12 珠海格力电器股份有限公司 A kind of control method of household appliance, apparatus and system
CN110716439A (en) * 2019-10-21 2020-01-21 合肥美的电冰箱有限公司 Household appliance state synchronization method, household appliance and medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
书山拾穗: ""外出异常报警、在家不受干扰,APP看家模式这样用更便捷"", 《URL:HTTP://WWW.360DOC.CN/MIP/866463305.HTML》 *

Also Published As

Publication number Publication date
CN111865739B (en) 2022-03-29

Similar Documents

Publication Publication Date Title
CN106060900A (en) Method and apparatus for controlling access to network slicing, terminal small cell and SDN controller
CN108156240B (en) Method and system for accessing industrial adapter to server
CN107113892B (en) Method and device for automatically networking gateway equipment
CN107682857B (en) Data sharing method of Zigbee network, gateway equipment and Zigbee network system
CN104883402A (en) Information processing method and cloud-end service platform
JP6512725B2 (en) Method, apparatus, and system for connecting a node to a network
CN107683596A (en) The method and apparatus that another end equipment is found for end equipment
CN112152892A (en) Method for controlling gateway, intelligent gateway and intelligent home system
CN109450905A (en) Transmit the method and apparatus and system of data
CN104486174B (en) The network-building method and device of a kind of intelligent terminal
CN105959188B (en) Method and device for controlling user terminal to be on-line
CN105392182B (en) The setting method and system of the network configuration information of WIFI equipment
CN105471983A (en) Method and system for establishing internet-of-things communication
CN106101297B (en) A kind of message answer method and device
CN107659999A (en) WIFI connection methods and equipment
CN112822221B (en) Server selection method, device, equipment and medium
CN107454659B (en) Terminal identification method, system, terminal equipment and base station
CN111865739B (en) Method and device for displaying state of household appliance
CN104023001A (en) Method for AC equipment to forward unauthorized message information
CN107566325A (en) Access the method and device of network
CN108632355B (en) Routing method for household appliance network, control terminal, readable storage medium and equipment
CN106936608B (en) Method, related equipment and system for establishing SSH connection
CN105072148A (en) Method and device for building connection with terminal
CN104702612B (en) A kind of user authentication process method and device
CN105991370B (en) UDP channel detection method and device

Legal Events

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