CN114531722B - Networking method and device for equipment in local network and electronic equipment - Google Patents

Networking method and device for equipment in local network and electronic equipment Download PDF

Info

Publication number
CN114531722B
CN114531722B CN202210193546.8A CN202210193546A CN114531722B CN 114531722 B CN114531722 B CN 114531722B CN 202210193546 A CN202210193546 A CN 202210193546A CN 114531722 B CN114531722 B CN 114531722B
Authority
CN
China
Prior art keywords
networking
local
network
networking device
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.)
Active
Application number
CN202210193546.8A
Other languages
Chinese (zh)
Other versions
CN114531722A (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 Robam Appliances Co Ltd
Original Assignee
Hangzhou Robam 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 Robam Appliances Co Ltd filed Critical Hangzhou Robam Appliances Co Ltd
Priority to CN202210193546.8A priority Critical patent/CN114531722B/en
Publication of CN114531722A publication Critical patent/CN114531722A/en
Application granted granted Critical
Publication of CN114531722B publication Critical patent/CN114531722B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/18Selecting a network or a communication service
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Landscapes

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

Abstract

The invention provides a networking method and device for equipment in a local network and electronic equipment. Wherein the method comprises the following steps: if the local device detects that the first networking device is not in communication connection with the external network, determining that one local device is in communication connection with the external network as a second networking device; if the first networking equipment is restored to the working state, setting the first networking equipment as first local equipment of a local network; the second networking device obtains network data from the external network and forwards the network data to each of the local devices in the local network. In this manner, when the first networking device in the local network is not in communication connection with the external network, the local device in the local network is used as the second networking device to be in communication connection with the external network, and after the first networking device is restarted, the first networking device is set as the first local device of the local network, so that the device can be restarted when the local network enters an offline state.

Description

Networking method and device for equipment in local network and electronic equipment
Technical Field
The invention belongs to the technical field of equipment networking, and particularly relates to a networking method and device for equipment in a local network and electronic equipment.
Background
Along with the continuous development of the internet of things technology, intelligent kitchen electric devices in a kitchen are also becoming more and more popular, most of the intelligent kitchen electric devices can form a local communication network, which can be called a local network, and network data forwarding is performed through networking devices in the local network. The method of constructing the local network among the intelligent devices greatly reduces the number of devices in the access router.
However, the number of networking devices in the local network is usually only one, when the networking devices are dead or down and cannot work normally, other devices in the local network cannot forward network data through the networking devices, so that the devices in the whole local network can enter an offline state, and the existing technology does not have a method for re-entering the network when the local network enters the offline state.
Disclosure of Invention
In view of the above, an object of the present invention is to provide a method, an apparatus and an electronic device for networking devices in a local network, so that when the networking devices in the local network are not communicatively connected to an external network, the local devices in the local network are communicatively connected to the external network as the latest networking devices, and the devices when the local network enters an offline state are re-networked.
In a first aspect, an embodiment of the present invention provides a method for networking devices in a local network, where the local network includes a first networking device and a plurality of local devices; the first networking equipment is in communication connection with an external network, the plurality of local equipment is not in communication connection with the external network, and all the equipment in the local network are in communication connection with each other; the method comprises the following steps: if the local device detects that the first networking device is not in communication connection with the external network, determining that one local device is in communication connection with the external network as a second networking device; if the first networking equipment is restored to the working state, setting the first networking equipment as first local equipment of a local network; the second networking device obtains network data from the external network and forwards the network data to each of the local devices in the local network.
In a preferred embodiment of the present application, the step of setting the first networking device as the first local device of the local network if the first networking device is restored to the working state includes: if the first networking equipment is restored to the working state, detecting whether a local network exists; if the local network exists, the first networking device joins the local network as a first local device; the first local device sends an online notification to devices in the local network.
In a preferred embodiment of the present application, after the step of sending the online notification to the device in the local network by the first local device, the method further includes: if the second networking device receives an online notification sent by the first local device before the second networking device is in communication connection with the external network, the second networking device stops the communication connection with the external network; the first local device is again communicatively coupled to the external network as a first networking device.
In a preferred embodiment of the present application, the step of setting the first networking device as the first local device of the local network includes: the first networking device sends a networking device query notice to a device in the local network; the second networking device sends return data to the first networking device based on the networking device query notification; the first networking device receives the return data and sets the first networking device as a first local device of the local network based on the return data.
In a preferred embodiment of the present application, after the step of sending the return data to the first networking device by the second networking device based on the networking device query notification, the method further includes: if the first networking device does not receive the return data within a preset time interval, the first local device is used as the first networking device to be connected with the external network in a communication mode.
In a preferred embodiment of the present application, the step of the first local device re-connecting to the external network as the first networking device includes: the first local device is in communication connection with the external network as a first networking device based on pre-stored distribution network data.
In a preferred embodiment of the present application, the step of communicatively connecting the second networking device to an external network includes: the second networking equipment acquires networking information input by a user; the second networking device is communicatively coupled to the external network based on the networking information.
In a preferred embodiment of the present application, the step of communicatively connecting the second networking device to the external network based on the network access information includes: the second networking device obtains networking information input by a user through a display screen or a near field communication module.
In a preferred embodiment of the present application, each device in the local network is a kitchen appliance.
In a second aspect, an embodiment of the present invention further provides a networking apparatus for devices in a local network, where the local network includes a first networking device and a plurality of local devices; the first networking equipment is in communication connection with an external network, the plurality of local equipment is not in communication connection with the external network, and all the equipment in the local network are in communication connection with each other; the device comprises: the first networking device detection module is used for determining that one local device is used as a second networking device to be in communication connection with an external network if the local device detects that the first networking device is not in communication connection with the external network; the first networking equipment networking module is used for setting the first networking equipment as first local equipment of the local network if the first networking equipment is restored to the working state; and the second networking module is used for the second networking device to acquire network data from an external network and forwarding the network data to each local device in the local network.
In a third aspect, an embodiment of the present invention further provides an electronic device, including a processor and a memory, where the memory stores computer-executable instructions executable by the processor, the processor executing the computer-executable instructions to implement a method of networking devices in a local network.
In a fourth aspect, embodiments of the present invention also provide a computer-readable storage medium storing computer-executable instructions that, when invoked and executed by a processor, cause the processor to implement the networking method of devices in a local network described above.
The embodiment of the invention has the following beneficial effects:
According to the networking method, the networking device and the electronic equipment for the equipment in the local network, when the first networking equipment is not in communication connection with the external network, the local equipment can be determined to be used as the second networking equipment to be in communication connection with the external network, after the first networking equipment is restored to the working state, the first networking equipment is set as the first local equipment of the local network, the second networking equipment acquires network data from the external network, and the network data are forwarded to each local equipment in the local network. In this manner, when the first networking device in the local network is not in communication connection with the external network, the local device in the local network is used as the second networking device to be in communication connection with the external network, and after the first networking device is restarted, the first networking device is set as the first local device of the local network, so that the device can be restarted when the local network enters an offline state.
Additional features and advantages of the disclosure will be set forth in the description which follows, or in part will be obvious from the description, or may be learned by practice of the techniques of the disclosure.
The foregoing objects, features and advantages of the disclosure will be more readily apparent from the following detailed description of the preferred embodiments taken in conjunction with the accompanying drawings.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the present invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of a first local network according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for networking devices in a local network according to an embodiment of the present invention;
Fig. 3 is a schematic diagram of a second local network according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a third local network according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a fourth local network according to an embodiment of the present invention;
Fig. 6 is a flowchart of another method for networking devices in a local network according to an embodiment of the present invention;
fig. 7 is a schematic diagram of network access of a device in a local network according to an embodiment of the present invention;
Fig. 8 is a schematic diagram of a connection between a first networking device and an external network according to an embodiment of the present invention;
fig. 9 is a schematic diagram of a network configuration performed by a first networking device according to an embodiment of the present invention;
Fig. 10 is a schematic diagram of a second networking device for networking according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of a networking device of a device in a local network according to an embodiment of the present invention;
Fig. 12 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
At present, along with the continuous development of the internet of things, intelligent kitchen electric devices in a kitchen are also becoming popular, most of the intelligent kitchen electric devices can form a local communication network, which can be called a local network, and network data forwarding is performed through networking devices in the local network. The method of constructing the local network among the intelligent devices greatly reduces the number of devices in the access router. However, the number of networking devices in the local network is usually only one, when the networking devices are dead or down and cannot work normally, other devices in the local network cannot forward network data through the networking devices, so that the devices in the whole local network can enter an offline state, and the existing technology does not have a method for re-entering the network when the local network enters the offline state.
Based on the above, the method, the device and the electronic equipment for networking devices in the local network provided by the embodiments of the present invention can solve the problem that the devices in the local network cannot be re-networked when the local network of the home appliance is disconnected, when the first networking device in the local network is not in communication connection with the external network, the local device in the local network is used as the second networking device to be in communication connection with the external network, and after the first networking device is re-operated, the first networking device is set as the first local device of the local network, so that the device re-networking when the local network enters an offline state is realized.
For the sake of understanding the present embodiment, a method for networking devices in a local network disclosed in the present embodiment is first described in detail.
Embodiment one:
the embodiment of the invention provides a networking method of equipment in a local network, wherein the local network comprises a first networking equipment and a plurality of local equipment; the first networking device is in communication connection with an external network, and the plurality of local devices are not in communication connection with the external network, and all the devices in the local network are in communication connection with each other.
Wherein each device in the local network is a kitchen appliance. The devices in the local network are generally master-slave integrated, that is, the bluetooth module can switch between the master mode and the slave mode, and can be used as a master or a slave. In the master-slave integrated mode, one serial port Bluetooth module is set as a master device, the other serial port Bluetooth module is set as a slave device, and data transmission without any protocol can be performed after connection is established. The master device may initiate a search for other slave devices that would not be searched by the master device, but the slave device may not initiate a search for other devices. The embodiment of the invention relates to the following concepts:
AP (Access Point), wireless Access Point): is a creator of a wireless network and is a central node of the network. A wireless router used in a typical home or office is an AP.
SoftAP (Soft Access Point, wireless SoftAP): the same working mode as AP is simulated by means of software.
STA (Station): which itself does not accept wireless access, can be connected to an AP, and each terminal connected to a wireless network (e.g., notebook computers, PDAs, and other user devices that can be networked) can be referred to as a site.
Softap+sta mode: a hybrid mode of WiFi has both the SoftAP mode and STA mode functions.
ZigBee (ZigBee, zigBee protocol): the protocol is a wireless network protocol for low-speed short-distance transmission, and the bottom layer is a media access layer and a physical layer adopting IEEE 802.15.4 standard specifications. The main characteristics are low speed, low power consumption, low cost, support of a large number of network nodes, support of various network topologies, low complexity, rapidness, reliability and safety.
2G (2-Generation wireless telephone technology, second generation mobile communication technology): digital Time Division Multiple Access (TDMA) technology and Code Division Multiple Access (CDMA) technology are mainly used. The main service is speech, and its main feature is to provide digitized voice service and low-speed data service. It overcomes the weakness of analog mobile communication system, and can greatly raise speech quality and confidentiality, and can implement automatic roaming between provinces.
3G (3 rd-Generation, third Generation mobile communication technology): refers to a cellular mobile communication technology supporting high-speed data transmission. The 3G service can simultaneously transmit voice and data information. The 3G is a generation mobile communication system that combines wireless communication with multimedia communication such as the internet.
4G (the 4th generation mobile communication technology, fourth generation mobile communication technology): the 4G communication technology is based on the prior 2G and 3G communication technologies, and some novel technologies are added in the technology, so that the signals of wireless communication are more stable, the data transmission rate is improved, the compatibility is smoother, and the communication quality is higher. And the technology used in 4G communication is advanced to 2G and 3G communication, so that the information communication speed is increased.
5G (5 th Generation Mobile Communication Technology, fifth generation mobile communication technology): the method is a new generation broadband mobile communication technology with the characteristics of high speed, low time delay and large connection, and is a network infrastructure for realizing man-machine object interconnection.
Microcontrol unit (Microcontroller Unit; MCU): the CPU frequency and specification are properly reduced, and peripheral interfaces such as memory (Timer), USB, A/D conversion, UART, PLC, DMA, etc., and even LCD driving circuit are integrated on a single chip to form a chip-level computer for different application occasions. A control unit and a data processing unit as devices in the present embodiment.
Referring to the schematic diagram of a first local network shown in fig. 1, the local network may include 1 first networking device (device 0) and 3 local devices (devices 1-3), where the first networking device is communicatively coupled to an external network (e.g., the internet) and none of the local devices are communicatively coupled to the external network. Thus, if the local network wants to acquire data from the external network communication, the local network may receive the acquired data sent by the external network through the first networking device, and then perform data transmission between the first networking device and the local device.
In a set of products, there are a plurality of intelligent devices (the intelligent devices may be local devices or networking devices), and the intelligent devices include at least one network access module and at least one local network module. The intelligent devices added into the local network use the same type of local network module, and the used network access modules can be the same type or different types of modules.
Wherein the distribution network data includes, but is not limited to: wiFi password, SSID of WiFi. Interaction data includes, but is not limited to: cloud server IP address, port of cloud server IP address, wiFi password, SSID of WiFi, equipment model of networking equipment, equipment code of networking equipment. Networking modules include, but are not limited to: wifi module, 2G module, 3G module, 4G module, 5G module, router. Local network modules include, but are not limited to: bluetooth module, zigbee module, wiFi module. Means of accessing the internet include, but are not limited to: wiFi, 2G, 3G, 4G, 5G. The manner in which the local network is constructed includes, but is not limited to: bluetooth mesh, bluetooth master-slave integration, zigbee, wiFi mesh, softAP+STA mode.
As shown in fig. 1, there are three intelligent devices, namely, device 0, device 1 and device 2, in the local network, where all devices 1, 0 and 2 in the local network need to access the internet. Data communication between device 0, device 1 and device 2 may be via the established local network. Only device 0 has access to the internet at present, device 0 provides network data forwarding services for devices in the entire local network, i.e. device 0 may be a networking device, device 1 and device 2 being local devices.
Based on the above description, a flowchart of a method for networking devices in a local network shown in fig. 2 is taken into account, where the method for networking devices in a local network includes the following steps:
in step S202, if the local device detects that the first networking device is not communicatively connected to the external network, it is determined that one local device is communicatively connected to the external network as the second networking device.
Referring to the schematic diagram of the second local network shown in fig. 3, when the first networking device is powered off or down, the first networking device cannot provide network data forwarding services for other devices in the local network, and all devices in the local network are offline. Therefore, 1 local device needs to be selected from the local devices as the second networking device to be communicatively connected to the external network.
Here, only 1 local device can be selected as the second networking device, and a plurality of local devices cannot be selected as the second networking devices, so as to prevent local network faults caused by excessive networking devices.
Referring to the schematic diagram of the third local network shown in fig. 4, the user performs network allocation on the negotiated new networking device (i.e. the second networking device), and after the new networking device is successfully connected to the internet, the network data forwarding service is provided for the local network, so that the local network is on line again.
In step S204, if the first networking device is restored to the working state, the first networking device is set as the first local device of the local network.
Referring to the schematic diagram of the fourth local network shown in fig. 5, the new networking device provides a network data forwarding service for the local network, and after the original networking device (the first networking device) is on line, the new networking device is used as a local device (i.e., the first local device) to access the local network.
In step S206, the second networking device acquires network data from the external network, and forwards the network data to each local device in the local network.
Therefore, when the first networking device fails to be in communication connection with the external network due to the problems of network disconnection, power failure, downtime and the like, 1 local device can be selected as a second networking device to be in communication connection with the external network. Thereafter, if the first networking device is restored to an operational state, the first networking device is set to the first local device of the local network, rather than continuing to communicatively connect with the external network as a networking device. In this way, it can be ensured that the local network has and only one device is a networking device connected to an external network.
According to the networking method for the equipment in the local network, when the first networking equipment is not in communication connection with the external network, the local equipment can be determined to be used as the second networking equipment to be in communication connection with the external network, after the first networking equipment is restored to the working state, the first networking equipment is set as the first local equipment of the local network, the second networking equipment acquires network data from the external network, and the network data are forwarded to each local equipment in the local network. In this manner, when the first networking device in the local network is not in communication connection with the external network, the local device in the local network is used as the second networking device to be in communication connection with the external network, and after the first networking device is restarted, the first networking device is set as the first local device of the local network, so that the device can be restarted when the local network enters an offline state.
Embodiment two:
The present embodiment provides another method for networking devices in a local network, which is implemented on the basis of the foregoing embodiment, and is shown in fig. 6, and is a flowchart of another method for networking devices in a local network, where the method for networking devices in a local network includes the following steps:
In step S602, if the local device detects that the first networking device is not communicatively connected to the external network, it is determined that one local device is communicatively connected to the external network as the second networking device.
Step S604, if the first networking device is restored to the working state, detecting whether a local network exists; if the local network exists, the first networking device joins the local network as a first local device; the first local device sends an online notification to devices in the local network.
Referring to a schematic diagram of network access of devices in a local network shown in fig. 7, first networking data is an original networking device in fig. 7, and second networking device is a new networking device in fig. 7, which will not be described herein. Fig. 7 shows a process of converting the original networking device into the local device and forwarding the network data through the forwarding service provided by the new networking device when the original networking device resumes normal operation from the power-off state in the case that the new networking device has been negotiated through the flow.
As shown in fig. 7, after the original networking device is powered on, whether a local network exists around the original networking device is searched. The original networking equipment is accessed to the local network. The original networking device sends an online notification of the original networking device to all devices in the local network.
The method comprises the steps of sending the online notification of the original networking device to all devices in a local network to interrupt the current device negotiation process, wherein if the online notification of the original networking device is received in the device negotiation process, the selected device cannot enter a distribution network mode.
In particular, if the first networking device is already online before the second networking device is communicatively connected to the external network, it is still connected to the external network through the first networking device, for example: if the second networking device receives an online notification sent by the first local device before the second networking device is in communication connection with the external network, the second networking device stops the communication connection with the external network; the first local device is again communicatively coupled to the external network as a first networking device.
As shown in fig. 7, the original networking device sends a current networking device query notification to all devices of the local network. The original networking device sends the inquiry notice of the current networking device in order to know whether the current local network has networking devices or not, which device is providing network data forwarding service, and tell the devices in the network that new devices are currently accessed to the local network. Telling the current networking device that it needs to provide itself with network data forwarding services.
The original networking equipment waits for the return data of the current networking equipment and waits for a certain time. This waiting time may be set according to the actual situation. And judging whether the return data of the current networking equipment is received or not. If not received during the waiting period, the original networking equipment is restarted to continue the process of providing the networking data forwarding service.
For example, a first networking device sends a networking device query notification to a device in a local network; the second networking device sends return data to the first networking device based on the networking device query notification; the first networking device receives the return data and sets the first networking device as a first local device of the local network based on the return data.
For another example, if the first networking device does not receive the return data within a preset time interval, the first local device is again communicatively connected as the first networking device to the external network.
Wherein the return data includes, but is not limited to: the method comprises the steps of cloud server IP address, port of the cloud server IP address, wiFi password, SSID of WiFi, equipment model of networking equipment, equipment code of the networking equipment, network address of the networking equipment, MAC address of the networking equipment and current network state of the networking equipment.
If the original networking device receives the return data, the return data of the current networking device can be analyzed. The purpose of the analysis of the returned data is that the current networking equipment tells the original networking equipment of own model and the address of the current networking equipment in the local network, and when the data is forwarded between the equipment, whether the data is sent to the current networking equipment or not is judged through the target address information contained in the data packet. And the method can also be used for checking whether the server address accessed by the current networking equipment is the server address which needs to be connected. The original networking device may then be set as a local offline device, maintaining access to the local network, until a notification of a new networking device is received before turning to online mode.
The first local device can be used as a first networking device to be in communication connection with an external network again, and the first local device can be used as the first networking device to be in communication connection with the external network based on pre-stored distribution network data.
Referring to a schematic diagram of connection between a first networking device and an external network shown in fig. 8, fig. 8 shows a process in which an original networking device resumes normal operation from a power-off state, and when a new device has not been negotiated in a current local network, the original networking device re-enters the network and provides network services. As shown in fig. 8, the current local network is known to have no new networking devices. The devices of the local network are interrupted in the negotiation process. The original networking equipment is accessed to the Internet according to the networking data stored in the last network. And judging whether the Internet is successfully accessed. If the Internet is successfully accessed, a networking notification is sent to surrounding devices. The networking notification is used for notifying the equipment in the offline mode in the local network, so that the equipment in the offline mode is converted into the online mode after receiving the networking notification, and normal network data communication is performed. If the internet is not successfully accessed, the original networking equipment enters a distribution network mode. And after the equipment successfully accesses the network and sends the notification, providing network data forwarding service for all the equipment in the local network.
Specifically, referring to fig. 9, a schematic diagram of a network configuration performed by a first networking device, a new networking device enters a network configuration mode. And judging whether the Internet is successfully accessed. A networking notification is sent to all devices in the local network. Networking notifications include, but are not limited to: the method comprises the steps of cloud server IP address, port of the cloud server IP address, wiFi password, SSID of WiFi, equipment model of networking equipment, equipment code of the networking equipment, network address of the networking equipment, MAC address of the networking equipment and current network state of the networking equipment. The newly networked device provides network data forwarding services for all devices in the local network.
Wherein the second networking device may be communicatively coupled to the external network by: the second networking equipment acquires networking information input by a user; the second networking device is communicatively coupled to the external network based on the networking information.
The second networking device may acquire the networking information input by the user through a display screen or a near field communication module, see a schematic diagram of the second networking device for network configuration shown in fig. 10, and notify the user that the current local network is offline through means such as a display screen, lamplight, ringing, and the like. Judging whether a screen network distribution function exists. If the screen network distribution function is provided, the user sets network access information corresponding to a network access mode through the screen, wherein the network access mode comprises a WiFi (wireless fidelity), a network cable and the like. If the screen distribution network function is not available, the device opens the near field communication module. Waiting for access by the user. Near field communication modules include, but are not limited to: wiFi, bluetooth, NFC. Means for accessing the device near field communication network of the user include, but are not limited to: cell-phone, tablet, computer. If the device does not have the screen distribution function, the device must have the near field communication distribution function. And receiving and analyzing the distribution network data set by the user, and accessing the Internet. Judging whether the Internet is successfully accessed or not, and if the Internet access fails, re-configuring the Internet. And if the network access is successful, notifying the local network equipment and starting the network service.
In step S606, the second networking device acquires network data from the external network, and forwards the network data to each local device in the local network.
The method provided by the embodiment of the invention illustrates the mode of switching the working mode when the local network is re-accessed when the networking equipment in the local network is in normal work after being down. The new equipment joins the local network and sends the inquiry notice of the current networking equipment in the local network, judges whether the local network currently has the networking equipment or not, and further changes the working state of the equipment, so that a plurality of equipment for providing network data forwarding can be avoided in the local network.
The network access mode of the network reconfiguration method is simple and easy to realize, the control complexity is low, the network access mode is in accordance with actual use scenes, and the practicability is high.
Embodiment III:
corresponding to the method embodiment, the embodiment of the invention provides a networking device of equipment in a local network, wherein the local network comprises a first networking equipment and a plurality of local equipment; the first networking device is in communication connection with an external network, and the plurality of local devices are not in communication connection with the external network, and all the devices in the local network are in communication connection with each other. Referring to fig. 11, a schematic structural diagram of a networking device of a device in a local network, where the networking device of the device in the local network includes:
A first networking device detection module 111 configured to determine that a local device is communicatively connected to the external network as a second networking device if the local device detects that the first networking device is not communicatively connected to the external network;
a first networking device networking module 112, configured to set the first networking device as a first local device of the local network if the first networking device is restored to an operating state;
and the second networking module 113 is configured to obtain network data from an external network by using the second networking device, and forward the network data to each local device in the local network.
According to the networking device of the equipment in the local network, when the first networking equipment is not in communication connection with the external network, the local equipment can be determined to be used as the second networking equipment to be in communication connection with the external network, after the first networking equipment is restored to the working state, the first networking equipment is set as the first local equipment of the local network, the second networking equipment acquires network data from the external network, and the network data are forwarded to each local equipment in the local network. In this manner, when the first networking device in the local network is not in communication connection with the external network, the local device in the local network is used as the second networking device to be in communication connection with the external network, and after the first networking device is restarted, the first networking device is set as the first local device of the local network, so that the device can be restarted when the local network enters an offline state.
The first networking device detection module is used for detecting whether a local network exists if the first networking device is restored to a working state; if the local network exists, the first networking device joins the local network as a first local device; the first local device sends an online notification to devices in the local network.
The first networking device detection module is further configured to stop communication connection with the external network if the second networking device receives an online notification sent by the first local device before the second networking device is in communication connection with the external network; the first local device is again communicatively coupled to the external network as a first networking device.
The first networking device networking module is used for sending a networking device query notice to devices in the local network by the first networking device; the second networking device sends return data to the first networking device based on the networking device query notification; the first networking device receives the return data and sets the first networking device as a first local device of the local network based on the return data.
The first networking device networking module is further configured to, if the first networking device does not receive the return data within a preset time interval, re-connect the first local device as the first networking device to the external network in a communication manner.
The first networking module is used for the first local equipment to be used as the first networking equipment to be in communication connection with an external network based on pre-stored distribution network data.
The second networking device networking module is used for the second networking device to acquire networking information input by a user; the second networking device is communicatively coupled to the external network based on the networking information.
The second networking device networking module is used for the second networking device to acquire networking information input by a user through a display screen or a near field communication module.
Each device in the local network is a kitchen appliance.
It will be clear to those skilled in the art that, for convenience and brevity of description, the specific working process of the networking device of the apparatus in the local network described above may refer to the corresponding process in the foregoing embodiment of the networking method of the apparatus in the local network, which is not described herein again.
Embodiment four:
the embodiment of the invention also provides an electronic device, which is used for running the networking method of the device in the local network; referring to the schematic structural diagram of an electronic device shown in fig. 12, the electronic device includes a memory 100 and a processor 101, where the memory 100 is configured to store one or more computer instructions, and the one or more computer instructions are executed by the processor 101 to implement the above-mentioned networking method for devices in a local network.
Further, the electronic device shown in fig. 12 further includes a bus 102 and a communication interface 103, and the processor 101, the communication interface 103, and the memory 100 are connected through the bus 102.
The memory 100 may include a high-speed random access memory (RAM, random Access Memory), and may further include a non-volatile memory (non-volatile memory), such as at least one disk memory. The communication connection between the system network element and at least one other network element is implemented via at least one communication interface 103 (which may be wired or wireless), and may use the internet, a wide area network, a local network, a metropolitan area network, etc. Bus 102 may be an ISA bus, a PCI bus, an EISA bus, or the like. The buses may be divided into address buses, data buses, control buses, etc. For ease of illustration, only one bi-directional arrow is shown in FIG. 12, but not only one bus or type of bus.
The processor 101 may be an integrated circuit chip with signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in the processor 101 or instructions in the form of software. The processor 101 may be a general-purpose processor, including a central processing unit (Central Processing Unit, abbreviated as CPU), a network processor (Network Processor, abbreviated as NP), and the like; but may also be a digital signal Processor (DIGITAL SIGNAL Processor, DSP), application Specific Integrated Circuit (ASIC), field-Programmable gate array (FPGA) or other Programmable logic device, discrete gate or transistor logic device, discrete hardware components. The disclosed methods, steps, and logic blocks in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be embodied directly in the execution of a hardware decoding processor, or in the execution of a combination of hardware and software modules in a decoding processor. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in the memory 100 and the processor 101 reads information in the memory 100 and in combination with its hardware performs the steps of the method of the previous embodiments.
The embodiment of the invention also provides a computer readable storage medium, which stores computer executable instructions that, when being called and executed by a processor, cause the processor to implement the above-mentioned networking method for devices in the local network, and the specific implementation can be referred to the method embodiment and will not be described herein.
The networking method, the networking device and the computer program product of the electronic device for the local network provided by the embodiment of the invention comprise a computer readable storage medium storing program codes, and the instructions included in the program codes can be used for executing the method in the previous method embodiment, and specific implementation can be referred to the method embodiment and will not be repeated here.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described system and/or apparatus may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
In addition, in the description of embodiments of the present invention, unless explicitly stated and limited otherwise, the terms "mounted," "connected," and "connected" are to be construed broadly, and may be, for example, fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; can be directly connected or indirectly connected through an intermediate medium, and can be communication between two elements. The specific meaning of the above terms in the present invention will be understood in specific cases by those of ordinary skill in the art.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In the description of the present invention, it should be noted that the directions or positional relationships indicated by the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc. are based on the directions or positional relationships shown in the drawings, are merely for convenience of describing the present invention and simplifying the description, and do not indicate or imply that the devices or elements referred to must have a specific orientation, be configured and operated in a specific orientation, and thus should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: the above examples are only specific embodiments of the present invention, and are not intended to limit the scope of the present invention, but it should be understood by those skilled in the art that the present invention is not limited thereto, and that the present invention is described in detail with reference to the foregoing examples: any person skilled in the art may modify or easily conceive of the technical solution described in the foregoing embodiments, or perform equivalent substitution of some of the technical features, while remaining within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention, and are intended to be included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A method for networking devices in a local network, wherein the local network comprises a first networking device and a plurality of local devices; the first networking device is in communication connection with an external network, a plurality of local devices are not in communication connection with the external network, and all devices in the local network are in communication connection with each other; the method comprises the following steps:
Determining that one of the local devices is communicatively coupled to the external network as a second networking device if the local device detects that the first networking device is not communicatively coupled to the external network;
If the first networking equipment is restored to a working state, setting the first networking equipment as first local equipment of the local network;
the second networking device acquires network data from the external network and forwards the network data to each local device in the local network;
The step of setting the first networking device as a first local device of the local network comprises: the first networking device sends a networking device query notification to devices in the local network; the second networking device sends return data to the first networking device based on the networking device query notification; the first networking device receives the return data, and sets the first networking device as a first local device of the local network based on the return data; and if the first networking equipment does not receive the return data within a preset time interval, the first local equipment is used as the first networking equipment again to be in communication connection with the external network.
2. The method of claim 1, wherein the step of setting the first networking device as a first local device of the local network if the first networking device is restored to an operational state, further comprises:
If the first networking equipment is restored to a working state, detecting whether the local network exists;
if the local network exists, the first networking device joins the local network as a first local device;
the first local device sends an online notification to devices in the local network.
3. The method of claim 2, wherein after the step of the first local device sending an online notification to a device in the local network, the method further comprises:
if the second networking device receives an online notification sent by the first local device before the second networking device is in communication connection with the external network, the second networking device stops the communication connection with the external network;
The first local device is re-communicatively coupled to the external network as the first networking device.
4. A method according to claim 3, wherein the step of the first local device re-interfacing with the external network as the first networking device comprises:
The first local device is in communication connection with the external network as the first networking device based on pre-stored distribution network data.
5. The method of claim 1, wherein the step of communicatively connecting the second networking device to the external network comprises:
The second networking equipment acquires networking information input by a user;
The second networking device is communicatively coupled to the external network based on the networking information.
6. The method of claim 5, wherein the step of the second networking device communicatively connecting to the external network based on the networking information comprises:
And the second networking equipment acquires networking information input by a user through a display screen or a near field communication module.
7. The method of any of claims 1-6, wherein each device in the local network is a kitchen appliance.
8. A networking device for equipment in a local network, wherein the local network comprises a first networking equipment and a plurality of local equipment; the first networking device is in communication connection with an external network, a plurality of local devices are not in communication connection with the external network, and all devices in the local network are in communication connection with each other; the device comprises:
A first networking device detection module configured to determine that one of the local devices is communicatively connected to the external network as a second networking device if the local device detects that the first networking device is not communicatively connected to the external network;
The first networking equipment networking module is used for setting the first networking equipment as first local equipment of the local network if the first networking equipment is restored to a working state;
The second networking device networking module is used for acquiring network data from the external network by the second networking device and forwarding the network data to each local device in the local network;
The first networking device networking module is used for sending a networking device query notice to devices in the local network by the first networking device; the second networking device sends return data to the first networking device based on the networking device query notification; the first networking device receives the return data, and sets the first networking device as a first local device of the local network based on the return data; and if the first networking equipment does not receive the return data within a preset time interval, the first local equipment is used as the first networking equipment again to be in communication connection with the external network.
9. An electronic device comprising a processor and a memory, the memory storing computer-executable instructions executable by the processor to perform the method of networking devices in a local network of any one of claims 1 to 7.
10. A computer readable storage medium storing computer executable instructions which, when invoked and executed by a processor, cause the processor to implement a method of networking devices in a local network according to any one of claims 1 to 7.
CN202210193546.8A 2022-03-01 2022-03-01 Networking method and device for equipment in local network and electronic equipment Active CN114531722B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210193546.8A CN114531722B (en) 2022-03-01 2022-03-01 Networking method and device for equipment in local network and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210193546.8A CN114531722B (en) 2022-03-01 2022-03-01 Networking method and device for equipment in local network and electronic equipment

