Networking equipment processing method and device, electronic equipment and storage medium
By sending close-range wireless offline messages when the networking device is offline, the problem of equipment status perception lag in traditional methods is solved, and instant offline perception and rapid update of networking devices are realized.
Patent Information
- Application Number
- CN202311393642.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-25
- Publication Date
- 2025-04-25
AI Technical Summary
The traditional method of networking equipment offline has a limitation on sending a heartbeat detection message, which leads to a lag in device status perception, which cannot meet the user's needs for immediate perception and immediate removal.
When the network connection between the network device and the LAN is disconnected, it is determined that the device is in the offline state, and the offline message is sent through close-range wireless communication, triggering other network devices of the same LAN to determine the current state.
It realizes immediate perception and rapid update of networking equipment offline, avoids lag in device status perception, and meets users' immediate needs for offline.
Smart Images

Figure CN119892914A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of communications, and in particular to a processing method, device, electronic device and storage medium for networking equipment. Background Art
[0002] Networking refers to connecting multiple computers or multiple network devices together to form a network so that they can communicate with each other and share resources, such as a local area network established between computers and network devices in the same office or building.
[0003] The network provides external interfaces to provide upper-layer services and peripheral modules with notifications of device online, offline, and status changes. In the traditional device offline method, heartbeat detection messages are periodically sent to determine whether the device in the network is offline. However, this method is limited by the sending cycle of heartbeat detection messages, and there is a lag in the perception of device status, which cannot meet the user's needs for immediate perception and immediate offline. Summary of the invention
[0004] The present disclosure provides a processing method, device, electronic device and storage medium for a networking device, so as to overcome the problems of slow offline perception and long offline waiting time of the networking device.
[0005] According to a first aspect of an embodiment of the present disclosure, a processing method for a networking device is provided, including:
[0006] When the network connection between the first networking device and the local area network is disconnected, determining that the first networking device is in an offline state;
[0007] When the first networking device is in the offline state, sending an offline message by means of short-range wireless communication;
[0008] Wherein, when a second networking device in the same local area network as the first networking device receives the offline message, the second networking device is triggered to determine the current state of the first networking device.
[0009] In some embodiments, when the first networking device is in the offline state, sending an offline message by means of short-range wireless communication includes:
[0010] When the first networking device is in the offline state, broadcasting the offline message to each device within the radiation range by short-range wireless broadcasting;
[0011] Among them, the offline message includes: a first information code generated by the first networking device when joining the local area network, and the first information code is used to match the information code list of the second networking device to trigger the second networking device to determine the current status of the first networking device.
[0012] In some embodiments, when the first networking device is in the offline state, sending an offline message by means of short-range wireless communication includes:
[0013] When the first networking device is in the offline state, determining the second networking device to establish a short-range wireless connection with the first networking device;
[0014] Based on the short-range wireless connection with the second networking device, the offline message is sent to the second networking device.
[0015] A second aspect of the embodiments of the present disclosure provides a processing method for a networking device, including:
[0016] The second networking device receives the offline message sent by the first networking device by means of short-range wireless communication, and determines the current state of the first networking device based on the offline message;
[0017] After determining that the first networking device in the same local area network as the second networking device is offline, the device information of the first networking device is deleted from the stored device list.
[0018] In some embodiments, the second networking device receives an offline message sent by the first networking device by means of short-range wireless communication, and determines a current state of the first networking device based on the offline message, including:
[0019] When monitoring an offline message sent by the first networking device via a short-range wireless broadcast, parsing the offline message to obtain a first information code;
[0020] Matching the first information code with a pre-stored information code list; wherein the information code list includes: information codes generated by each networking device when joining the local area network;
[0021] When the first information code is matched in the information code list, the current state of the first networking device is determined.
[0022] In some embodiments, the second networking device receives an offline message sent by the first networking device by means of short-range wireless communication, and determines a current state of the first networking device based on the offline message, including:
[0023] Based on the short-range wireless connection with the first networking device, the offline message sent by the first networking device is received, and the current state of the first networking device is determined based on the offline message.
[0024] In some embodiments, determining the current state of the first networking device based on the offline message includes:
[0025] Sending a heartbeat detection message to the first networking device;
[0026] When no heartbeat reply message sent by the first networking device is received within a preset time, it is determined that the first networking device is in an offline state.
[0027] According to a third aspect of an embodiment of the present disclosure, a processing device of a networking device is provided, including:
[0028] A determination module, configured to determine that the first networking device is in an offline state when a network connection between the first networking device and the local area network is disconnected;
[0029] The sending module is configured to send an offline message through short-range wireless communication when the first networking device is in the offline state; wherein, when a second networking device in the same local area network as the first networking device receives the offline message, the second networking device is triggered to determine the current state of the first networking device.
[0030] In some embodiments, the sending module is further configured to:
[0031] When the first networking device is in the offline state, broadcasting the offline message to each networking device within the radiation range by short-range wireless broadcasting;
[0032] Among them, the offline message includes: a first information code generated by the first networking device when joining the local area network, and the first information code is used to match the information code list of the second networking device to trigger the second networking device to determine the current status of the first networking device.
[0033] In some embodiments, the sending module is further configured to:
[0034] When the first networking device is in the offline state, determining the second networking device to establish a short-range wireless connection with the first networking device;
[0035] Based on the short-range wireless connection with the second networking device, the offline message is sent to the second networking device.
[0036] A fourth aspect of the embodiments of the present disclosure provides a processing device for a networking device, including:
[0037] A receiving module, configured to receive an offline message sent by a first networking device through short-range wireless communication, and determine a current state of the first networking device;
[0038] The processing module is configured to delete the device information of the first networking device from the stored device list after determining that the first networking device in the same local area network as the second networking device is offline.
[0039] In some embodiments, the receiving module is further configured to:
[0040] When monitoring an offline message sent by the first networking device via a short-range wireless broadcast, parsing the offline message to obtain a first information code;
[0041] Matching the first information code with a pre-stored information code list; wherein the information code list includes: information codes generated by each networking device when joining the local area network;
[0042] When the first information code is matched in the information code list, the current state of the first networking device is determined.
[0043] In some embodiments, the receiving module is further configured to:
[0044] Based on the short-range wireless connection with the first networking device, the offline message sent by the first networking device is received, and the current state of the first networking device is determined.
[0045] In some embodiments, the receiving module is further configured to:
[0046] Sending a heartbeat detection message to the first networking device;
[0047] When no heartbeat reply message sent by the first networking device is received within a preset time, it is determined that the first networking device is in an offline state.
[0048] According to a fifth aspect of an embodiment of the present disclosure, there is provided an electronic device, including:
[0049] processor;
[0050] a memory configured to store processor-executable instructions;
[0051] The processor is configured to execute the processing method of the networking device described in the first aspect or the second aspect above when calling the executable instructions in the memory.
[0052] According to the sixth aspect of an embodiment of the present disclosure, a non-temporary computer-readable storage medium is provided. When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute the processing method of the networking device described in the first aspect or the second aspect above.
[0053] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:
[0054] The processing method of the networking device disclosed in the present invention determines that the first networking device is offline when the network connection between the first networking device and the local area network is disconnected. At this time, the first networking device in the offline state sends an offline message through short-range wireless communication. When the second networking device in the same local area network as the first networking device receives the offline message, the second networking device determines the current state of the first networking device. After determining that the first networking device is offline, the device information of the first networking device is deleted from the stored device list. In this way, after any one or more networking devices go offline, other networking devices in the local area network can immediately determine the current state of the offline networking device through the offline message sent by the offline networking device, so as to quickly update the device list in the local networking device and realize rapid offline perception without waiting.
[0055] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0057] Figure 1 The process diagram of a processing method of a networking device according to an exemplary embodiment is shown Figure 1 .
[0058] Figure 2 The process diagram of a processing method of a networking device according to an exemplary embodiment is shown Figure 2 .
[0059] Figure 3 The process diagram of a processing method of a networking device according to an exemplary embodiment is shown Figure 3 .
[0060] Figure 4 The diagram is a schematic diagram of an interaction process between a device A and a device B for executing a processing method of a networking device according to an exemplary embodiment.
[0061] Figure 5is a schematic diagram of a processing device of a networking device according to an exemplary embodiment. Figure 1 .
[0062] Figure 6 is a schematic diagram of a processing device of a networking device according to an exemplary embodiment. Figure 2 .
[0063] Figure 7 The diagram is a schematic structural diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0064] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0065] In the specification, unless otherwise clearly stated, the terms "first" and "second" are used only to describe and distinguish constituent elements, and should not be understood as indicating an order. Unless otherwise clearly stated, the terms "connected", "fixed", etc. should be understood as having a broad meaning, including but not limited to directly, indirectly, detachably "connected", "fixed", etc.
[0066] Figure 1 The process of a processing method of a networking device according to an exemplary embodiment is shown Figure 1 ,like Figure 1 As shown, the method mainly includes the following steps:
[0067] In step 101, when the network connection between the first networking device and the local area network is disconnected, it is determined that the first networking device is in an offline state.
[0068] In this embodiment, multiple networking devices are connected to form a local area network. After the networking is successful (i.e., the networking devices are online), each networking device needs to notify other networking devices and store device information with each other so that the subsequent networking devices can communicate with each other and share resources. When any one or more networking devices in the local area network are disconnected from the network connection of the local area network, the one or more networking devices are the first networking devices, and the first networking device determines that it is offline (i.e., the networking device is offline). In other words, the first networking device described in this embodiment is not a fixed device, but any one or more networking devices in the local area network that are to be offline.
[0069] It should be noted that the network connection disconnection described in this embodiment may be that the first networking device actively disconnects the network connection with the local area network, or it may be that the network connection with the local area network is passively disconnected due to poor network conditions. Of course, after the connection with the local area network is passively disconnected due to poor network conditions, it is also possible that the connection with the local area network is automatically restored in a very short time due to improved network conditions. Therefore, after the network connection with the local area network is disconnected, the first networking device needs to determine that it is offline. The first networking device in the offline state can no longer communicate with other networking devices based on the local area network.
[0070] In step 102, when the first networking device is in an offline state, an offline message is sent via short-range wireless communication, wherein when a second networking device in the same local area network as the first networking device receives the offline message, the second networking device is triggered to determine the current state of the first networking device.
[0071] In this embodiment, after the first networking device is offline, the first networking device can send an offline message through short-range wireless communication to complete the offline notification of other networking devices in the local area network. At this time, other networking devices do not need to wait for the heartbeat detection cycle time to arrive, and can directly execute the offline determination process based on the offline message to determine the current state of the first networking device, thereby realizing rapid perception of the device state.
[0072] For example: Device A, Device B, and Device C in the same office form a local area network by connecting to the company's wifi. When the network connection between Device A and the local area network is disconnected (that is, the connection between Device A and the company's wifi is disconnected), Device A (that is, the first networking device) determines that it is offline. At this time, Device A (that is, the first networking device) sends an offline message through short-range wireless communication (such as Bluetooth, Zigbee, etc.). At this time, after Device B (the second networking device) and Device C (the second networking device) receive the offline message, they execute the offline determination process based on the offline message to determine the current state of Device A (the first networking device). Of course, when using Bluetooth to send offline messages, low-power Bluetooth can be used first to reduce device power consumption.
[0073] In some embodiments, step 102 includes: when the first networking device is in an offline state, broadcasting an offline message to each device within the radiation range via short-range wireless broadcasting; wherein the offline message includes: a first information code generated by the first networking device when joining the local area network, the first information code being used to match an information code list of the second networking device to trigger the second networking device to determine the current state of the first networking device.
[0074] Specifically, when the first networking device is in an offline state, the first networking device can no longer communicate with other networking devices based on the local area network. Therefore, the offline message can be broadcast to each device within the radiation range through a short-range wireless broadcast method. Short-range wireless broadcast methods may include Bluetooth broadcast methods, Zigbee broadcast methods, etc. When Bluetooth broadcast is used to send offline messages, low-power Bluetooth can be used preferentially. The radiation range of the Bluetooth broadcast method is generally 10m-100m, and the radiation range of the Zigbee broadcast method is generally 10m-50m. When sending offline messages using a short-range wireless broadcast method, one-to-many message sending can be achieved instantly without establishing a connection relationship between the sender and the receiver.
[0075] It should be noted that the broadcast radiation range of the first networking device includes not only the networking devices in the local area network, but may also include other devices that are not connected to the local area network (devices that are not networked). Therefore, the offline message broadcasted by the first networking device also includes: the first information code generated by the first networking device when joining the local area network. The first information code is used to match other networking devices in the local area network (i.e., the second networking device) to trigger other networking devices (the second networking device) to start executing the offline determination process to determine the current state of the first networking device.
[0076] Each networking device will generate its own information code when joining the LAN (i.e. when the networking device goes online), and send the information code to other networking devices in the LAN, so that each networking device will store an information code list containing the information codes of all networking devices for subsequent mutual communication and resource sharing. Each information code corresponds to a networking device, and the information code can include the device information and online information of the networking device (such as the number of online times and online time), or it can be just a random number. The random number generated each time the networking device goes online is different.
[0077] In some embodiments, step 102 includes: when the first networking device is in an offline state, determining a second networking device that establishes a short-range wireless connection with the first networking device; and sending the offline message to the second networking device based on the short-range wireless connection with the second networking device.
[0078] In this embodiment, when the first networking device is offline, a second networking device that establishes a short-range wireless connection with the first networking device is determined. The short-range wireless connection can obtain relevant information (such as the name of the networking device, Bluetooth information, Zigbee information, etc.) of the short-range wireless connection (such as Bluetooth connection, Zigbee connection, etc.) in advance before the first networking device goes offline (that is, when the first networking device is connected to the local area network), and establish a wireless connection with the second networking device. In this way, after the first networking device goes offline, it can directly send an offline message to the second networking device without matching the relevant networking devices, further reducing the device offline perception time.
[0079] Of course, taking Bluetooth connection as an example, since it is a one-to-one connection method, when facing multiple networking devices, Bluetooth connection and Bluetooth broadcasting methods (or Bluetooth connection and Zigbee broadcasting methods) can be used simultaneously to send offline messages. Compared with the broadcasting communication method, the connection-based communication method does not need to match the relevant networking devices through information codes, which reduces the waiting time and perception time of the device offline. When the two methods are used at the same time, the offline message can be sent to the second networking device with high priority based on Bluetooth connection, and the offline message can be sent to the second networking device with low priority based on Bluetooth broadcasting (or Zigbee broadcasting). Among them, the second networking device with high priority may include: the networking device closest to the first networking device, the networking device whose time of interaction with the first networking device is closest to the offline time, the pre-specified networking device with high priority, and so on. The networking devices with low priority are other networking devices in the local area network except the second networking device with high priority.
[0080] For example, devices A, B, C, and D in the same office form a local area network by connecting to the company's WiFi network. Device A is closest to device B. Device A transmits audio and video data with device C at time T1 (e.g., 9:00), and device A transmits motion data with device D at time T2 (e.g., 10:00). Device A is offline at time T3 (e.g., 10:10).
[0081] When the second networking device with a high priority is defined as the device closest to the first networking device, device A (the first networking device) directly sends an offline message to device B (the second networking device with a high priority) through a Bluetooth connection. At the same time, device A (the first networking device) broadcasts the offline message containing the first information code to surrounding devices through zigbee broadcasting, so that device C and device D (the second networking device with a low priority) can monitor the offline message containing the first information code.
[0082] When the second networking device with a high priority is defined as the networking device whose time of interaction with the first networking device is closest to the offline time, device A (the first networking device) directly sends an offline message to device D (the second networking device with a high priority) via a Bluetooth connection. At the same time, device A (the first networking device) broadcasts the offline message containing the first information code to surrounding devices via Bluetooth broadcast, so that device B and device C (the second networking device with a low priority) can monitor the offline message containing the first information code.
[0083] It should be noted that the processing method of the networking device described in the above embodiment takes the first networking device (the offline networking device) as the execution subject, and the first networking device executes the above steps to complete the communication interaction with the second networking device (the networking device that is not offline).
[0084] Figure 2 is a flowchart of a processing method of a networking device according to an exemplary embodiment. Figure 2 As shown, the method mainly includes the following steps:
[0085] In step 201, the second networking device receives an offline message sent by the first networking device through short-range wireless communication, and determines a current state of the first networking device.
[0086] In step 202, after determining that a first networking device in the same local area network as a second networking device is offline, the device information of the first networking device is deleted from the stored device list.
[0087] In this embodiment, once the second networking device (one or more networking devices that have not been offline) in the local area network receives the offline message sent by the first networking device (one or more networking devices that have been offline) through short-range wireless communication (such as low-power Bluetooth, zigbee, etc.), it starts to execute the offline determination process to determine the current state of the first networking device. After determining that the first networking device is offline, the device information of the first networking device will be deleted from the device list, and further, the information code corresponding to the first networking device will be deleted from the information code list. It can be understood that when the first networking device is online again, the information code list of each networking device in the local area network will store the new information code corresponding to the first networking device, and the device list will also store the device information of the first networking device again, so that each networking device can understand the online and offline status of each device in the local area network.
[0088] In one embodiment, if Figure 3 As shown, in step 201, the second networking device receives the offline message sent by the first networking device through short-range wireless communication, and determines the current state of the first networking device, which also includes:
[0089] In step 2011, when an offline message sent by the first networking device via short-range wireless broadcasting is monitored, the offline message is parsed to obtain a first information code.
[0090] In step 2012, the first information code is matched with a pre-stored information code list; wherein the information code list includes: information codes generated by each networking device when joining a local area network.
[0091] In step 2013, when the first information code is matched in the information code list, the current state of the first networking device is determined.
[0092] In this embodiment, when the second networking device monitors the offline message through wireless broadcast (such as Bluetooth broadcast, Zigbee broadcast, etc.), the offline message is parsed to obtain the first information code. It can be understood that broadcast monitoring can not only receive offline messages sent by offline networking devices, but also messages sent by other unrelated devices within the monitoring range. Therefore, it is necessary to match the parsed first information code with the stored information code list. When the first information code is matched in the information code list, it means that the device corresponding to the first information code is the offline first networking device.
[0093] There are many reasons for the device to go offline. It may be that the networking device actively disconnects from the LAN, or it may be that the network condition is poor and the network connection is passively disconnected from the LAN. After the connection with the LAN is passively disconnected due to poor network conditions, it may also be possible that the connection with the LAN is automatically restored in a very short time due to improved network conditions. Therefore, in order to ensure the accuracy of the offline information, the second networking device needs to determine the status of the first networking device.
[0094] In some embodiments, in step 201, the second networking device receives an offline message sent by the first networking device through short-range wireless communication, and determines the current state of the first networking device, which also includes: based on a short-range wireless connection with the first networking device, receiving the offline message sent by the first networking device, and determining the current state of the first networking device.
[0095] In this embodiment, the second networking device can also receive the offline message sent by the first networking device based on the wireless connection with the first networking device (such as: zigbee connection, Bluetooth connection, etc.). At this time, since it is point-to-point transmission, the offline message does not need to include the first information code for matching.
[0096] In some embodiments, determining the current state of the first networking device includes: sending a heartbeat detection message to the first networking device; and determining that the first networking device is offline when no heartbeat reply message sent by the first networking device is received within a preset time.
[0097] In this embodiment, after the second networking device receives the offline message and completes the matching of the first information code, it sends a heartbeat detection message to the first networking device corresponding to the first information code. When no heartbeat reply message is received within the preset time, it is determined that the first networking device is indeed offline.
[0098] It should be noted that the processing method of the networking device described in the above embodiment uses the second networking device (the networking device that is not offline) as the execution subject. The second networking device executes the above steps to complete the communication interaction with the first networking device (the offline networking device) to achieve rapid perception of the offline device.
[0099] Figure 4 The present invention is an interactive process of executing a processing method of a networking device between a device A and a device B according to an exemplary embodiment. The device A is used as a first networking device, the device B is used as a second networking device, and the short-range wireless communication mode takes Bluetooth broadcast as an example. Then the method includes the following steps:
[0100] In step 401, when the WiFi of device A is turned off, the local mDNS goes offline.
[0101] At this time, the network connection between device A and the LAN is disconnected, and it is determined that device A is offline. mDNS refers to the Multicast Domain Name System, also known as zero-configuration networking, which is a protocol used to automatically discover network devices and services on a LAN, allowing devices to discover and access each other by their names without the need to register with a central server. For example, by using the mDNS protocol, the user's computer can automatically discover the printer in the home network and use it without manually configuring information such as the IP address.
[0102] In step 402 , device A broadcasts an offline message including an information code of device A via Bluetooth Low Energy (BLE).
[0103] In step 403, device B broadcasts and monitors the offline message, parses the offline message to obtain the information code of device A, and matches the information code of device A with the information code list of device B;
[0104] In step 404, after the information code is successfully matched, device B sends a heartbeat packet to device A and waits for a reply.
[0105] In step 405, device B does not receive a heartbeat reply within a preset time, determines that the heartbeat has timed out, and device A is offline. The device information of device A is deleted from the device list of device B.
[0106] Figure 5 A processing device of a networking device is shown according to an exemplary embodiment. Figure 5 As shown, the processing device of the networking device includes:
[0107] The determination module 501 is configured to determine that the first networking device is in an offline state when the network connection between the first networking device and the local area network is disconnected;
[0108] The sending module 502 is configured to send an offline message through short-range wireless communication when the first networking device is in the offline state; wherein, when a second networking device in the same local area network as the first networking device receives the offline message, the second networking device is triggered to determine the current state of the first networking device.
[0109] In some embodiments, the sending module 502 is further configured to:
[0110] When the first networking device is in the offline state, broadcasting the offline message to each networking device within the radiation range by short-range wireless broadcasting;
[0111] Among them, the offline message includes: a first information code generated by the first networking device when joining the local area network, and the first information code is used to match the information code list of the second networking device to trigger the second networking device to determine the current status of the first networking device.
[0112] In some embodiments, the sending module 502 is further configured to:
[0113] When the first networking device is in the offline state, determining the second networking device to establish a short-range wireless connection with the first networking device;
[0114] Based on the short-range wireless connection with the second networking device, the offline message is sent to the second networking device.
[0115] Figure 6 A processing device of a networking device is shown according to an exemplary embodiment. Figure 6 As shown, the processing device of the networking device includes:
[0116] The receiving module 601 is configured to receive an offline message sent by a first networking device through short-range wireless communication, and determine a current state of the first networking device;
[0117] The processing module 602 is configured to delete the device information of the first networking device from the stored device list after determining that the first networking device in the same local area network as the second networking device is offline.
[0118] In some embodiments, the receiving module 601 is further configured to:
[0119] When monitoring an offline message sent by the first networking device via short-range wireless broadcasting, parsing the offline message to obtain a first information code;
[0120] Matching the first information code with a pre-stored information code list; wherein the information code list includes: information codes generated by each networking device when joining the local area network;
[0121] When the first information code is matched in the information code list, the current state of the first networking device is determined.
[0122] In some embodiments, the receiving module 601 is further configured to:
[0123] Based on the short-range wireless connection with the first networking device, the offline message sent by the first networking device is received, and the current state of the first networking device is determined.
[0124] In some embodiments, the receiving module 601 is further configured to:
[0125] Sending a heartbeat detection message to the first networking device;
[0126] When no heartbeat reply message sent by the first networking device is received within a preset time, it is determined that the first networking device is in an offline state.
[0127] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0128] like Figure 7 As shown, the embodiment of the present disclosure further provides an electronic device 700, including:
[0129] Memory 704 for storing processor executable instructions;
[0130] A processor 720 connected to the memory 704;
[0131] The processor 720 is configured to execute the processing method of the networking device provided by any of the aforementioned technical solutions.
[0132] A block diagram of an electronic device 700 is shown according to an exemplary embodiment. For example, the electronic device 700 may be a smart phone, a tablet computer, a notebook computer, a portable learning machine, and the like.
[0133] refer to Figure 7 , the electronic device 700 may include one or more of the following components: a processing component 702 , a memory 704 , a power component 706 , a multimedia component 708 , an audio component 710 , an input / output (I / O) interface 712 , a sensor component 714 , and a communication component 718 .
[0134] The processing component 702 generally controls the overall operation of the electronic device 700, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 702 may include one or more processors 720 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 702 may include one or more modules to facilitate the interaction between the processing component 702 and other components. For example, the processing component 702 may include a multimedia module to facilitate the interaction between the multimedia component 708 and the processing component 702.
[0135] The memory 704 is configured to store various types of data to support operations on the electronic device 700. Examples of such data include instructions for any application or method operating on the electronic device 700, contact data, phone book data, messages, pictures, videos, etc. The memory 704 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0136] The power supply component 706 provides power to the various components of the electronic device 700. The power supply component 706 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 700.
[0137] The multimedia component 708 includes a screen that provides an output interface between the electronic device 700 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 708 includes a front camera and / or a rear camera. When the electronic device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0138] The audio component 710 is configured to output and / or input audio signals. For example, the audio component 710 includes a microphone (MIC), and when the electronic device 700 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 704 or sent via the communication component 718. In some embodiments, the audio component 710 also includes a speaker for outputting audio signals.
[0139] I / O interface 712 provides an interface between processing component 702 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0140] The sensor assembly 714 includes one or more sensors for providing various aspects of status assessment for the electronic device 700. For example, the sensor assembly 714 can detect the open / closed state of the electronic device 800, the relative positioning of components, such as the display and keypad of the electronic device 700, and the sensor assembly 714 can also detect the position change of the electronic device 700 or a component of the electronic device 700, the presence or absence of user contact with the electronic device 700, the orientation or acceleration / deceleration of the electronic device 700, and the temperature change of the electronic device 700. The sensor assembly 714 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 714 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 714 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0141] The communication component 718 is configured to facilitate wired or wireless communication between the electronic device 700 and other devices. The electronic device 700 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 718 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 718 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0142] In an exemplary embodiment, the electronic device 800 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.
[0143] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 704 including instructions, and the instructions can be executed by a processor 720 of an electronic device 700 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0144] An embodiment of the present application provides a non-temporary computer-readable storage medium. When the instructions in the storage medium are executed by a processor of a computer, the computer can execute the processing method of the networking device described in one or more of the aforementioned technical solutions.
[0145] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0146] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A processing method for a networking device, characterized in that: The method comprises: When the network connection between the first networking device and the local area network is disconnected, determining that the first networking device is in an offline state; When the first networking device is in the offline state, sending an offline message by means of short-range wireless communication; Wherein, when a second networking device in the same local area network as the first networking device receives the offline message, the second networking device is triggered to determine the current state of the first networking device.
2. The processing method of the networking device according to claim 1, characterized in that: When the first networking device is in the offline state, sending an offline message by means of short-range wireless communication includes: When the first networking device is in the offline state, broadcasting the offline message to each device within the radiation range by short-range wireless broadcasting; Among them, the offline message includes: a first information code generated by the first networking device when joining the local area network, and the first information code is used to match the information code list of the second networking device to trigger the second networking device to determine the current status of the first networking device.
3. The processing method of networking equipment according to claim 1, characterized in that: When the first networking device is in the offline state, sending an offline message by means of short-range wireless communication includes: When the first networking device is in the offline state, determining the second networking device to establish a short-range wireless connection with the first networking device; Based on the short-range wireless connection with the second networking device, the offline message is sent to the second networking device.
4. A processing method for a networking device, characterized in that: The method comprises: The second networking device receives the offline message sent by the first networking device by means of short-range wireless communication, and determines the current state of the first networking device; After determining that the first networking device in the same local area network as the second networking device is offline, the device information of the first networking device is deleted from the stored device list.
5. The processing method of networking equipment according to claim 4, characterized in that: The second networking device receives the offline message sent by the first networking device by means of short-range wireless communication, and determines the current state of the first networking device, including: When monitoring an offline message sent by the first networking device via a short-range wireless broadcast, parsing the offline message to obtain a first information code; Matching the first information code with a pre-stored information code list; wherein the information code list includes: information codes generated by each networking device when joining the local area network; When the first information code is matched in the information code list, the current state of the first networking device is determined.
6. The processing method of networking equipment according to claim 4, characterized in that: The second networking device receives the offline message sent by the first networking device by means of short-range wireless communication, and determines the current state of the first networking device, including: Based on the short-range wireless connection with the first networking device, the offline message sent by the first networking device is received, and the current state of the first networking device is determined.
7. The processing method of the networking device according to any one of claims 4 to 6, characterized in that: The determining the current state of the first networking device includes: Sending a heartbeat detection message to the first networking device; When no heartbeat reply message sent by the first networking device is received within a preset time, it is determined that the first networking device is in an offline state.
8. A processing device for a networking device, characterized in that: include: A determination module, configured to determine that the first networking device is in an offline state when a network connection between the first networking device and the local area network is disconnected; The sending module is configured to send an offline message through short-range wireless communication when the first networking device is in the offline state; wherein, when a second networking device in the same local area network as the first networking device receives the offline message, the second networking device is triggered to determine the current state of the first networking device.
9. A processing device for a networking device, characterized in that: include: A receiving module, configured to receive an offline message sent by a first networking device through short-range wireless communication, and determine a current state of the first networking device; The processing module is configured to delete the device information of the first networking device from the stored device list after determining that the first networking device in the same local area network as the second networking device is offline.
10. An electronic device, characterized in that: include: processor; a memory configured to store processor-executable instructions; The processor is configured to execute the processing method of the networking device according to any one of claims 1 to 7 when calling the executable instructions in the memory.
11. A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the processing method of the networking device according to any one of claims 1 to 7.
Citation Information
Patent Citations
Gateway under-hanging equipment management method and gateway under-hanging equipment management system
CN110519403A
Equipment control method and electronic equipment
CN115550391A
Communication method, device and system
CN115622891A
Detection method, related electronic equipment and system
CN116567054A
Monitoring telecommunication network elements
CN1685662A