WO2020001486A1 - 一种网络设备及设备管理方法 - Google Patents

一种网络设备及设备管理方法 Download PDF

Info

Publication number
WO2020001486A1
WO2020001486A1 PCT/CN2019/093062 CN2019093062W WO2020001486A1 WO 2020001486 A1 WO2020001486 A1 WO 2020001486A1 CN 2019093062 W CN2019093062 W CN 2019093062W WO 2020001486 A1 WO2020001486 A1 WO 2020001486A1
Authority
WO
WIPO (PCT)
Prior art keywords
beacon frame
debugging
information
serial
circuit
Prior art date
Application number
PCT/CN2019/093062
Other languages
English (en)
French (fr)
Inventor
徐国祥
袁华勇
Original Assignee
新华三技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 新华三技术有限公司 filed Critical 新华三技术有限公司
Publication of WO2020001486A1 publication Critical patent/WO2020001486A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management
    • H04W64/003Locating users or terminals or network equipment for network management purposes, e.g. mobility management locating network equipment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Definitions

  • Network devices are physical entities connected to the network. There are many types of network devices, such as servers, hubs, PCs (Personal Computers), switches, bridges, routers, gateways, and NICs (Network Interface Cards). , AP (Access Point, Access Point) and so on. For enterprises, network equipment is one of the important assets and needs to be maintained and managed.
  • FIG. 1 is a hardware structural diagram of a network device in an embodiment of the present application
  • FIG. 2 is a schematic diagram of a connection between a power switching circuit and a second processing unit, a main power source, and a backup power source according to an embodiment of the present application;
  • 3 is a format diagram of a Bluetooth beacon frame
  • FIG. 4 is a format diagram of a header in a Bluetooth beacon frame
  • FIG. 5 is a flowchart of a device management method according to an embodiment of the present application.
  • first, second, third, etc. may be used to describe various information in the embodiments of the present application, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other.
  • first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information.
  • word “if” can be interpreted as “at” or “at " or "in response to a determination”.
  • An embodiment of the present application provides a network device, which may include a main function circuit, a serial port label circuit, and a main power source.
  • a network device which may include a main function circuit, a serial port label circuit, and a main power source.
  • main function circuit a serial port label circuit
  • main power source a main power source
  • other functional circuits can also be included, which is not limited. The following description will take the main functional circuit, the serial tag circuit, and the main power supply as examples. Referring to FIG. 1, a hardware structure diagram of a network device 100 is shown.
  • the main functional circuit 110 may include, but is not limited to, the first processing unit 111 and other devices, which is not limited thereto.
  • the first processing unit 111 may be a CPU (Central Processing Unit), or may be other hardware / software modules with information processing functions.
  • the CPU is used as an example for description, and may be referred to as a first CPU.
  • the main functional circuit 110 is a functional circuit of a traditional network device, for example, a network switching processing circuit of a switch, a routing function implementation circuit of a router, and the like, and details are not described herein again.
  • the serial tag circuit 120 may include, but is not limited to, a second processing unit 121, a transceiver circuit 122, a power switching circuit 123, a backup power source 124 (such as a backup battery, etc.), and other devices, which are not limited thereto.
  • the second processing unit 121 may be a CPU or other hardware / software modules with information processing functions.
  • the CPU is used as an example in the following description, and it may be referred to as a second CPU.
  • the second CPU is electrically connected to the transceiver circuit 122, the second CPU is electrically connected to the power switching circuit 123, and the power switching circuit 123 is electrically connected to the main power source 130 and the backup power source 124.
  • the serial tag circuit 120 is a relatively independent circuit from the main function circuit 110.
  • the serial tag circuit 120 can act as a wireless serial port of the network device 100 and interact with the debugging device to debug information.
  • the serial tag circuit 120 can periodically send a beacon frame, so that the positioning device can locate the network device 100 according to the beacon frame, and avoid the network device 100 from being disconnected.
  • the network device 100 further includes a main power source 130, a serial tag circuit further includes a backup power source 124, the main power source 130 is connected to the main function circuit 110, the main power source 130 is connected to the power source switching circuit 123 of the serial tag circuit 120, and the backup power source 124 It is connected to the power switching circuit 123 of the serial tag circuit 120.
  • the main power supply 130 supplies power
  • the main power supply 130 supplies power
  • the main power supply 130 supplies power to the main function circuit 110 and the serial tag circuit 120.
  • the main function circuit 110 is in a working state
  • the serial tag circuit 120 is in a working state.
  • the backup power supply 124 supplies power to the serial tag circuit 120.
  • the backup power supply 124 does not supply power to the main function circuit 110. In this way, the main function circuit 110 is not in a working state and the serial tag circuit 120 is in a working state.
  • the main function circuit 110 is connected to the main power source 130.
  • the main power supply 130 supplies power
  • the main power supply 130 can supply power to the main function circuit 110, so that the main function circuit 110 is in a working state.
  • the main power supply 130 cannot supply power to the main function circuit 110, so that the main function circuit 110 is not in a working state.
  • FIG. 2 is a schematic diagram of the connection between the power switching circuit 123 and the second processing unit 121, the main power source 130, and the standby power source 124.
  • the power switching circuit 123 is connected to the main power source 130 and the standby power source 124, respectively, and is connected to the serial tag circuit 120.
  • the second processing unit 121 is connected. Based on the embodiment shown in FIG. 2, when the main power supply 130 supplies power, the power supply switching circuit 123 can select the main power supply 130 to supply power to the serial tag circuit 120; when the main power supply 130 is not supplied power, the power supply switching circuit 123 can select the backup power supply 124 The serial tag circuit 120 is powered.
  • the second processing unit 121 of the serial tag circuit 120 when the second processing unit 121 of the serial tag circuit 120 detects that the main function circuit 110 is switched from the working state to the non-working state, it sends a power switching signal to the power switching circuit 123; the power switching circuit 123 receives In the power switching signal, the backup power source 124 is selected to supply power to the serial tag circuit 120.
  • the second processing unit 121 of the serial tag circuit 120 detects that the GPIO (General Input / Output) port is switched from a high state to a low state, it can be determined that the main function circuit 110 is switched from the working state to the Non-working state, this process is described in the subsequent embodiments.
  • GPIO General Input / Output
  • the power switching signal may be a high-level signal or a low-level signal output from an output pin of the second processing unit 121, and the high-low signal output from the pin instructs the power switching circuit 123 to select which power source to use.
  • the power switching circuit 123 may include a switch, which determines which power source is selected to be connected to the serial tag circuit 120 according to an instruction of the power switching signal. In one example, when the second processing unit 121 outputs a high-level signal, the power switching circuit 123 closes the first switch connecting the main power source 130 and the second processing unit 121 and opens the first connection connecting the backup source 124 and the second processing unit 121. Two switches. In another example, when the second processing unit 121 outputs a low-level signal, the power switching circuit 123 closes the second switch and opens the first switch.
  • the serial tag circuit 120 may send a first beacon frame carrying working status information, so that the debugging device receiving the first beacon frame can send a connection request to the network device 100 according to the first beacon frame.
  • the serial tag circuit 120 sends the second beacon frame carrying the non-working state information, so that the positioning device receiving the second beacon frame can locate the network device 100 according to the non-working state information.
  • Case 1 When it is detected that the main function circuit 110 is in the working state, the serial tag circuit 120 sends a first beacon frame carrying working state information, the first beacon frame indicates that the debugging device receiving the first beacon frame can A connection request is sent to the network device 100. Further, if a connection request sent by the debugging device is received, the serial tag circuit 120 establishes a wireless connection with the debugging device according to the connection request, and transmits debugging information with the debugging device through the wireless connection.
  • the serial port tag circuit 120 sends a first beacon frame carrying the working state information, and the first beacon frame indicates that the debugging device receiving the first beacon frame can perform the operation according to the The work status information sends a connection request to the network device 100.
  • the debugging device determines that the main function circuit 110 is in the working state according to the working state information of the first beacon frame, it sends a connection request to the network device 100.
  • the serial tag circuit 120 is connected to the main function circuit 110 through a GPIO port. For example, when a GPIO port is detected to be in a high state, the serial tag circuit 120 may determine that the main function circuit 110 is in a working state; when a GPIO port is detected to be in a low state, the serial tag circuit 120 may determine the main function The circuit 110 is not in an operating state.
  • the initial state of the GPIO port is a low state.
  • the main function circuit 110 can set the level state of the GPIO port to a high state.
  • the main function circuit 110 cannot set the level state of the GPIO port to a high state, that is, the GPIO port is in a low state. That is, when the GPIO port is in a high state, it means that the main function circuit 110 is in a working state; when the GPIO port is in a low state, it means that the main function circuit 110 is not in a working state (that is, in a non-working state).
  • the CPU (ie, the second CPU) of the serial tag circuit 120 is connected to the CPU (ie, the first CPU) of the main function circuit 110 through a GPIO port.
  • the GPIO port can be in a low state, and there are many ways to make the GPIO port in a low state.
  • the GPIO port is in a low state due to an external pull-down resistor.
  • a CPU sets the level state of the GPIO port to a low state. In this embodiment, there is no restriction on how to make the GIOP port in a low state, as long as the GPIO port can be in a low state.
  • the first CPU of the main function circuit 110 may set the level state of the GPIO port from a low state to a high state.
  • the first CPU of the main function circuit 110 may The high-level signal is output so that the level state of the GPIO port changes from a low-level state to a high-level state.
  • the level state of the GPIO port can be set to a high-level state.
  • the second CPU of the serial tag circuit 120 senses that the GPIO port is in a high-level state, it can determine that the main function circuit 110 is in a working state.
  • the main function circuit 110 when the main function circuit 110 is not in a working state, for example, the main function circuit 110 is in a power-down state, the first CPU of the main function circuit 110 cannot set the level state of the GPIO port from a low state to a high power state. Flat state, that is, the GPIO port will remain low. Based on this, when the second CPU of the serial tag circuit 120 senses that the GPIO port is in a low-level state, it can determine that the main function circuit 110 is not in a working state (that is, in a non-working state).
  • the main function circuit 110 when the main function circuit 110 supplies power and the main function circuit 110 is in a working state, the main function circuit 110 can set the level state of the GPIO port to a high state. Therefore, the second CPU of the serial tag circuit 120 When it is detected that the GPIO port is in a high state, it can be determined that the main function circuit 110 is in a working state, and no power switching signal is sent to the power switching circuit 123 at this time.
  • the power switching circuit 123 does not receive the power switching signal, and learns that the main power supply 130 is currently supplying power, and continues to select the main power supply 130 to supply power to the serial tag circuit 120.
  • the main function circuit 110 When the main power supply 130 is not powered, the main function circuit 110 is in a non-working state, so the main function circuit 110 cannot set the level state of the GPIO port from a low state to a high state.
  • the second CPU of the serial tag circuit 120 detects that the GPIO port is in a low state, determines that the main function circuit 110 is in a non-working state, and sends a power switching signal to the power switching circuit 123.
  • the power switching circuit 123 receives the power switching signal and learns that the current main power supply 130 is not supplying power.
  • the backup power supply 124 is selected to supply power to the serial tag circuit 120.
  • the serial tag circuit 120 when the serial tag circuit 120 determines that the main function circuit 110 is in the working state, it may send a first beacon frame, and the first beacon frame may carry working state information, which indicates that the main function circuit 110 is in Working status.
  • the debugging device can interact with the main function circuit 110 through the serial tag circuit 120 to debug information. Based on this, after receiving the first beacon frame, the debugging device determines that the main function circuit 110 of the network device 100 is in the working state if it finds the working state information in the first beacon frame, and labels the serial port circuit of the network device 100 with the serial port circuit. 120 sends a connection request to establish a connection with the network device 100.
  • the serial tag circuit 120 may periodically send a first beacon frame carrying working status information, and stop receiving the first beacon frame until a connection request from the debugging device is received.
  • the second CPU of the serial tag circuit 120 determines that the main function circuit 110 is in the working state, it generates a first beacon frame carrying the working state information, and transmits the first beacon frame to the transceiver circuit 122. After receiving and transmitting the first beacon frame, the transceiver circuit 122 sends the first beacon frame from the antenna port of the transceiver circuit 122. After the debugging device receives the first beacon frame, if it is found that the first beacon frame includes working state information, it is determined that the main function circuit 110 of the network device 100 is in a working state, and a connection request may be sent to the network device 100.
  • the transceiver circuit 122 of the serial tag circuit 120 of the network device 100 receives the connection request, and transmits the connection request to the second CPU of the serial tag circuit 120. After the second CPU of the serial tag circuit 120 obtains the connection request, establishes a wireless connection with the debugging device according to the connection request, and transmits debugging information to and from the debugging device through the wireless connection.
  • the transceiver circuit 122 may include a radio frequency module and an antenna.
  • the radio frequency module may include amplifiers, filters of a specific frequency band, and corresponding clock chips.
  • the function of the radio frequency module may be implemented by using a chip supporting a wireless protocol applied by the serial tag circuit 120.
  • the chip supporting the wireless protocol may also implement the function of the second processing unit 121.
  • FIG. 1 merely exemplarily divides each module or circuit according to functions. In specific implementation, the same device can be used to implement the functions of different modules or circuits.
  • the serial tag circuit 120 may be connected to the main function circuit 110 through a serial port. Based on this, when the serial tag circuit 120 transmits debugging information to and from the debugging device through wireless connection, the serial tag circuit 120 receives the first serial debugging information sent by the main function circuit 110 through the serial port, and converts the first serial debugging information into The first wireless debugging information of the wireless protocol of the wireless connection application, and the first wireless debugging information is sent to the debugging device through the wireless connection; and / or, the serial tag circuit 120 receives the second wireless debugging sent by the debugging device through the wireless connection. Information, and convert the second wireless debugging information into second serial debugging information that complies with the serial protocol of the serial application, and send the second serial debugging information to the main function circuit 110 through the serial port.
  • the protocol for establishing a wireless connection application with the debugging device is the Bluetooth protocol.
  • the protocol for establishing a wireless connection application with the debugging device can also be other types of wireless connection protocols, for example, establishing a wireless connection application with the debugging device.
  • the protocol can be a Wi-Fi (Wireless Fidelity) protocol or a ZigBee protocol, and there is no restriction on the type of the protocol.
  • the second CPU of the serial tag circuit 120 can receive the serial debugging information sent by the main function circuit 110 through the serial port, and add the serial debugging information to the Bluetooth protocol.
  • the serial debugging information is encapsulated into the data frame specified by the Bluetooth protocol, that is, the serial debugging information is converted into wireless debugging information, and the wireless debugging information is the data frame that encapsulates the serial debugging information. Then, the second CPU of the serial tag circuit 120 can transmit the wireless debugging information to the transceiver circuit 122.
  • the transceiver circuit 122 can send the wireless debugging information through the wireless connection, that is, the wireless debugging information is sent to the debugging device. In this way, the debugging device can receive the wireless debugging information.
  • This is a process in which the network device 100 sends wireless debugging information to the debugging device. The following describes the process in which the network device 100 receives wireless debugging information sent by the debugging device.
  • the transceiver circuit 122 of the serial tag circuit 120 receives the wireless debugging information sent by the debugging device through the wireless connection, and sends the wireless debugging information to the serial tag circuit 120.
  • Second CPU After the second CPU of the serial tag circuit 120 obtains the wireless debugging information, it parses the wireless debugging information and obtains the serial debugging information, that is, the serial debugging information is obtained in the payload field of the data frame. This is to convert the wireless debugging information into serial debugging information. process. Then, the serial port debugging information is sent to the first CPU of the main function circuit 110 through the serial port. In this way, the first CPU of the main function circuit 110 can receive the serial port debugging information.
  • this solution does not limit the specific position of the serial port debugging information in the payload field, as long as the serial port debugging information can be carried in the payload field of the wireless connection protocol.
  • the SPP (Serial Port Profile) protocol (which is one of the Bluetooth protocols) can also be used to implement conversion between serial debugging information and wireless debugging information.
  • the second CPU of the serial tag circuit 120 After the second CPU of the serial tag circuit 120 establishes a Bluetooth wireless connection with the debugging device, the second CPU can receive the serial debugging information sent by the main function circuit 110 through the serial port, and use the SPP to convert the serial debugging information into wireless debugging information. Then, the second CPU of the serial tag circuit 120 may transmit the wireless debugging information to the transceiver circuit 122. After receiving the wireless debugging information, the transceiver circuit 122 may send the wireless debugging information through a Bluetooth wireless connection, that is, the wireless debugging information is sent to Commissioning equipment.
  • the debugging device can receive the wireless debugging information.
  • This is a process in which the network device 100 sends wireless debugging information to the debugging device.
  • the transceiver circuit 122 of the serial tag circuit 120 receives the wireless debugging information sent by the debugging device through the Bluetooth wireless connection, and sends the wireless debugging information to the first serial tag circuit 120.
  • Two CPUs After the second CPU of the serial tag circuit 120 obtains the wireless debugging information, it uses the SPP protocol to convert the wireless debugging information into serial debugging information, and sends the serial debugging information to the first CPU of the main function circuit 110 through the serial port. In this way, the first CPU of the main function circuit 110 can receive the serial port debugging information.
  • the SPP protocol defines the conversion rules between wireless debugging information and serial debugging information. For example, you can use the SPP protocol to convert wireless debugging information to serial debugging information, or you can use the SPP protocol to convert serial debugging information to wireless. Debug information. This solution does not limit the protocol that defines the conversion rules, as long as it can achieve the mutual conversion of wireless debugging information and serial debugging information.
  • the debugging information sent by the network device 100 to the debugging device may include, but is not limited to, the print configuration, the CPU operating percentage, the memory size, the CPU model, etc. of the network device 100, and the debugging information is not limited.
  • the debugging information sent by the debugging device to the network device 100 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 There is no restriction on this debugging information.
  • Case two When it is detected that the main function circuit 110 is not in the working state, the serial tag circuit 120 sends a second beacon frame carrying non-working state information, and the second beacon frame indicates a positioning device that has received the second beacon frame.
  • the network device 100 can be located according to the non-working state information, that is, the position of the network device 100 is determined.
  • the serial port tag circuit 120 when it determines that the main function circuit 110 is in a non-working state, it may send a second beacon frame, and the second beacon frame may carry non-working state information, where the non-working state information is used to indicate The main function circuit 110 is in a non-operating state. Based on this, other devices can locate the network device 100. For example, after receiving the second beacon frame, if the positioning device finds non-working state information in the second beacon frame, it determines that the main function circuit 110 of the network device 100 is in the non-working state, and can perform the operation on the network device 100. Positioning.
  • the serial tag circuit 120 when the serial tag circuit 120 sends the second beacon frame carrying the non-working status information, it is specifically used to: periodically send the second beacon frame and refuse to accept the connection request for the second beacon frame, that is, That is, even if a connection request is received, a wireless connection will not be established based on the connection request.
  • the second CPU of the serial tag circuit 120 determines that the main function circuit 110 is in a non-working state, it generates a second beacon frame carrying non-working state information, and sends the second beacon frame to the transceiver circuit 122.
  • the transceiver circuit 122 may send the second beacon frame through the antenna port of the transceiver circuit 122.
  • the positioning device receives the second beacon frame, if it finds non-working state information in the second beacon frame, it determines that the main function circuit 110 of the network device 100 is in a non-working state, causing the main function circuit 110 to be in a non-working state.
  • this solution is not limited as long as the main function circuit 110 can be in a non-working state.
  • the main function circuit 110 of the network device 100 cannot work normally due to power failure.
  • the positioning device may perform positioning on the network device 100.
  • the positioning method in this solution the following is only an example.
  • the second beacon frame can be broadcasted to multiple positioning devices, such as three positioning devices.
  • the signal strength of the second beacon frame is received through these three positioning devices, and the respective positions of the three positioning devices.
  • the position of the network device 100 (such as latitude and longitude coordinates) can be located, and a preset algorithm, such as a positioning algorithm based on the received signal strength, can be used to locate the position of the network device, and there is no limitation on the positioning algorithm.
  • both the first beacon frame and the second beacon frame may be beacon frames conforming to the Bluetooth protocol.
  • beacon frames do not carry working state information or non-working state information. Therefore, in this application, traditional beacon frames can be improved, such as reusing existing fields (such as reserved fields) of beacon frames or adding new ones.
  • This field carries work status information or non-work status information. For example, this field carries the work tag. When the work tag is the first identifier, it indicates that the beacon frame carries the work status information. At this time, the beacon frame is the first beacon frame. When the work tag is the second identifier, it indicates The beacon frame carries non-working state information, and the beacon frame at this time is a second beacon frame.
  • the improvement enables the device receiving the beacon frame to determine whether the main function circuit 110 of the network device 100 is in an operating state.
  • the Bluetooth beacon frame may include a header and a payload field.
  • a 4-bit reserved field (RFU) is included in the header field.
  • a bit of the RFU can be used to carry a work tag. For example, when the bit is set to 0, it can indicate that the beacon frame carries working status information; when the bit is set to 1, it can indicate that the beacon frame carries non-working status information.
  • the payload field can also be used to carry the work tag. For example, a new field representing the work tag can be customized in the payload field.
  • the beacon frame may also carry connection information, and the connection information may be connectable or unconnectable.
  • the serial tag circuit 120 may further add connection information to the first beacon frame or the second beacon frame, and the connection information may be connectable. Or not connectable.
  • the header field of the beacon frame includes connection information, that is, the PDU Type field in the header field indicates the connection information. Specifically, the value of the PDU (Protocol Data Unit) type indicates the transmission. Whether the device of this beacon frame can be connected.
  • the device sending the beacon frame can be connected; when the PDU type is ADV_NONCONN_IND or ADV_SCAN_IND, the device sending the beacon frame cannot be connected.
  • the PDU type is ADV_IND or ADV_DIRECT_IND
  • the device sending the beacon frame cannot be connected.
  • connectable or non-connectable PDU types please refer to the specific Bluetooth protocol.
  • the debugging device may send a connection request to the network device 100, and after receiving the connection request, the serial tag circuit 120 of the network device 100 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 100. Even if the debugging device sends a connection request to the network device 100, the serial tag circuit 120 of the network device 100 receives the connection request. After the connection request, no wireless connection is established with the debugging device. In one example, the beacon frame received by the debugging device carries working status information.
  • the debugging device determines that the main function circuit 110 of the network device 100 is in working status information. At this time, the debugging device obtains the connection information carried by the beacon frame. If the carried connection information is connectable, a connection request is sent to the network device 100. Alternatively, the connection information carried by the beacon frame acquired by the debugging device is not connectable. The debugging device sends a connection request to the network device 100, but the serial tag circuit 120 of the network device 100 does not communicate with the debugging after receiving the connection request. The device establishes a wireless connection.
  • the debugging device or the positioning device may not send a connection request to the network device 100, even if the debugging device or the positioning device sends a connection request to the network device 100, the network device 100 After the serial tag circuit 120 receives the connection request, it will not establish a wireless connection with the debugging device or the positioning device.
  • the beacon frame received by the debugging device or the positioning device carries non-working state information, and the debugging device or the positioning device determines that the main function circuit 110 of the network device 100 is in the non-working state information.
  • connection information carried in the beacon frame may be ignored, and a connection request may not be sent to the network device 100.
  • the connection information carried in the beacon frame obtained by the debugging device or the positioning device is connectable.
  • the debugging device or the positioning device sends a connection request to the network device 100, but after receiving the connection request, the serial tag circuit 120 of the network device 100 receives the connection request. , And does not establish a wireless connection with the debugging device or pointing device.
  • the debugging device may be a device for debugging the network device 100, such as a PC, a mobile terminal, and the like, and the type of the debugging device is not limited.
  • a worker can use the debugging device to debug the network device 100.
  • a worker connects the debugging device and the network device 100 through a cable.
  • the debugging process is not limited.
  • the above positioning device may be a device for positioning the network device 100, such as an AP, and the type of the positioning device is not limited.
  • the positioning device can be used to locate the powered-down network device 100, so that it can be known which location the network device 100 has been Power off.
  • a serial tag circuit 120 can be deployed on the network device 100, and the serial tag circuit 120 can determine whether the main function circuit 110 of the network device 100 is in a working state. If the main function circuit 110 is in the working state, the serial tag circuit 120 sends a first beacon frame carrying the working state information, so that the debugging device receiving the first beacon frame can send the first beacon frame to the network device according to the first beacon frame. 100 sends a connection request. If the serial tag circuit 120 receives the connection request sent by the debugging device, it establishes a wireless connection with the debugging device according to the connection request, and transmits debugging information to and from the debugging device through the wireless connection.
  • the serial port tag circuit 120 sends a second beacon frame carrying non-working state information, so that the positioning device receiving the second beacon frame can perform network operation on the network according to the non-working state information.
  • the device 100 performs positioning. After the network device 100 is powered off for some reason, the main function circuit 110 is not in the working state, the serial tag circuit 120 can send a second beacon frame, and the positioning device can locate the network device 100 according to the second beacon frame, thereby Avoid the network device 100 from being disconnected. At the same time, it can be known at which location the network device 100 has been powered off, and the network device 100 is repaired to prevent the network device 100 from being powered off for a long time.
  • the serial tag circuit 120 may send a first beacon frame, so that the debugging device establishes a wireless connection with the network device 100 according to the first beacon frame.
  • the debugging device and the network The devices 100 can transmit debugging information to each other through a wireless connection, instead of transmitting debugging information to each other in a wired manner. That is, the network device 100 can be debugged without using a cable to connect the debugging device and the network device 100, which is convenient and flexible. Saved hardware costs.
  • an embodiment of the present application further proposes a device management method.
  • FIG. 5 it is a schematic flowchart of the device management method.
  • the method can be applied to a serial tag circuit of a network device, and the network device also A main function circuit may be included, and the method includes.
  • Step 301 When it is detected that the main function circuit is in the working state, send a first beacon frame carrying the working state information, wherein the first beacon frame indicates that the debugging device receiving the first beacon frame is capable of detecting the first beacon frame.
  • the first beacon frame sends a connection request to the network device. For example, after receiving the first beacon frame, the debugging device determines that the main function circuit of the network device is in the working state if it finds the working status information in the first beacon frame, and sends a connection request to the serial tag circuit of the network device. .
  • step 302 if a connection request sent by the debugging device is received, a wireless connection is established with the debugging device according to the connection request, and the debugging information is transmitted to the debugging device through the wireless connection.
  • Step 303 When it is detected that the main function circuit is not in the working state, send a second beacon frame carrying non-working state information, where the second beacon frame indicates that the positioning device that received the second beacon frame can Positioning the network device according to the non-working state information, that is, determining the position of the network device.
  • the serial tag circuit when it determines that the main function circuit is in a non-working state, it may send a second beacon frame, and the second beacon frame may carry non-working state information, which is used to indicate the main function.
  • the circuit is in a non-operating state.
  • network devices can be located by other devices. For example, after receiving the second beacon frame, if the positioning device finds non-working state information in the second beacon frame, it determines that the main functional circuit of the network device is in the non-working state and can locate the network device.
  • Step 301 and step 303 are not sequential.
  • step 301 and step 302 are performed.
  • step 303 is performed.
  • the serial tag circuit can be connected to the main function circuit through the GPIO port; when the GPIO port is detected to be in the high state, it is determined that the main function circuit is in the working state; when the GPIO port is detected to be in the low state , It is determined that the main function circuit is not in a working state.
  • the initial state of the GPIO port is a low state, such as a low state due to an external pull-down resistor.
  • the main function circuit sets the level state of the GPIO port to a high level state. For example, the main function circuit outputs a high level signal to change the level state of the GPIO port from a low level state. Is high.
  • the main function circuit cannot set the level state of the GPIO port to a high state, that is, the GPIO port is in a low state.
  • the main function circuit when the GPIO port is in a high state, it means that the main function circuit is in a working state; when the GPIO port is in a low state, it means that the main function circuit is not in a working state (that is, in a non-working state).
  • sending the first beacon frame carrying the working status information includes: periodically sending the first beacon frame, and stopping receiving the first beacon frame until a connection request from the debugging device is received.
  • sending the second beacon frame carrying non-working status information may include: periodically sending the second beacon frame and refusing to accept a connection request for the second beacon frame.
  • the serial tag circuit can also be connected to the main function circuit through the serial port; based on this, the debugging information is transmitted to and from the debugging device through a wireless connection, which can include but is not limited to:
  • Receive the first serial debugging information sent by the main function circuit through the serial port convert the first serial debugging information into the first wireless debugging information conforming to the wireless protocol of the wireless connection application, and send the first wireless debugging information through the wireless connection To the debugging device; and / or, receiving the second wireless debugging information sent by the debugging device through a wireless connection, converting the second wireless debugging information into second serial debugging information conforming to the serial protocol of the serial application, and using the serial
  • the second serial port debugging information is sent to the main function circuit.
  • the protocol used to establish a wireless connection with the debugging device is the Bluetooth protocol.
  • the serial tag circuit After the serial tag circuit establishes a wireless connection with the debugging device, it can receive serial debugging information sent by the main function circuit through the serial port, and add the serial debugging information to the Bluetooth protocol.
  • the serial port debugging information In the payload field of the specified data frame, the serial port debugging information is encapsulated into the data frame specified by the Bluetooth protocol, that is, the serial debugging information is converted into wireless debugging information, and the wireless debugging information is a data frame that encapsulates serial debugging information.
  • the serial tag circuit sends the wireless debugging information through the wireless connection, that is, the wireless debugging information is sent to the debugging device, so that the debugging device can receive the wireless debugging information.
  • the serial tag circuit can receive the wireless debugging information sent by the debugging device through the wireless connection, parse the wireless debugging information, and obtain the serial debugging information, that is, from the payload field of the data frame Obtain serial debugging information. This is the process of converting wireless debugging information into serial debugging information.
  • serial port debugging information is sent to the main function circuit through the serial port, and the main function circuit can receive the serial port debugging information.
  • the method provided in this application when establishing a wireless connection with a debugging device may also be a Wi-Fi protocol or a ZigBee protocol. There are no restrictions on the type of wireless connection protocol. It should be understood that serial debugging information is added to these In the payload field of the protocol, serial port debugging information can be converted to wireless debugging information. Correspondingly, by analyzing the wireless debugging information and obtaining the serial debugging information in the payload field, the wireless debugging information can be converted into the serial debugging information.
  • the protocol used to establish a wireless connection with the debugging device is the Bluetooth protocol.
  • the serial tag circuit After the serial tag circuit establishes a wireless connection with 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 can be debugged using the SPP protocol. The information is converted into wireless debugging information. Then, the serial tag circuit sends the wireless debugging information through the wireless connection, that is, the wireless debugging information is sent to the debugging device, so that the debugging device can receive the wireless debugging information.
  • the serial tag circuit After the serial tag circuit establishes a wireless connection with the debugging device, the serial tag circuit can receive the wireless debugging information sent by the debugging device through the wireless connection, use the SPP protocol to convert the wireless debugging information into serial debugging information, and send the serial debugging information to the host through the serial port.
  • Function circuit the main function circuit can receive serial debugging information.
  • the network device further includes a main power source
  • the serial tag circuit further includes a backup power source.
  • a backup power source can be selected to supply power to the serial tag circuit.
  • the main function circuit can be considered to be switched from the working state to the non-working state.
  • the main function circuit when the main function circuit is in the working state when the main power is supplied, the main function circuit can set the level state of the GPIO port to a high state. Therefore, when the serial tag circuit detects that the GPIO port is in a high state, It can be determined that the main function circuit is in a working state, and it can be known that the main power supply is currently used to continue to select the main power supply for the serial tag circuit.
  • the serial tag circuit detects that the GPIO port is in a low state, and determines that the main function circuit is in a non-working state. It can be known that the current main power supply is not powered, and a backup power source is selected to supply power to the serial tag circuit.
  • the first beacon frame may include a work mark.
  • the work mark is a first identifier, it indicates that the first beacon frame carries work status information.
  • the second beacon frame may include a work mark.
  • the working mark is the second identifier, it indicates that the second beacon frame carries non-working state information.
  • the first processing unit 111 and the second processing unit 121 described in the above embodiments may also be composed of one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), programmable logic devices (PLDs), It can be implemented by a programming gate array (FPGA), a controller, a microcontroller, a microprocessor, or other electronic components, which is not limited in this application.
  • ASICs application-specific integrated circuits
  • DSPs digital signal processors
  • PLDs programmable logic devices
  • FPGA programming gate array
  • controller a controller
  • microcontroller a microcontroller
  • microprocessor or other electronic components, which is not limited in this application.
  • the embodiments of the present application may be provided as a method, a system, or a computer program product. Therefore, this application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Moreover, the embodiments of the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
  • computer-usable storage media including, but not limited to, disk storage, CD-ROM, optical storage, etc.
  • these computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured article including an instruction device,
  • the instruction device implements the functions specified in a flowchart or a plurality of processes and / or a block or a plurality of blocks in the block diagram.
  • These computer program instructions can also be loaded on a computer or other programmable data processing device, so that a series of operation steps can be performed on the computer or other programmable device to generate a computer-implemented process, which can be executed on the computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more flowcharts and / or one or more blocks of the block diagrams.

