CN112312425A - Internet access method and device for household electrical appliance - Google Patents

Internet access method and device for household electrical appliance Download PDF

Info

Publication number
CN112312425A
CN112312425A CN201910698891.5A CN201910698891A CN112312425A CN 112312425 A CN112312425 A CN 112312425A CN 201910698891 A CN201910698891 A CN 201910698891A CN 112312425 A CN112312425 A CN 112312425A
Authority
CN
China
Prior art keywords
household appliance
type
current
node
node equipment
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
CN201910698891.5A
Other languages
Chinese (zh)
Other versions
CN112312425B (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.)
Hangzhou Joyoung Household Electrical Appliances Co Ltd
Original Assignee
Hangzhou Joyoung Household Electrical Appliances 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 Hangzhou Joyoung Household Electrical Appliances Co Ltd filed Critical Hangzhou Joyoung Household Electrical Appliances Co Ltd
Priority to CN201910698891.5A priority Critical patent/CN112312425B/en
Publication of CN112312425A publication Critical patent/CN112312425A/en
Application granted granted Critical
Publication of CN112312425B publication Critical patent/CN112312425B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • H04W40/22Communication route or path selection, e.g. power-based or shortest path routing using selective relaying for reaching a BTS [Base Transceiver Station] or an access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • H04W48/10Access restriction or access information delivery, e.g. discovery data delivery using broadcasted information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/20Selecting an access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Small-Scale Networks (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention discloses a method and a device for surfing the internet of household appliances, wherein the method comprises the following steps: detecting whether the current household appliance can be in network connection with a server or not and whether the current household appliance can be in communication with surrounding household appliances through a private mesh protocol or not; when the fact that network connection cannot be carried out is detected, and communication can be carried out through a private mesh protocol, the current household appliance is set as a first node device; when the network connection is detected to be available and the communication is carried out through the private mesh protocol, the current household appliance is set as a second node device; monitoring broadcast information of a second type of node equipment when the current household appliance equipment belongs to first type of node equipment; and selecting the optimal first household appliance from the plurality of second node devices to establish communication connection, and accessing the Internet through the relay of the first household appliance. By the scheme of the embodiment, normal internet surfing is realized on the basis of not increasing the number of routers and not increasing the cost, and network signal overlapping interference is avoided.

Description

Internet access method and device for household electrical appliance
Technical Field
The embodiment of the invention relates to equipment networking technology, in particular to a method and a device for surfing the internet of household electrical appliances.
Background
The current network environment of most families has the problem of incomplete coverage and has a plurality of dead corners. Because the router is generally placed in the living room, the network signal of the position far away from the router can be worse, often the kitchen is generally far away from the router, especially the corner far away from the router in the kitchen, the wireless fidelity wifi signal is worse, and this leads to that the household appliances placed in those positions can not surf the internet normally.
The problem that equipment cannot surf the internet when placed at a relatively poor wifi signal position is solved, and the coverage of a household network signal is mainly improved, so that the wifi signal is ensured to have no dead angle coverage. And the coverage that promotes the wifi signal at present mainly is solved through multistage route, through placing a plurality of router cascades in the room of difference, enlarges the coverage of wifi signal and solves all room signal coverage problems of a family, and then can eliminate the online problem of corner household electrical appliances.
However, the multi-level routing scheme has the following disadvantages:
1. a plurality of routers are needed, and the larger the house is, the more the number of the needed routers is;
2. the cost is high, and the wiring is troublesome;
3. although wifi coverage is improved, network bandwidth becomes low and there is interference where signals overlap.
Disclosure of Invention
The embodiment of the invention provides a method and a device for surfing the internet of household appliances, which can realize surfing the internet of the household appliances on the basis of not increasing the number of routers and not increasing the cost and avoid wifi signal overlapping interference.
In order to achieve the purpose of the embodiment of the present invention, an embodiment of the present invention provides an internet access method for a home appliance device, where the method may include:
whether the current household appliance equipment can be in network connection with a server or not and whether the current household appliance equipment can be in communication with surrounding household appliance equipment through a private mesh network mesh protocol or not is detected;
when detecting that the current household appliance cannot be in network connection with a server and can communicate with surrounding household appliances through a private mesh protocol, setting the role of the current household appliance as a first type of node equipment; when detecting that the current household appliance can be in network connection with the server and can be communicated with surrounding household appliances through a private mesh protocol, setting the role of the current household appliance as a second type of node equipment;
when the current household appliance is determined to belong to the first type of node equipment, monitoring broadcast information broadcasted outwards by the second type of node equipment; when the broadcast information of a plurality of second type node devices is monitored, an optimal first household appliance device is selected from the plurality of second type node devices according to a preset selection strategy, a connection request to the first household appliance device is initiated, communication connection is established with the first household appliance device according to the private mesh protocol, and relay internet surfing is achieved through the first household appliance device.
In an exemplary embodiment of the present invention, the format content of the broadcast information may include any one or more of the following: version number Version1 of the current broadcast protocol content, a flag bit ProtocoType1 for marking the current data as broadcast data, a physical address MAC of the current broadcasting household appliance, a network delay DelayX of the current broadcasting household appliance and the server, the number CrelayN of the first type of node devices that can be relayed by the current broadcasting household appliance, the number ArelayN of the first type of node devices that have been relayed by the current broadcasting household appliance, and a check bit.
In an exemplary embodiment of the present invention, the establishing a communication connection with the first home device according to the private mesh protocol may include: and establishing communication connection based on the link layer customized private mesh protocol of the 802.11 protocol.
In an exemplary embodiment of the present invention, the communication frame format content when the current home appliance device communicates with the first home appliance may include any one or more of the following: version number Version2 of the current mesh protocol content, a flag bit prototype 2 for marking the data type of the current data, a source device MAC, a destination device MAC, message content and a check bit.
In an exemplary embodiment of the present invention, the method may further include: in the process of communication according to the private mesh protocol, a question answering mode is adopted between the current household appliance and the first household appliance to keep the communication state.
In an exemplary embodiment of the present invention, the method may further include: after a connection request to the first household appliance is initiated, when a reply of the first household appliance is not received within a preset time length, the broadcast information of a second type of node equipment except the first household appliance equipment is monitored again.
In an exemplary embodiment of the present invention, the selection policy may include: comparing the plurality of second type node devices pairwise in sequence, and selecting a first household appliance meeting any one or more of the following requirements: the delay level is low, the number CrelayN of the first node devices capable of relaying is large, the number ArelayN of the first node devices already relayed is small, and the signal strength is strong.
In an exemplary embodiment of the present invention, the method may further include:
when the current household electrical appliance is determined to belong to the second node device, judging whether the self resource is sufficient, broadcasting the broadcast information outwards when the self resource is judged to be sufficient,
and when the connection request is received, establishing connection with the first type of node equipment according to the mesh protocol and communicating so as to enable the second type of node equipment to realize relay internet surfing.
In an exemplary embodiment of the present invention, the method may further include: after receiving the connection request and before establishing connection with the first type of node equipment, storing relevant information of the first type of node equipment, and periodically asking questions of the first type of node equipment;
and when the response of the first type node equipment to the question is not received for n times continuously, deleting the related information of the first type node equipment, updating the content of the broadcast information, and then broadcasting the broadcast information outwards again periodically.
In an exemplary embodiment of the present invention, the method may further include:
after determining that the current household appliance belongs to the first type of node equipment, periodically acquiring network connection information with a server, and if the current household appliance can normally perform network connection with the server and the network delay DelayX with the server is within a preset normal range, replacing the role of the current household appliance with the second type of node equipment;
after the current household appliance is determined to belong to the second node device, if the network connection with the server is lost and the network delay DelayX with the server is within a preset abnormal range, the broadcast is closed after the broadcast information of preset times is broadcast, and the role of the current household appliance is changed into the first node device; the broadcast information of the preset number of times is used for informing the connected first type node equipment of disconnection, reselecting a second type node equipment for relay internet surfing, and broadcasting that the number CrelayN of the first type node equipment capable of being currently relayed and the number ArelayN of the first type node equipment currently relayed are both 0.
In order to achieve the object of the embodiment of the present invention, an internet access apparatus of a home appliance device is provided in an embodiment of the present invention, and may include a processor and a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the instructions are executed by the processor, the internet access method of the home appliance device is implemented.
The embodiment of the invention has the beneficial effects that:
1. the method of the embodiment of the invention can comprise the following steps: whether the current household appliance equipment can be in network connection with a server or not and whether the current household appliance equipment can be in communication with surrounding household appliance equipment through a private mesh network mesh protocol or not is detected; when detecting that the current household appliance cannot be in network connection with a server and can communicate with surrounding household appliances through a private mesh protocol, setting the role of the current household appliance as a first type of node equipment; when detecting that the current household appliance can be in network connection with the server and can be communicated with surrounding household appliances through a private mesh protocol, setting the role of the current household appliance as a second type of node equipment; when the current household appliance is determined to belong to the first type of node equipment, monitoring broadcast information broadcasted outwards by the second type of node equipment; when the broadcast information of a plurality of second type node devices is monitored, an optimal first household appliance device is selected from the plurality of second type node devices according to a preset selection strategy, a connection request to the first household appliance device is initiated, communication connection is established with the first household appliance device according to the private mesh protocol, and relay internet surfing is achieved through the first household appliance device. Through the scheme of the embodiment, the number of the routers is not increased, and on the basis of not increasing the cost, the household appliances placed in the corners with poor wifi signals such as a kitchen can be relayed to the Internet through other household appliances capable of normally surfing the Internet in a local area network, and wifi signal overlapping interference is avoided.
2. The establishing of the communication connection with the first household appliance device according to the mesh protocol in the embodiment of the present invention may include: and establishing communication connection based on the link layer customized private mesh protocol of the 802.11 protocol. Compared with the path planning methods such as bridging and the like, the user-defined mesh protocol requires fewer resources (such as a master frequency, a flash memory, a random access memory ram and the like), does not need to additionally add additional hardware equipment under the existing conditions, and reduces the cost; the private mesh communication frequency band can stagger wifi channels of the router, so that interference to each other is reduced, and the original network bandwidth cannot be influenced.
3. The method of the embodiment of the present invention may further include: after a connection request to the first household appliance is initiated, when a reply of the first household appliance is not received within a preset time length, the broadcast information of a second type of node equipment except the first household appliance equipment is monitored again. By the scheme of the embodiment, the connection between the current household appliance and the second node equipment is ensured, and a technical basis is provided for relay internet surfing.
4. The selection strategy of the embodiment of the invention may include: comparing the plurality of second type node devices pairwise in sequence, and selecting a first household appliance meeting any one or more of the following requirements: the delay level is low, the number CrelayN of the first node devices capable of relaying is large, the number ArelayN of the first node devices already relayed is small, and the signal strength is strong. Through the scheme of the embodiment, the selected first household appliance is ensured to have good relay capacity, and the success rate of relay internet surfing is ensured.
5. The method of the embodiment of the present invention may further include: after determining that the current household appliance belongs to the first type of node equipment, periodically acquiring network connection information with a server, and if the current household appliance can normally perform network connection with the server and the network delay DelayX with the server is within a preset normal range, replacing the role of the current household appliance with the second type of node equipment; after the current household appliance is determined to belong to the second node device, if the network connection with the server is lost and the network delay DelayX with the server is within a preset abnormal range, the broadcast is closed after the broadcast information of preset times is broadcast, and the role of the current household appliance is changed into the first node device; the broadcast information of the preset number of times is used for informing the connected first type node equipment of disconnection, reselecting a second type node equipment for relay internet surfing, and broadcasting that the number CrelayN of the first type node equipment capable of being currently relayed and the number ArelayN of the first type node equipment currently relayed are both 0. By the scheme of the embodiment, each household appliance can timely perform role switching, and the reliability of the scheme is ensured.
Additional features and advantages of embodiments of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the invention. The objectives and other advantages of the embodiments of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings are included to provide a further understanding of the embodiments of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the examples of the application do not constitute a limitation of the embodiments of the invention.
Fig. 1 is a flowchart of a method for accessing a network of a home appliance according to an embodiment of the present invention;
fig. 2 is a schematic diagram illustrating a network access method of a home appliance according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a selection strategy according to an embodiment of the present invention;
fig. 4 is a schematic diagram illustrating a method for relaying internet access between a current home appliance and a first home appliance according to an embodiment of the present invention;
fig. 5 is a block diagram illustrating an internet access device of a home appliance according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
The steps illustrated in the flow charts of the figures may be performed in a computer system such as a set of computer-executable instructions. Also, while a logical order is shown in the flow diagrams, in some cases, the steps shown or described may be performed in an order different than here.
To achieve the object of the embodiment of the present invention, an embodiment of the present invention provides a method for accessing a network of a home appliance, where as shown in fig. 1, the method may include S101 to S103:
s101, detecting whether the current household appliance can be in network connection with a server or not and whether the current household appliance can be in communication with surrounding household appliances through a private mesh protocol or not.
In an exemplary embodiment of the present invention, detecting whether the current home appliance device can perform network connection with the server (or can perform normal connection with the server) may be determined by detecting a network delay DelayX when the current home appliance device performs network connection with the server, as shown in fig. 2, the specific steps may include:
detecting the size of network delay DelayX when the current household appliance is in network connection with a server;
when the network delay DelayX is less than or equal to a set delay threshold (for example, 100ms), it may be determined that the current home appliance device can perform network connection with the server; when the network delay DelayX is greater than a set delay threshold (e.g., 100ms), it may be determined that the current home appliance cannot perform network connection with the server.
In an exemplary embodiment of the present invention, the surrounding home devices may include: the household appliances within a preset range taking the current household appliance as the center and the household appliances within the communication range of the current household appliance.
S102, when detecting that the current household appliance cannot be connected with a server through a network and can communicate with surrounding household appliances through a private mesh protocol, setting the role of the current household appliance as a first node device; and when the current household appliance is detected to be capable of being in network connection with the server and communicating with the surrounding household appliances through the private mesh protocol, setting the role of the current household appliance as a second node device.
In an exemplary embodiment of the present invention, a first type of node device may be labeled as EndNode: the network can not be accessed normally, and the network can only be accessed through the communication of the relay node. The second node device may be labeled netrelayden: the relay node capable of surfing the internet can also forward node data incapable of surfing the internet while surfing the internet.
S103, monitoring broadcast information broadcasted by a second node device when the current household appliance device is determined to belong to a first node device; when the broadcast information of a plurality of second type node devices is monitored, an optimal first household appliance device is selected from the plurality of second type node devices according to a preset selection strategy, a connection request to the first household appliance device is initiated, communication connection is established with the first household appliance device according to the private mesh protocol, and relay internet surfing is achieved through the first household appliance device.
In an exemplary embodiment of the present invention, the method may further include:
when the current household electrical appliance is determined to belong to the second node device, judging whether the self resource is sufficient, broadcasting the broadcast information outwards when the self resource is judged to be sufficient,
and when the connection request is received, establishing connection with the first type of node equipment according to the mesh protocol and communicating so as to enable the second type of node equipment to realize relay internet surfing.
In the exemplary embodiment of the present invention, the netrelalaynode may first determine whether its own resources are sufficient, and if the resources are sufficient, periodically broadcast its own information outwards, and if the resources are insufficient, close the broadcast.
In an exemplary embodiment of the present invention, the format content of the broadcast information may include any one or more of the following: version number Version1 of the current broadcast protocol content, a flag bit ProtocoType1 for marking the current data as broadcast data, a physical address MAC of the current broadcasting household appliance, a network delay DelayX of the current broadcasting household appliance and the server, the number CrelayN of the first type of node devices that can be relayed by the current broadcasting household appliance, the number ArelayN of the first type of node devices that have been relayed by the current broadcasting household appliance, and a check bit.
In an exemplary embodiment of the present invention, the broadcast information content format may be:
Version ProtocoType MAC DelayX CrelayN ArelayN verification
In an exemplary embodiment of the present invention, Version: the version number of the current broadcast protocol content, which may need to be analyzed in different formats according to different versions when EndNode monitors and analyzes broadcast data;
ProtocoType: when NetRelayNode broadcasts, a certain value (for example: 0) can be fixed to represent that the frame data is broadcast data;
MAC: physical address of netrelaydenode node;
checking: the sum is accumulated from all fields Version to ArecayN.
In an exemplary embodiment of the present invention, the EndNode monitors broadcast data of the netrelaydenodeon, and if broadcast information (or broadcast data) of multiple netrelaydenodeons is monitored at the same time, the optimal netrelaydenodeon can be selected to establish a connection after comprehensive judgment by DelayX, cresan, and ArelayN.
In an exemplary embodiment of the present invention, the selection policy may include: comparing the plurality of second type node devices pairwise in sequence, and selecting a first household appliance meeting any one or more of the following requirements: the delay level is low, the number CrelayN of the first node devices capable of relaying is large, the number ArelayN of the first node devices already relayed is small, and the signal strength is strong.
In an exemplary embodiment of the present invention, the division of the delay levels (network delay levels) may be as shown in table 1 below:
TABLE 1
Network delay level Time delay range Description of the classes
1 1~30ms Extremely fast with almost no perceived delay
2 31~50ms Good without significant delay
3 51~100ms Normal, with slight pause
4 >100ms Poor and obvious jamming, and the phenomena of packet loss and disconnection
In an exemplary embodiment of the present invention, the selection logic of the relay node (i.e. the first home device in the second type of node device) may also be as shown in fig. 3, and specifically may sequentially include the following selection logics:
1. firstly, filtering and selecting NetRelayNode with the minimum DelayX according to delay levels (such as 4 levels);
2. selecting the NetRelayNode with the minimum ArelayN again;
3. then selecting the NetRelayNode with the maximum CrelayN;
4. if a plurality of NetRelayNodes still exist, the NetRelayNode with the strongest signal strength (closest distance) is preferentially selected.
In an exemplary embodiment of the present invention, the establishing a communication connection with the first home device according to the private mesh protocol may include: and establishing communication connection based on the link layer customized private mesh protocol of the 802.11 protocol.
In the exemplary embodiment of the present invention, the connection communication between the EndNode and the NetRelayNode may be a link layer customized private mesh protocol based on an 802.11 protocol, and the private mesh protocol consumes less resources, so that the load of the module can be reduced, and the requirement on the module hardware can be reduced. Meanwhile, the private mesh communication can stagger the communication frequency band of the current router, and through other channel communication, the relay communication can be ensured, and the interference to the original wifi signal can be avoided.
In an exemplary embodiment of the present invention, the communication frame format content when the current home appliance device communicates with the first home appliance may include any one or more of the following: version number Version2 of the current mesh protocol content, a flag bit prototype 2 for marking the data type of the current data, a source device MAC, a destination device MAC, message content and a check bit.
In an exemplary embodiment of the present invention, the post-connection communication frame format may be:
Version ProtocoType source device MAC Destination device MAC Message content Verification
In an exemplary embodiment of the present invention, the method may further include: in the process of communication according to the private mesh protocol, a question answering mode is adopted between the current household appliance and the first household appliance to keep the communication state.
In an exemplary embodiment of the present invention, as shown in fig. 4, the communication flow according to the private mesh protocol may include:
1. after monitoring the broadcast data of the NetRelayNode, the EndNode selects the optimal NetRelayNode to initiate connection, and the connection is initiated by the EndNode;
2. and the NetRelayNode stores EndNode related information after receiving the EndNode connection request. Meanwhile, the NetRelayNode replies ack to EndNode;
3. the EndNode enters a monitoring mode after receiving the ack of the NetRelayNode, the NetRelayNode judges whether to continue broadcasting according to the resources, and if the resources are sufficient, the broadcast content data is updated and the broadcasting continues;
4. the private mesh communication process adopts a question/answer mode, firstly, the NetRelayNode always detects the communication state with the router, the NetRelayNode periodically initiates a question in an idle state, and then EndNode responds. As the number of netrelaydenode relay EndNodes increases, the period of question/answer per EndNode becomes longer and longer. The broadcasting and the question of the NetRelayNode need to be periodically switched according to the actual situation;
5. if the connection is initiated, the NetRelayNode does not receive the connection request of EndNode, and the NetRelayNode does not reply ack; meanwhile, EndNode starts overtime waiting after initiating a connection request, and if no ack corresponding to NetRelayNode is received in 10S, the EndNode monitors the broadcast of other NetRelayNodes again;
6. if the NetRelayNode receives the EndNode connection request, the related information of the EndNode is stored, and the ack is replied at the same time. But EndNode does not receive the message within the timeout period of 10S, then EndNode listens to other NetRelayNode broadcast again. When NetRelayNode periodically asks questions, if EndNode does not answer for more than 3 times, deleting the information corresponding to EndNode, and then updating the broadcast content;
7. starting from the EndNode originating connection (that is to say with the exception that the broadcast follows the "broadcast content format"), all the same-letter interactions follow the above "post-connection communication frame format".
In an exemplary embodiment of the present invention, if the current home device is a first node device, the method may further include: after a connection request to the first household appliance is initiated, when a reply of the first household appliance is not received within a preset time length, the broadcast information of a second type of node equipment except the first household appliance equipment is monitored again.
In an exemplary embodiment of the present invention, netrelaydenode may maintain a periodic "question/answer" connection with EndNode, and if EndNode has not received a "question" of netrelaydenode within 30s (this time, the length is greater than the maximum "question/answer" period), EndNode may clear previous information about netrelaydenode and re-listen and select a suitable netrelaydenode to relay to the internet.
In an exemplary embodiment of the present invention, if the current home device is a second node device, the method may further include: after receiving the connection request and before establishing connection with the first type of node equipment, storing relevant information of the first type of node equipment, and periodically asking questions of the first type of node equipment;
and when the response of the first type node equipment to the question is not received for n times continuously, deleting the related information of the first type node equipment, updating the content of the broadcast information, and then broadcasting the broadcast information outwards again periodically.
In the exemplary embodiment of the present invention, the netrelaydenode may periodically obtain updates itself and the server network delay DelayX. Meanwhile, the NetRelayNode and the EndNode keep periodic question asking, if the question asking is not answered for 3 times (the equipment may be powered off) continuously, or the EndNode requires active disconnection, the corresponding EndNode information is deleted, and meanwhile CrelayN and ArelayN in the NetRelayNode broadcast content are updated, wherein the CrelayN is added with 1, and the ArelayN is subtracted with 1.
In an exemplary embodiment of the present invention, the method may further include:
after determining that the current household appliance belongs to the first type of node equipment, periodically acquiring network connection information with a server, and if the current household appliance can normally perform network connection with the server and the network delay DelayX with the server is within a preset normal range, replacing the role of the current household appliance with the second type of node equipment;
after the current household appliance is determined to belong to the second node device, if the network connection with the server is lost and the network delay DelayX with the server is within a preset abnormal range, the broadcast is closed after the broadcast information of preset times is broadcast, and the role of the current household appliance is changed into the first node device; the broadcast information of the preset number of times is used for informing the connected first type node equipment of disconnection, reselecting a second type node equipment for relay internet surfing, and broadcasting that the number CrelayN of the first type node equipment capable of being currently relayed and the number ArelayN of the first type node equipment currently relayed are both 0.
In an exemplary embodiment of the present invention, if the netrelaysode suddenly loses network connection, DelayX > 100ms, creatyn ═ 0, ArelayN ═ 0, and after broadcasting is performed 3 times again, the broadcast may be turned off, and simultaneously the connected EndNode is notified to disconnect to listen and select another suitable netrelaysode to relay the internet, and then the role of the connected EndNode changes to EndNode.
In the exemplary embodiment of the present invention, the EndNode itself may also periodically acquire network connection information with the server, and if it is able to connect normally and the Delayx is normal, inform NetRelayNode and disconnect the connection with it, and then perform internet communication through a direct route, and if CRelayN >0, it may be used as the NetRelayNode to broadcast information to the outside at the same time.
In order to achieve the object of the embodiment of the present invention, an internet access apparatus 1 of a home appliance may include, as shown in fig. 5, a processor 11 and a computer-readable storage medium 12, where the computer-readable storage medium 12 stores instructions, and when the instructions are executed by the processor 11, the internet access method of the home appliance is implemented.
In an exemplary embodiment of the present invention, the internet access device 1 of the home appliance may be a network module, such as a wifi module.
It will be understood by those of ordinary skill in the art that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the components may be implemented as software executed by a processor, such as a digital signal processor or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art.

Claims (10)

1. A method for surfing the Internet of household appliances is characterized by comprising the following steps:
whether the current household appliance equipment can be in network connection with a server or not and whether the current household appliance equipment can be in communication with surrounding household appliance equipment through a private mesh network mesh protocol or not is detected;
when detecting that the current household appliance cannot be in network connection with a server and can communicate with surrounding household appliances through a private mesh protocol, setting the role of the current household appliance as a first type of node equipment; when detecting that the current household appliance can be in network connection with the server and can be communicated with surrounding household appliances through a private mesh protocol, setting the role of the current household appliance as a second type of node equipment;
when the current household appliance is determined to belong to the first type of node equipment, monitoring broadcast information broadcasted outwards by the second type of node equipment; when the broadcast information of a plurality of second type node devices is monitored, an optimal first household appliance device is selected from the plurality of second type node devices according to a preset selection strategy, a connection request to the first household appliance device is initiated, communication connection is established with the first household appliance device according to the private mesh protocol, and relay internet surfing is achieved through the first household appliance device.
2. The internet access method of the home appliance device according to claim 1, wherein the format content of the broadcast information includes any one or more of the following: version number Version1 of the current broadcast protocol content, a flag bit ProtocoType1 for marking the current data as broadcast data, a physical address MAC of the current household appliance currently broadcasting, a network delay DelayX between the current household appliance currently broadcasting and the server, the number CrelayN of the first node devices which can be relayed by the current household appliance currently broadcasting, the number ArelayN of the first node devices which have been relayed by the current household appliance currently broadcasting, and a check bit.
3. The internet surfing method of a home appliance device of claim 1, wherein the establishing of the communication connection with the first home appliance device according to the private mesh protocol comprises: and establishing communication connection based on the link layer customized private mesh protocol of the 802.11 protocol.
4. The internet access method of a home appliance according to claim 3, wherein the format content of the communication frame when the current home appliance communicates with the first home appliance includes any one or more of: version number Version2 of the current mesh protocol content, a flag bit prototype 2 for marking the data type of the current data, a source device MAC, a destination device MAC, message content and a check bit.
5. The internet surfing method for the household electrical appliance device of claim 1, wherein the method further comprises: after a connection request to the first household appliance is initiated, when a reply of the first household appliance is not received within a preset time length, the broadcast information of a second type of node equipment except the first household appliance equipment is monitored again.
6. The internet access method of home appliances of claim 1,
the selection strategy comprises: comparing the plurality of second type node devices pairwise in sequence, and selecting a first household appliance meeting any one or more of the following requirements: the delay level is low, the number CrelayN of the first node devices capable of relaying is large, the number ArelayN of the first node devices already relayed is small, and the signal strength is strong.
7. The internet surfing method for the household electrical appliance device of claim 1, wherein the method further comprises:
when the current household electrical appliance is determined to belong to the second node device, judging whether the self resource is sufficient, broadcasting the broadcast information outwards when the self resource is judged to be sufficient,
and when the connection request is received, establishing connection with the first type of node equipment according to the mesh protocol and communicating so as to enable the second type of node equipment to realize relay internet surfing.
8. The internet surfing method for the household electrical appliance device of claim 7, wherein the method further comprises: after receiving the connection request and before establishing connection with the first type of node equipment, storing relevant information of the first type of node equipment, and periodically asking questions of the first type of node equipment;
and when the response of the first type node equipment to the question is not received for n times continuously, deleting the related information of the first type node equipment, updating the content of the broadcast information, and then broadcasting the broadcast information outwards again periodically.
9. The internet surfing method for the household electrical appliance device of claim 1, wherein the method further comprises:
after determining that the current household appliance belongs to the first type of node equipment, periodically acquiring network connection information with a server, and if the current household appliance can normally perform network connection with the server and the network delay DelayX with the server is within a preset normal range, replacing the role of the current household appliance with the second type of node equipment;
after the current household appliance is determined to belong to the second node device, if the network connection with the server is lost and the network delay DelayX with the server is within a preset abnormal range, the broadcast is closed after the broadcast information of preset times is broadcast, and the role of the current household appliance is changed into the first node device; the broadcast information of the preset number of times is used for informing the connected first type node equipment of disconnection, reselecting a second type node equipment for relay internet surfing, and broadcasting that the number CrelayN of the first type node equipment capable of being currently relayed and the number ArelayN of the first type node equipment currently relayed are both 0.
10. An internet access device of an electric home appliance, comprising a processor and a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, and when the instructions are executed by the processor, the internet access device of the electric home appliance realizes the internet access method of any one of claims 1 to 9.
CN201910698891.5A 2019-07-31 2019-07-31 Internet access method and device for household electrical appliance Active CN112312425B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910698891.5A CN112312425B (en) 2019-07-31 2019-07-31 Internet access method and device for household electrical appliance

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910698891.5A CN112312425B (en) 2019-07-31 2019-07-31 Internet access method and device for household electrical appliance

Publications (2)

Publication Number Publication Date
CN112312425A true CN112312425A (en) 2021-02-02
CN112312425B CN112312425B (en) 2022-11-08

Family

ID=74485346

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910698891.5A Active CN112312425B (en) 2019-07-31 2019-07-31 Internet access method and device for household electrical appliance

Country Status (1)

Country Link
CN (1) CN112312425B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115119272A (en) * 2022-06-27 2022-09-27 珠海格力电器股份有限公司 Network communication method between device and server, computer device and storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103200283A (en) * 2013-04-19 2013-07-10 江苏物联网研究发展中心 Multi-relay wireless communication system and method for realizing IP (Internet Protocol)-based air interface for same
CN104521242A (en) * 2012-08-07 2015-04-15 松下知识产权经营株式会社 Relay device
US20160197812A1 (en) * 2012-12-17 2016-07-07 Broadcom Corporation Network status mapping
CN106211264A (en) * 2016-07-11 2016-12-07 九阳股份有限公司 A kind of household electrical appliances distribution method and device
CN106487583A (en) * 2016-09-26 2017-03-08 海信集团有限公司 A kind of method for setting up network connection and LAN system
WO2017114940A1 (en) * 2015-12-31 2017-07-06 Robert Bosch Gmbh Wireless mesh network distributed vision traffic marker and method thereof
CN107787562A (en) * 2015-06-25 2018-03-09 艾尔斯潘网络公司 Node role assignment in network
CN108092862A (en) * 2017-12-15 2018-05-29 四川爱联科技有限公司 WiFi ad hoc network control systems based on Internet of Things
KR101884593B1 (en) * 2018-04-11 2018-08-01 이광흠 Communication system for apartment house having unified communication environment
CN207782832U (en) * 2017-11-28 2018-08-28 深圳和而泰智能控制股份有限公司 A kind of intelligent domestic system
CN109257834A (en) * 2018-09-17 2019-01-22 广州市特沃能源管理有限公司 The network-building method of meshed wireless sensor network based on Thread agreement

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104521242A (en) * 2012-08-07 2015-04-15 松下知识产权经营株式会社 Relay device
US20160197812A1 (en) * 2012-12-17 2016-07-07 Broadcom Corporation Network status mapping
CN103200283A (en) * 2013-04-19 2013-07-10 江苏物联网研究发展中心 Multi-relay wireless communication system and method for realizing IP (Internet Protocol)-based air interface for same
CN107787562A (en) * 2015-06-25 2018-03-09 艾尔斯潘网络公司 Node role assignment in network
WO2017114940A1 (en) * 2015-12-31 2017-07-06 Robert Bosch Gmbh Wireless mesh network distributed vision traffic marker and method thereof
CN106211264A (en) * 2016-07-11 2016-12-07 九阳股份有限公司 A kind of household electrical appliances distribution method and device
CN106487583A (en) * 2016-09-26 2017-03-08 海信集团有限公司 A kind of method for setting up network connection and LAN system
CN207782832U (en) * 2017-11-28 2018-08-28 深圳和而泰智能控制股份有限公司 A kind of intelligent domestic system
CN108092862A (en) * 2017-12-15 2018-05-29 四川爱联科技有限公司 WiFi ad hoc network control systems based on Internet of Things
KR101884593B1 (en) * 2018-04-11 2018-08-01 이광흠 Communication system for apartment house having unified communication environment
CN109257834A (en) * 2018-09-17 2019-01-22 广州市特沃能源管理有限公司 The network-building method of meshed wireless sensor network based on Thread agreement

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115119272A (en) * 2022-06-27 2022-09-27 珠海格力电器股份有限公司 Network communication method between device and server, computer device and storage medium

Also Published As

Publication number Publication date
CN112312425B (en) 2022-11-08

Similar Documents

Publication Publication Date Title
CN101926210B (en) Method of assigning idle state access terminal to carrier in multiple carrier wireless communication system based on load on control channel resources
CN107431969B (en) Communication resource allocation method and device, terminal equipment, base station and communication system
CN105357116A (en) Method of multiple terminals for accessing server and intelligent terminal
CN105474681A (en) Detecting and minimizing coverage holes in a communication network
CN109548037B (en) Control method, distributed unit, centralized unit and storage medium
US10778322B2 (en) Methods and systems for dynamically configuring mode of operation for a prose enabled user equipment
CN106487583B (en) Method for establishing network connection and local area network system
CN112312425B (en) Internet access method and device for household electrical appliance
CN110769484A (en) Information indication method and equipment, network element equipment, terminal and computer storage medium
US8855619B2 (en) Method for state transition and network device
KR20160079835A (en) Discovery of wi-fi direct services via discovery probe
CN114466403B (en) TRP discovery method, device and storage medium
CN111988831A (en) Information transmission method and device, CU and DU
WO2022001483A1 (en) Information sending method, nr cell access method, access network device, mobile terminal, and storage medium
CN107426777B (en) Method for monitoring paging by terminal, paging method, terminal and network side equipment
CN110636586A (en) Cell selection method, relay node and network node
CN112367412B (en) Equipment connection management method and device based on Internet of things
CN115119230A (en) Method, device, equipment and storage medium for determining master equipment and slave equipment
CN114584425A (en) Method for applying cross-domain roaming
CN104053185A (en) Base station shunting method and apparatus, and equipment
CN105142218A (en) Network paging method and network paging device
GB2456912A (en) Selecting a neighbouring base station to perform a requested operation
CN111510311A (en) Configuration policy determining method and device and storage medium
CN114040448B (en) Base station load balancing method, system, device and storage medium
CN116033365B (en) Communication method, device, electronic equipment and storage medium

Legal Events

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