CN114531452B - Data acquisition method, device, equipment and storage medium - Google Patents

Data acquisition method, device, equipment and storage medium Download PDF

Info

Publication number
CN114531452B
CN114531452B CN202210099634.1A CN202210099634A CN114531452B CN 114531452 B CN114531452 B CN 114531452B CN 202210099634 A CN202210099634 A CN 202210099634A CN 114531452 B CN114531452 B CN 114531452B
Authority
CN
China
Prior art keywords
data
information
target
data packet
state information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210099634.1A
Other languages
Chinese (zh)
Other versions
CN114531452A (en
Inventor
秦民
娄运奇
孙炳彤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Automotive Innovation Co Ltd
Original Assignee
China Automotive Innovation Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Automotive Innovation Co Ltd filed Critical China Automotive Innovation Co Ltd
Priority to CN202210099634.1A priority Critical patent/CN114531452B/en
Publication of CN114531452A publication Critical patent/CN114531452A/en
Application granted granted Critical
Publication of CN114531452B publication Critical patent/CN114531452B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/12Arrangements for remote connection or disconnection of substations or of equipment thereof
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The application provides a data acquisition method, a data acquisition device, data acquisition equipment and a storage medium. The data acquisition method is applied to the user equipment and comprises the following steps: acquiring state information of target equipment; transmitting a first data packet to the target device under the condition that the state information is shutdown state information or unresponsive state information, wherein the first data packet comprises first synchronous stream information and data type information; receiving a second data packet which is sent by target equipment and is generated in response to the first synchronous stream information, wherein the second data packet comprises target data corresponding to the data type information; and extracting target data from the second data packet. According to the method and the device, the target data of the target equipment can be obtained under the condition that the target equipment is shut down or not responded, so that the processes of equipment monitoring, data analysis and the like are carried out according to the target data, and the safety and the instantaneity of equipment management are improved; the user can remotely operate and view the target data of the target device through the user device, and the user does not need to go to a machine room to view on site.

Description

Data acquisition method, device, equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a data acquisition method, apparatus, device, and storage medium.
Background
In the prior art, a server includes a plurality of electronic devices (such as a processor, a memory, a power supply, etc.), and related information of the electronic devices in the server cannot be obtained in a shutdown or hang-up state of the server. For example, as the data processing amount increases, more and more devices of the type of data processing units (DPUs, data Processor Unit) are required to be used in the market, the DPUs are used as plug-in card type auxiliary devices of server devices, and device information of the DPUs cannot be acquired in a shutdown or hang-up state of the server devices.
Disclosure of Invention
The application provides a data acquisition method, a device, equipment and a storage medium, which at least can solve the technical problem that related information of electronic equipment in a server cannot be acquired in the shutdown or hang-up state of the server in the prior art.
According to an aspect of the present application, there is provided a data acquisition method applied to a user equipment, the method including:
acquiring state information of target equipment;
transmitting a first data packet to the target device when the state information is shutdown state information or unresponsive state information, wherein the first data packet comprises first synchronous stream information and data type information;
Receiving a second data packet which is sent by the target equipment and is generated in response to the first synchronous flow information, wherein the second data packet comprises target data corresponding to the data type information;
and extracting the target data from the second data packet.
In a possible implementation manner, the first data packet further includes physical address information of the target device, where the physical address information of the target device is used for verification processing by the target device;
the sending the first data packet to the target device when the state information is shutdown state information or unresponsive state information includes:
acquiring the first synchronous stream information, the physical address information of the target equipment and the data type information under the condition that the state information is shutdown state information or unresponsive state information;
generating the first data packet according to the first synchronous stream information, the physical address information of the target equipment and the data type information;
and sending the first data packet to the target equipment.
In one possible implementation, the data type information includes at least one of: version type information, function type information and temperature type information of the target device.
According to another aspect of the present application, there is provided a data acquisition method applied to a target device, wherein the method includes:
receiving a first data packet, wherein the first data packet is sent by user equipment when the state information of the target equipment is shutdown state information or unresponsive state information, and the first data packet comprises first synchronous flow information and data type information;
and sending a second data packet generated in response to the first synchronous stream information to the user equipment, wherein the second data packet comprises target data corresponding to the data type information, so that the user equipment extracts the target data from the second data packet.
In a possible implementation manner, the second data packet further includes second synchronous flow information and physical address information of the user equipment;
the sending, to the user equipment, a second data packet generated in response to the first isochronous stream information includes:
acquiring physical address information of the user equipment, the target data and the second synchronous stream information corresponding to the first synchronous stream information;
generating the second data packet according to the second synchronous stream information, the physical address information of the user equipment and the target data;
And sending the second data packet to the user equipment.
In one possible implementation, the method further includes:
acquiring equipment data under the condition that the state information is target state information;
storing the device data;
the obtaining the target data comprises the following steps: and determining the target data corresponding to the data type information in the equipment data.
According to another aspect of the present application, there is provided a data acquisition apparatus applied to a user equipment, wherein the apparatus includes:
the first acquisition module is used for acquiring the state information of the target equipment;
the first sending module is used for sending a first data packet to the target equipment when the state information is shutdown state information or unresponsive state information, wherein the first data packet comprises first synchronous stream information and data type information;
the first receiving module is used for receiving a second data packet which is sent by the target equipment and is generated in response to the first synchronous flow information, wherein the second data packet comprises target data corresponding to the data type information;
and the first extraction module is used for extracting the target data from the second data packet.
According to another aspect of the present application, there is provided a data acquisition apparatus applied to a target device, wherein the apparatus includes:
the second receiving module is used for receiving a first data packet, wherein the first data packet is sent by the user equipment when the state information of the target equipment is shutdown state information or unresponsive state information, and the first data packet comprises first synchronous flow information and data type information;
and the second sending module is used for sending a second data packet generated in response to the first synchronous flow information to the user equipment, wherein the second data packet comprises target data corresponding to the data type information, so that the user equipment extracts the target data from the second data packet.
According to another aspect of the present application, there is provided a data acquisition apparatus including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to perform the above method.
According to another aspect of the present application, there is provided a non-transitory computer readable storage medium having stored thereon computer program instructions, wherein the computer program instructions, when executed by a processor, implement the above-described method.
According to the method and the device, the target data of the target equipment can be obtained under the condition that the target equipment is shut down or not responded, so that the processes of equipment monitoring, data analysis and the like are carried out according to the target data, and the safety and the instantaneity of equipment management are improved; the user can remotely operate and check the target data of the target device through the user device, and the user does not need to go to a machine room to check on site; the technical problem that related information of electronic equipment in a server cannot be acquired under the condition that the server is shut down or is suspended in the prior art is solved; the actual requirements in the actual production, manufacturing and management processes are met.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method of data acquisition according to an exemplary embodiment;
FIG. 2 is a flow chart of a method of data acquisition according to another exemplary embodiment;
FIG. 3 is a flow chart of a method of data acquisition according to yet another exemplary embodiment;
FIG. 4 is a flow chart of a method of data acquisition according to yet another exemplary embodiment;
FIG. 5 is a block diagram of a data acquisition device, according to an example embodiment;
FIG. 6 is a block diagram of a data acquisition device according to another exemplary embodiment;
fig. 7 is a schematic diagram illustrating interaction of a user device with a target device according to an example embodiment.
Detailed Description
Various exemplary embodiments, features and aspects of the present application will be described in detail below with reference to the accompanying drawings. In the drawings, like reference numbers indicate identical or functionally similar elements. Although various aspects of the embodiments are illustrated in the accompanying drawings, the drawings are not necessarily drawn to scale unless specifically indicated.
The word "exemplary" is used herein to mean "serving as an example, embodiment, or illustration. Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments.
In addition, numerous specific details are set forth in the following detailed description in order to provide a better understanding of the present application. It will be understood by those skilled in the art that the present application may be practiced without some of these specific details. In some instances, methods, means, elements, and circuits have not been described in detail as not to unnecessarily obscure the present application.
The application provides a data acquisition method, a device, equipment and a storage medium, which at least can solve the technical problem that related information of electronic equipment in a server cannot be acquired in the shutdown or hang-up state of the server in the prior art.
Referring to fig. 1 to fig. 2, the data acquisition method provided in the embodiment of the present disclosure is applied to a user device, where the user device may be an electronic device such as a computer, a mobile phone, a tablet, and the like, and the data acquisition method may include:
step S101: and acquiring state information of the target equipment.
In one example, the target device may be a server. The target device may be communicatively coupled to the user device, and in one example, the target device and the user device may communicate based on a high-speed serial computer expansion bus standard (peripheral component interconnect express, PCIE). The target device is provided with a hardware module supporting a remote Wake-on-LAN (WOL) mechanism, and may include a main power supply, a standby power supply, a motherboard, and a network card. The main power supply of the target equipment is a power supply conforming to the ATX2.01 standard or above the ATX2.01 standard. The current of the +5V standby power supply is above 600mA, and the standby power supply can supply power to the main board and the network card after the main power supply stops supplying power. The motherboard supports the PCI2.2 standard above. The network card supports the WOL standard.
The states of the target device may include a startup state, an operation state, a shutdown state and an unresponsive state, where the startup state indicates that the target device is in a startup process, the operation state indicates that the target device is successfully started and is in an operation or working process, the shutdown state indicates that the target device is in a shutdown process or has been shutdown, and the unresponsive state indicates that the target device is suspended or cannot respond. In the embodiment of the present disclosure, the user equipment may periodically and automatically obtain the state information of the target device; the state information may also be obtained after receiving a first user instruction, where the first user instruction is used to instruct the user equipment to obtain the state information of the target device, and the user may input the first user instruction to the user equipment through voice or touch modes.
Step S102: and sending a first data packet to the target equipment under the condition that the state information is shutdown state information or unresponsive state information, wherein the first data packet comprises first synchronous stream information and data type information.
In this embodiment of the present disclosure, when the state information is the power-off state information or the unresponsive state information, the standby power supply of the target device may supply power to the motherboard and the network card, where the motherboard and the network card are in a power-on state (the power consumption of the entire target device is small at this time), and the target device may receive the first data packet sent by the user device in the network.
Under the condition that the state information is shutdown state information or unresponsive state information, a user can input a second user instruction to the user equipment in a voice or touch mode, and the user equipment can send a first data packet to the target equipment based on a WOL mechanism when receiving the second user instruction. The header of the first data packet may include first synchronous stream information, which may characterize the first data packet as a WOL mechanism-based data packet. The data type information may be used to indicate the type of the subsequent target data. The user can perform custom setting on the data type information of the first data packet in the user equipment according to actual needs.
Step S103: and receiving a second data packet which is sent by the target equipment and is generated in response to the first synchronous stream information, wherein the second data packet comprises target data corresponding to the data type information.
In the embodiment of the present disclosure, after receiving the first data packet, the target device may parse the first data packet; based on the first synchronous stream information of the first data packet, it may be determined that the user device intends to acquire the target data of the target device, and the target device may respond to the first synchronous stream information of the first data packet and generate a second data packet including the target data. The target data may be information about an electronic module inside a server (target device), which may include a Data Processing Unit (DPU), a memory, a power supply, etc. Further, the target device may send the second data packet to the user device, and the user device may receive the second data packet.
Step S104: and extracting target data from the second data packet.
In the embodiment of the present disclosure, the user equipment may parse the second data packet, so as to extract the target data. Further, the image and text information corresponding to the target data can be displayed on the display screen of the user equipment, and the voice information corresponding to the target data can be played through the speaker of the user equipment.
In the embodiment of the specification, the target data of the target equipment can be obtained under the condition that the target equipment is shut down or not responded, so that the processes of equipment monitoring, data analysis and the like are carried out according to the target data, and the safety and the instantaneity of equipment management are improved; the user can remotely operate and check the target data of the target device through the user device, and the user does not need to go to a machine room to check on site; the technical problem that related information of electronic equipment in a server cannot be acquired under the condition that the server is shut down or is suspended in the prior art is solved; the actual requirements in the actual production, manufacturing and management processes are met.
In one possible implementation manner, the first data packet may further include physical address information of the target device, where the physical address information of the target device is used for verification processing by the target device;
Accordingly, the step S102 may include:
step S1021: under the condition that the state information is shutdown state information or unresponsive state information, acquiring first synchronous stream information, physical address information of target equipment and data type information;
step S1022: generating a first data packet according to the first synchronous stream information, the physical address information of the target equipment and the data type information;
step S1023: and sending the first data packet to the target device.
In this embodiment of the present disclosure, the header of the first data packet may include first synchronous stream information and physical address information of the target device, which are sequentially arranged, and the first synchronous stream information and the physical address information of the target device may be pre-stored in a memory of the user device, and the user device may directly call the first synchronous stream information and the physical address information of the target device from the memory. In another example, the header of the first data packet may further include first password information located after the physical address information of the target device. In this embodiment of the present disclosure, the physical address information and the first password information in the first data packet may be used for verification by the target device, the target device may match the physical address information in the first data packet with the physical address information of the target device itself, match the first password information in the first data packet with the password information stored by the target device, and if the matching is successful, may generate the second data packet.
The data portion of the first data packet may include data type information. The user can perform custom setting on the data type information of the first data packet in the user equipment according to actual needs, and the user equipment can determine the data type information according to the custom setting of the user.
The physical address information in the first data packet in the embodiment of the specification can be used for the target device to perform verification processing, and the second data packet is generated after the verification is successful, so that the first data packet is ensured to be analyzed by the corresponding target device and the second data packet is ensured to be generated, and the user device is ensured to obtain the accurate second data packet.
In one possible implementation, the data type information may include at least one of: version type information, function type information, and temperature type information of the target device.
In the embodiment of the present specification, the target data may be related information of an internal device of a server (target device), and the data type information may be used to indicate the type of the target data to the target device. In the embodiment of the present disclosure, the target data may be relevant data of the DPU, or may be relevant data of PCIE devices such as an intelligent network card (SmartNIC), a network processor (Neural Network Processing Unit, NPU), an infrastructure processor (Infrastructure Processing Unit, IPU), and the like. In one embodiment, the target data may be version information, function information, vendor identification information, device identification information, temperature information, etc. of the DPU in the server.
In one possible implementation manner, in the case that the state information is the target state information, the target device may acquire device data of each device in the target device in real time, and store the device data into the memory; the memory may be a register defined in the target device based on PCIE standards. The target state information may be operation state information, and may represent that the target device is in a process of normal operation. Under the condition that the state information is shutdown state information or unresponsive state information, the target device can directly acquire device data from the memory or the register, and determine corresponding target data from the device data according to the data type information.
In one example, the header of the second data packet may include second synchronous stream information and physical address information of the user equipment, which are sequentially arranged; the second synchronous stream information and the physical address information of the user equipment can be pre-stored in the memory of the target equipment; the target device may invoke the second isochronous stream information and the physical address information of the user device directly from the memory before generating the second data packet. The second isochronous stream information may characterize the second data packet as a data packet generated by the target device in response to the first data packet. In another example, the header of the second data packet may further include second password information located after the physical address information of the user device. The data portion of the second data packet may include the target data.
In this embodiment of the present disclosure, the first synchronous stream information of the first data packet may be 6 pieces of 5Ah, and the second synchronous stream information of the second data packet may be 6 pieces of A5h, so that the first data packet and the second data packet may be distinguished. The physical address information in the first data packet can be 16 physical addresses of the target device, the physical address information in the second data packet can be 16 physical addresses of the user device, and other data packets can be prevented from being mistakenly regarded as the first data packet or the second data packet through repeated setting of a plurality of physical addresses, so that the accuracy of data packet transmission is ensured. The first cryptographic information of the first data packet and the second cryptographic information of the second data packet may each comprise 4 bytes or 6 bytes.
The method for acquiring the DPU device information in the related art is to acquire and present the DPU device information to a user after the server is powered on. The embodiment of the specification can be realized based on a WOL mechanism, a first data packet is provided on the basis of WOL, a second data packet sent by target equipment is obtained, and target data is extracted from the second data packet; the method and the device realize that the related data of the target equipment are acquired in the shutdown state of the server.
As shown in fig. 3 to fig. 4, the embodiment of the present disclosure further provides a data acquisition method applied to a target device, where the target device may be a server, and the data acquisition method may include:
Step S201: receiving a first data packet, wherein the first data packet is sent by the user equipment when the state information of the target equipment is shutdown state information or unresponsive state information, and the first data packet can comprise first synchronous flow information and data type information;
in one example, the user device may be a computer, a cell phone, a tablet, or the like. The target device may be communicatively coupled to the user device, and in one example, the target device and the user device may communicate based on a high-speed serial computer expansion bus standard (peripheral component interconnect express, PCIE). The target device is provided with a hardware module supporting a remote Wake-on-LAN (WOL) mechanism, and may include a main power supply, a standby power supply, a motherboard, and a network card. The main power supply of the target equipment is a power supply conforming to the ATX 2.01 standard or above the ATX 2.01 standard. The current of the +5V standby power supply is above 600mA, and the standby power supply can supply power to the main board and the network card after the main power supply stops supplying power. The motherboard supports the PCI 2.2 standard above. The network card supports the WOL standard.
The states of the target device may include a startup state, an operation state, a shutdown state and an unresponsive state, where the startup state indicates that the target device is in a startup process, the operation state indicates that the target device is successfully started and is in an operation or working process, the shutdown state indicates that the target device is in a shutdown process or has been shutdown, and the unresponsive state indicates that the target device is suspended or cannot respond. In the embodiment of the present disclosure, the user equipment may periodically and automatically obtain the state information of the target device; the state information may also be obtained after receiving a first user instruction, where the first user instruction is used to instruct the user equipment to obtain the state information of the target device, and the user may input the first user instruction to the user equipment through voice or touch modes.
The target device may monitor its own status information in real time, and receive the first data packet when the status information is the shutdown status information or the unresponsive status information. In this embodiment of the present disclosure, when the state information is the power-off state information or the unresponsive state information, the standby power supply of the target device may supply power to the motherboard and the network card, where the motherboard and the network card are in a power-on state (the power consumption of the entire target device is small at this time), and the target device may receive the first data packet sent by the user device in the network.
Under the condition that the state information is shutdown state information or unresponsive state information, a user can input a second user instruction to the user equipment in a voice or touch mode, and the user equipment can send a first data packet to the target equipment based on a WOL mechanism when receiving the second user instruction. The header of the first data packet may include first synchronous stream information, which may characterize the first data packet as a WOL mechanism-based data packet. The data type information may be used to indicate the type of the subsequent target data. The user can perform custom setting on the data type information of the first data packet in the user equipment according to actual needs.
Step S202: and transmitting a second data packet generated in response to the first synchronous stream information to the user equipment, wherein the second data packet comprises target data corresponding to the data type information, so that the user equipment extracts the target data from the second data packet.
In the embodiment of the present disclosure, after receiving the first data packet, the target device may parse the first data packet; based on the first synchronous stream information of the first data packet, it may be determined that the user device intends to acquire the target data of the target device, and the target device may respond to the first synchronous stream information of the first data packet and generate a second data packet including the target data. The target data may be information about an electronic module inside a server (target device), which may include a Data Processing Unit (DPU), a memory, a power supply, etc. Further, the target device may send the second data packet to the user device in the off state or in the unresponsive state, and the user device may receive the second data packet.
In the embodiment of the present disclosure, the user equipment may parse the second data packet, so as to extract the target data. Further, the image and text information corresponding to the target data can be displayed on the display screen of the user equipment, and the voice information corresponding to the target data can be played through the speaker of the user equipment.
In the embodiment of the specification, the target data of the target equipment can be obtained under the condition that the target equipment is shut down or not responded, so that the processes of equipment monitoring, data analysis and the like are carried out according to the target data, and the safety and the instantaneity of equipment management are improved; the technical problem that related information of electronic equipment in a server cannot be acquired under the condition that the server is shut down or is suspended in the prior art is solved; the actual requirements in the actual production, manufacturing and management processes are met.
In one possible implementation, the second data packet may further include second synchronous stream information and physical address information of the user equipment;
accordingly, the step S202 may include:
step S2021: acquiring physical address information, target data and second synchronous stream information corresponding to the first synchronous stream information of user equipment;
step S2022: generating a second data packet according to the second synchronous stream information, the physical address information of the user equipment and the target data;
step S2023: and sending the second data packet to the user equipment.
In this embodiment of the present disclosure, the header of the second data packet may include second synchronous stream information and physical address information of the user equipment, which are sequentially arranged, and the second synchronous stream information and the physical address information of the user equipment may be pre-stored in a memory of the target device, and the target device may directly call the second synchronous stream information and the physical address information of the user equipment from the memory. In another example, the header of the second data packet may further include second password information located after the physical address information of the user device. In the embodiment of the present disclosure, the physical address information and the second password information in the second data packet may be used for verification processing by the user equipment, the user equipment may match the physical address information in the second data packet with the physical address information of the user equipment, match the second password information in the second data packet with the password information stored by the user equipment, and if the matching is successful, the target data may be extracted, so as to ensure that the user equipment obtains accurate target data.
In this embodiment of the present disclosure, the first synchronous stream information of the first data packet may be 6 pieces of 5Ah, and the second synchronous stream information of the second data packet may be 6 pieces of A5h, so that the first data packet and the second data packet may be distinguished. The physical address information in the first data packet can be 16 physical addresses of the target device, the physical address information in the second data packet can be 16 physical addresses of the user device, and other data packets can be prevented from being mistakenly regarded as the first data packet or the second data packet through repeated setting of a plurality of physical addresses, so that the accuracy of data packet transmission is ensured. The first cryptographic information of the first data packet and the second cryptographic information of the second data packet may each comprise 4 bytes or 6 bytes.
In one possible implementation, the data type information may include at least one of: version type information, function type information, and temperature type information of the target device.
In this embodiment of the present specification, the target data may be information about an internal device of the server (target device), and the data type information may be used to indicate the type of the target data to the target device, and in one embodiment, the target data may be version information, function information, vendor identification information, device identification information, temperature information, and the like of the DPU in the server.
In one possible implementation, the method may further include:
acquiring equipment data under the condition that the state information is target state information;
storing device data;
acquiring the target data may include: among the device data, target data corresponding to the data type information is determined.
Under the condition that the state information is the target state information, the target equipment can acquire the equipment data of each equipment in the target equipment in real time and store the equipment data into the memory; the memory may be a register defined in the target device based on PCIE standards. The target state information may be operation state information, and may represent that the target device is in a process of normal operation. Under the condition that the state information is shutdown state information or unresponsive state information, the target device can directly acquire device data from the memory or the register, and determine corresponding target data from the device data according to the data type information.
In one possible implementation manner, the first data packet may further include first physical address information, and acquiring physical address information of the user equipment, the target data, and second synchronous stream information corresponding to the first synchronous stream information may include:
Performing verification processing on the first physical address information to obtain a verification result;
and under the condition that the verification result meets the target condition, acquiring the physical address information, target data and second synchronous stream information corresponding to the first synchronous stream information of the user equipment.
In this embodiment of the present disclosure, the first data packet is generated by the user equipment, and the first physical address information in the first data packet is physical address information of the target device. The target device may match the first physical address information in the first data packet with the physical address information of the target device itself, to obtain a verification result. And under the condition that the verification result is successful, the target device can acquire the physical address information of the user device, the target data and the second synchronous stream information corresponding to the first synchronous stream information, and further generate a second data packet.
As shown in fig. 5 and fig. 7, an embodiment of the present disclosure provides a data acquisition apparatus, applied to a user equipment 100, where the apparatus includes:
a first obtaining module 10, configured to obtain status information of a target device;
a first sending module 20, configured to send a first data packet to the target device when the status information is shutdown status information or unresponsive status information, where the first data packet includes first synchronous stream information and data type information;
A first receiving module 30, configured to receive a second data packet sent by a target device and generated in response to the first synchronous stream information, where the second data packet includes target data corresponding to the data type information;
the first extraction module 40 is configured to extract the target data from the second data packet.
In the embodiment of the specification, the target data of the target equipment can be obtained under the condition that the target equipment is shut down or not responded, so that the processes of equipment monitoring, data analysis and the like are carried out according to the target data, and the safety and the instantaneity of equipment management are improved; the user can remotely operate and check the target data of the target device through the user device, and the user does not need to go to a machine room to check on site; the technical problem that related information of electronic equipment in a server cannot be acquired under the condition that the server is shut down or is suspended in the prior art is solved; the actual requirements in the actual production, manufacturing and management processes are met.
In one possible implementation manner, the first data packet further includes physical address information of the target device, where the physical address information of the target device is used for verification processing by the target device;
the first transmitting module 20 includes:
the first acquisition unit is used for acquiring first synchronous stream information, physical address information of the target equipment and data type information under the condition that the state information is shutdown state information or unresponsive state information;
The first determining unit is used for generating a first data packet according to the first synchronous stream information, the physical address information of the target equipment and the data type information;
and the first sending unit is used for sending the first data packet to the target equipment.
In one possible implementation, the data type information includes at least one of: version type information, function type information, and temperature type information of the target device.
As shown in fig. 6 and fig. 7, the embodiment of the present disclosure further provides a data acquisition apparatus, applied to the target device 200, where the apparatus includes:
a second receiving module 60, configured to receive a first data packet, where the first data packet is sent by the user equipment when the state information of the target device is shutdown state information or unresponsive state information, and the first data packet includes first synchronous stream information and data type information;
and a second transmitting module 70, configured to transmit, to the user equipment, a second data packet generated in response to the first synchronous stream information, where the second data packet includes target data corresponding to the data type information, so that the user equipment extracts the target data from the second data packet.
In the embodiment of the specification, the target data of the target equipment can be obtained under the condition that the target equipment is shut down or not responded, so that the processes of equipment monitoring, data analysis and the like are carried out according to the target data, and the safety and the instantaneity of equipment management are improved; the user can remotely operate and check the target data of the target device through the user device, and the user does not need to go to a machine room to check on site; the technical problem that related information of electronic equipment in a server cannot be acquired under the condition that the server is shut down or is suspended in the prior art is solved; the actual requirements in the actual production, manufacturing and management processes are met.
In one possible implementation, the second data packet further includes second synchronous stream information and physical address information of the user equipment;
the second transmitting module 70 includes:
a second obtaining unit, configured to obtain physical address information of the user equipment, target data, and second synchronous stream information corresponding to the first synchronous stream information;
the second determining unit is used for generating a second data packet according to the second synchronous stream information, the physical address information of the user equipment and the target data;
and the second sending unit is used for sending the second data packet to the user equipment.
In one possible implementation, the method further includes:
acquiring equipment data under the condition that the state information is target state information;
storing device data;
the acquiring of the target data comprises the following steps: among the device data, target data corresponding to the data type information is determined.
It should be noted that, in the apparatus provided in the foregoing embodiment, when implementing the functions thereof, only the division of the foregoing functional modules is used as an example, in practical application, the foregoing functional allocation may be implemented by different functional modules, that is, the internal structure of the device is divided into different functional modules, so as to implement all or part of the functions described above. In addition, the apparatus and the method embodiments provided in the foregoing embodiments belong to the same concept, and specific implementation processes of the apparatus and the method embodiments are detailed in the method embodiments and are not repeated herein.
The embodiment of the specification also provides a data acquisition device, including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to perform the above method.
Further, the embodiments of the present specification provide a non-transitory computer-readable storage medium having stored thereon computer program instructions that, when executed by a processor, implement the above-described data acquisition method.
The computer program product may include a computer readable storage medium having computer readable program instructions embodied thereon for causing a processor to implement aspects of the present application.
The computer readable storage medium may be a tangible device that can hold and store instructions for use by an instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: portable computer disks, hard disks, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static Random Access Memory (SRAM), portable compact disk read-only memory (CD-ROM), digital Versatile Disks (DVD), memory sticks, floppy disks, mechanical coding devices, punch cards or in-groove structures such as punch cards or grooves having instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media, as used herein, are not to be construed as transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (e.g., optical pulses through fiber optic cables), or electrical signals transmitted through wires.
The computer readable program instructions described herein may be downloaded from a computer readable storage medium to a respective computing/processing device or to an external computer or external storage device over a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmissions, wireless transmissions, routers, firewalls, switches, gateway computers and/or edge servers. The network interface card or network interface in each computing/processing device receives computer readable program instructions from the network and forwards the computer readable program instructions for storage in a computer readable storage medium in the respective computing/processing device.
Computer program instructions for performing the operations of the present application may be assembly instructions, instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, c++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer readable program instructions may be executed entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider). In some embodiments, aspects of the present application are implemented by personalizing electronic circuitry, such as programmable logic circuitry, field Programmable Gate Arrays (FPGAs), or Programmable Logic Arrays (PLAs), with state information for computer readable program instructions, which may execute the computer readable program instructions.
Various aspects of the present application are described herein 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 block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer-readable program instructions.
These computer readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, 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/acts specified in the flowchart and/or block diagram block or blocks. These computer readable program instructions may also be stored in a computer readable storage medium that can direct a computer, programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer readable medium having the instructions stored therein includes an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer, other programmable apparatus or other devices implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The embodiments of the present application have been described above, the foregoing description is exemplary, not exhaustive, and not limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the various embodiments described. The terminology used herein was chosen in order to best explain the principles of the embodiments, the practical application, or the technical improvements in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.