Abstract

本申请提供一种网络设备及设备管理方法。该网络设备包括串口标签电路和主功能电路。其中,串口标签电路检测到主功能电路处于工作状态时,发送携带工作状态信息的第一信标帧,以使调试设备能够根据第一信标帧发送连接请求。若接收到发送的连接请求,串口标签电路根据连接请求与调试设备建立无线连接,通过无线连接与调试设备相互传输调试信息。此外,串口标签电路检测到主功能电路未处于工作状态时,发送携带非工作状态信息的第二信标帧,以使定位设备能够根据非工作状态信息对网络设备进行定位。

Description

一种网络设备及设备管理方法 背景技术
网络设备是连接到网络中的物理实体,网络设备的种类繁多,例如服务器、集线器、PC(Personal Computer,个人计算机)、交换机、网桥、路由器、网关、NIC(Network Interface Card,网络接口卡)、AP(Access Point,接入点)等。对于企业来说,网络设备是重要资产之一,需要对网络设备进行维护和管理。
但是,网络设备由于某种原因断电后,可能无法定位到该网络设备,导致该网络设备处于失联状态。也就是说,由于无法获知哪个位置的网络设备已经断电,也就无法及时对该网络设备进行修复,从而导致该网络设备长时间处于断电状态。
附图说明
为了更加清楚地说明本申请实施例或者现有技术中的技术方案,下面将对本申请实施例或者现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请中记载的一些实施例,对于本领域普通技术人员来讲,还可以根据本申请实施例的这些附图获得其他的附图。
图1是本申请一种实施方式中的网络设备的硬件结构图;
图2是本申请一种实施方式中的电源切换电路与第二处理单元、主电源、备用电源的连接示意图;
图3是蓝牙信标帧的格式图;
图4是蓝牙信标帧中头的格式图;
图5是本申请一种实施方式中的设备管理方法的流程图。
具体实施方式
在本申请实施例使用的术语仅仅是出于描述特定实施例的目的,而非限制本申请。本申请和权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其它含义。还应当理解,本文中使用的术语“和/或”是指包含一个或多个相关联的列出项目的任何或所有可能组合。
应当理解,尽管在本申请实施例可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本申请范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,此外,所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”。
本申请实施例提出一种网络设备,可以包括主功能电路、串口标签电路和主电源。当然,还可以包括其它功能电路,对此不做限制,后续以主功能电路、串口标签电路和主电源为例进行说明。参见图1,为网络设备100的硬件结构图。
主功能电路110可以包括但不限于第一处理单元111和其它器件,对此不做限制。第一处理单元111可以是CPU(Central Processing Unit,中央处理器),还可以是其他具备信息处理功能的硬件/软件模块,后续以CPU为例进行说明,可以将其称为第一CPU。其中,主功能电路110是传统网络设备具有的功能电路,例如,交换机的网络交换处理电路,路由器的路由功能实现电路等等,对此不再详加赘述。
串口标签电路120可以包括但不限于第二处理单元121、收发电路122、电源切换电路123、备用电源124(如备用电池等)和其它器件,对此不做限制。第二处理单元121可以是CPU,还可以是其他具备信息处理功能的硬件/软件模块,后续以CPU为例进行说明,可以将其称为第二CPU。其中,第二CPU与收发电路122电连接,第二CPU与电源切换电路123电连接,且电源切换电路123与主电源130和备用电源124均电连接。
串口标签电路120是一种与主功能电路110相对独立的电路。在网络设备100的主电源130供电时,串口标签电路120能够充当网络设备100的无线串口,与调试设备交互调试信息。在网络设备100的主电源130未供电时,串口标签电路120能够周期性地发送信标帧,使得定位设备能够根据信标帧定位该网络设备100,避免该网络设备100处于失联状态。
参见图1,网络设备100还包括主电源130,串口标签电路还包括备用电源124,主电源130与主功能电路110连接,主电源130与串口标签电路120的电源切换电路123连接,备用电源124与串口标签电路120的电源切换电路123连接。在主电源130供电时,由主电源130为主功能电路110和串口标签电路120供电,主功能电路110处于工作状态,且串口标签电路120处于工作状态。在主电源130未供电时,由备用电源124为串口标签电路120供电,备用电源124不为主功能电路110供电,这样,主功能电路 110未处于工作状态,且串口标签电路120处于工作状态。
其中,主功能电路110与主电源130连接。在主电源130供电时,则可以由主电源130为主功能电路110供电,从而使得主功能电路110处于工作状态。在主电源130未供电时,主电源130无法为主功能电路110供电,从而使得主功能电路110未处于工作状态。
其中,参见图2,为电源切换电路123与第二处理单元121、主电源130、备用电源124的连接示意图,电源切换电路123与主电源130和备用电源124分别连接,并与串口标签电路120的第二处理单元121连接。基于图2所示实施例,在主电源130供电时,则电源切换电路123可以选择主电源130为串口标签电路120供电;在主电源130未供电时,则电源切换电路123可以选择备用电源124为串口标签电路120供电。
在一个例子中,串口标签电路120的第二处理单元121检测到主功能电路110由工作状态切换到非工作状态时,向所述电源切换电路123发送电源切换信号;电源切换电路123在接收到所述电源切换信号时,选择备用电源124为串口标签电路120供电。具体的,串口标签电路120的第二处理单元121检测GPIO(General Purpose Input Output,通用输入输出)端口从高电平状态切换到低电平状态时,可以确定主功能电路110由工作状态切换到非工作状态,该过程在后续实施例中介绍。所述电源切换信号可以为第二处理单元121的一个输出管脚输出的高电平信号或低电平信号,通过该管脚输出的高低电平信号指示电源切换电路123选择使用哪个电源。所述电源切换电路123可以包括开关,根据电源切换信号的指示,决定选择由哪个电源连通至串口标签电路120。在一个示例中,第二处理单元121输出高电平信号时,电源切换电路123闭合连接主电源130与第二处理单元121的第一开关并打开连接备用源124与第二处理单元121的第二开关。在另一个示例中,第二处理单元121输出低电平信号时,电源切换电路123闭合第二开关并打开第一开关。
本申请实施例中,串口标签电路120可以发送携带工作状态信息的第一信标帧,以使接收到第一信标帧的调试设备能够根据第一信标帧向网络设备100发送连接请求,或,串口标签电路120发送携带非工作状态信息的第二信标帧,以使接收到第二信标帧的定位设备能够根据非工作状态信息对网络设备100进行定位。以下对此方案进行说明。
情况一、当检测到主功能电路110处于工作状态时,串口标签电路120发送携带工作状态信息的第一信标帧,所述第一信标帧指示接收到第一信标帧的调试设备能够向网络设备100发送连接请求。进一步的,若接收到调试设备发送的连接请求,则串口标签 电路120根据该连接请求与该调试设备建立无线连接,并通过该无线连接与该调试设备传输调试信息。具体的,当检测到主功能电路110处于工作状态时,串口标签电路120发送携带工作状态信息的第一信标帧,第一信标帧指示接收到第一信标帧的调试设备能够根据该工作状态信息向网络设备100发送连接请求。当调试设备依据第一信标帧的工作状态信息确定主功能电路110处于工作状态时,则会向网络设备100发送连接请求。
在一个例子中,串口标签电路120通过GPIO端口与主功能电路110连接。例如,当检测到GPIO端口处于高电平状态时,则串口标签电路120可以确定主功能电路110处于工作状态;当检测到GPIO端口处于低电平状态时,则串口标签电路120可以确定主功能电路110未处于工作状态。
其中,GPIO端口的初始状态为低电平状态,在主功能电路110处于工作状态时,则主功能电路110可以将GPIO端口的电平状态设置为高电平状态。在主功能电路110未处于工作状态(即处于非工作状态)时,则主功能电路110无法将GPIO端口的电平状态设置为高电平状态,即GPIO端口处于低电平状态。也就是说,当GPIO端口处于高电平状态时,表示主功能电路110处于工作状态;当GPIO端口处于低电平状态时,表示主功能电路110未处于工作状态(即处于非工作状态)。
参见图1,串口标签电路120的CPU(即第二CPU)通过GPIO端口与主功能电路110的CPU(即第一CPU)连接。在初始状态下,该GPIO端口可以处于低电平状态,使GPIO端口处于低电平状态的方式很多,例如由于外部下拉电阻而使GPIO端口处于低电平状态,或者例如主功能电路110的第一CPU将该GPIO端口的电平状态设置为低电平状态,本实施例对如何使GIOP端口处于低电平状态不做限制,只要能够使GPIO端口处于低电平状态即可。在主功能电路110处于工作状态时,则主功能电路110的第一CPU可以将GPIO端口的电平状态从低电平状态设置为高电平状态,例如,主功能电路110的第一CPU可以输出高电平信号,使得GPIO端口的电平状态从低电平状态变为高电平状态,对此不做限制,只要能够将GPIO端口的电平状态设置为高电平状态即可。基于此,串口标签电路120的第二CPU在感知到该GPIO端口处于高电平状态时,则可以确定主功能电路110处于工作状态。
此外,在主功能电路110未处于工作状态时,例如,主功能电路110处于掉电状态,则主功能电路110的第一CPU无法将GPIO端口的电平状态从低电平状态设置为高电平状态,也就是说,GPIO端口将保持低电平状态。基于此,串口标签电路120的第二CPU在感知到该GPIO端口处于低电平状态时,则可以确定主功能电路110未处于工作 状态(即处于非工作状态)。
综上所述,在主电源130供电时,主功能电路110处于工作状态,则主功能电路110可以将GPIO端口的电平状态设置为高电平状态,因此,串口标签电路120的第二CPU检测到GPIO端口处于高电平状态时,可以确定主功能电路110为工作状态,此时不会向电源切换电路123发送电源切换信号。电源切换电路123未接收到电源切换信号,获知当前由主电源130供电,继续选择主电源130为串口标签电路120供电。
在主电源130未供电时,则主功能电路110处于非工作状态,因此主功能电路110无法将GPIO端口的电平状态从低电平状态设置为高电平状态。串口标签电路120的第二CPU检测到GPIO端口处于低电平状态,确定主功能电路110为非工作状态,并向电源切换电路123发送电源切换信号。电源切换电路123接收到电源切换信号,获知当前主电源130未供电,选择备用电源124为串口标签电路120供电。
在一个例子中,串口标签电路120确定主功能电路110处于工作状态时,可以发送第一信标帧,该第一信标帧可以携带工作状态信息,所述工作状态信息表示主功能电路110处于工作状态。调试设备能够通过串口标签电路120与主功能电路110交互调试信息。基于此,调试设备在接收到第一信标帧后,若发现第一信标帧中存在工作状态信息,则确定网络设备100的主功能电路110处于工作状态,向网络设备100的串口标签电路120发送连接请求,以与网络设备100建立连接。
串口标签电路120可以周期性发送携带工作状态信息的第一信标帧,直到接收到调试设备发送的连接请求,则停止发送第一信标帧。
串口标签电路120的第二CPU确定主功能电路110处于工作状态时,生成携带工作状态信息的第一信标帧,将第一信标帧传输给收发电路122。收发电路122接收到第一信标帧后,从收发电路122的天线口发送第一信标帧。调试设备接收到第一信标帧后,若发现第一信标帧包括工作状态信息,确定网络设备100的主功能电路110处于工作状态,可以向网络设备100发送连接请求。网络设备100的串口标签电路120的收发电路122接收连接请求,将连接请求传输给串口标签电路120的第二CPU。串口标签电路120的第二CPU得到连接请求后,根据该连接请求与调试设备建立无线连接,并通过该无线连接与该调试设备相互传输调试信息。
在一个例子中,收发电路122可以包括射频模块和天线。射频模块可以包括特定频段的放大器、滤波器,以及相应的时钟芯片等。可以使用支持串口标签电路120所应用 的无线协议的芯片来实现该射频模块的功能。在另一例子中,支持无线协议的芯片还可以实现第二处理单元121的功能。图1只是示例性的按功能划分了各个模块或电路,在具体实现上,可以使用同一器件实现不同的模块或电路的功能。
在一个例子中,串口标签电路120可以通过串口与主功能电路110连接。基于此,串口标签电路120通过无线连接与调试设备相互传输调试信息时具体用于:串口标签电路120通过串口接收主功能电路110发送的第一串口调试信息,将第一串口调试信息转换为符合该无线连接应用的无线协议的第一无线调试信息,并通过该无线连接将第一无线调试信息发送给调试设备;和/或,串口标签电路120通过无线连接接收调试设备发送的第二无线调试信息,并将该第二无线调试信息转换为符合该串口应用的串口协议的第二串口调试信息,并通过串口将该第二串口调试信息发送给主功能电路110。
后续以与调试设备建立无线连接应用的协议是蓝牙协议为例进行说明,当然,与调试设备建立无线连接应用的协议还可以为其它类型的无线连接协议,例如,与调试设备建立无线连接应用的协议可以为Wi-Fi(Wireless Fidelity,无线保真)协议、ZigBee(紫蜂协议)协议,对协议的类型不做限制。
其中,串口标签电路120的第二CPU与调试设备建立基于蓝牙协议的无线连接后,该第二CPU可以通过串口接收主功能电路110发送的串口调试信息,将串口调试信息添加到蓝牙协议规定的数据帧的载荷字段中,从而将串口调试信息封装到蓝牙协议规定的数据帧中,即将串口调试信息转换为无线调试信息,无线调试信息即为封装串口调试信息的数据帧。然后,串口标签电路120的第二CPU可以将无线调试信息传输给收发电路122,收发电路122在得到无线调试信息后,可以通过无线连接发送该无线调试信息,即该无线调试信息被发送给调试设备。这样,调试设备就可以接收到该无线调试信息。此为网络设备100向调试设备发送无线调试信息的过程,下面介绍网络设备100接收调试设备发送的无线调试信息的过程。
串口标签电路120的第二CPU与调试设备建立基于蓝牙协议的无线连接后,串口标签电路120的收发电路122通过无线连接接收调试设备发送的无线调试信息,将无线调试信息发送给串口标签电路120的第二CPU。串口标签电路120的第二CPU得到无线调试信息后,解析该无线调试信息,获取串口调试信息,即数据帧的载荷字段中获取到串口调试信息,此为将无线调试信息转换为串口调试信息的过程。然后再通过串口将串口调试信息发送给主功能电路110的第一CPU。这样,主功能电路110的第一CPU可以接收到串口调试信息。
在上述实施例中,本方案不限定串口调试信息在载荷字段的具体位置,只要能够将串口调试信息承载在无线连接协议的载荷字段中即可。
在另一个实施例中,还可以利用SPP(Serial Port Profile,串口配置文件)协议(为蓝牙协议中的一种)实现串口调试信息与无线调试信息之间的转换。其中,串口标签电路120的第二CPU与调试设备建立蓝牙无线连接后,该第二CPU可以通过串口接收主功能电路110发送的串口调试信息,并利用SPP将串口调试信息转换为无线调试信息。然后,串口标签电路120的第二CPU可以将无线调试信息传输给收发电路122,收发电路122在得到无线调试信息后,可以通过蓝牙无线连接发送该无线调试信息,即该无线调试信息被发送给调试设备。这样,调试设备就可以接收到该无线调试信息。此为网络设备100向调试设备发送无线调试信息的过程,下面介绍网络设备100接收调试设备发送的无线调试信息的过程。
串口标签电路120的第二CPU与调试设备建立蓝牙无线连接后,串口标签电路120的收发电路122通过蓝牙无线连接接收调试设备发送的无线调试信息,将无线调试信息发送给串口标签电路120的第二CPU。串口标签电路120的第二CPU得到无线调试信息后,利用SPP协议将无线调试信息转换为串口调试信息,并通过串口将串口调试信息发送给主功能电路110的第一CPU。这样,主功能电路110的第一CPU可以接收到串口调试信息。
在上述实施例中,SPP协议定义了无线调试信息与串口调试信息之间的转换规则,如可以采用SPP协议将无线调试信息转换为串口调试信息,也可以采用SPP协议将串口调试信息转换为无线调试信息。本方案不限定定义转换规则的协议,只要能够实现无线调试信息与串口调试信息的互相转换即可。
在上述实施例中,网络设备100向调试设备发送的调试信息,可以包括但不限于:网络设备100的打印配置、CPU运行百分比、内存大小、CPU型号等,对此调试信息不做限制。调试设备向网络设备100发送的调试信息,可以包括但不限于:用于请求打印配置的信息、用于请求CPU运行百分比的信息、用于请求内存大小的信息、用于请求CPU型号的信息等,对此调试信息不做限制。
情况二、当检测到主功能电路110未处于工作状态时,则串口标签电路120发送携带非工作状态信息的第二信标帧,第二信标帧指示接收到第二信标帧的定位设备能够根据非工作状态信息对网络设备100进行定位,即确定网络设备100的位置。
在一个例子中,串口标签电路120确定主功能电路110处于非工作状态时,可以发送第二信标帧,该第二信标帧可以携带非工作状态信息,所述非工作状态信息用于表示主功能电路110处于非工作状态。基于此,其他设备可以对网络设备100进行定位。例如,定位设备在接收到第二信标帧后,若发现第二信标帧中存在非工作状态信息,则确定网络设备100的主功能电路110处于非工作状态,并可以对网络设备100进行定位。
在一个例子中,串口标签电路120发送携带非工作状态信息的第二信标帧时具体用于:周期性发送第二信标帧,并拒绝接受针对第二信标帧的连接请求,也就是说,即使接收到连接请求,也不会根据该连接请求建立无线连接。
参见图1,串口标签电路120的第二CPU确定主功能电路110处于非工作状态时,则生成携带非工作状态信息的第二信标帧,并将第二信标帧发送给收发电路122。收发电路122在得到第二信标帧后,可以在收发电路122的天线口发送该第二信标帧。定位设备在接收到该第二信标帧后,若发现该第二信标帧中存在非工作状态信息,则确定网络设备100的主功能电路110处于非工作状态,造成主功能电路110处于非工作状态的原因有很多,本方案不作限制,只要能够使主功能电路110处于非工作状态即可。例如,网络设备100的主功能电路110由于掉电而无法正常工作。此时,定位设备可以对该网络设备100进行定位。本方案对定位方式不做限制,以下仅作示例。
例如,第二信标帧可以被广播发送给多个定位设备,如三个定位设备,通过这三个定位设备分别接收到第二信标帧的信号强度,以及这三个定位设备各自的位置,就可以定位出网络设备100的位置(如经纬度坐标),可以采用预设算法,如基于接收信号强度的定位算法,定位出网络设备的位置,对此定位算法不做限制。
在上述实施例中,第一信标帧和第二信标帧均可以为符合蓝牙协议的beacon帧。
传统的信标帧不携带工作状态信息或者非工作状态信息,因此,本申请中,可以对传统的信标帧进行改进,如复用信标帧的已有字段(如保留字段)或者添加新字段,通过该字段携带工作状态信息或者非工作状态信息。例如,通过该字段携带工作标记,当工作标记为第一标识时,表示信标帧携带工作状态信息,此时的信标帧为第一信标帧;当工作标记为第二标识时,表示信标帧携带非工作状态信息,此时的信标帧为第二信标帧。当然,上述方式只是示例,只要信标帧携带工作状态信息或者非工作状态信息即可。此处改进能够使接收信标帧的设备确定网络设备100的主功能电路110是否处于工作状态。
以符合蓝牙协议的信标帧为例,如图3所示,蓝牙信标帧可以包括头(Header)和载荷(Payload)字段。如图4所示,在头字段中包括4bit的保留字段(RFU)。在一个例子中,RFU的一个bit可以用来携带工作标记。例如,当该bit设置为0时,可以表示信标帧携带工作状态信息;当该bit设置为1时,可以表示信标帧携带非工作状态信息。在另一个例子中,也可以使用载荷字段来携带工作标记,例如可以在载荷字段自定义一个表示工作标记的新字段。
在一个例子中,信标帧中还可以携带连接信息,该连接信息可以为可连接或者不可连接。基于此,串口标签电路120在发送上述第一信标帧或者第二信标帧之前,还可以在第一信标帧或者第二信标帧中添加连接信息,且该连接信息可以为可连接或者不可连接。仍以蓝牙信标帧为例,在该信标帧的头字段中包括连接信息,即在头字段的PDU Type字段指示了连接信息,具体的,PDU(Protocol Data Unit)类型的值表明了发送该信标帧的设备是否可以连接。例如,当PDU类型为ADV_IND或ADV_DIRECT_IND的时候,发送该信标帧的设备是可以连接的;当PDU类型为ADV_NONCONN_IND或ADV_SCAN_IND的时候,发送该信标帧的设备是不可以连接的。更多的可连接或不可连接的PDU类型可以参考具体的蓝牙协议。
若第一信标帧中携带的连接信息是可连接,则调试设备可以向网络设备100发送连接请求,且网络设备100的串口标签电路120接收到该连接请求后,可以与调试设备建立无线连接。若第一信标帧中携带的连接信息是不可连接,则调试设备可以不向网络设备100发送连接请求,即使调试设备向网络设备100发送连接请求,网络设备100的串口标签电路120接收到该连接请求后,也不会与调试设备建立无线连接。在一个示例中,调试设备接收到的信标帧中携带工作状态信息,调试设备确定网络设备100的主功能电路110处于工作状态信息,此时调试设备获取该信标帧携带的连接信息。若携带的连接信息为可连接,则向网络设备100发送连接请求。或者,调试设备获取到的该信标帧携带的连接信息为不可连接,调试设备向网络设备100发送连接请求,但网络设备100的串口标签电路120接收到该连接请求后,并不会与调试设备建立无线连接。
无论第二信标帧中携带的连接信息是可连接还是不可连接,调试设备或定位设备可以不向网络设备100发送连接请求,即使调试设备或定位设备向网络设备100发送连接请求,网络设备100的串口标签电路120接收到该连接请求后,也不会与调试设备或定位设备建立无线连接。在一个示例中,调试设备或定位设备接收到的信标帧中携带非工作状态信息,调试设备或定位设备确定网络设备100的主功能电路110处于非工作状态 信息,此时调试设备或定位设备可以不关注该信标帧携带的连接信息,不向网络设备100发送连接请求。或者,调试设备或定位设备获取到的该信标帧携带的连接信息为可连接,调试设备或定位设备向网络设备100发送连接请求,但网络设备100的串口标签电路120接收到该连接请求后,并不会与调试设备或定位设备建立无线连接。
在一个例子中,上述调试设备可以是用于对网络设备100进行调试的设备,如PC、移动终端等,对此调试设备的类型不做限制。在安装网络设备100或网络设备100故障时,工作人员可以使用调试设备对网络设备100进行调试。在传统方式中,工作人员是通过线缆连接调试设备与网络设备100的。本申请中,不需要使用线缆连接调试设备与网络设备100,可以在调试设备与网络设备100之间建立无线连接,并使用无线连接相互传输调试信息,实现对网络设备100的调试,对具体的调试过程不做限制。
在一个例子中,上述定位设备可以是用于对网络设备100进行定位的设备,如AP等,对此定位设备的类型不做限制。在网络设备100掉电时,基于网络设备100的串口标签电路120发送的第二信标帧,则可以使用定位设备对掉电的网络设备100进行定位,从而可以获知哪个位置的网络设备100已经断电。
基于上述技术方案,本申请实施例中,可以在网络设备100部署串口标签电路120,串口标签电路120可以判断网络设备100的主功能电路110是否处于工作状态。如果主功能电路110处于工作状态,则串口标签电路120发送携带工作状态信息的第一信标帧,以使接收到所述第一信标帧的调试设备能够根据第一信标帧向网络设备100发送连接请求。若串口标签电路120接收到调试设备发送的连接请求,则根据连接请求与调试设备建立无线连接,并通过无线连接与调试设备相互传输调试信息。如果主功能电路110不处于工作状态,则串口标签电路120发送携带非工作状态信息的第二信标帧,以使接收到所述第二信标帧的定位设备能够根据非工作状态信息对网络设备100进行定位。网络设备100由于某种原因断电后,主功能电路110未处于工作状态,则串口标签电路120可以发送第二信标帧,定位设备可以根据第二信标帧对网络设备100进行定位,从而避免网络设备100处于失联状态。同时,可以获知哪个位置的网络设备100已经断电,并对网络设备100进行修复,避免网络设备100长时间处于断电状态。另一方面,在主功能电路110处于工作状态时,则串口标签电路120可以发送第一信标帧,使得调试设备根据第一信标帧与网络设备100建立无线连接,这样,调试设备与网络设备100可以通过无线连接相互传输调试信息,而不用采用有线方式相互传输调试信息,也就是说,不需要使用线缆连接调试设备与网络设备100,就可以对网络设备100进行调试,方便 灵活,节省了硬件成本。
基于与上述方案同样的申请构思,本申请实施例还提出一种设备管理方法,参见图5,为该设备管理方法的流程示意图,该方法可以应用于网络设备的串口标签电路,且网络设备还可以包括主功能电路,该方法包括。
步骤301,当检测到主功能电路处于工作状态时,则发送携带工作状态信息的第一信标帧,其中,该第一信标帧指示接收到该第一信标帧的调试设备能够根据该第一信标帧向网络设备发送连接请求。例如,调试设备在接收到第一信标帧后,若发现第一信标帧中存在工作状态信息,则确定网络设备的主功能电路处于工作状态,并向网络设备的串口标签电路发送连接请求。
步骤302,若接收到调试设备发送的连接请求,则根据该连接请求与调试设备建立无线连接,并通过该无线连接与调试设备相互传输调试信息。
步骤303,当检测到主功能电路未处于工作状态时,则发送携带非工作状态信息的第二信标帧,其中,该第二信标帧指示接收到该第二信标帧的定位设备能够根据该非工作状态信息对网络设备进行定位,即确定网络设备的位置。
在一个例子中,串口标签电路确定主功能电路处于非工作状态时,可以发送第二信标帧,该第二信标帧可以携带非工作状态信息,所述非工作状态信息用于表示主功能电路处于非工作状态。基于此,可以通过其他设备对网络设备进行定位。例如,定位设备在接收到第二信标帧后,若发现第二信标帧中存在非工作状态信息,则确定网络设备的主功能电路处于非工作状态,并可以对网络设备进行定位。
其中,步骤301和步骤303并没有先后顺序,当主功能电路处于工作状态时,执行步骤301和步骤302,当主功能电路未处于工作状态时,执行步骤303。
在一个例子中,串口标签电路可以通过GPIO端口与主功能电路连接;当检测到GPIO端口处于高电平状态时,则确定主功能电路处于工作状态;当检测到GPIO端口处于低电平状态时,则确定主功能电路未处于工作状态。
其中,GPIO端口的初始状态为低电平状态,如由于外部下拉电阻而处于低电平状态。在主功能电路处于工作状态时,则主功能电路将GPIO端口的电平状态设置为高电平状态,如主功能电路输出高电平信号,使GPIO端口的电平状态从低电平状态变为高电平状态。在主功能电路未处于工作状态(即处于非工作状态)时,主功能电路无法将GPIO端口的电平状态设置为高电平状态,即GPIO端口处于低电平状态。基于此,当 GPIO端口处于高电平状态时,表示主功能电路处于工作状态;当GPIO端口处于低电平状态时,表示主功能电路未处于工作状态(即处于非工作状态)。
在一个例子中,发送携带工作状态信息的第一信标帧,包括:周期性发送第一信标帧,直到接收到调试设备发送的连接请求,则停止发送第一信标帧。
在一个例子中,发送携带非工作状态信息的第二信标帧,可以包括:周期性发送第二信标帧,并且拒绝接受针对该第二信标帧的连接请求。
在一个例子中,串口标签电路还可以通过串口与主功能电路连接;基于此,通过无线连接与调试设备相互传输调试信息,可以包括但不限于:
通过该串口接收主功能电路发送的第一串口调试信息,将该第一串口调试信息转换为符合无线连接应用的无线协议的第一无线调试信息,并通过无线连接将该第一无线调试信息发送给调试设备;和/或,通过无线连接接收调试设备发送的第二无线调试信息,将该第二无线调试信息转换为符合该串口应用的串口协议的第二串口调试信息,并通过串口将该第二串口调试信息发送给主功能电路。
例如,与所述调试设备建立无线连接所应用的协议是蓝牙协议,串口标签电路与调试设备建立无线连接后,可以通过串口接收主功能电路发送的串口调试信息,将串口调试信息添加到蓝牙协议规定的数据帧的载荷字段中,从而将串口调试信息封装到蓝牙协议规定的数据帧中,即将串口调试信息转换为无线调试信息,无线调试信息即为封装串口调试信息的数据帧。然后,串口标签电路通过无线连接发送该无线调试信息,即该无线调试信息被发送给调试设备,这样,调试设备可以接收到该无线调试信息。串口标签电路与调试设备建立基于蓝牙协议的无线连接后,串口标签电路可以通过无线连接接收调试设备发送的无线调试信息,解析该无线调试信息,获取串口调试信息,即从数据帧的载荷字段中获取到串口调试信息,此为将无线调试信息转换为串口调试信息的过程。然后通过串口将串口调试信息发送给主功能电路,主功能电路可以接收到串口调试信息。此外,本申请提供的方法与调试设备建立无线连接时应用的协议还可以是Wi-Fi协议、ZigBee协议,对无线连接的协议类型不做限制,应当理解的是,将串口调试信息添加到这些协议的载荷字段中,即可实现串口调试信息到无线调试信息的转换。相应的,解析无线调试信息,获取载荷字段中的串口调试信息,即可实现无线调试信息到串口调试信息的转换。
又例如,与所述调试设备建立无线连接所应用的协议是蓝牙协议,串口标签电路与 调试设备建立无线连接后,可以通过串口接收主功能电路发送的串口调试信息,并利用SPP协议将串口调试信息转换为无线调试信息。然后,串口标签电路通过无线连接发送该无线调试信息,即该无线调试信息被发送给调试设备,这样,调试设备可以接收到该无线调试信息。串口标签电路与调试设备建立无线连接后,串口标签电路可以通过无线连接接收调试设备发送的无线调试信息,利用SPP协议将无线调试信息转换为串口调试信息,并通过串口将串口调试信息发送给主功能电路,主功能电路可以接收到串口调试信息。
在一个例子中,网络设备还包括主电源,串口标签电路还包括备用电源。当检测到主功能电路由工作状态切换到非工作状态时,则可以选择备用电源为串口标签电路供电。具体的,当检测串口标签电路的GPIO端口从高电平状态切换到低电平状态时,可以认为主功能电路由工作状态切换到非工作状态。
其中,在主电源供电时,主功能电路处于工作状态,则主功能电路可以将GPIO端口的电平状态设置为高电平状态,因此,串口标签电路检测到GPIO端口为高电平状态时,可以确定主功能电路为工作状态,能够获知当前由主电源供电,继续选择主电源为串口标签电路供电。
在主电源未供电时,则主功能电路处于非工作状态,因此主功能电路无法将GPIO端口的电平状态从低电平状态设置为高电平状态。串口标签电路检测到GPIO端口处于低电平状态,确定主功能电路为非工作状态,可以能够获知当前主电源未供电,选择备用电源为串口标签电路供电。
在一个例子中,上述第一信标帧可以包括工作标记,当该工作标记为第一标识时,表示第一信标帧携带工作状态信息;上述第二信标帧可以包括工作标记,当该工作标记为第二标识时,表示第二信标帧携带非工作状态信息。
上述实施例阐明的第一处理单元111和第二处理单元121,还可以由一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,本申请对此不做限制。
为了描述的方便,描述以上设备时以功能分为各种电路分别描述。当然,在实施本申请时可以把各电路的功能在同一个或多个软件和/或硬件中实现。
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序 产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请实施例可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可以由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其它可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其它可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
而且,这些计算机程序指令也可以存储在能引导计算机或其它可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或者多个流程和/或方框图一个方框或者多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其它可编程数据处理设备上,使得在计算机或者其它可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其它可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
以上所述仅为本申请的实施例而已,并不用于限制本申请。对于本领域技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本申请的权利要求范围之内。

