Data processing method and apparatus
By prioritizing data transmission within the server and employing wireless transmission, the problems of low data transmission reliability and network congestion between the server and terminal devices are resolved, enabling timely transmission of critical data and simplifying cabling operations.
Patent Information
- Application Number
- CN202311279018.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-28
- Publication Date
- 2026-11-17
- Estimated Expiration
- 2043-09-28
AI Technical Summary
During data transmission between servers and terminal devices, there are problems such as low data transmission reliability and network congestion, especially when multiple servers send data simultaneously.
The target server determines the transmission priority based on the correlation between the data to be transmitted and the preset server failure, and sends the data sequentially via wireless transmission to ensure that critical data is transmitted first and avoid network congestion.
It improves the reliability of data transmission, avoids network congestion, ensures that critical data is transmitted to terminal devices in a timely manner, and simplifies cabling operations.
Smart Images

Figure CN117676900B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data processing technology, and in particular to a data processing method and apparatus. Background Technology
[0002] In practical applications, servers can be used for data processing, data storage, and data publishing. When a server malfunctions, it is necessary to identify and resolve the fault as soon as possible to reduce the impact of the server failure.
[0003] In related technologies, a communication line is established between the server and the terminal device by connecting the server's serial port and the terminal device's serial port. Then, various types of data that may cause server failure are sent to the terminal device together, enabling the terminal device to perform fault detection and analysis based on the acquired data.
[0004] However, data transmission via communication lines is prone to line failures, leading to data transmission failures. Furthermore, when multiple servers are connected to the terminal device, and each server sends a large amount of data to the terminal device simultaneously, sending various types of data to the terminal device may cause network congestion, resulting in data transmission anomalies. In other words, in related technologies, data transmission to terminal devices via servers suffers from low reliability. Summary of the Invention
[0005] In view of the above problems, embodiments of the present invention provide a data processing method and apparatus that overcomes the above problems or at least some of the problems.
[0006] In a first aspect, embodiments of this application disclose that the method is applied to a target server, wherein the target server is one of a plurality of servers to which data transmission is to be performed, and the plurality of servers are communicatively connected to a terminal device, and the method includes:
[0007] The target server responds to the data transmission command by acquiring multiple data items to be transmitted from the target server.
[0008] The target server obtains the transmission priority of each piece of data to be transmitted, and the transmission priority is determined based on the degree of correlation between the data to be transmitted and a preset server fault.
[0009] The target server determines the transmission order of each piece of data to be transmitted based on the transmission priority of each piece of data to be transmitted;
[0010] The target server transmits each piece of data to be transmitted to the terminal device in the specified transmission order via wireless transmission.
[0011] Secondly, embodiments of this application disclose a data processing system, which is set in a target server. The data processing system includes an input module, a control module, a display module, a testing module, a storage module, and a wireless transmission module.
[0012] The input module is used to control the target server to obtain input information and generate data transmission instructions;
[0013] The control module is used to control the target server to respond to a data transmission command, acquire multiple data to be transmitted from the target server, determine the transmission order of each data to be transmitted according to the transmission priority of each data to be transmitted, and send each data to be transmitted sequentially to the terminal device according to the transmission order through the wireless transmission module; the multiple data to be transmitted includes at least one of the following: serial port information of the target server, configuration information of the target server, and test results of testing the target server;
[0014] The display module is used to control the target server to display the target test task control and the configuration information sent by the control module;
[0015] The testing module is used to control the target server to generate a target test task instruction in response to the selection operation of the target test task control, and to perform a target test task on the target server in response to the target test task instruction to obtain test results.
[0016] Thirdly, embodiments of this application also disclose a data processing apparatus applied to a target server, wherein the target server is one of a plurality of servers to which data is to be transmitted, and the plurality of servers are communicatively connected to a terminal device, and the apparatus includes:
[0017] A response module is used to control the target server to respond to a data transmission command and acquire multiple data to be transmitted from the target server.
[0018] The acquisition module is used to control the target server to acquire the transmission priority of each piece of data to be transmitted. The transmission priority is determined based on the degree of correlation between the data to be transmitted and a preset server fault.
[0019] The determination module is used to control the target server to determine the transmission order of each piece of data to be transmitted based on the transmission priority of each piece of data to be transmitted;
[0020] The sending module is used to control the target server to send each piece of data to be transmitted to the terminal device in the order of transmission via wireless transmission.
[0021] Fourthly, embodiments of this application also provide an electronic device, including a processor and a memory, wherein the memory stores a program or instructions executable on the processor, and the program or instructions, when executed by the processor, implement the steps of the method described in the first aspect.
[0022] Fifthly, embodiments of this application also disclose a readable storage medium storing a program or instructions that, when executed by a processor, implement the steps of the method described in the first aspect.
[0023] In summary, in this embodiment, the target server determines the transmission order of the data to be transmitted based on the transmission priority of the data to be transmitted. The transmission priority is determined based on the degree of correlation with a preset server failure. Therefore, determining the transmission order of the data to be transmitted according to the transmission priority is equivalent to determining the transmission order based on the degree of correlation with a preset server failure. By sending each piece of data to be transmitted sequentially to the terminal device according to this determined transmission order, it ensures that data with a high degree of correlation with a preset server failure is sent first, ensuring that the terminal device receives this data in a timely manner, while avoiding network congestion caused by the simultaneous transmission of a large amount of data. Furthermore, transmitting the data wirelessly avoids the communication failure problems that wired connections are prone to, compared to wired transmission methods in related technologies, ensuring the security of data transmission. Therefore, the method of this embodiment solves the problem of low data transmission reliability in related technologies when sending data from a target server to a terminal device.
[0024] The above description is merely an overview of the technical solution provided in this application. In order to better understand the technical means of this application and to implement it in accordance with the contents of the specification, and to make the above and other objects, features and advantages of this application more obvious and understandable, specific embodiments of this application are described below. Attached Figure Description
[0025] One or more embodiments are illustrated by way of example with reference numerals in the accompanying drawings. These illustrations do not constitute a limitation on the embodiments. Elements with the same reference numerals in the drawings are denoted as similar elements. Unless otherwise stated, the figures in the drawings are not to be limited by scale.
[0026] Figure 1 This is a flowchart of the steps of a data processing method provided in an embodiment of this application;
[0027] Figure 2 This is a flowchart of another data processing method provided in an embodiment of this application;
[0028] Figure 3 This is a flowchart of another data processing method provided in the embodiments of this application;
[0029] Figure 4 This is a schematic diagram of the structure of a data processing system provided in an embodiment of the present invention;
[0030] Figure 5 This is a schematic diagram of the structure of another data processing system provided in an embodiment of the present invention;
[0031] Figure 6 This is a block diagram of a data processing device provided in an embodiment of the present invention;
[0032] Figure 7 This is a block diagram of an electronic device according to an embodiment of the present invention;
[0033] Figure 8 This is a block diagram of an electronic device according to another embodiment of the present invention. Detailed Implementation
[0034] Exemplary embodiments of the invention will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this invention will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
[0035] Some of the nouns or terms appearing in this application shall be interpreted as follows:
[0036] A Universal Asynchronous Receiver-Transmitter (UART) is used to collect serial port information from a server in real time.
[0037] A Baseboard Management Controller (BMC) is a device used to manage the operating status of a server.
[0038] A microcontroller unit (MCU) is used to acquire data transmission commands and acquire data to be transmitted.
[0039] Video Graphics Array (VGA) is a standard used for transmitting video data.
[0040] Cyclic Redundancy Check (CRC) checksum is a checksum used for data packet verification.
[0041] The data processing method in this application will be further described below with reference to the accompanying drawings and specific embodiments.
[0042] refer to Figure 1 The document illustrates a flowchart of the data processing method provided in an embodiment of this application. The method is applied to a target server, which is one of a plurality of servers to be used for data transmission. All of the servers are communicatively connected to the terminal device.
[0043] For example, the terminal device can be a server, a mobile terminal, or other device that can receive data to be transmitted sent by the server.
[0044] Reference Figure 1 Data processing methods may include the following steps:
[0045] Step 101: The target server responds to the data transmission command and obtains multiple data items to be transmitted from the target server.
[0046] In this step, the data to be transmitted may include serial port information, alarm data, test results of testing the target server, or other data related to the performance of the target server.
[0047] For example, a data transmission instruction is generated in response to user input. Further, a data transmission instruction is generated in response to user input at the target server's input unit.
[0048] Step 1.02: The target server obtains the transmission priority of each piece of data to be transmitted.
[0049] The priority of data to be transmitted is determined based on the degree of correlation between the data to be transmitted and the preset server faults.
[0050] Furthermore, the system statistically analyzes historical failure events occurring on the target server within a given time period, along with the device parameter values of the devices that caused these failures. These failure events are then used as preset server failures, and the device parameters that caused them are used as data associated with these preset server failures.
[0051] Furthermore, it is necessary to determine the degree of influence of each of the multiple device parameters that cause server failure on the server failure. The greater the degree of influence, the higher the correlation between the device parameter and the server failure.
[0052] For example, for each preset server fault, the device parameters that cause the preset server fault to occur on the target server are determined, and the degree of influence of the device parameters on the preset server fault is used as the correlation value between the device parameters and the preset server fault.
[0053] Device parameters are used as data to be transmitted to the device terminal for performance testing of the target server. Based on the correlation value corresponding to each piece of data, multiple pieces of data are sorted, and the transmission priority of each piece of data is determined according to the sorting result.
[0054] The higher the correlation value, the higher the transmission priority.
[0055] Step 1.03: The target server determines the transmission order of each piece of data to be transmitted based on its transmission priority.
[0056] Specifically, when the target server needs to transmit multiple data to the terminal device, the higher the transmission priority, the earlier the corresponding data will be transmitted.
[0057] Step 1.04: The target server sends each piece of data to be transmitted to the terminal device in the order of transmission via wireless transmission.
[0058] For example, a wireless transmission module is set in the target server, and a wireless transmission module adapted to the wireless transmission module in the target server is set in the terminal device. A wireless communication connection between the target server and the terminal device is established based on the wireless transmission modules set in the target server and the terminal device respectively.
[0059] Furthermore, based on the established wireless communication connection, the target server sends each piece of data to be transmitted to the terminal device in the order of transmission.
[0060] In summary, in this embodiment, the target server determines the transmission order of the data to be transmitted based on the transmission priority of the data to be transmitted. The transmission priority is determined based on the degree of correlation with preset server faults. Therefore, determining the transmission order of the data to be transmitted according to the transmission priority is equivalent to determining the transmission order based on the degree of correlation with preset server faults. The target server sends each piece of data to be transmitted sequentially to the terminal device according to the determined transmission order. This ensures that data with a high degree of correlation with preset server faults is sent first, ensuring that the device terminal receives data with a high degree of correlation with preset server faults in a timely manner, while avoiding network congestion caused by the simultaneous transmission of a large amount of data. Furthermore, the target server transmits the data to be transmitted wirelessly, which, compared to wired transmission methods in related technologies, avoids the communication failure problems that are prone to occur with wired connections, ensuring the security of data transmission. Therefore, the method based on this embodiment solves the problem of low data transmission reliability in related technologies when sending data from a target server to a terminal device.
[0061] In one embodiment, the multiple data to be transmitted include alarm data from the target server. (See reference...) Figure 2 The data processing method may also include the following steps:
[0062] Step 201: The target server obtains the device information of the target server.
[0063] For example, device information may include status information of each module in the target server. For instance, it may include status information of the control module, the test module, or other modules in the target server.
[0064] Step 202: The target server determines whether it has malfunctioned based on the device information.
[0065] For example, based on the currently received device information and the pre-stored normal device information, it is determined whether the server has malfunctioned. The pre-stored normal device information refers to devices collected within a historical time period that are in normal working order.
[0066] Step 203: If the target server determines that a fault has occurred based on the device information, the target server generates alarm data.
[0067] Among them, the transmission priority of alarm data is higher than the transmission priority of other data to be transmitted among multiple data to be transmitted.
[0068] For example, if a target server is determined to have malfunctioned based on device information, the generated alarm data may include: descriptive information describing the server malfunction and device information corresponding to the server malfunction.
[0069] Step 204: The target server obtains the transmission priority of each piece of data to be transmitted. The transmission priority is determined based on the degree of correlation between the data to be transmitted and the preset server fault.
[0070] The method for this step has been explained in step 1.02 above, and will not be repeated here.
[0071] Step 205: The target server determines the transmission order of each piece of data to be transmitted based on its transmission priority.
[0072] In this step, alarm data has a higher transmission priority than other data to be transmitted. Correspondingly, if there are multiple data to be transmitted, alarm data will be transmitted first.
[0073] Step 206: The target server sends each piece of data to be transmitted to the terminal device in the order of transmission via wireless transmission.
[0074] For example, alarm data is first transmitted to the terminal device, and then other data to be transmitted are sent to the terminal device in the corresponding transmission order.
[0075] In summary, in this embodiment, based on the target server's device information, it can be accurately determined whether the target server has malfunctioned. If a malfunction is confirmed, alarm data is generated, and its transmission priority is set to the highest. Then, the alarm data, along with other data to be transmitted, is sent to the terminal device wirelessly. Since the alarm data has the highest transmission priority, it is prioritized for transmission to the terminal device, allowing it to quickly obtain the alarm data, determine the target server malfunction, and address it promptly. In practical applications, connecting the terminal device and multiple servers via wired connections requires complex cabling, which is inconvenient in laboratory or server room environments. Furthermore, terminal devices typically have only one or a few USB ports, and each USB port can only accommodate one USB-to-serial adapter module. Therefore, it is impossible to obtain data from multiple servers through a single terminal device. This embodiment, based on wireless transmission, solves the operational inconvenience caused by wired connections in related technologies.
[0076] In one embodiment, the multiple data to be transmitted include the server's serial port information.
[0077] Correspondingly, step 201 includes the following sub-steps:
[0078] In step 2011, the target server responds to the data transmission command and obtains the serial port information of the target server.
[0079] For example, serial port information includes configuration data of various underlying devices in the server during server startup and operation.
[0080] Correspondingly, after step 201, the following steps are also included:
[0081] Step 208: The target server generates a serial port information log based on the serial port information.
[0082] For example, a serial port information log is generated based on the current serial port information and the serial port information collected during the historical time period.
[0083] Step 209: The target server stores the serial port information log in the target server's storage module.
[0084] For example, the serial port information log is stored in a preset memory area of the storage module.
[0085] Step 210: The target server displays the serial port information on its display module.
[0086] For example, the serial port information is filled into the display template according to the preset display template, and then the serial port information is displayed on the display module.
[0087] In this embodiment, the serial port information of the target server is obtained, and a serial port information log is generated based on the serial port information. The serial port information log is stored in the storage module of the target server, which can be retrieved by the user later to analyze the performance of the target server. Displaying the serial port information on the display module of the target server allows the user to intuitively obtain the serial port information of the target server and determine the status of the target server based on the serial port information.
[0088] In one embodiment, the multiple data to be transmitted also include the operation logs of the target server.
[0089] Correspondingly, step 201 may include the following sub-steps:
[0090] Sub-step 2012: The target server obtains the operation data of the target server within a preset time period.
[0091] For example, a preset time period can be set according to user needs.
[0092] In this step, the target server's operational data may include: data related to data processing tasks, data transmission tasks, and data distribution tasks performed by the target server within a preset time period.
[0093] Sub-step 2013: The target server generates operation logs based on the operation data.
[0094] In this embodiment, operation data of the target server within a preset time period is obtained, and operation logs are generated based on the operation data. The data to be transmitted includes the service's operation logs. According to this embodiment, the operation logs can be sent to the terminal device by transmitting the data to be transmitted, thereby enabling the user to obtain the operation data of the target server.
[0095] In one embodiment, prior to step 201, the method further includes:
[0096] Step 211: The target server responds to the user's input on the display module by generating a data transmission instruction.
[0097] The display module is a device installed on the target server.
[0098] In one embodiment, the multiple data to be transmitted include: test results of testing the target server.
[0099] Correspondingly, step 201 may include the following sub-steps:
[0100] Sub-step 2014: The target server responds to the main interface display command and displays the main interface in the display module.
[0101] The display module is located on the target server, and the main interface includes at least one sub-interface, which includes at least one task test interface.
[0102] In this step, the target server is equipped with a display module, which includes a main interface.
[0103] In one embodiment, after the display module is powered on, the display module generates a main interface display command, and then displays the main interface in the display module in response to the main interface display command.
[0104] In sub-step 2015, the target server responds to the selection operation of the target test task interface among multiple sub-interfaces by displaying the target test task interface on the display device.
[0105] Specifically, the task test interface includes at least one task test control, each task test control has a corresponding task test, and each task test control displays the description information of the corresponding task test.
[0106] The target test task interface is an interface among at least one task test interface. For example, in response to a user's selection operation among multiple task test interfaces, the target test task interface is determined from the multiple test task interfaces.
[0107] Sub-step 2016: The target server determines the target test task control from multiple task test controls that display corresponding description information based on the target description information of the target test task.
[0108] For example, the target test task can be at least one of stress testing, server stability testing (reboot testing), and DC characteristic testing. Correspondingly, the target test task is described using its test name, resulting in target description information.
[0109] For example, the target test task control is determined from multiple task test controls by matching the target description information with the description information corresponding to each task test control.
[0110] Sub-step 2017: The target server responds to the selection operation of the target test task control in the task test control and generates the target test task instruction;
[0111] For example, in response to a click on the target test task control in the task test control, a target test task instruction is generated.
[0112] In sub-step 2018, the target server responds to the target test task instruction, performs the target test task on the target server, and obtains the test results.
[0113] In this step, the target test task instruction is used to instruct the target server to perform the target test task and obtain the test results.
[0114] In this embodiment, the main interface includes at least one sub-interface of a task test interface. By selecting a target test task interface from the at least one task test interface, the target test task interface is displayed on the display device. A target test task control is determined from multiple task test controls on the target test task interface. In response to the selection operation of the target test task control, a target test task instruction is generated, and the target test task is then tested to obtain test results. In related technologies, the test task of the target server has a corresponding script, which is stored on the target server. The user executes the corresponding test task by operating the script corresponding to the test task. This processing method is relatively complex. Based on the method of this embodiment, by displaying task test controls in the task test interface of the target server, the user can intuitively and quickly select the target test task control to be tested from the task operation controls. Based on the selection operation of the target test task control, the corresponding test task is tested. The method is simple and easy to master, improving data processing efficiency and user experience.
[0115] refer to Figure 3 The data processing method provided in this application may further include the following steps:
[0116] Step S1: The target server responds to the user's selection of multiple task test controls in the target server task test interface and generates target test task instructions.
[0117] For example, in response to a user's click on the target test task control among multiple test task controls, a target test task instruction is generated.
[0118] In step S2, the target server responds to the target test task instruction, performs the target test task on the target server, and obtains the test results.
[0119] In response to the user's selection of multiple task test controls in the task test interface of the target server, a target test task instruction is generated, and then the target test task is executed. This essentially associates the test task with the target test task control; therefore, the corresponding task test can be achieved by interacting with the target test task control via touch, a simple and convenient method.
[0120] For example, the target test task is tested using the test module corresponding to the target test task in the target server, and the test results are obtained.
[0121] Step S3: If the target server determines that a failure has occurred, the target server generates alarm data.
[0122] For example, based on the target server's device information, determine whether the target server has malfunctioned.
[0123] Step S4: The target server obtains the serial port information of the target server and generates a serial port information log.
[0124] For example, a serial port information log is generated based on the serial port information of the target server within a preset time period.
[0125] For example, serial port parameters, including baud rate, data bits, and parity, are input through the display module on the target server. Based on the input serial port parameters, the corresponding serial port parameter values are acquired from the target server; these values constitute the serial port information. Specifically, input operations on the display module generate data acquisition commands, thereby acquiring serial port information.
[0126] Step S5: The target server obtains the operation data of the target server and generates an operation log.
[0127] For example, an operation log is generated based on the operation data of the target server within a preset time period.
[0128] Step S6: The target server obtains the transmission priority of alarm data, serial port information logs, and operation logs.
[0129] For example, alarm data transmission has the highest priority, followed by serial port information logs, and operation logs have the lowest priority. This ensures that terminal devices receive alarm data as quickly as possible to determine if the target server has experienced or may experience a failure. The cause of the alarm is then analyzed based on the serial port information logs, and further determined based on the operation logs.
[0130] Step S7: The target server determines the transmission order of alarm data, serial port information log and operation log according to the transmission priority.
[0131] In this step, the higher the transmission priority, the earlier the transmission order.
[0132] In step S8, the target server sends the alarm data, serial port information log, and operation log to the main server via wireless communication in the transmission order.
[0133] In this step, the master server is equivalent to the terminal device in the aforementioned embodiments.
[0134] For example, the transmission order is as follows: alarm data, serial port information log, and operation log are transmitted in sequence, and the alarm data, serial port information log, and operation log are sent to the main server in sequence.
[0135] In one embodiment, the data type to be transmitted can be specified, and only the data of the corresponding type can be transmitted.
[0136] In one embodiment, a data transmission mode can be set, for example, real-time transmission, intermittent transmission, or other transmission methods can be selected.
[0137] For example, both the target server and the terminal device are equipped with wireless transmission modules. The wireless communication level between the target server and the terminal device is established through the following steps.
[0138] First, based on steps S81 to S84, the wireless transmission module is initialized.
[0139] Step S81: Set the physical channel low and write the address of the terminal device and the address of the target server to enable automatic response.
[0140] Step S82: Enable the channel to receive the automatic response of the wireless transmission, and enable the receiving address of the channel.
[0141] Step S83: Set the automatic retransmission interval and the maximum number of automatic retransmissions.
[0142] Step S84: Set up the radio frequency (RF) channel, configure the target server transmission parameters, and the parameters of the basic operating mode.
[0143] The target server's transmission parameters include low-noise amplifier gain, transmission power, and wireless rate.
[0144] Step S85: Increase the physical channel level and enter transmit mode.
[0145] Specifically, the transmission mode is entered after the physical channel is raised for a period of time.
[0146] Sending the data to be transmitted may include the following steps S86 to S88:
[0147] Step S86: Send the address and the data to be sent to the wireless transmission module in sequence;
[0148] Step S87: Configure the register to enter transmit mode;
[0149] In step S88, the microcontroller sets the physical channel high and holds it for at least 10µs before transmitting data.
[0150] After the data transmission is complete, the NRF24L01 enters an idle state.
[0151] The data receiving method includes the following steps:
[0152] Step S89: Configure the receiving address and the size of the data packets to be received, configure the registers of the terminal device to enter the receiving mode, and set the physical channel high.
[0153] In step S90, after maintaining the physical channel high for 130µs, the chip of the wireless transmission module enters the detection state and waits for the arrival of data packets.
[0154] Step S91: Perform data packet verification based on address and CRC checksum. If the verification passes, obtain the data in the data packet.
[0155] This application provides a data processing system, which is set in a target server. The data processing system includes an input module, a control module, a display module, a testing module, a storage module, and a wireless transmission module.
[0156] like Figure 4 As shown, the input module is connected to the control module, and the control module is connected to the display module and the wireless transmission module. Further, in one embodiment, the display module is connected to the test module, and the test module is connected to the control module.
[0157] The input module is used to acquire input information and generate data transmission instructions.
[0158] Specifically, the input unit is used to receive and process user input operations, then generate data transmission instructions in response to the input operations, and send the data transmission instructions to the control module.
[0159] In one embodiment, the input module receives the transmission priority of each piece of data to be transmitted from the user's input, and then generates a priority relationship table, which is then sent to the control module.
[0160] In one embodiment, the input module is disposed in the display device. In another embodiment, the input module is connected to the display device.
[0161] The control module is used to respond to data transmission instructions, acquire multiple data to be transmitted from the target server, determine the transmission order of each data to be transmitted according to the transmission priority of each data to be transmitted, and send each data to be transmitted to the terminal device in the transmission order through the wireless transmission module.
[0162] The data to be transmitted includes at least one of the following: serial port information of the target server, configuration information of the target server, and test results of testing the target server.
[0163] For example, the control module receives a data transmission command, and in response to the data transmission command, obtains the target server's configuration information, serial port information, and test results of the test on the target server.
[0164] The control module obtains the corresponding data to be transmitted according to the data transmission instruction and actively sends it to the terminal device. Specifically, the data to be transmitted can be sent to the terminal device through a data transmission module such as a wireless radio frequency module.
[0165] Specifically, the control module can check various configuration information of the target server, such as the configuration information of each component in the target server, the IP address query of the target server, the status data of the target server, and the test results. The control module uploads this data and the generated logs to the terminal device.
[0166] Furthermore, the serial port information and test results of the target server are stored in the target server's storage module in real time. The control module monitors the data stored in the storage module in real time. After determining that the stored data has been updated, it retrieves the updated data and sends it to the terminal device via the wireless transmission module. For example, the terminal device acts as the master server, and the target server responds to the data transmission command, collects the baseboard controller data, generates a baseboard controller log, and sends the log to the master server. For example, if the target server experiences a fault, it generates fault information or alarm information and then sends the fault information or alarm information to the master server.
[0167] Furthermore, the storage module can save serial port information and log data awaiting transmission. After the data stored in the storage module is transmitted to the main server via the wireless transmission module, the data in the storage module can be deleted. In this system, the storage module serves as a temporary storage for data awaiting transmission.
[0168] The display module is used to display the target test task controls and the configuration information sent by the control module;
[0169] The testing module is used to generate target test task instructions in response to the selection operation of the target test task control, perform target test tasks on the target server in response to the target test task instructions, and obtain test results.
[0170] It should be noted that the wireless transmission module in the target server and the wireless transmission module in the terminal device are compatible. For example, the wireless transmission modules in both the target server and the terminal device are radio frequency (RF) modules. The RF modules of the target server and the terminal device negotiate to operate on the same frequency band and use the same modulation, demodulation, and encoding / decoding methods. Therefore, the target server and the terminal device can communicate and receive data sent by each other. In one embodiment, the wireless transmission module can use the NRF24L01 RF chip, which has low power consumption and can be connected to almost any microcontroller chip for wireless data transmission.
[0171] The wireless transmission module enables wireless data transmission, which simplifies the connection between devices in the data processing system and makes the operation more flexible compared to wired connections in related technologies.
[0172] In summary, the system includes an input module, a control module, a display module, a testing module, a storage module, and a wireless transmission module. Based on the data input from the input module, a data transmission command is generated. The control module retrieves the data to be transmitted based on the data transmission command. This data includes test results generated by the testing module after performing task testing. The data to be transmitted is stored in the storage module, at least a portion of the data is displayed on the display module, and the data is transmitted to the terminal device via the wireless transmission module. The system has a simple structure and small size. It can be configured as a fixed module within a server or used as a standalone add-on module, offering flexible configuration and simple operation.
[0173] Reference Figure 5 The system's control unit is a microcontroller unit (MCU), which is connected to a storage module, a display module, and a wireless transmission module. The display module is a VGA monitor compliant with the Video Graphics Array (VGA) standard.
[0174] Furthermore, the display module can also be connected to the battery management module in the target server. Specifically, this connection can be achieved via a slot or cable. The system also includes a power supply unit, which can be a battery or other power supply module. The display module can be connected to the power supply unit or to the power supply on the target server's motherboard, receiving power from the target server's motherboard.
[0175] For example, the display module can synchronize with the target server and, based on the operating system on the target server, query and retrieve serial port information from the target server.
[0176] In one embodiment, the display module includes the following units: a basic unit, used to display basic data of the target server, such as inlet / outlet temperature, CPU temperature, memory temperature, fan speed, version information, etc.; a component unit, used to display component information, version information, and performance status of each component in the target server; and a task information unit, used to display the ongoing task status of the target server, whether testing is in progress, and what tests are being performed, all displayed in the task information unit.
[0177] In one embodiment, the display unit further includes a setting unit for configuring the transmission method of the data to be transmitted. Specifically, the category of the data to be transmitted can be set, which may include version information, various component information, test logs, etc. By setting the category of the data to be transmitted, the required information can be selected to be transmitted to the main server. For example, the setting unit can also be used to set the transmission method of the data to be transmitted. The transmission method can be real-time transmission or intermittent transmission. Real-time transmission is used to transmit the current data to the target server. Intermittent transmission means that the interval between transmissions can be selected, for example, data transmission can be performed every 30 minutes. This method can avoid excessively large file information and save storage space on the target server.
[0178] The display module also includes test units. These units store the necessary scripts and display the names of the tasks to be tested. Selecting the desired test task will execute the corresponding test. By adjusting the test case scripts, testing of the target server can be achieved, making testing convenient, simple, and efficient.
[0179] In one embodiment, each target server has a corresponding display module. Based on the independent display module, it can be ensured that the configuration check and version check of the target server are accurate and error-free, avoiding version and configuration errors.
[0180] refer to Figure 6 It illustrates a data processing apparatus 30 provided in an embodiment of this application, the data processing apparatus 30 including:
[0181] The response module 301 is used to respond to a data transmission command and obtain multiple data to be transmitted from the target server.
[0182] The acquisition module 302 is used to acquire the transmission priority of each piece of data to be transmitted. The transmission priority is determined based on the degree of correlation between the data to be transmitted and a preset server fault.
[0183] The determining module 303 is used to determine the transmission order of each piece of data to be transmitted based on the transmission priority of each piece of data to be transmitted.
[0184] The transmitting module 304 is used to transmit each piece of data to be transmitted to the terminal device in the order of transmission via wireless transmission.
[0185] Optionally, the multiple data to be transmitted may include alarm data from the target server;
[0186] Correspondingly, the response module includes:
[0187] The first acquisition submodule is used to acquire device information of the target server;
[0188] The first determination submodule is used to determine whether the target server has malfunctioned based on the device information;
[0189] The second determination submodule is used to generate alarm data when the target server is determined to have failed based on the device information; wherein the transmission priority of the alarm data is higher than the transmission priority of other data to be transmitted among multiple data to be transmitted.
[0190] Optionally, the multiple data to be transmitted include: serial port information of the target server;
[0191] Correspondingly, the response module 301 may include:
[0192] The second acquisition module is used to acquire the serial port information of the target server in response to the data transmission command;
[0193] Correspondingly, the device also includes:
[0194] The first generation module is used to generate a serial port information log based on the serial port information after obtaining multiple data to be transmitted from the target server in response to a data transmission command.
[0195] The first storage module is used to store serial port information logs in the storage module of the target server;
[0196] The first display module is used to display serial port information on the display module of the target server.
[0197] Optionally, the data to be transmitted may also include the target server's operation logs;
[0198] Correspondingly, the response module 301 includes:
[0199] The second acquisition submodule is used to acquire the operation data of the target server within a preset time period;
[0200] The first generation submodule is used to generate operation logs based on operation data.
[0201] Optionally, the device further includes:
[0202] The second generation module is used to generate a data transmission instruction in response to user input on the display module before acquiring multiple data to be transmitted from the target server in response to the data transmission instruction; wherein the display module is a device installed on the target server.
[0203] Optionally, the multiple data to be transmitted include: test results of testing the target server;
[0204] Correspondingly, the response module 301 also includes:
[0205] The first display submodule is used to display the main interface in response to the main interface display command; the display module is set in the target server, and the main interface includes at least one sub-interface, and the sub-interface includes at least one task test interface.
[0206] The second display submodule is used to display the target test task interface on the display device in response to the selection operation of the target test task interface in the sub-interface; the target test task interface is an interface in at least one task test interface, the task test interface includes at least one task test control, each task test control has a corresponding task test, and each task test control displays the description information of the corresponding task test;
[0207] The third determination submodule is used to determine the target test task control from multiple task test controls that display corresponding description information based on the target description information of the target test task.
[0208] The second generation submodule is used to generate target test task instructions in response to the selection operation of the target test task control in the task test control;
[0209] The third acquisition submodule is used to respond to the target test task instruction, perform the target test task on the target server, and obtain the test results.
[0210] In summary, this embodiment determines the transmission order of data to be transmitted based on the degree of correlation with preset server faults. According to this determined transmission order, each piece of data is sent sequentially to the terminal device. This ensures that data with a high degree of correlation to preset server faults is sent first, guaranteeing timely acquisition of such data by the terminal device, while avoiding network congestion caused by simultaneous transmission of large amounts of data. Furthermore, transmitting data wirelessly avoids the communication failures that can occur with wired connections, compared to wired transmission methods in related technologies, thus ensuring data transmission security. Therefore, the method in this embodiment solves the problem of low data transmission reliability in related technologies when sending data from a target server to a terminal device.
[0211] Figure 7 This is a block diagram illustrating an electronic device 600. For example, electronic device 600 may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, etc.
[0212] Reference Figure 7 The electronic device 600 may include one or more of the following components: a processing component 602, a memory 604, a power supply component 606, a multimedia component 608, an audio component 610, an input / output (I / O) interface 612, a sensor component 614, and a communication component 616.
[0213] Processing component 602 typically controls the overall operation of electronic device 600, such as operations associated with display, telephone calls, data communication, camera operation, and recording operations. Processing component 602 may include one or more processors 620 to execute instructions to perform all or part of the steps of the methods described above. Furthermore, processing component 602 may include one or more modules to facilitate interaction between processing component 602 and other components. For example, processing component 602 may include a multimedia module to facilitate interaction between multimedia component 608 and processing component 602.
[0214] Memory 604 is used to store various types of data to support the operation of electronic device 600. Examples of such data include instructions for any application or method operating on electronic device 600, contact data, phonebook data, messages, pictures, multimedia, etc. Memory 604 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.
[0215] Power supply component 606 provides power to various components of electronic device 600. Power supply component 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to electronic device 600.
[0216] Multimedia component 608 includes a screen that provides an output interface between electronic device 600 and user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may not only sense the boundaries of touch or swipe actions but also detect the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 608 includes a front-facing camera and / or a rear-facing camera. When electronic device 600 is in an operating mode, such as shooting mode or multimedia mode, the front-facing camera and / or rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
[0217] Audio component 610 is used to output and / or input audio signals. For example, audio component 610 includes a microphone (MIC) used to receive external audio signals when electronic device 600 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 604 or transmitted via communication component 616. In some embodiments, audio component 610 also includes a speaker for outputting audio signals.
[0218] I / O interface 612 provides an interface between processing component 602 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.
[0219] Sensor assembly 614 includes one or more sensors for providing state assessments of various aspects of electronic device 600. For example, sensor assembly 614 may detect the on / off state of electronic device 600, the relative positioning of components such as the display and keypad of electronic device 600, changes in position of electronic device 600 or a component of electronic device 600, the presence or absence of user contact with electronic device 600, orientation or acceleration / deceleration of electronic device 600, and temperature changes of electronic device 600. Sensor assembly 614 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 614 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 614 may also include an accelerometer, gyroscope, magnetometer, pressure sensor, or temperature sensor.
[0220] Communication component 616 facilitates wired or wireless communication between electronic device 600 and other devices. Electronic device 600 can access wireless networks based on communication standards, such as WiFi, carrier networks (such as 2G, 3G, 4G, or 5G), or combinations thereof. In one exemplary embodiment, communication component 616 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 616 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0221] In an exemplary embodiment, the electronic device 600 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to implement a data processing method provided in the embodiments of this application.
[0222] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 604 including instructions, which can be executed by a processor 620 of an electronic device 600 to perform the above-described method. For example, the non-transitory storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.
[0223] Figure 8This is a block diagram of an electronic device 700 according to another embodiment of the present invention. For example, the electronic device 700 may be provided as a server. See also... Figure 8 The electronic device 700 includes a processing component 722, which further includes one or more processors, and memory resources represented by a memory 732 for storing instructions, such as application programs, that can be executed by the processing component 722. The application programs stored in the memory 732 may include one or more modules, each corresponding to a set of instructions. Furthermore, the processing component 722 is configured to execute instructions to perform a data processing method provided in embodiments of this application.
[0224] Electronic device 700 may also include a power supply component 726 configured to perform power management of electronic device 700, a wired or wireless network interface 750 configured to connect electronic device 700 to a network, and an input / output (I / O) interface 758. Electronic device 700 may operate on an operating system stored in memory 732, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, or similar.
[0225] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this application are indicated by the following claims.
[0226] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is limited only by the appended claims.
Claims
1. A data processing method, characterized in that, The method is applied to a target server, which is one of multiple servers to which data is to be transmitted, and all of the multiple servers are communicatively connected to a terminal device. The method includes: The target server responds to the data transmission command by acquiring multiple data items to be transmitted from the target server. The target server obtains the transmission priority of each piece of data to be transmitted, and the transmission priority of the data to be transmitted is determined based on the degree of correlation between the data to be transmitted and a preset server fault. The target server determines the transmission order of each piece of data to be transmitted based on the transmission priority of each piece of data to be transmitted; The target server transmits each piece of data to be transmitted to the terminal device in the specified transmission order via wireless transmission. The plurality of data to be transmitted includes: the serial port information of the target server; In response to a data transmission command, the target server acquires multiple data items to be transmitted, including: The target server responds to the data transmission command by obtaining the serial port information of the target server; After the target server receives multiple data items to be transmitted in response to a data transmission instruction, the method further includes: The target server generates a serial port information log based on the serial port information; The target server stores the serial port information log in the target server's storage module; The target server displays the serial port information on its display module.
2. The method according to claim 1, characterized in that, The plurality of data to be transmitted includes alarm data from the target server; In response to a data transmission command, the target server acquires multiple data items to be transmitted, including: The target server obtains the device information of the target server; The target server determines whether it has malfunctioned based on the device information. If the target server determines that a fault has occurred based on the device information, the target server generates alarm data. The alarm data has a higher transmission priority than other data to be transmitted among the plurality of data to be transmitted.
3. The method according to claim 1, characterized in that, The plurality of data to be transmitted also includes the server's operation log; In response to a data transmission command, the target server acquires multiple data items to be transmitted, including: The target server acquires the operation data of the target server within a preset time period; The target server generates an operation log based on the operation data.
4. The method according to claim 1, characterized in that, Before the target server responds to the data transmission instruction and acquires multiple data items to be transmitted from the target server, the method further includes: The data transmission instruction is generated in response to user input on the display module; The display module is a device installed on the target server.
5. The method according to claim 1, characterized in that, The plurality of data to be transmitted includes: test results of testing the target server; The target server, in response to a data transmission command, acquires multiple data items to be transmitted from the target server, and further includes: The target server responds to the main interface display command and displays the main interface in the display module; the display module is set in the target server, and the main interface includes at least one sub-interface, the sub-interface including at least one task test interface; In response to the selection operation of the target test task interface in the sub-interface, the target test task interface is displayed on the display device; the target test task interface is an interface in at least one task test interface, the task test interface includes at least one task test control, each task test control has a corresponding task test, and each task test control displays the description information of the corresponding task test; Based on the target description information of the target test task, the target test task control is determined from multiple task test controls that display corresponding description information; In response to the selection operation of the target test task control in the task test control, a target test task instruction is generated; In response to the target test task instruction, the target server is tested using the target test task, and the test results are obtained.
6. A data processing system, characterized in that, The processing system is located in the target server, and the data processing system includes an input module, a control module, a display module, a testing module, a storage module, and a wireless transmission module. The input module is used to control the target server to obtain input information and generate data transmission instructions; The control module is used to control the target server to respond to a data transmission command, acquire multiple data to be transmitted from the target server, determine the transmission order of each data to be transmitted according to the transmission priority of each data to be transmitted, and send each data to be transmitted sequentially to the terminal device according to the transmission order through the wireless transmission module; the multiple data to be transmitted includes at least one of the following: serial port information of the target server, configuration information of the target server, and test results of testing the target server; The display module is used to control the target server to display the target test task control and the configuration information sent by the control module; The testing module is used to control the target server to generate a target test task instruction in response to the selection operation of the target test task control, and to perform a target test task on the target server in response to the target test task instruction to obtain test results.
7. A data processing apparatus, characterized in that, The processing device is located on a target server, which is one of a plurality of servers to which data is to be transmitted. All of these servers are communicatively connected to a terminal device. The device includes: A response module is used to control the target server to respond to a data transmission command and acquire multiple data to be transmitted from the target server. The acquisition module is used to control the target server to acquire the transmission priority of each piece of data to be transmitted. The transmission priority of the data to be transmitted is determined based on the degree of correlation between the data to be transmitted and a preset server fault. The determination module is used to control the target server to determine the transmission order of each piece of data to be transmitted based on the transmission priority of each piece of data to be transmitted; The sending module is used to control the target server to send each piece of data to be transmitted to the terminal device in the order of transmission via wireless transmission; The data to be transmitted includes: serial port information of the target server; The response module includes: The second acquisition module is used to acquire the serial port information of the target server in response to the data transmission command; The device further includes: The first generation module is used to generate a serial port information log based on the serial port information after obtaining multiple data to be transmitted from the target server in response to a data transmission command. The first storage module is used to store serial port information logs in the storage module of the target server; The first display module is used to display serial port information on the display module of the target server.
8. An electronic device, characterized in that, It includes a processor and a memory, wherein the memory stores a program or instructions that can run on the processor, and the program or instructions, when executed by the processor, implement the steps of the method as described in any one of claims 1 to 5.
9. A readable storage medium, characterized in that, The readable storage medium stores a program or instructions that, when executed by a processor, implement the steps of the method as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Power fault detection method and system based on Internet of Things
CN112327100A
Server, communication method and system, and computer readable storage medium
CN112512027A
