CN108882270B - Network equipment and equipment management method - Google Patents
Network equipment and equipment management method Download PDFInfo
- Publication number
- CN108882270B CN108882270B CN201810672927.8A CN201810672927A CN108882270B CN 108882270 B CN108882270 B CN 108882270B CN 201810672927 A CN201810672927 A CN 201810672927A CN 108882270 B CN108882270 B CN 108882270B
- Authority
- CN
- China
- Prior art keywords
- beacon frame
- serial port
- debugging
- circuit
- working state
- 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
Links
- 238000007726 management method Methods 0.000 title claims abstract description 11
- 238000000034 method Methods 0.000 claims description 15
- 238000012545 processing Methods 0.000 claims description 15
- 230000005540 biological transmission Effects 0.000 abstract description 2
- 230000006870 function Effects 0.000 description 109
- 238000010586 diagram Methods 0.000 description 13
- 238000004590 computer program Methods 0.000 description 7
- 230000008569 process Effects 0.000 description 3
- 238000006243 chemical reaction Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000001413 cellular effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000007639 printing Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W64/00—Locating users or terminals or network equipment for network management purposes, e.g. mobility management
- H04W64/003—Locating users or terminals or network equipment for network management purposes, e.g. mobility management locating network equipment
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/02—Arrangements for optimising operational condition
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The application provides a network device and a device management method, wherein the network device comprises a serial port label circuit and a main function circuit; the serial port tag circuit is used for sending a first beacon frame carrying working state information when the main function circuit is detected to be in a working state, so that the debugging equipment can send a connection request to the network equipment according to the working state information; if a connection request sent by the debugging equipment is received, establishing wireless connection with the debugging equipment according to the connection request, and transmitting debugging information with the debugging equipment through the wireless connection; and the serial port label circuit is also used for sending a second beacon frame carrying non-working state information when detecting that the main function circuit is not in a working state, so that the positioning equipment can position the network equipment according to the non-working state information. Through the technical scheme of this application, positioning device can fix a position network equipment to avoid network equipment to lose, debugging equipment and network equipment can be through wireless connection transmission debugging information.
Description
Technical Field
The present application relates to the field of communications technologies, and in particular, to a network device and a device management method.
Background
Network devices are physical entities connected to a Network, and the Network devices are various, such as servers, hubs, PCs (Personal computers), switches, bridges, routers, gateways, NICs (Network Interface cards), APs (Access points), and the like. Network devices are one of the important assets for enterprises and require maintenance and management of the network devices.
However, after the network device is powered off for some reason, the network device cannot be located at present, which results in the loss of the network device, that is, it cannot be known which position of the network device is powered off, and the network device cannot be repaired in time, so that the network device is in a powered off state for a long time.
Disclosure of Invention
The application provides a network equipment, including serial ports label circuit and main function circuit, wherein:
the serial port tag circuit is used for sending a first beacon frame carrying working state information when the main function circuit is detected to be in a working state, and the first beacon frame is used for enabling debugging equipment receiving the first beacon frame to send a connection request to the network equipment according to the working state information;
if a connection request sent by the debugging equipment is received, establishing wireless connection with the debugging equipment according to the connection request, and transmitting debugging information with the debugging equipment through the wireless connection;
the serial port tag circuit is further configured to send a second beacon frame carrying non-working state information when detecting that the main function circuit is not in a working state, where the second beacon frame is used to enable a positioning device receiving the second beacon frame to position the network device according to the non-working state information.
The application provides a device management method, which is applied to a serial port label circuit of network equipment, the network equipment also comprises a main function circuit, and the method comprises the following steps:
when detecting that the main function circuit is in a working state, sending a first beacon frame carrying working state information, wherein the first beacon frame is used for enabling debugging equipment receiving the first beacon frame to send a connection request to the network equipment according to the working state information;
if a connection request sent by the debugging equipment is received, establishing wireless connection with the debugging equipment according to the connection request, and transmitting debugging information with the debugging equipment through the wireless connection;
and when detecting that the main function circuit is not in a working state, sending a second beacon frame carrying non-working state information, wherein the second beacon frame is used for enabling the positioning equipment receiving the second beacon frame to position the network equipment according to the non-working state information.
Based on the technical scheme, in the embodiment of the application, the serial port tag circuit can be deployed on the network device, and the serial port tag circuit can judge whether the main function circuit of the network device is in a working state. If so, sending a first beacon frame carrying working state information, so that the debugging equipment receiving the first beacon frame can send a connection request to network equipment according to the working state information; and if a connection request sent by the debugging equipment is received, establishing wireless connection with the debugging equipment according to the connection request, and transmitting debugging information with the debugging equipment through the wireless connection. And if not, sending a second beacon frame carrying the non-working state information, so that the positioning equipment receiving the second beacon frame can position the network equipment according to the non-working state information. Obviously, after the network device is powered off for some reason, the main function circuit is not in a working state, the serial port tag circuit can send a second beacon frame, and the positioning device can position the network device according to the second beacon frame, so that the network device is prevented from being lost, the network device at which position is powered off can be known, the network device can be repaired, and the network device is prevented from being in a power-off state for a long time. On the other hand, when the main function circuit is in a working state, the serial port tag circuit can send the first beacon frame, so that the debugging equipment and the network equipment can establish wireless connection according to the first beacon frame, and the debugging equipment and the network equipment can transmit debugging information through the wireless connection instead of adopting a wired mode to transmit the debugging information.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments of the present application or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present application, and other drawings can be obtained by those skilled in the art according to the drawings of the embodiments of the present application.
FIG. 1 is a diagram of a hardware configuration of a network device in one embodiment of the present application;
FIG. 2 is a schematic connection diagram of a power switching circuit according to an embodiment of the present application;
fig. 3 is a flowchart of a device management method according to an embodiment of the present application.
Detailed Description
The terminology used in the embodiments of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein is meant to encompass any and all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used in the embodiments of the present application to describe various information, the information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. Depending on the context, moreover, the word "if" as used may be interpreted as "at … …" or "when … …" or "in response to a determination".
The embodiment of the application provides a network device which can comprise a main function circuit, a serial port label circuit and a main power supply. Of course, other functional circuits may be included, which is not limited to this, and the main functional circuit, the serial tag circuit, and the main power supply are taken as examples in the following. Referring to fig. 1, a hardware structure diagram of a network device is shown.
The main function circuitry may include, but is not limited to, processing units and other devices. The Processing Unit includes a CPU (Central Processing Unit), etc., and the CPU is described as an example later. The main function circuit is a circuit of a conventional network device, and details thereof are not described again.
The serial tag circuit may include, but is not limited to, a processing unit, a transmitting circuit, a power switching circuit, a backup power source (e.g., a backup battery, etc.), and other devices. The processing unit may include a CPU or the like, and the CPU is described as an example later. The CPU can be electrically connected with the transmitting circuit, the CPU can be electrically connected with the power supply switching circuit, and the power supply switching circuit can be electrically connected with both the main power supply and the standby power supply.
The serial port tag circuit is a circuit relatively independent from the main function circuit, and can serve as a wireless serial port of the network equipment when the main power supply of the network equipment is powered, debug information is interacted with the debugging equipment, and the serial port tag circuit can periodically send beacon frames when the main power supply of the network equipment is not powered, so that the positioning equipment can position the network equipment according to the beacon frames, and the network equipment is prevented from being lost.
Referring to fig. 1, the network device may further include a main power source and a standby power source, the main power source is connected to the main function circuit, the main power source is connected to the power switching circuit of the serial port tag circuit, and the standby power source is connected to the power switching circuit of the serial port tag circuit. When the main power supply supplies power, the main power supply supplies power for the main function circuit and the serial port label circuit, the main function circuit is in a working state, and the serial port label circuit is in a working state. When the main power supply does not supply power, the standby power supply supplies power for the serial port tag circuit, but the standby power supply does not supply power for the main function circuit, so that the main function circuit is not in a working state, and the serial port tag circuit is in a working state.
The main function circuit is connected with the main power supply, and when the main power supply supplies power, the main power supply can supply power to the main function circuit, so that the main function circuit is in a working state; when the main power supply is not supplying power, the main power supply cannot supply power to the main function circuit, so that the main function circuit is not in a working state.
Referring to fig. 2, which is a schematic connection diagram of a power switching circuit, the power switching circuit is connected to a main power supply and a standby power supply respectively, and is connected to a processing unit of a serial port tag circuit, based on which, when the main power supply supplies power, the power switching circuit can select the main power supply to supply power to the serial port tag circuit; when the main power supply does not supply power, the power supply switching circuit can select the standby power supply to supply power for the serial port tag circuit.
In one example, when a processing unit of the serial port tag circuit detects that a main function circuit is switched from a working state to a non-working state, a power supply switching signal is sent to the power supply switching circuit; and when the power supply switching circuit receives the power supply switching signal, the standby power supply is selected to supply power to the serial port label circuit. Specifically, when the processing unit of the serial tag circuit detects that the GPIO port is switched from the high level state to the low level state, it may be determined that the main function circuit is switched from the operating state to the non-operating state, and this process is described in the subsequent embodiments.
In this embodiment of the application, the serial port tag circuit may send a first beacon frame carrying operating state information, so that the debugging device receiving the first beacon frame can send a connection request to the network device according to the operating state information, or send a second beacon frame carrying non-operating state information, so that the positioning device receiving the second beacon frame can position the network device according to the non-operating state information, which is described below.
In the first case, when it is detected that the main function circuit is in the working state, the serial port tag circuit may send a first beacon frame carrying working state information, where the first beacon frame is used to enable the debugging device that receives the first beacon frame to send a connection request to the network device according to the working state information. Further, if a connection request sent by the debugging device is received, the serial port tag circuit may establish a wireless connection with the debugging device according to the connection request, and transmit debugging information with the debugging device through the wireless connection.
In one example, the serial tag circuit is connected to the main function circuit through a GPIO (General Purpose Input Output) port. Based on this, when detecting that the GPIO port is in a high level state, the serial port tag circuit determines that the main function circuit is in a working state; and when the GPIO port is detected to be in a low level state, the serial port tag circuit determines that the main function circuit is not in a working state.
The initial state of the GPIO port is a low level state, and when the main function circuit is in a working state, the main function circuit can adjust the GPIO port to be a high level state. When the main function circuit is not in a working state (i.e., in a non-working state), the main function circuit cannot adjust the GPIO port to a high level state, i.e., the GPIO port is restored to a low level state. Based on this, when the GPIO port is in a high level state, the main function circuit is in a working state; when the GPIO port is in a low level state, the main function circuit is not in a working state (namely in a non-working state).
Referring to fig. 1, the CPU of the serial tag circuit may also be connected to the CPU of the main function circuit through a GPIO port. In an initial state, the GPIO port may be in a low state, for example, due to an external pull-down resistor, which is not limited to this, as long as the GPIO port is in a low state. When the main function circuit is in the working state, the CPU of the main function circuit may adjust the GPIO port from the low level state to the high level state, for example, the CPU of the main function circuit may output a high level signal, so that the GPIO port is changed from the low level state to the high level state, which is not limited, as long as the GPIO port can be adjusted to the high level state. Based on this, when the CPU of the serial tag circuit senses that the GPIO port is in a high level state, it may be determined that the main function circuit is in a working state.
In addition, when the main function circuit is not in the working state, the main function circuit is in a power-down state, that is, the CPU of the main function circuit cannot adjust the GPIO port from the low level state to the high level state, that is, the GPIO port will remain in the low level state. Based on this, when the CPU of the serial tag circuit senses that the GPIO port is in the low level state, it may be determined that the main function circuit is not in the operating state (i.e., is in the non-operating state).
In summary, when the main power supply supplies power, the main function circuit is in a working state, and the main function circuit can adjust the GPIO port to a high level state, so that the CPU of the serial tag circuit can determine that the main function circuit is in the working state when detecting that the GPIO port is in the high level state, and at this time, cannot send a power switching signal to the power switching circuit, and when the power switching circuit does not receive the power switching signal, can know that the main power supply supplies power at present, and continue to select the main power supply to supply power to the serial tag circuit.
When the main power supply is not powered, the main function circuit is in a non-working state, and the main function circuit cannot adjust the GPIO port from a low level state to a high level state, so that the CPU of the serial port tag circuit can detect that the GPIO port is switched from the high level state to the low level state, determine that the main function circuit is in the non-working state, and send a power supply switching signal to the power supply switching circuit. When the power supply switching circuit receives the power supply switching signal, the fact that the current main power supply is not powered can be known, and the standby power supply is selected to supply power for the serial port label circuit.
In one example, when the serial port tag circuit determines that the main function circuit is in the working state, a first beacon frame may be sent, where the first beacon frame may carry working state information, and the working state information indicates that the main function circuit is in the working state and may interact with the main function circuit to debug information. Based on this, after the debugging device receives the first beacon frame, if the working state information exists in the first beacon frame, the main function circuit of the network device is determined to be in the working state, and a connection request is sent to the serial port tag circuit of the network device.
When the serial port tag circuit sends a first beacon frame carrying working state information, the first beacon frame is sent periodically, and the sending of the first beacon frame is stopped until a connection request sent by the debugging equipment is received.
When the CPU of the serial port label circuit determines that the main function circuit is in a working state, a first beacon frame carrying working state information is generated, and the first beacon frame is provided for the transmitting circuit. And after obtaining the first beacon frame, the transmitting circuit transmits the first beacon frame. After the debugging equipment receives the first beacon frame, if the first beacon frame is found to include the working state information, the main function circuit of the network equipment is determined to be in the working state, and a connection request is sent to the network equipment. The transmitting circuit of the serial port label circuit of the network equipment receives the connection request and provides the connection request for the CPU of the serial port label circuit, and after the CPU of the serial port label circuit obtains the connection request, the CPU establishes wireless connection with the debugging equipment according to the connection request and transmits debugging information with the debugging equipment through the wireless connection.
In one example, the serial port tag circuit can also be connected with the main function circuit through a serial port, and based on this, the serial port tag circuit is specifically used for: the serial port label circuit receives first serial port debugging information sent by the main function circuit through a serial port, converts the first serial port debugging information into first wireless debugging information matched with a wireless protocol, and sends the first wireless debugging information to debugging equipment through the wireless connection; and/or the serial port label circuit receives second wireless debugging information sent by the debugging equipment through wireless connection, converts the second wireless debugging information into second serial port debugging information matched with the serial port protocol, and sends the second serial port debugging information to the main function circuit through the serial port.
The following description will be given by taking an example that the Wireless connection is a bluetooth Wireless connection, but the Wireless connection may also be other types of Wireless connections, for example, the Wireless connection may be a WiFi (Wireless Fidelity) Wireless connection or a ZigBee (ZigBee protocol) Wireless connection, and the type of the Wireless connection is not limited.
After the CPU of the Serial Port tag circuit establishes bluetooth wireless connection with the debugging device, the CPU can receive Serial Port debugging information sent by the main function circuit through a Serial Port, and convert the Serial Port debugging information into wireless debugging information by using a Serial Port Profile (SPP) protocol (i.e., a bluetooth protocol). Then, the CPU of the serial port tag circuit can provide the wireless debugging information for the transmitting circuit, and after the transmitting circuit obtains the wireless debugging information, the transmitting circuit can transmit the wireless debugging information through Bluetooth wireless connection, namely the wireless debugging information is transmitted to the debugging equipment, so that the debugging equipment can receive the wireless debugging information.
After the CPU of the serial port tag circuit is in Bluetooth wireless connection with the debugging equipment, the transmitting circuit of the serial port tag circuit receives wireless debugging information sent by the debugging equipment through Bluetooth wireless connection and provides the wireless debugging information for the CPU of the serial port tag circuit. After the CPU of the serial port tag circuit obtains the wireless debugging information, the wireless debugging information is converted into serial port debugging information by using an SPP protocol, and the serial port debugging information is sent to the CPU of the main functional circuit through the serial port, so that the CPU of the main functional circuit can receive the serial port debugging information.
In the above embodiment, the SPP protocol defines a conversion manner between the wireless debugging information and the serial port debugging information, and if the SPP protocol is adopted to convert the wireless debugging information into the serial port debugging information, the SPP protocol can also be adopted to convert the serial port debugging information into the wireless debugging information, and the conversion manner is not limited.
In the above embodiment, the debugging information sent by the network device to the debugging device may include, but is not limited to: the printing configuration, the CPU running percentage, the memory size, the CPU model and the like of the network equipment do not limit the debugging information. The debugging information sent by the debugging device to the network device may include, but is not limited to: information for requesting a print configuration, information for requesting a CPU running percentage, information for requesting a memory size, information for requesting a CPU model, and the like, and the debugging information is not limited.
And in the second situation, when the main function circuit is detected not to be in the working state, the serial port tag circuit sends a second beacon frame carrying non-working state information, wherein the second beacon frame is used for enabling the positioning equipment receiving the second beacon frame to position the network equipment according to the non-working state information, namely determining the position of the network equipment.
In an example, when the serial port tag circuit determines that the main function circuit is in the non-operating state, a second beacon frame may be sent, where the second beacon frame may carry non-operating state information, and the non-operating state information is used to indicate that the main function circuit is in the non-operating state, and may be used to locate the network device. Based on this, after the positioning device receives the second beacon frame, if it is found that the second beacon frame has the non-working state information, it is determined that the main function circuit of the network device is in the non-working state, and the network device can be positioned.
In one example, when the serial port tag circuit sends the second beacon frame carrying the non-operating state information, the following steps are specifically performed: the second beacon frame is periodically transmitted and the acceptance of the connection request for the second beacon frame is rejected, that is, the wireless connection is not established according to the connection request even if the connection request is received.
Referring to fig. 1, when the CPU of the serial port tag circuit determines that the main function circuit is in the non-operating state, a second beacon frame carrying information of the non-operating state is generated, and the second beacon frame is provided to the transmitting circuit. The transmit circuitry may transmit the second beacon frame after obtaining the second beacon frame. After the positioning device receives the second beacon frame, if it is found that the second beacon frame has the non-working state information, it determines that the main function circuit of the network device is in the non-working state, and if the main function circuit of the network device cannot work normally due to power failure, the positioning device can position the network device, and the positioning mode is not limited.
For example, the second beacon frame may be broadcast to a plurality of positioning devices, such as three positioning devices, and the received signal strength of the second beacon frame received by the three positioning devices and the positions of the three positioning devices may be used to locate the position (e.g., longitude and latitude coordinates) of the network device, for example, a preset algorithm (e.g., a positioning algorithm based on the received signal strength) is used to locate the position of the network device, which is not limited to this algorithm.
In the above embodiment, the first beacon frame and the second beacon frame may both be beacon frames.
In one example, the conventional beacon frame does not carry the operating status information or the non-operating status information, and therefore, in this embodiment, the conventional beacon frame may be modified, such as multiplexing an existing field (e.g., a reserved field) of the beacon frame or adding a new field, through which the operating status information or the non-operating status information is carried. For example, the field carries a working flag, when the working flag is a first identifier, it indicates that the beacon frame carries working state information, and the beacon frame at this time is a first beacon frame; when the working mark is the second mark, the beacon frame is represented to carry the non-working state information, and the beacon frame at the moment is the second beacon frame. Of course, the above manner is only an example, as long as the beacon frame carries the operating state information or the non-operating state information.
In one example, the beacon frame may also carry connection information, which may or may not be connectable. Based on this, when the serial port tag circuit transmits the first beacon frame or the second beacon frame, connection information may be added to the first beacon frame or the second beacon frame, and the connection information may be connectable or not connectable.
If the connection information carried in the first beacon frame is connectable, the debugging device may send a connection request to the network device, and after receiving the connection request, the serial port tag circuit of the network device may establish a wireless connection with the debugging device. If the connection information carried in the first beacon frame is not connectable, the debugging device may not send a connection request to the network device, and even if the debugging device sends a connection request to the network device, the serial port tag circuit of the network device does not establish wireless connection with the debugging device after receiving the connection request.
No matter the connection information carried in the second beacon frame is connectable or not connectable, the debugging device or the positioning device may not send a connection request to the network device, and even if the debugging device or the positioning device sends a connection request to the network device, the serial port tag circuit of the network device does not establish wireless connection with the debugging device or the positioning device after receiving the connection request.
In an example, the debugging device may be a device for debugging a network device, such as a PC, a mobile terminal, and the like, and the type of the debugging device is not limited. When the network equipment is installed or fails, a worker can debug the network equipment by using the debugging equipment. In a traditional mode, a worker connects the debugging device with the network device through a cable, in this embodiment, the debugging device and the network device do not need to be connected through the cable, wireless connection can be established between the debugging device and the network device, debugging information is transmitted through the wireless connection, debugging of the network device is achieved, and the debugging process is not limited.
In an example, the positioning device may be a device for positioning a network device, such as an AP, and the type of the positioning device is not limited. When the network equipment is powered off, the positioning equipment can be used for positioning the network equipment powered off based on the second beacon frame sent by the serial port tag circuit of the network equipment, and the positioning mode is not limited, so that the network equipment at which position is powered off can be known.
Based on the technical scheme, in the embodiment of the application, the serial port tag circuit can be deployed on the network device, and the serial port tag circuit can judge whether the main function circuit of the network device is in a working state. If so, sending a first beacon frame carrying working state information, so that the debugging equipment receiving the first beacon frame can send a connection request to network equipment according to the working state information; and if a connection request sent by the debugging equipment is received, establishing wireless connection with the debugging equipment according to the connection request, and transmitting debugging information with the debugging equipment through the wireless connection. And if not, sending a second beacon frame carrying the non-working state information, so that the positioning equipment receiving the second beacon frame can position the network equipment according to the non-working state information. Obviously, after the network device is powered off for some reason, the main function circuit is not in a working state, the serial port tag circuit can send a second beacon frame, and the positioning device can position the network device according to the second beacon frame, so that the network device is prevented from being lost, the network device at which position is powered off can be known, the network device can be repaired, and the network device is prevented from being in a power-off state for a long time. On the other hand, when the main function circuit is in a working state, the serial port tag circuit can send the first beacon frame, so that the debugging device can establish wireless connection with the network device according to the first beacon frame, and thus the debugging device and the network device can transmit debugging information through the wireless connection instead of adopting a wired mode, that is, the network device can be debugged without using a cable to connect the debugging device with the network device.
Based on the same application concept as the above scheme, an embodiment of the present application further provides a device management method, as shown in fig. 3, which is a flow diagram of the device management method, where the method may be applied to a serial port tag circuit of a network device, and the network device may further include a main function circuit, and the method includes the following steps.
In an example, when the serial port tag circuit determines that the main function circuit is in the non-operating state, a second beacon frame may be sent, where the second beacon frame may carry non-operating state information, and the non-operating state information is used to indicate that the main function circuit is in the non-operating state, and may be used to locate the network device. Based on this, after the positioning device receives the second beacon frame, if it is found that the second beacon frame has the non-working state information, it is determined that the main function circuit of the network device is in the non-working state, and the network device can be positioned.
Step 301 and step 303 are not in sequence, and when the main function circuit is in a working state, step 301 and step 302 are executed, and when the main function circuit is not in the working state, step 303 is executed.
In one example, the serial port tag circuit can be connected with the main function circuit through the GPIO port; based on this, when detecting that the GPIO port is in a high level state, determining that the main function circuit is in a working state; and when the GPIO port is detected to be in a low level state, determining that the main function circuit is not in a working state.
The initial state of the GPIO port is a low level state (e.g., a low level state due to an external pull-down resistor), and when the main function circuit is in the operating state, the main function circuit adjusts the GPIO port to a high level state (e.g., the main function circuit outputs a high level signal to change the GPIO port from the low level state to the high level state). When the main function circuit is not in a working state (i.e. is in a non-working state), the main function circuit cannot adjust the GPIO port to be in a high level state, i.e. the GPIO port is restored to be in a low level state. Based on this, when the GPIO port is in a high level state, the main function circuit is in a working state; when the GPIO port is in a low level state, the main function circuit is not in a working state (namely in a non-working state).
In one example, transmitting a first beacon frame carrying operating state information includes: and periodically transmitting the first beacon frame until receiving a connection request transmitted by the debugging equipment, and stopping transmitting the first beacon frame.
In one example, transmitting the second beacon frame carrying the non-operating state information may include: a second beacon frame is periodically transmitted and acceptance of the connection request for the second beacon frame is denied.
In one example, the serial port tag circuit can be connected with the main function circuit through a serial port; based on this, the transmission of the commissioning information with the commissioning device through the wireless connection may include, but is not limited to:
receiving first serial port debugging information sent by a main function circuit through the serial port, converting the first serial port debugging information into first wireless debugging information matched with a wireless protocol, and sending the first wireless debugging information to debugging equipment through wireless connection; and/or receiving second wireless debugging information sent by the debugging equipment through wireless connection, converting the second wireless debugging information into second serial port debugging information matched with the serial port protocol, and sending the second serial port debugging information to the main function circuit through the serial port.
For example, the wireless connection is a bluetooth wireless connection, and after the bluetooth wireless connection is established between the serial port tag circuit and the debugging device, the serial port debugging information sent by the main function circuit can be received through the serial port, and the serial port debugging information is converted into the wireless debugging information by using an SPP protocol (i.e., a bluetooth protocol). Then, the serial port label circuit sends the wireless debugging information through the Bluetooth wireless connection, namely the wireless debugging information is sent to the debugging equipment, so that the debugging equipment can receive the wireless debugging information. After the serial port tag circuit is in Bluetooth wireless connection with the debugging equipment, the serial port tag circuit can receive wireless debugging information sent by the debugging equipment through Bluetooth wireless connection, the wireless debugging information is converted into serial port debugging information through an SPP protocol, the serial port debugging information is sent to the main function circuit through a serial port, and the main function circuit can receive the serial port debugging information.
In one example, the network device may further include a main power source, and the serial tag circuit may further include a backup power source; therefore, when the main function circuit is detected to be switched from the working state to the non-working state, the standby power supply can be selected to supply power to the serial port tag circuit. Specifically, when the detection GPIO port is switched from a high level state to a low level state, it may be considered that the main function circuit is switched from an operating state to a non-operating state.
When the main power supply supplies power, the main function circuit is in a working state, and the main function circuit can adjust the GPIO port to be in a high-level state, so that when the serial port tag circuit can detect that the GPIO port is in the high-level state, the main function circuit is determined to be in the working state, at the moment, the current power supply of the main power supply can be known, and the main power supply is continuously selected to supply power for the serial port tag circuit.
When the main power supply is not powered, the main function circuit is in a non-working state, and the main function circuit cannot adjust the GPIO port from a low level state to a high level state, so that the serial port tag circuit can detect that the GPIO port is switched from the high level state to the low level state, determine that the main function circuit is in the non-working state, know that the current main power supply is not powered at the moment, and select a standby power supply to supply power for the serial port tag circuit.
In an example, the first beacon frame may include an operation flag, and when the operation flag is the first identifier, it indicates that the first beacon frame carries the operation status information; the second beacon frame may include an operation flag, and when the operation flag is the second identifier, it indicates that the second beacon frame carries the non-operation state information.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. A typical implementation device is a computer, which may take the form of a personal computer, laptop computer, cellular telephone, camera phone, smart phone, personal digital assistant, media player, navigation device, email messaging device, game console, tablet computer, wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing the present application.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Furthermore, these computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims (10)
1. A network device comprising a serial tag circuit and a main function circuit, wherein:
the serial port tag circuit is used for sending a first beacon frame carrying working state information when the main function circuit is detected to be in a working state, and the first beacon frame is used for enabling debugging equipment receiving the first beacon frame to send a connection request to the network equipment according to the working state information;
if a connection request sent by the debugging equipment is received, establishing wireless connection with the debugging equipment according to the connection request, and transmitting debugging information with the debugging equipment through the wireless connection;
the serial port tag circuit is further configured to send a second beacon frame carrying non-working state information when detecting that the main function circuit is not in a working state, where the second beacon frame is used to enable a positioning device receiving the second beacon frame to position the network device according to the non-working state information;
the first beacon frame comprises a working mark, and when the working mark is a first identifier, the first beacon frame is represented to carry working state information; the second beacon frame comprises a working mark, and when the working mark is a second identifier, the second beacon frame is represented to carry non-working state information;
and the second beacon frame is broadcast and sent to a plurality of positioning devices, and the positions of the network devices are located through the received signal strength of the second beacon frame received by the plurality of positioning devices and the positions of the plurality of positioning devices.
2. The network device of claim 1,
the serial port tag circuit is connected with the main function circuit through a general purpose input/output (GPIO) port;
the serial port tag circuit is further used for determining that the main function circuit is in a working state when the GPIO port is detected to be in a high level state; and when the GPIO port is detected to be in a low level state, determining that the main function circuit is not in a working state.
3. The network device of claim 1, wherein the serial tag circuit, when sending the first beacon frame carrying the operating state information, is specifically configured to: periodically sending the first beacon frame until receiving a connection request sent by the debugging equipment, and stopping sending the first beacon frame;
when the serial port tag circuit sends the second beacon frame carrying the non-working state information, the serial port tag circuit is specifically configured to: periodically transmitting the second beacon frame and denying acceptance of the connection request for the second beacon frame.
4. The network device of claim 1,
the serial port label circuit is connected with the main function circuit through a serial port;
the serial port tag circuit is specifically used for transmitting debugging information with the debugging equipment through the wireless connection: receiving first serial port debugging information sent by the main function circuit through the serial port, converting the first serial port debugging information into first wireless debugging information matched with a wireless protocol, and sending the first wireless debugging information to the debugging equipment through the wireless connection; and/or the presence of a gas in the gas,
and receiving second wireless debugging information sent by the debugging equipment through the wireless connection, converting the second wireless debugging information into second serial port debugging information matched with a serial port protocol, and sending the second serial port debugging information to the main function circuit through the serial port.
5. The network device of claim 1,
the network equipment comprises a main power supply, the serial port label circuit comprises a processing unit, a power supply switching circuit and a standby power supply, the processing unit is electrically connected with the power supply switching circuit, and the power supply switching circuit is electrically connected with both the main power supply and the standby power supply;
the processing unit is used for sending a power supply switching signal to the power supply switching circuit when detecting that the main function circuit is switched from a working state to a non-working state;
and the power supply switching circuit is used for selecting the standby power supply to supply power to the serial port tag circuit when receiving the power supply switching signal.
6. A device management method is characterized in that the device management method is applied to a serial port label circuit of a network device, the network device further comprises a main function circuit, and the method comprises the following steps:
when detecting that the main function circuit is in a working state, sending a first beacon frame carrying working state information, wherein the first beacon frame is used for enabling debugging equipment receiving the first beacon frame to send a connection request to the network equipment according to the working state information;
if a connection request sent by the debugging equipment is received, establishing wireless connection with the debugging equipment according to the connection request, and transmitting debugging information with the debugging equipment through the wireless connection;
when detecting that the main function circuit is not in a working state, sending a second beacon frame carrying non-working state information, wherein the second beacon frame is used for enabling a positioning device receiving the second beacon frame to position the network device according to the non-working state information;
the first beacon frame comprises a working mark, and when the working mark is a first identifier, the first beacon frame is represented to carry working state information; the second beacon frame comprises a working mark, and when the working mark is a second identifier, the second beacon frame is represented to carry non-working state information;
and the second beacon frame is broadcast and sent to a plurality of positioning devices, and the positions of the network devices are located through the received signal strength of the second beacon frame received by the plurality of positioning devices and the positions of the plurality of positioning devices.
7. The method of claim 6,
the serial port tag circuit is connected with the main function circuit through a general purpose input/output (GPIO) port;
the method further comprises the following steps: when the GPIO port is detected to be in a high level state, determining that the main function circuit is in a working state; and when the GPIO port is detected to be in a low level state, determining that the main function circuit is not in a working state.
8. The method of claim 6,
the sending of the first beacon frame carrying the working state information includes:
periodically sending the first beacon frame until receiving a connection request sent by the debugging equipment, and stopping sending the first beacon frame;
the sending of the second beacon frame carrying the non-operating state information includes: periodically transmitting the second beacon frame and denying acceptance of the connection request for the second beacon frame.
9. The method of claim 6,
the serial port label circuit is connected with the main function circuit through a serial port;
the transmitting debugging information with the debugging device through the wireless connection includes:
receiving first serial port debugging information sent by the main function circuit through the serial port, converting the first serial port debugging information into first wireless debugging information matched with a wireless protocol, and sending the first wireless debugging information to the debugging equipment through the wireless connection; and/or the presence of a gas in the gas,
and receiving second wireless debugging information sent by the debugging equipment through the wireless connection, converting the second wireless debugging information into second serial port debugging information matched with a serial port protocol, and sending the second serial port debugging information to the main function circuit through the serial port.
10. The method of claim 6,
the network equipment comprises a main power supply, and the serial port label circuit comprises a standby power supply;
the method further comprises the following steps: and when the main function circuit is detected to be switched from a working state to a non-working state, the standby power supply is selected to supply power to the serial port tag circuit.
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810672927.8A CN108882270B (en) | 2018-06-26 | 2018-06-26 | Network equipment and equipment management method |
| PCT/CN2019/093062 WO2020001486A1 (en) | 2018-06-26 | 2019-06-26 | Network device and device management method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810672927.8A CN108882270B (en) | 2018-06-26 | 2018-06-26 | Network equipment and equipment management method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN108882270A CN108882270A (en) | 2018-11-23 |
| CN108882270B true CN108882270B (en) | 2020-12-04 |
Family
ID=64294986
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810672927.8A Active CN108882270B (en) | 2018-06-26 | 2018-06-26 | Network equipment and equipment management method |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN108882270B (en) |
| WO (1) | WO2020001486A1 (en) |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108882270B (en) * | 2018-06-26 | 2020-12-04 | 新华三技术有限公司 | Network equipment and equipment management method |
| CN110632498A (en) * | 2019-09-19 | 2019-12-31 | 西安广和通无线通信有限公司 | Test method and system |
| CN112165715B (en) * | 2020-09-25 | 2021-12-03 | 珠海格力电器股份有限公司 | Equipment detection method and device, storage medium and electronic device |
| CN116204484A (en) * | 2023-03-15 | 2023-06-02 | 闻泰通讯股份有限公司 | Communication connection method, device, computer equipment and storage medium |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101790225A (en) * | 2010-03-16 | 2010-07-28 | 华为终端有限公司 | Power management method and device for on-line module |
| CN104144481A (en) * | 2014-05-06 | 2014-11-12 | 杨光华 | Multimode beacon and multimode beacon control system and method |
| CN104581617A (en) * | 2015-01-22 | 2015-04-29 | 小米科技有限责任公司 | Wireless communication method and intelligent equipment |
| CN104601679A (en) * | 2014-12-31 | 2015-05-06 | 北京华为数字技术有限公司 | Equipment software testing method, mobile terminal and server |
| CN107071892A (en) * | 2017-01-17 | 2017-08-18 | 珠海市横琴因行思智能科技有限公司 | A kind of alignment system for actively launching WIFI beacons |
Family Cites Families (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20040130453A1 (en) * | 2003-01-03 | 2004-07-08 | Zinn William H. | Traffic controller emergency power supply |
| CN101582895B (en) * | 2009-06-18 | 2012-07-04 | 重庆邮电大学 | EPA-based embedded industrial wireless WIA-PA gateway |
| CN104104434A (en) * | 2014-07-24 | 2014-10-15 | 北京华环电子股份有限公司 | Power failure alarm implementation method capable of rapidly inserting alarm frame |
| US10374819B2 (en) * | 2014-09-19 | 2019-08-06 | Xiaomi Inc. | Methods and devices of accessing wireless network |
| CN106162647B (en) * | 2016-08-31 | 2019-12-10 | 海尔优家智能科技(北京)有限公司 | Intelligent equipment configuration network access method and device |
| CN106597967A (en) * | 2016-12-19 | 2017-04-26 | 广西升禾环保科技股份有限公司 | Vehicle-mounted sanitation vehicle monitoring terminal |
| CN108882270B (en) * | 2018-06-26 | 2020-12-04 | 新华三技术有限公司 | Network equipment and equipment management method |
-
2018
- 2018-06-26 CN CN201810672927.8A patent/CN108882270B/en active Active
-
2019
- 2019-06-26 WO PCT/CN2019/093062 patent/WO2020001486A1/en not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101790225A (en) * | 2010-03-16 | 2010-07-28 | 华为终端有限公司 | Power management method and device for on-line module |
| CN104144481A (en) * | 2014-05-06 | 2014-11-12 | 杨光华 | Multimode beacon and multimode beacon control system and method |
| CN104601679A (en) * | 2014-12-31 | 2015-05-06 | 北京华为数字技术有限公司 | Equipment software testing method, mobile terminal and server |
| CN104581617A (en) * | 2015-01-22 | 2015-04-29 | 小米科技有限责任公司 | Wireless communication method and intelligent equipment |
| CN107071892A (en) * | 2017-01-17 | 2017-08-18 | 珠海市横琴因行思智能科技有限公司 | A kind of alignment system for actively launching WIFI beacons |
Also Published As
| Publication number | Publication date |
|---|---|
| CN108882270A (en) | 2018-11-23 |
| WO2020001486A1 (en) | 2020-01-02 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN108882270B (en) | Network equipment and equipment management method | |
| CN104301146A (en) | Link switching method and device in software defined network | |
| US11048315B2 (en) | Remote wake-up of mobile devices | |
| CA3100723A1 (en) | Testing of a network of hazard warning devices | |
| CN110730472B (en) | Communication certificate state detection method and server | |
| CN109298775A (en) | Terminal device and task processing method | |
| CN108199962A (en) | Address transfer method, apparatus, the network equipment and readable storage medium storing program for executing | |
| CN109120386B (en) | Wireless communication devices, systems and methods | |
| US20130184010A1 (en) | Transmitting location information from a computing device | |
| CN109347685B (en) | Network equipment, logic device and notification information transmission method | |
| KR20080058454A (en) | Distributed Monitoring Method | |
| CN107241216A (en) | Maintain the method and device of the stable transmission of critical data | |
| CN105765909A (en) | Link switching method and device | |
| AU2009352181B2 (en) | Power-down protection method and system, power controller for the communication device | |
| US20130054984A1 (en) | Network device and method for the network device to set operation of port | |
| US20230147005A1 (en) | Onboard device and sleep control method | |
| CN109257185B (en) | Network equipment, service card, logic device and notification information transmission method | |
| WO2021012113A1 (en) | Methods and apparatuses for communication between radio equipment and radio equipment controller | |
| CN106304241B (en) | Data transmission method, repeater and gateway | |
| KR102436486B1 (en) | Network system and the method perceiving and reset of abnormal power | |
| CN118264542A (en) | Network card, electronic equipment and service switching method | |
| CN111314272B (en) | Task processing method and device | |
| CN116193463A (en) | A data processing method, message sending method and device | |
| CN205961187U (en) | Cloud storage system with apart from monitoring devices | |
| KR101078503B1 (en) | Wireless modem |
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 |