Claims (18)

  1. 一种网络设备,包括:
    主功能电路,和
    串口标签电路,用于
    当检测到所述主功能电路处于工作状态时,
    发送携带工作状态信息的第一信标帧,所述第一信标帧指示接收到所述第一信标帧的调试设备能够根据所述第一信标帧向所述网络设备发送连接请求;
    若接收到所述调试设备发送的所述连接请求,则根据所述连接请求与所述调试设备建立无线连接,并通过所述无线连接与所述调试设备相互传输调试信息;
    当检测到所述主功能电路未处于工作状态时,发送携带非工作状态信息的第二信标帧,所述第二信标帧指示接收到所述第二信标帧的定位设备能够根据所述非工作状态信息对所述网络设备进行定位。
  2. 根据权利要求1所述的网络设备,其特征在于,
    所述串口标签电路通过通用输入输出GPIO端口与所述主功能电路连接;
    所述串口标签电路,还用于:
    当检测到所述GPIO端口处于高电平状态时,则确定所述主功能电路处于工作状态;
    当检测到所述GPIO端口处于低电平状态时,则确定所述主功能电路未处于工作状态。
  3. 根据权利要求1所述的网络设备,其特征在于,
    所述串口标签电路周期性发送所述第一信标帧,直到接收到所述调试设备发送的所述连接请求,则停止发送所述第一信标帧;
    所述串口标签电路周期性发送所述第二信标帧,并且拒绝接受针对所述第二信标帧的连接请求。
  4. 根据权利要求1所述的网络设备,其特征在于,
    所述串口标签电路通过串口与所述主功能电路连接;
    所述串口标签电路还用于:
    通过所述串口接收所述主功能电路发送的第一串口调试信息,将所述第一串口调试信息转换为符合所述无线连接应用的无线协议的第一无线调试信息,并通过所述无线连接将所述第一无线调试信息发送给所述调试设备;和
    通过所述无线连接接收所述调试设备发送的第二无线调试信息,将所述第二无 线调试信息转换为符合串口协议的第二串口调试信息,并通过所述串口将所述第二串口调试信息发送给所述主功能电路。
  5. 根据权利要求1所述的网络设备,其特征在于,
    所述网络设备包括主电源;
    所述串口标签电路包括:
    备用电源;
    电源切换电路,与所述主电源和所述备用电源均电连接;
    第二处理单元,与所述电源切换电路、主功能电路电连接,用于当检测到所述主功能电路由工作状态切换到非工作状态时,则向所述电源切换电路发送电源切换信号;
    所述电源切换电路,用于在接收到所述电源切换信号时,选择所述备用电源为所述串口标签电路供电。
  6. 根据权利要求1所述的网络设备,其特征在于,
    所述第一信标帧包括工作标记,当所述工作标记为第一标识时,表示所述第一信标帧携带所述工作状态信息;
    所述第二信标帧包括工作标记,当所述工作标记为第二标识时,表示所述第二信标帧携带所述非工作状态信息。
  7. 根据权利要求1所述的网络设备,其特征在于,与所述调试设备建立所述无线连接应用的协议为以下任一:
    蓝牙协议;
    无线保真协议;
    紫蜂协议。
  8. 根据权利要求1所述的网络设备,其特征在于,所述第一信标帧携带连接信息,
    当所述第一信标帧携带的所述连接信息为可连接时,所述第一信标帧指示接收到所述第一信标帧的所述调试设备根据所述工作状态信息向所述网络设备发送所述连接请求;
    当所述第一信标帧携带的所述连接信息为不可连接时,所述第一信标帧指示接收到所述第一信标帧的所述调试设备不向所述网络设备发送所述连接请求。
  9. 根据权利要求4所述的网络设备,其特征在于,当所述无线连接为蓝牙无线连接时,使用串口配置文件协议将所述第一串口调试信息转换为所述第一无线调试信息、以及将所述第二无线调试信息转换为所述第二串口调试信息。
  10. 一种设备管理方法,应用于网络设备的串口标签电路,所述网络设备还包括主 功能电路,所述方法包括:
    当检测到所述主功能电路处于工作状态时,发送携带工作状态信息的第一信标帧,所述第一信标帧指示接收到所述第一信标帧的调试设备能够根据所述第一信标帧向所述网络设备发送连接请求;
    若接收到所述调试设备发送的所述连接请求,根据所述连接请求与所述调试设备建立无线连接,并通过所述无线连接与所述调试设备相互传输调试信息;
    当检测到所述主功能电路未处于工作状态时,发送携带非工作状态信息的第二信标帧,所述第二信标帧指示接收到所述第二信标帧的定位设备能够根据所述非工作状态信息对所述网络设备进行定位。
  11. 根据权利要求10所述的方法,其特征在于,在所述串口标签电路通过通用输入输出GPIO端口与所述主功能电路连接的情况下,所述方法还包括:
    当检测到所述GPIO端口处于高电平状态时,确定所述主功能电路处于工作状态;
    当检测到所述GPIO端口处于低电平状态时,确定所述主功能电路未处于工作状态。
  12. 根据权利要求10所述的方法,其特征在于,
    发送携带所述工作状态信息的所述第一信标帧,包括:周期性发送所述第一信标帧,直到接收到所述调试设备发送的连接请求,则停止发送所述第一信标帧;
    发送携带所述非工作状态信息的所述第二信标帧,包括:周期性发送所述第二信标帧,并且拒绝接受针对所述第二信标帧的连接请求。
  13. 根据权利要求10所述的方法,其特征在于,在所述串口标签电路通过串口与所述主功能电路连接的情况下,通过所述无线连接与所述调试设备相互传输调试信息,包括:
    通过所述串口接收所述主功能电路发送的第一串口调试信息,将所述第一串口调试信息转换为符合所述无线连接应用的无线协议的第一无线调试信息,并通过所述无线连接将所述第一无线调试信息发送给所述调试设备;和
    通过所述无线连接接收所述调试设备发送的第二无线调试信息,将所述第二无线调试信息转换为符合所述串口协议的第二串口调试信息,并通过所述串口将所述第二串口调试信息发送给所述主功能电路。
  14. 根据权利要求10所述的方法,其特征在于,在所述网络设备包括主电源、所述串口标签电路包括备用电源的情况下,所述方法还包括:
    当检测到所述主功能电路由工作状态切换到非工作状态时,选择所述备用电源为所述串口标签电路供电。
  15. 根据权利要求10所述的方法,其特征在于,
    所述第一信标帧包括工作标记,当所述工作标记为第一标识时,表示所述第一信标帧携带工作状态信息;
    所述第二信标帧包括工作标记,当所述工作标记为第二标识时,表示所述第二信标帧携带非工作状态信息。
  16. 根据权利要求10所述的方法,其特征在于,与所述调试设备建立所述无线连接应用的协议为以下任一:
    蓝牙协议;
    无线保真协议;
    紫蜂协议。
  17. 根据权利要求10所述的方法,其特征在于,所述第一信标帧携带连接信息,
    当所述第一信标帧携带的所述连接信息为可连接时,所述第一信标帧指示接收到所述第一信标帧的所述调试设备根据所述工作状态信息向所述网络设备发送所述连接请求;
    当所述第一信标帧携带的所述连接信息为不可连接时,所述第一信标帧指示接收到所述第一信标帧的所述调试设备不向所述网络设备发送所述连接请求。
  18. 根据权利要求13所述的方法,其特征在于,当所述无线连接为蓝牙无线连接时,使用串口配置文件协议将所述第一串口调试信息转换为所述第一无线调试信息、以及将所述第二无线调试信息转换为所述第二串口调试信息。