Publications (2)

Publication Number Publication Date
CN114531722A CN114531722A (en) 2022-05-24
CN114531722B true CN114531722B (en) 2024-05-03

Family

ID=81627180

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210193546.8A Active CN114531722B (en) 2022-03-01 2022-03-01 Networking method and device for equipment in local network and electronic equipment

Country Status (1)

Country Link
CN (1) CN114531722B (en)

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102271045A (en) * 2010-06-02 2011-12-07 华为技术有限公司 Virtual private network (VPN)-instance-based inter-equipment backup method, equipment and system
EP2553975A1 (en) * 2010-04-02 2013-02-06 InterDigital Patent Holdings, Inc. Group procedures for machine type communications devices
CN103580915A (en) * 2013-09-26 2014-02-12 东软集团股份有限公司 Method and device for determining main control node of trunking system
WO2014079088A1 (en) * 2012-11-23 2014-05-30 北京东土科技股份有限公司 Method and node for implementing redundancy on basis of chain network
CN103929789A (en) * 2014-04-11 2014-07-16 北京理工大学 Automatic selection method for MANET network master control node based on active routing algorithm
CN104113428A (en) * 2013-04-18 2014-10-22 杭州迪普科技有限公司 Apparatus management device and method
CN104125079A (en) * 2013-04-23 2014-10-29 华为技术有限公司 Method and device for determining double-device hot-backup configuration information
CN104238546A (en) * 2014-08-28 2014-12-24 中国南方电网有限责任公司超高压输电公司检修试验中心 Direct current master device fault diagnosis method based on hybrid neural network
CN104486174A (en) * 2014-12-08 2015-04-01 广东欧珀移动通信有限公司 Networking method and networking device for intelligent terminals
CN108076472A (en) * 2016-11-14 2018-05-25 联芯科技有限公司 The reselecting method of star topology ad hoc network and its control centre's node
CN108632112A (en) * 2018-04-12 2018-10-09 腾讯科技(深圳)有限公司 Network detecting method, device, computer readable storage medium and computer equipment
CN110635979A (en) * 2019-10-21 2019-12-31 杭州鸿雁智能科技有限公司 Method for interconnecting communication devices in local area network
CN113316173A (en) * 2021-05-26 2021-08-27 北京小米移动软件有限公司 Networking equipment determination method, device, equipment and storage medium
CN113596176A (en) * 2021-08-12 2021-11-02 杭州萤石软件有限公司 Self-selection method and device of Internet of things center node, Internet of things equipment and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102134549B1 (en) * 2018-12-13 2020-07-27 알리바바 그룹 홀딩 리미티드 Change of primary node in distributed system

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2553975A1 (en) * 2010-04-02 2013-02-06 InterDigital Patent Holdings, Inc. Group procedures for machine type communications devices
CN102271045A (en) * 2010-06-02 2011-12-07 华为技术有限公司 Virtual private network (VPN)-instance-based inter-equipment backup method, equipment and system
WO2014079088A1 (en) * 2012-11-23 2014-05-30 北京东土科技股份有限公司 Method and node for implementing redundancy on basis of chain network
CN104113428A (en) * 2013-04-18 2014-10-22 杭州迪普科技有限公司 Apparatus management device and method
CN104125079A (en) * 2013-04-23 2014-10-29 华为技术有限公司 Method and device for determining double-device hot-backup configuration information
CN103580915A (en) * 2013-09-26 2014-02-12 东软集团股份有限公司 Method and device for determining main control node of trunking system
CN103929789A (en) * 2014-04-11 2014-07-16 北京理工大学 Automatic selection method for MANET network master control node based on active routing algorithm
CN104238546A (en) * 2014-08-28 2014-12-24 中国南方电网有限责任公司超高压输电公司检修试验中心 Direct current master device fault diagnosis method based on hybrid neural network
CN104486174A (en) * 2014-12-08 2015-04-01 广东欧珀移动通信有限公司 Networking method and networking device for intelligent terminals
CN108076472A (en) * 2016-11-14 2018-05-25 联芯科技有限公司 The reselecting method of star topology ad hoc network and its control centre's node
CN108632112A (en) * 2018-04-12 2018-10-09 腾讯科技(深圳)有限公司 Network detecting method, device, computer readable storage medium and computer equipment
CN110635979A (en) * 2019-10-21 2019-12-31 杭州鸿雁智能科技有限公司 Method for interconnecting communication devices in local area network
CN113316173A (en) * 2021-05-26 2021-08-27 北京小米移动软件有限公司 Networking equipment determination method, device, equipment and storage medium
CN113596176A (en) * 2021-08-12 2021-11-02 杭州萤石软件有限公司 Self-selection method and device of Internet of things center node, Internet of things equipment and system

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
An efficient method of reselecting Grand Master in IEEE 802.1AS;Younghwan Jeon等;The 20th Asia-Pacific Conference on Communication (APCC2014);20150423;全文 *
基于MongoDB的高可用性分布式数据库集群技术研究;符永琦;;信息技术与信息化(第09期);全文 *
基于节能的WSN分簇式故障诊断算法;曾庆杰;朱晓娟;王先超;;阜阳师范学院学报(自然科学版)(第04期);全文 *