Claims (10)

1. A data acquisition method applied to a user equipment, the method comprising:
acquiring state information of target equipment;
transmitting a first data packet to the target device when the state information is shutdown state information or unresponsive state information, wherein the first data packet comprises first synchronous stream information and data type information; when the state information is shutdown state information or unresponsive state information, the standby power supply of the target device supplies power to a main board and a network card of the target device, so that the target device receives the first data packet; the first synchronous flow information is used for representing that the first data packet is a data packet based on a remote wakeup mechanism;
Receiving a second data packet which is sent by the target equipment and is generated in response to the first synchronous flow information, wherein the second data packet comprises target data corresponding to the data type information;
and extracting the target data from the second data packet.
2. The data acquisition method of claim 1, wherein the first data packet further includes physical address information of the target device, the physical address information of the target device being used for authentication processing by the target device;
the sending the first data packet to the target device when the state information is shutdown state information or unresponsive state information includes:
acquiring the first synchronous stream information, the physical address information of the target equipment and the data type information under the condition that the state information is shutdown state information or unresponsive state information;
generating the first data packet according to the first synchronous stream information, the physical address information of the target equipment and the data type information;
and sending the first data packet to the target equipment.
3. The data acquisition method of claim 2, wherein the data type information includes at least one of: version type information, function type information and temperature type information of the target device.
4. The data acquisition method is applied to target equipment, and is characterized in that when the state information of the target equipment is shutdown state information or unresponsive state information, a standby power supply of the target equipment supplies power to a main board and a network card of the target equipment, and the method comprises the following steps:
receiving a first data packet, wherein the first data packet is sent by user equipment when the state information of the target equipment is shutdown state information or unresponsive state information, and the first data packet comprises first synchronous flow information and data type information; the first synchronous flow information is used for representing that the first data packet is a data packet based on a remote wakeup mechanism;
and sending a second data packet generated in response to the first synchronous stream information to the user equipment, wherein the second data packet comprises target data corresponding to the data type information, so that the user equipment extracts the target data from the second data packet.
5. The data acquisition method of claim 4 wherein the second data packet further comprises second isochronous stream information and physical address information of the user device;
the sending, to the user equipment, a second data packet generated in response to the first isochronous stream information includes:
Acquiring physical address information of the user equipment, the target data and the second synchronous stream information corresponding to the first synchronous stream information;
generating the second data packet according to the second synchronous stream information, the physical address information of the user equipment and the target data;
and sending the second data packet to the user equipment.
6. The data acquisition method of claim 5, wherein the method further comprises:
acquiring equipment data under the condition that the state information is target state information;
storing the device data;
the obtaining the target data comprises the following steps: and determining the target data corresponding to the data type information in the equipment data.
7. A data acquisition apparatus for use in a user device, the apparatus comprising:
the first acquisition module is used for acquiring the state information of the target equipment;
the first sending module is used for sending a first data packet to the target equipment when the state information is shutdown state information or unresponsive state information, wherein the first data packet comprises first synchronous stream information and data type information; when the state information is shutdown state information or unresponsive state information, the standby power supply of the target device supplies power to a main board and a network card of the target device, so that the target device receives the first data packet; the first synchronous flow information is used for representing that the first data packet is a data packet based on a remote wakeup mechanism;
The first receiving module is used for receiving a second data packet which is sent by the target equipment and is generated in response to the first synchronous flow information, wherein the second data packet comprises target data corresponding to the data type information;
and the first extraction module is used for extracting the target data from the second data packet.
8. A data acquisition apparatus applied to a target device, wherein when state information of the target device is shutdown state information or unresponsive state information, a standby power supply of the target device supplies power to a motherboard and a network card of the target device, the apparatus comprising:
the second receiving module is used for receiving a first data packet, wherein the first data packet is sent by the user equipment when the state information of the target equipment is shutdown state information or unresponsive state information, and the first data packet comprises first synchronous flow information and data type information; the first synchronous flow information is used for representing that the first data packet is a data packet based on a remote wakeup mechanism;
and the second sending module is used for sending a second data packet generated in response to the first synchronous flow information to the user equipment, wherein the second data packet comprises target data corresponding to the data type information, so that the user equipment extracts the target data from the second data packet.
9. A data acquisition device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the method of any one of claims 1 to 6.
10. A non-transitory computer readable storage medium having stored thereon computer program instructions, which when executed by a processor, implement the method of any of claims 1 to 6.
CN202210099634.1A 2022-01-27 2022-01-27 Data acquisition method, device, equipment and storage medium Active CN114531452B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210099634.1A CN114531452B (en) 2022-01-27 2022-01-27 Data acquisition method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210099634.1A CN114531452B (en) 2022-01-27 2022-01-27 Data acquisition method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114531452A CN114531452A (en) 2022-05-24
CN114531452B true CN114531452B (en) 2024-03-08