PCT/CN2019/093062 2018-06-26 2019-06-26 一种网络设备及设备管理方法 WO2020001486A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810672927.8 2018-06-26
CN201810672927.8A CN108882270B (zh) 2018-06-26 2018-06-26 一种网络设备及设备管理方法

Publications (1)

Publication Number Publication Date
WO2020001486A1 true WO2020001486A1 (zh) 2020-01-02

Family

ID=64294986

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/093062 WO2020001486A1 (zh) 2018-06-26 2019-06-26 一种网络设备及设备管理方法

Country Status (2)

Country Link
CN (1) CN108882270B (zh)
WO (1) WO2020001486A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108882270B (zh) * 2018-06-26 2020-12-04 新华三技术有限公司 一种网络设备及设备管理方法
CN110632498A (zh) * 2019-09-19 2019-12-31 西安广和通无线通信有限公司 测试方法和系统
CN112165715B (zh) * 2020-09-25 2021-12-03 珠海格力电器股份有限公司 设备的检测方法和装置、存储介质、电子装置

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040130453A1 (en) * 2003-01-03 2004-07-08 Zinn William H. Traffic controller emergency power supply
CN101582895A (zh) * 2009-06-18 2009-11-18 重庆邮电大学 基于epa的嵌入式工业无线wia-pa网关
CN104104434A (zh) * 2014-07-24 2014-10-15 北京华环电子股份有限公司 一种快速插入告警帧的掉电告警实现方法
CN106162647A (zh) * 2016-08-31 2016-11-23 海尔优家智能科技(北京)有限公司 一种智能设备配置入网方法和装置
CN106597967A (zh) * 2016-12-19 2017-04-26 广西升禾环保科技股份有限公司 一种环卫车监控车载终端
CN108882270A (zh) * 2018-06-26 2018-11-23 新华三技术有限公司 一种网络设备及设备管理方法

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101790225A (zh) * 2010-03-16 2010-07-28 华为终端有限公司 上网模块电源管理的方法和装置
CN104144481B (zh) * 2014-05-06 2017-11-03 杨光华 多模信标及多模信标控制系统
US10374819B2 (en) * 2014-09-19 2019-08-06 Xiaomi Inc. Methods and devices of accessing wireless network
CN104601679B (zh) * 2014-12-31 2018-06-26 北京华为数字技术有限公司 设备软调方法、移动终端和服务器
CN104581617A (zh) * 2015-01-22 2015-04-29 小米科技有限责任公司 无线通信方法和智能设备
CN107071892A (zh) * 2017-01-17 2017-08-18 珠海市横琴因行思智能科技有限公司 一种主动发射wifi信标的定位系统

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040130453A1 (en) * 2003-01-03 2004-07-08 Zinn William H. Traffic controller emergency power supply
CN101582895A (zh) * 2009-06-18 2009-11-18 重庆邮电大学 基于epa的嵌入式工业无线wia-pa网关
CN104104434A (zh) * 2014-07-24 2014-10-15 北京华环电子股份有限公司 一种快速插入告警帧的掉电告警实现方法
CN106162647A (zh) * 2016-08-31 2016-11-23 海尔优家智能科技(北京)有限公司 一种智能设备配置入网方法和装置
CN106597967A (zh) * 2016-12-19 2017-04-26 广西升禾环保科技股份有限公司 一种环卫车监控车载终端
CN108882270A (zh) * 2018-06-26 2018-11-23 新华三技术有限公司 一种网络设备及设备管理方法