Also Published As

Publication number Publication date
CN114531722A (en) 2022-05-24

Similar Documents

Publication Publication Date Title
EP2677833B1 (en) Terminal and Method for P2P Connection in Wi-Fi Network
US10764805B2 (en) Signal strength measurement method and device
US9949116B2 (en) Method and apparatus for establishing SSID-based connection between terminal device and gateway device
CN111884836B (en) Service transmission method and device
CN103533592B (en) Multimode terminal and communication means
CN111417111A (en) Data processing method and network equipment
CN106454968B (en) A kind of caller method and device based on CSFB
CN105745906B (en) Message processing method, system and related equipment
CN113038440B (en) Communication channel switching method and device, computer equipment and readable storage medium
EP2672758B1 (en) Methods and apparatuses for easing Internet access by mobile stations associated with a mobile access point
KR20220129610A (en) Method and apparatus for indicating IMS emergency service status to a terminal
WO2015127729A1 (en) Method, apparatus and system for accessing wireless local area network by non-input device
CN107124744B (en) Network switching method and wireless access point
CN114531722B (en) Networking method and device for equipment in local network and electronic equipment
CN114531661A (en) Networking method and device for equipment in local network and electronic equipment
WO2015077979A1 (en) Maintenance management method and device, and device maintenance system
CN114390571A (en) Neighbor cell measurement method and related product
CN111148171A (en) Call switching method and server
EP3048858A1 (en) Wireless customer premise equipment and accessing method therefor
KR101993778B1 (en) Apparatus and Method for Displaying Indicator According to Interwork Network
CN112333068B (en) Power supply communication bus system, power supply communication method and electronic equipment
TWI778614B (en) Method, terminal, base station, and computer-readable storage medium for determining and indicating access parameters
CN114710534A (en) Control authority switching method and device and electronic equipment
CN108347740B (en) Processing method for network communication function abnormity and application processor
WO2020221304A1 (en) Communication method and apparatus

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