Family

ID=81623477

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210099634.1A Active CN114531452B (en) 2022-01-27 2022-01-27 Data acquisition method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114531452B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005109763A (en) * 2003-09-29 2005-04-21 Nec Corp Network system, wol device, network tv tuner, and information device activation method
CN104079596A (en) * 2013-03-26 2014-10-01 腾讯科技(深圳)有限公司 Remote wakeup method and device
CN105281919A (en) * 2014-05-28 2016-01-27 中兴通讯股份有限公司 Remote wakening method, server and client terminal
CN110502440A (en) * 2019-08-09 2019-11-26 北京达佳互联信息技术有限公司 Debug acquisition methods, device, electronic equipment and the storage medium of location information
CN111314372A (en) * 2020-03-04 2020-06-19 海信视像科技股份有限公司 Display equipment awakening method, control terminal, server and display equipment
CN111385137A (en) * 2019-03-11 2020-07-07 深圳市鸿合创新信息技术有限责任公司 Terminal awakening method, server and electronic equipment
CN111885686A (en) * 2020-07-24 2020-11-03 广东小天才科技有限公司 Equipment network awakening method, awakening receiving terminal and awakening initiating terminal
CN113364979A (en) * 2021-05-31 2021-09-07 西安万像电子科技有限公司 Method and system for remote control of devices, server, client device, and medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080104424A1 (en) * 2006-10-31 2008-05-01 International Business Machines Corporation Systems and Methods to Reduce Deployment Security Exposure Using WOL
US8095689B2 (en) * 2007-03-16 2012-01-10 Intermetro Industries Corporation Remote activation device for a computer
KR101132163B1 (en) * 2010-10-14 2012-05-08 주식회사 마스터소프트 Power Management System and Method Thereof
US8868943B2 (en) * 2010-11-29 2014-10-21 Microsoft Corporation Stateless remote power management of computers
CN111367488B (en) * 2020-01-07 2023-08-22 百度在线网络技术(北京)有限公司 Voice equipment and interaction method, equipment and storage medium thereof

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005109763A (en) * 2003-09-29 2005-04-21 Nec Corp Network system, wol device, network tv tuner, and information device activation method
CN104079596A (en) * 2013-03-26 2014-10-01 腾讯科技(深圳)有限公司 Remote wakeup method and device
CN105281919A (en) * 2014-05-28 2016-01-27 中兴通讯股份有限公司 Remote wakening method, server and client terminal
CN111385137A (en) * 2019-03-11 2020-07-07 深圳市鸿合创新信息技术有限责任公司 Terminal awakening method, server and electronic equipment
CN110502440A (en) * 2019-08-09 2019-11-26 北京达佳互联信息技术有限公司 Debug acquisition methods, device, electronic equipment and the storage medium of location information
CN111314372A (en) * 2020-03-04 2020-06-19 海信视像科技股份有限公司 Display equipment awakening method, control terminal, server and display equipment
CN111885686A (en) * 2020-07-24 2020-11-03 广东小天才科技有限公司 Equipment network awakening method, awakening receiving terminal and awakening initiating terminal
CN113364979A (en) * 2021-05-31 2021-09-07 西安万像电子科技有限公司 Method and system for remote control of devices, server, client device, and medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于LAN的多媒体设备网络化管理的设计;王海峰;章怡;;江苏技术师范学院学报(自然科学版)(第02期);全文 *
基于远程控制的局域网机房管理系统;佟颖;辜竹筠;孙景瑞;陈劲;;实验室研究与探索(第09期);全文 *