Also Published As

Publication number Publication date
CN108882270A (zh) 2018-11-23
CN108882270B (zh) 2020-12-04

Similar Documents

Publication Publication Date Title
US10959280B2 (en) Communications method of wearable device, communications system, and related device
WO2020001486A1 (zh) 一种网络设备及设备管理方法
US8830889B2 (en) Systems for remotely waking up application processor of mobile device
US8942632B2 (en) Processor-independent communication of network availability
US11048315B2 (en) Remote wake-up of mobile devices
CN102325160A (zh) 物联网自组织网络的通用感知节点
TW200539616A (en) System and method for monitoring for wake events in a wireless local area network
CN105188022A (zh) 无线路由设备和通信方法
WO2021217540A1 (zh) 通信链路的检测方法、装置、系统和可移动平台
CN112912862A (zh) 用于连接计算设备和基于云的服务的模块上的数据系统(DSoM)
US9386519B1 (en) Method and apparatus for transitioning a first processor of an access point between power modes based on communication between a client device and a second processor of the access point
JP2023547161A (ja) Iabネットワークにおけるレイテンシ低減のためのマルチホップ構成のシステム及び方法
CA3122324A1 (en) Remote connectivity using a battery
CN106304241B (zh) 一种数据传输方法、转发器及网关
CN206805761U (zh) 一种具有主、从无线模块的数据传输装置
TWI679870B (zh) 一種資訊處理方法及裝置
JP2022522029A (ja) 制御又は評価装置とデータ生成デバイスとの間、より詳細には工具、ネットワーク対応モジュール及びネットワーク対応モジュールを有する工具との間でデータを交換するシステム及び方法
KR20160146048A (ko) 차량 네트워크에서 통신 노드의 동작방법
WO2019140648A1 (zh) 一种终端上报信息的方法及装置、计算机存储介质
CN102186225B (zh) 无线网卡网以及网络以及无线网卡通信方法以及组网方法
CN106921548A (zh) 一种基于can总线的全自动凝血分析仪通信系统
CN104812103A (zh) 一种列车车厢之间无线网络自动桥接的装置
CN104238465A (zh) 集成电路生产线主机与异类设备的通信方法
CN202364209U (zh) Gprs无线数据传输模块
CN103034899A (zh) 一种单向发射式电子标签

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19826533

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19826533

Country of ref document: EP

Kind code of ref document: A1