Also Published As

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

Similar Documents

Publication Publication Date Title
TW201931117A (en) Method for remote system recovery
CN106776385B (en) A kind of transmission method, device and the terminal of log log information
US10104538B2 (en) Apparatus and method for providing a mobile device management service
CN105320616B (en) External device control method and device
CN112764817A (en) Equipment function awakening method and device
CN108933968B (en) Message format conversion method and device, storage medium and android terminal
US10430236B2 (en) Electronic device and method for resuming process thereof
CN107894935A (en) OPS computer module detection process method, apparatus and electronic equipment
CN113179511B (en) Communication terminal with SIM card for abnormal processing of card and method thereof
US9582069B2 (en) Electronic apparatus and wake-up method thereof
US10564218B2 (en) Systems and methods for debugging access
CN114531452B (en) Data acquisition method, device, equipment and storage medium
CN111262737B (en) Port configuration management method and device, storage medium and terminal
CN106709330B (en) Method and device for recording file execution behaviors
CN107292142B (en) Business operation processing method, business operation processing device and business terminal
CN108122151B (en) Graphic code display method, graphic code processing method, device and system
CN111182153B (en) System language setting method and device, storage medium and mobile terminal
CN111104363B (en) FPGA cloud platform using method, device, equipment and medium
CN114500473A (en) Data transmission method and system, gateway equipment and operation terminal equipment
US10003463B2 (en) Systems and methods for revoking and replacing signing keys
CN111045742A (en) Card changing method and device of terminal equipment, storage medium and terminal equipment
CN116389915B (en) Method and device for reducing flicker of light field camera
CN114202712A (en) Feature extraction method and device and electronic equipment
CN116643869A (en) Task batch processing method and system
CN116506423A (en) Information security data reporting method and device

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