Sensor scanning method and computer device

By optimizing the sensor scanning sequence through coprocessors or processor cores, the problem of excessive scanning tasks on the management controller is solved, improving the responsiveness and stability of computer equipment.

CN116089207BActive Publication Date: 2025-12-12XFUSION DIGITAL TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211627966.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-13
Publication Date
2025-12-12
Estimated Expiration
2042-12-13

AI Technical Summary

Technical Problem

As the number of sensors on computer devices increases, the scanning tasks of the management controller become overloaded, resulting in high occupancy and affecting the timely response to other tasks.

Method used

The target scanning order is determined by the coprocessor or processor core, and multiple sensors are scanned sequentially. The scanning order is optimized by using the depth-first algorithm and scanning path information, thereby reducing the number of target commands and reducing scanning time.

Benefits of technology

This effectively avoids excessive main processor utilization, ensuring that the management controller can respond to other tasks in a timely manner, and improving the operational stability and response speed of computer equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116089207B_ABST
    Figure CN116089207B_ABST
Patent Text Reader

Abstract

The application provides a sensor scanning method and a computer device, and relates to the technical field of computers. In the method, one designated core of a coprocessor or a plurality of cores of a processor sequentially scans a plurality of sensors based on a target scanning sequence of the plurality of sensors to obtain current monitoring information of the plurality of sensors. Based on this, when the number of the plurality of sensors is large, that is, the scanning task of the sensors is heavy, the plurality of sensors are scanned by the coprocessor or the plurality of sensors are scanned by one designated core of the plurality of cores of the processor, which can avoid the high occupancy rate of the main processor / processor, for example, avoid the time with the occupancy rate of 100% as normal, thereby helping to avoid affecting the response time of other tasks required to be processed by the management controller, and further helping to ensure that the other tasks required to be processed by the management controller can be responded in time.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the computer technical field, and particularly relates to a sensor scanning method and a computer device. BACKGROUND

[0002] With the increasing importance of the running stability of a computer device, more and more sensors for monitoring running state information are arranged on the computer device. In order to better ensure the running stability of the computer device, the management controller on the computer device usually randomly scans each sensor according to a preset period to obtain the monitoring information stored in each sensor.

[0003] However, with the increasing number of sensors, the scanning task of the management controller is getting heavier and heavier, and even causes the management controller to be in a high occupancy for a long time. In this way, the timely response of the management controller to other tasks is seriously affected. SUMMARY

[0004] Embodiments of the present application provide a sensor scanning method and a computer device, which help to ensure that the management controller responds to other tasks in time.

[0005] To achieve the above object, embodiments of the present application adopt the following technical solutions:

[0006] In a first aspect, a sensor scanning method is provided, which is used for a computer device, the computer device comprising a management controller and a plurality of sensors, the management controller and the plurality of sensors being connected; the management controller comprising a main processor and a coprocessor, or the management controller comprising a processor comprising a plurality of cores; the method being executed by the coprocessor or a specified core in the plurality of cores; the method comprising: determining a target scanning order of the plurality of sensors; and scanning the plurality of sensors based on the target scanning order to obtain monitoring information of the plurality of sensors.

[0007] In this scheme, the coprocessor or the specified core in the plurality of cores of the processor scans the plurality of sensors in turn based on the target scanning order of the plurality of sensors to obtain the current monitoring information of the plurality of sensors. Based on this, when the number of the plurality of sensors is large, that is, the scanning task of the sensors is heavy, the coprocessor scans the plurality of sensors, or the specified core in the plurality of cores of the processor scans the plurality of sensors. In this way, the occupancy rate of the main processor / processor can be prevented from being too high, for example, the time when the occupancy rate is 100% is normal, thereby helping to avoid affecting the response time of other tasks required to be processed by the management controller, and further helping to ensure that the other tasks required to be processed by the management controller can be responded in time.

[0008] In a possible implementation, the computer device further includes a plurality of channel switches, the management controller is connected with the plurality of sensors through the plurality of channel switches, each channel switch in the plurality of channel switches is configured to control the connection or disconnection between the management controller and a corresponding sensor; at least part of the plurality of sensors are connected with the management controller through the same channel switch; the total number of target commands corresponding to the target scanning sequence satisfies a preset condition; the total number of target commands corresponding to the target scanning sequence is the total number of target commands sent to the plurality of channel switches when the plurality of sensors are scanned based on the target scanning sequence; and the target command is configured to instruct a channel switch to switch state.

[0009] In this implementation, since the scanning orders of at least part of the plurality of sensors in different scanning sequences are different, the total number of target commands sent to the channel switches when the plurality of sensors are scanned based on at least part of the different scanning sequences is different, and the less the total number of target commands sent to the plurality of channel switches, the less the time required to scan the plurality of sensors. Therefore, by setting the scanning sequence with the total number satisfying the preset condition as the target scanning sequence, that is, setting the scanning sequence with the total number as the target scanning sequence, the total number of target commands sent when the plurality of sensors are scanned based on the target scanning sequence is less, which helps to reduce the scanning time when the plurality of sensors are scanned, thereby achieving the time required to scan the plurality of sensors in each execution period, and further achieving the latest monitoring information of each sensor, which helps to improve the response speed to the abnormal state monitored by the sensor, and further helps to improve the running stability of the computer device.

[0010] In another possible implementation, the method further includes: obtaining a plurality of scanning path information of the plurality of sensors; the plurality of sensors include a target sensor, and the scanning path information of the target sensor is configured to indicate a target channel switch between the management controller and the target sensor; and determining the target scanning sequence based on the depth-first algorithm and the plurality of scanning path information.

[0011] In this implementation, after the scanning path and the scanning depth of each sensor are determined based on the depth-first algorithm and the plurality of scanning path information of the plurality of sensors, for at least two sensors belonging to the same parent node (channel switch), the scanning order of each child node in the at least two child nodes is determined in the order from deep to shallow, and the target scanning sequence with the minimum total number of corresponding target commands can be directly obtained, which helps to quickly determine the target scanning sequence relative to determining a plurality of candidate scanning sequences and selecting the target scanning sequence from the plurality of candidate scanning sequences.

[0012] In another possible implementation, the target scanning order is determined based on the depth-first algorithm and the plurality of scanning path information, including: determining, based on the depth-first algorithm and the plurality of scanning path information, a sensor identifier corresponding to each ranking position in the target scanning order in sequence, to obtain the target scanning order.

[0013] In this implementation, a specific implementation of determining the target scanning order based on the depth-first algorithm is provided. In this implementation, the sensor identifier corresponding to each ranking position in the target scanning order is determined in sequence based on the depth-first algorithm and the plurality of scanning path information, so that the target scanning order is directly obtained, which helps to improve the accuracy of the sensor corresponding to each ranking position in the target scanning order.

[0014] In another possible implementation, the method further includes: obtaining a plurality of scanning path information of a plurality of sensors; the plurality of sensors includes a target sensor, and the scanning path information of the target sensor is used to indicate a target channel switch between the management controller and the target sensor; determining a plurality of candidate scanning orders of the plurality of sensors based on the scanning path information of the plurality of sensors; and determining the target scanning order from the plurality of candidate scanning orders based on a plurality of total quantities corresponding to the plurality of candidate scanning orders, wherein a total quantity corresponding to one candidate scanning order is a total quantity of target commands sent to the plurality of channel switches when the plurality of sensors are scanned based on the one candidate scanning order.

[0015] In this implementation, the plurality of candidate scanning orders is determined based on the plurality of scanning path information of the plurality of sensors, and then the target scanning order is determined from the plurality of candidate scanning orders based on the total quantity of target commands corresponding to each candidate scanning order in the plurality of candidate scanning orders. Since the total quantity of target commands corresponding to different candidate scanning orders is determined in this implementation, not only the candidate scanning order with the least total quantity of corresponding target commands can be determined as the target scanning order, but also other candidate scanning orders that meet the preset condition, such as the candidate scanning order with the total quantity of corresponding target commands less than or equal to the first preset threshold, can be determined as the target scanning order, which helps to improve the diversity of the target scanning order.

[0016] In another possible implementation, the method further includes: determining, based on the number of target channel switches and the scanning ranking of the target sensor in one candidate scanning order, the number of target commands required when the target sensor is scanned based on the one candidate scanning order; and determining, based on the number of target commands required when the target sensor is scanned, the total quantity of target commands sent to the plurality of channel switches when the plurality of sensors are scanned based on the one scanning order.

[0017] In the implementation, a specific implementation of determining the total number of target commands corresponding to a candidate scanning sequence is provided. In this way, the total number of target commands corresponding to the candidate scanning sequence is determined by determining the number of target commands required by each of the plurality of sensors when the plurality of sensors are scanned based on the candidate scanning sequence, which is simple and convenient, and helps to improve the accuracy and speed of determining the total number of target commands corresponding to the candidate scanning sequence.

[0018] In another possible implementation, the preset condition is met, including that the total number of target commands corresponding to the target scanning sequence is less than or equal to a first preset threshold.

[0019] In this implementation, the total number of target commands corresponding to the target scanning sequence is set to be less than or equal to the first preset threshold. In this way, by setting a reasonable first preset threshold, the total number of target commands corresponding to the determined target scanning sequence can be effectively controlled, which helps to reduce the time of scanning the plurality of sensors, and further helps to shorten the response time.

[0020] In addition, when the target scanning sequence is determined based on this way, on the one hand, since after one scanning sequence of the plurality of sensors is determined, whether the one scanning sequence can be used as the target scanning sequence can be determined according to the relationship between the total number of target commands corresponding to the one scanning sequence and the first preset threshold, that is, it is not necessary to compare the total number of target commands corresponding to the one scanning sequence with the total number of target commands corresponding to other scanning sequences, and therefore, it is not necessary to determine the total number of target commands corresponding to other scanning sequences, which helps to improve the speed of determining the target scanning sequence. On the other hand, since the scanning sequence corresponding to the total number of target commands less than or equal to the first preset threshold can be used as the target scanning sequence, the diversity of the target scanning sequence is improved.

[0021] In another possible implementation, the total number of target commands corresponding to the target scanning sequence is the smallest of a plurality of total numbers corresponding to a plurality of candidate scanning sequences; wherein the total number corresponding to one candidate scanning sequence is the total number of target commands sent to the plurality of channel switches when the plurality of sensors are scanned based on the one candidate scanning sequence.

[0022] In this implementation, the total number of target commands corresponding to the target scanning sequence is set to be the smallest of a plurality of total numbers corresponding to a plurality of candidate scanning sequences, which helps to minimize the time of scanning the plurality of sensors, and further helps to minimize the response time.

[0023] In another possible implementation, the plurality of sensors comprises a target sensor; when the method is performed by the coprocessor, the method further comprises: if the current monitoring information of the target sensor satisfies the alarm condition, the coprocessor sends the current monitoring information of the target sensor to the host processor; and the current monitoring information of the target sensor is used to instruct the host processor to perform the alarm operation.

[0024] In this implementation, when the coprocessor scans the plurality of sensors, if the current monitoring information of the target sensor satisfies the alarm condition, the coprocessor sends the current monitoring information of the target sensor to the host processor to instruct the host processor to perform the alarm operation. In this way, the scanning operation and the alarm operation are respectively performed by the two processors, which not only helps to ensure the execution efficiency of the scanning operation and the alarm operation, but also helps to reduce the task amount of the two processors and avoid the high occupancy rate of a single processor.

[0025] In another possible implementation, the current monitoring information of the target sensor satisfies the alarm condition, including: the current monitoring information of the target sensor is different from historical monitoring information of the target sensor; or a difference between the current monitoring information of the target sensor and a second preset threshold is greater than or equal to a preset value; or a difference between the current monitoring information of the target sensor and the historical monitoring information of the target sensor is greater than or equal to a preset value.

[0026] In a second aspect, a sensor scanning apparatus is provided, which comprises functional units for performing any of the methods provided in the first aspect, and each functional unit performs an action through hardware or by executing corresponding software through hardware. For example, the sensor scanning apparatus can comprise a processing unit and a scanning unit; the processing unit is configured to determine a target scanning sequence of a plurality of sensors; and the scanning unit is configured to scan the plurality of sensors based on the target scanning sequence to obtain monitoring information of the plurality of sensors.

[0027] In a third aspect, a computer device is provided, which comprises a management controller and a plurality of sensors, and the management controller is connected to the plurality of sensors; the management controller comprises a host processor and a coprocessor; and the coprocessor is configured to scan the plurality of sensors to obtain monitoring information of the plurality of sensors.

[0028] Optionally, the computer device further comprises a plurality of channel switches, the management controller is connected with the plurality of sensors through the plurality of channel switches, each channel switch in the plurality of channel switches is used to control the connection or disconnection between the management controller and a corresponding sensor; wherein at least part of the plurality of sensors are connected with the management controller through the same channel switch; the protocol processor is specifically used to scan the plurality of sensors based on the target scanning sequence; wherein the total number of target commands corresponding to the target scanning sequence satisfies a preset condition; wherein the total number of target commands corresponding to the target scanning sequence is the total number of target commands sent to the plurality of channel switches when the plurality of sensors are scanned based on the target scanning sequence; the target command is used to indicate the switching state of a channel switch.

[0029] Optionally, the coprocessor is further used to: obtain a plurality of scanning path information of the plurality of sensors; the plurality of sensors comprise a target sensor, the scanning path information of the target sensor is used to indicate a target channel switch between the management controller and the target sensor; determine the target scanning sequence based on the depth-first algorithm and the plurality of scanning path information.

[0030] Optionally, the target scanning sequence is determined based on the depth-first algorithm and the plurality of scanning path information, comprising: the sensor identifier corresponding to each ranking position in the target scanning sequence is determined in turn based on the depth-first algorithm and the plurality of scanning path information, to obtain the target scanning sequence.

[0031] Optionally, the coprocessor is further used to: obtain a plurality of scanning path information of the plurality of sensors; the plurality of sensors comprise a target sensor, the scanning path information of the target sensor is used to indicate a target channel switch between the management controller and the target sensor; determine a plurality of candidate scanning sequences of the plurality of sensors based on the scanning path information of the plurality of sensors; determine the target scanning sequence from the plurality of candidate scanning sequences based on a plurality of total numbers corresponding to the plurality of candidate scanning sequences; wherein the total number corresponding to one candidate scanning sequence is the total number of target commands sent to the plurality of channel switches when the plurality of sensors are scanned based on the one candidate scanning sequence.

[0032] Optionally, the coprocessor is further used to: determine the number of target commands required when the target sensor is scanned based on the one candidate scanning sequence based on the number of target channel switches and the scanning ranking of the target sensor in the one candidate scanning sequence; determine the total number of target commands sent to the plurality of channel switches when the plurality of sensors are scanned based on the one scanning sequence based on the number of target commands required when the target sensor is scanned.

[0033] Optionally, the preset condition is met, including: a total number of target commands corresponding to the target scan sequence is less than or equal to a first preset threshold; or the total number of target commands corresponding to the target scan sequence is the smallest in a plurality of total numbers corresponding to a plurality of candidate scan sequences; wherein the total number corresponding to one candidate scan sequence is a total number of target commands sent to the plurality of channel switches when the plurality of sensors are scanned based on the one candidate scan sequence.

[0034] Optionally, the plurality of sensors include a target sensor; and the coprocessor is further configured to: if the current monitoring information of the target sensor meets an alarm condition, send the current monitoring information of the target sensor to the host processor; and the current monitoring information of the target sensor is used to instruct the host processor to perform an alarm operation.

[0035] Optionally, the current monitoring information of the target sensor meets the alarm condition, including: the current monitoring information of the target sensor is different from historical monitoring information of the target sensor; or a difference between the current monitoring information of the target sensor and a second preset threshold is greater than or equal to a preset value; or a difference between the current monitoring information of the target sensor and the historical monitoring information of the target sensor is greater than or equal to a preset value.

[0036] In a fourth aspect, a computer device is provided, including: a management controller and a plurality of sensors, the management controller and the plurality of sensors being connected; the management controller including a processor, the processor including a plurality of cores; one designated core of the plurality of cores of the processor being configured to scan the plurality of sensors to obtain monitoring information of the plurality of sensors.

[0037] Optionally, the computer device further includes a plurality of channel switches, the management controller and the plurality of sensors being connected through the plurality of channel switches, each channel switch of the plurality of channel switches being configured to control communication or disconnection between the management controller and a corresponding sensor; wherein at least part of the plurality of sensors are connected to the management controller through the same channel switch; and one designated core of the plurality of cores of the processor is specifically configured to scan the plurality of sensors based on a target scan sequence; wherein a total number of target commands corresponding to the target scan sequence meets a preset condition; wherein the total number of target commands corresponding to the target scan sequence is a total number of target commands sent to the plurality of channel switches when the plurality of sensors are scanned based on the target scan sequence; and the target command is used to instruct one channel switch to switch a state.

[0038] Optionally, one designated core of the plurality of cores of the processor is further configured to: obtain a plurality of scan path information of the plurality of sensors; the plurality of sensors include a target sensor, and the scan path information of the target sensor is used to indicate a target channel switch between the management controller and the target sensor; and determine the target scan sequence based on a depth-first algorithm and the plurality of scan path information.

[0039] Optionally, the target scanning order is determined based on the depth-first algorithm and the plurality of scanning path information, including: based on the depth-first algorithm and the plurality of scanning path information, determining the sensor identifier corresponding to each ranking position in the target scanning order in sequence to obtain the target scanning order.

[0040] Optionally, one of the plurality of kernels of the processor is further configured to: obtain a plurality of scanning path information of the plurality of sensors; the plurality of sensors include the target sensor, and the scanning path information of the target sensor is used to indicate the target channel switch between the management controller and the target sensor; determine a plurality of candidate scanning orders of the plurality of sensors based on the scanning path information of the plurality of sensors; and determine the target scanning order from the plurality of candidate scanning orders based on a plurality of total quantities corresponding to the plurality of candidate scanning orders; wherein the total quantity corresponding to one of the candidate scanning orders is the total quantity of target commands sent to the plurality of channel switches when the plurality of sensors are scanned based on the one of the candidate scanning orders.

[0041] Optionally, one of the plurality of kernels of the processor is further configured to: determine the quantity of target commands required when the target sensor is scanned based on the one of the candidate scanning orders based on the quantity of target channel switches and the scanning ranking of the target sensor in the one of the candidate scanning orders; and determine the total quantity of target commands sent to the plurality of channel switches when the plurality of sensors are scanned based on the one of the scanning orders based on the quantity of target commands required when the target sensor is scanned.

[0042] Optionally, the preset condition is satisfied, including: the total quantity of target commands corresponding to the target scanning order is less than or equal to a first preset threshold; or the total quantity of target commands corresponding to the target scanning order is the smallest in the plurality of total quantities corresponding to the plurality of candidate scanning orders; wherein the total quantity corresponding to one of the candidate scanning orders is the total quantity of target commands sent to the plurality of channel switches when the plurality of sensors are scanned based on the one of the candidate scanning orders.

[0043] In a fifth aspect, a computer device is provided, including: a processor and a memory, the processor being connected with the memory. The memory is configured to store computer execution instructions, and the processor is configured to execute the computer execution instructions stored in the memory, thereby implementing any one of the methods provided in the first aspect.

[0044] In a sixth aspect, a chip is provided, including: a processor and an interface circuit; the interface circuit is configured to receive code instructions and transmit the code instructions to the processor; the processor is configured to run the code instructions to execute any one of the methods provided in the first aspect.

[0045] In a seventh aspect, a computer readable storage medium is provided, which stores computer execution instructions, when the computer execution instructions are run on a computer, the computer is caused to execute any one of the methods provided in the first aspect.

[0046] In an eighth aspect, a computer program product is provided, including computer execution instructions, when the computer execution instructions are run on a computer, causing the computer to execute any one of the methods provided in the first aspect.

[0047] The technical effects brought by the implementation manners of the second aspect to the eighth aspect can refer to the technical effects brought by the implementation manners of the first aspect, which will not be described here. BRIEF DESCRIPTION OF DRAWINGS

[0048] Figure 1 An architecture diagram of a computer device provided by an embodiment of the present application is provided.

[0049] Figure 2 A distribution diagram of a sensor provided by an embodiment of the present application is provided.

[0050] Figure 3 A structure diagram of a management controller provided by an embodiment of the present application is provided.

[0051] Figure 4 A flowchart of a sensor scanning method provided by an embodiment of the present application is provided.

[0052] Figure 5 A flowchart of another sensor scanning method provided by an embodiment of the present application is provided.

[0053] Figure 6 A flowchart of another sensor scanning method provided by an embodiment of the present application is provided.

[0054] Figure 7 A schematic diagram of a sensor scanning device provided by an embodiment of the present application is provided. DETAILED DESCRIPTION

[0055] The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.

[0056] In the description of the present application, unless otherwise specified, “ / ” represents a “or” relationship between the objects before and after the “ / ”, for example, A / B can represent A or B; “and / or” in the present application is only a description of the association relationship between the associated objects, which means that there can be three relationships, for example, A and / or B, which can represent three cases: A exists alone, A and B exist together, and B exists alone, where A and B can be singular or plural.

[0057] Also, in the description of the application, unless otherwise specified, "multiple" refers to two or more than two. "At least one of the following" or the like refers to any combination of the items, including any combination of single or multiple items. For example, at least one of a, b, or c can represent: a, b, c, a-b, a-c, b-c, or a-b-c, where a, b, c can be single or multiple.

[0058] In addition, in order to facilitate the clear description of the technical solutions of the embodiments of the application, in the embodiments of the application, "first", "second" and the like are used to distinguish the same or similar items with basically the same function and role. The skilled in the art can understand that "first", "second" and the like do not limit the quantity and execution order, and "first", "second" and the like do not necessarily mean different. At the same time, in the embodiments of the application, "exemplary" or "for example" means example, illustration or description. Any embodiment or design scheme described as "exemplary" or "for example" in the embodiments of the application should not be interpreted as more preferred or more advantageous than other embodiments or design schemes. Rather, "exemplary" or "for example" is used to present the relevant concept in a specific way, for understanding.

[0059] First, the application scenario of the embodiments of the application is exemplarily introduced.

[0060] With the increasing importance of the running stability of computer equipment, more and more sensors for monitoring running state information are used on computer equipment. In order to better ensure the running stability of computer equipment, the management controller on the computer equipment usually randomly scans each sensor according to a preset period to obtain the monitoring information stored in each sensor.

[0061] However, since the scanning of each sensor takes time, as the number of sensors increases, the scanning task of the management controller becomes heavier and even causes the management controller to be in a high occupancy for a long time. In this way, the timely response of the management controller to other tasks other than the scanning task is seriously affected.

[0062] In view of this, embodiments of this application provide a sensor scanning method in which a coprocessor or a designated core from multiple cores of the processor sequentially scans multiple sensors based on the target scanning order to obtain the current monitoring information of the multiple sensors. Based on this, when the number of sensors is large, i.e., when the sensor scanning task is too heavy, the coprocessor scans multiple sensors, or a designated core from multiple cores of the processor scans multiple sensors. This avoids excessive occupancy of the main processor / processor, for example, avoiding a 100% occupancy rate as the norm, thereby helping to avoid affecting the response time of other tasks that the management controller needs to process, and thus helping to ensure that other tasks that the management controller needs to process can respond in a timely manner.

[0063] Secondly, the network architecture of the embodiments of this application will be described by way of example.

[0064] like Figure 1 The diagram shown is an architecture diagram of a computer device. This computer device may include a motherboard, a management controller, and multiple sensors. The management controller is connected to the multiple sensors.

[0065] The computer equipment, management controller, and multiple sensors described below are provided as examples.

[0066] Computer equipment can specifically refer to terminal devices or network devices. Terminal devices can be referred to as: terminals, user equipment (UE), access terminals, user units, user stations, mobile stations, remote stations, remote terminals, mobile devices, user terminals, wireless communication equipment, user agents, or user devices, etc. Specifically, terminal devices can be augmented reality (AR) devices, virtual reality (VR) devices, tablets, laptops, ultra-mobile personal computers (UMPCs), netbooks, personal digital assistants (PDAs), etc. Network devices can specifically refer to servers, etc. A server can be a single physical or logical server, or two or more physical or logical servers that share different responsibilities and work together to achieve the various functions of the server.

[0067] It should be noted that the specific form of the computer device in the embodiments of this application is not limited; the above is merely an illustrative example. In the following embodiments, only the computer device as a server is used as an example for description.

[0068] The management controller is completely independent of the central processor of the computer device, can communicate with the central processor through an out-of-band management interface of the computer device, and can perform remote maintenance and management on the computer device through a dedicated data channel.

[0069] In some embodiments, the management controller is connected to the mainboard through a slot on the mainboard. In other embodiments, the management controller is integrated on the mainboard.

[0070] In the embodiments of the present application, the management controller is mainly used to determine a target scanning sequence, scan the plurality of sensors based on the target scanning sequence, and perform an alarm operation when the current monitoring information of the target sensor meets an alarm condition.

[0071] For example, the management controller can be a monitoring management unit outside the computer device, a management system in a management chip outside the processor, a baseboard management controller (BMC), or a system management module (SMM). It should be noted that the specific form of the management controller is not limited in the embodiments of the present application, and the above is only an example. In the following embodiments, only the management controller as the BMC is taken as an example for description.

[0072] It should be noted that different computer devices have different names for the BMC, for example, some computer devices are called BMC, some computer devices are called iLO, and another computer device is called iDRAC. Whether it is called BMC, iLO or iDRAC, it can be understood as the BMC in the embodiments of the present application.

[0073] The plurality of sensors are used to monitor a plurality of state information in the running process of the computer device, such as whether the power is in place, whether the fan is started, the temperature of the air inlet, the temperature of the hard disk, the temperature of the central processor, etc. Specifically, the state information is collected and the collected state information is stored.

[0074] Among them, different sensors are used to monitor different state information, that is, the sensors correspond one by one to the state information.

[0075] In some embodiments, a part of the plurality of sensors can be arranged on the mainboard, and another part of the plurality of sensors can be arranged on components connected to the mainboard, such as backplanes, network cards, hard disks, graphics cards, etc.

[0076] As shown in FIG. 1, it is a distribution diagram of the plurality of sensors on the computer device shown in FIG. 1. Figure 2 Figure 1 As shown in FIG. 1, it is a distribution diagram of the plurality of sensors on the computer device shown in FIG. 1.

[0077] ​Optionally, the computer device may also include multiple channel switches.

[0078] The management controller is connected to multiple sensors through multiple channel switches. Each channel switch is used to control the connection or disconnection between the corresponding sensor and the management controller.

[0079] For example, taking channel switch 1, channel switch 2, and channel switch 3 as examples, the use of each of the multiple channel switches to control the connection or disconnection between the corresponding sensor and the management controller is illustrated.

[0080] Channel switch 1 is used to control the connection or disconnection between the management controller and sensors 1, 2, 3, 4, and 5. Channel switch 2 is used to control the connection or disconnection between the management controller and sensors 1 and 2. Channel switch 3 is used to control the connection or disconnection between the management controller and sensors 4 and 5.

[0081] Based on the above, the corresponding sensors can be considered as the sensors corresponding to the channel switches. Among them, the sensors corresponding to the channel switches can be considered as sensors directly connected to the channel switches (such as sensor 3) and sensors indirectly connected to the channel switches (such as sensor 1, sensor 2, sensor 4, and sensor 5).

[0082] Optionally, at least some of the multiple sensors are connected to the management controller via the same channel switch.

[0083] In some embodiments, at least some of the sensors are connected to the management controller via multiple identical channel switches.

[0084] like Figure 2 As shown, the management controller shares channel switches 0 and 1 with sensors 1, 2, 3, 4, and 5. That is, sensors 1, 2, 3, 4, and 5 are all connected to the management controller via channel switches 0 and 1. The management controller also shares channel switches 0, 1, and 2 with sensors 1 and 2. Finally, the management controller shares channel switches 0, 1, and 3 with sensors 4 and 5.

[0085] In other embodiments, at least some of the sensors are connected to the management controller via a common channel switch.

[0086] Optionally, the management controller and different sensors can be connected through different channel switches. Optionally, any two components are connected through a bus. The components include the management controller, the channel switch and the sensor.

[0087] Optionally, any two components are connected through a bus. The components include the management controller, the channel switch and the sensor.

[0088] The bus can be an inter integrated circuit (I2C) bus, or can also be a serial general purpose input output (SGPIO) bus. It should be noted that the embodiments of the present application do not limit the type of the bus.

[0089] The channel switch can be any component capable of controlling the connection or disconnection of the bus between the channel switch and the corresponding component, such as a bus controller, and the embodiments of the present application do not limit this. In addition, the corresponding component refers to the component connected to the output end of the channel switch.

[0090] Hereinafter, taking a plurality of sensors including sensor 1, sensor 2, sensor 3, sensor 4 and sensor 5, and a plurality of channel switches including channel switch 0, channel switch 1, channel switch 2 and channel switch 3 as examples, the connection relationship between the management controller, the channel switch and the sensor is exemplarily described.

[0091] The management controller and the sensor 1 are provided with the channel switch 0, the switch 1 and the channel switch 2. The management controller and the sensor 2 are provided with the channel switch 0, the switch 1 and the channel switch 2. The management controller and the sensor 3 are provided with the channel switch 0 and the channel switch 1. The management controller and the sensor 4 are provided with the channel switch 0, the channel switch 1 and the channel switch 3. The management controller and the sensor 5 are provided with the channel switch 0, the channel switch 1 and the channel switch 3.

[0092] As can be seen from the above, the same channel switches between the management controller and the sensor 1, the sensor 2, the sensor 3, the sensor 4 and the sensor 5 include the channel switch 0 and the channel switch 1. The same channel switches between the management controller and the sensor 1 and the sensor 2 include the channel switch 0, the switch 1 and the channel switch 2. The same channel switches between the management controller and the sensor 4 and the sensor 6 include the channel switch 0, the switch 1 and the channel switch 3.

[0093] The channel switch 0 is used to control the connection or disconnection between the management controller and the sensor 1, the sensor 2, the sensor 3, the sensor 4 and the sensor 5. The channel switch 1 is used to control the connection or disconnection between the management controller and the sensor 1, the sensor 2, the sensor 3, the sensor 4 and the sensor 5. The channel switch 2 is used to control the connection or disconnection between the management controller and the sensor 1 and the sensor 2. The channel switch 3 is used to control the connection or disconnection between the management controller and the sensor 4 and the sensor 5.

[0094] Specifically, the channel switch 0 can control the connection or disconnection between the components connected to any one of the bus 00, the bus 01, …, the bus 0n and the channel switch 0. For example, the channel switch 0 can control the connection or disconnection between the channel switch 1 connected to the bus 00 and the channel switch 0.

[0095] It should be noted that for a plurality of buses connected to one channel switch, the one channel switch can only control the connection or disconnection between the components connected to one bus and the one channel switch.

[0096] For example, at present, the channel switch 2 and the sensor 1 connected to the bus 20 are in the connected state, and the channel switch 2 and the sensor 2 connected to the bus 21 are in the disconnected state. If it is needed to switch the channel switch 2 and the sensor 2 connected to the bus 21 to the connected state, it is needed to first send a target command 1 to the channel switch 2 to switch the channel switch 2 and the sensor 1 connected to the bus 20 to the disconnected state, and then send a target command 2 to the channel switch 2 to switch the channel switch 2 and the sensor 2 connected to the bus 21 to the connected state.

[0097] It should be noted that if the channel switch 0 and the channel switch 1 are connected, it can be considered that the bus 00 connecting the channel switch 0 and the channel switch 1 is also connected. If the channel switch 0 and the channel switch 1 are disconnected, it can be considered that the bus 00 connecting the channel switch 0 and the channel switch 1 is also disconnected. Conversely, if the bus 00 connecting the channel switch 0 and the channel switch 1 is in the connected state, it can be considered that the channel switch 0 and the channel switch 1 are connected in the connected state.

[0098] The channel switch 1 can control the connection or disconnection between the components connected to any one of the bus 10, the bus 11, the bus 12, …, the bus 1n and the channel switch 1. For example, the channel switch 1 can control the connection or disconnection between the channel switch 2 connected to the bus 10 and the channel switch 1, control the connection or disconnection between the sensor 3 connected to the bus 11 and the channel switch 1, and control the connection or disconnection between the channel switch 3 connected to the bus 12 and the channel switch 1.

[0099] The channel switch 2 can control the communication or disconnection between the components connected to any one of the bus 20 and the bus 21 and the channel switch 2. For example, the channel switch 2 can control the communication or disconnection between the sensor 1 connected to the bus 20 and the channel switch 2, and the communication or disconnection between the sensor 2 connected to the bus 21 and the channel switch 2.

[0100] The channel switch 3 can control the communication or disconnection between the components connected to any one of the bus 30 and the bus 31 and the channel switch 3. For example, the channel switch 3 can control the communication or disconnection between the sensor 4 connected to the bus 30 and the channel switch 3, and the communication or disconnection between the sensor 5 connected to the bus 31 and the channel switch 3.

[0101] It can be understood that if the communication state exists between two components, the communication can be performed between the two components. For example, if the communication state exists between the management controller and the sensor 1, the communication can be performed between the management controller and the sensor, such as transmitting a target command, transmitting a command, and the like.

[0102] It can be understood that if the communication state exists between two components, the communication state exists between any adjacent components. For example, if the communication state exists between the management controller and the sensor 1, the communication state exists between the management controller and the channel switch 0, the channel switch 0 and the channel switch 1, the channel switch 1 and the channel switch 2, and the channel switch 2 and the sensor 1.

[0103] As shown in FIG. 1, the management controller is connected to the sensor 1 through the channel switch 0, the channel switch 1, and the channel switch 2. Figure 3 As shown in FIG. 2, the management controller is connected to the sensor 4 through the channel switch 0, the channel switch 1, the channel switch 2, and the channel switch 3. Figure 1 As shown in FIG. 3, the structure of the management controller is shown.

[0104] Optionally, the management controller includes a main processor, a coprocessor, a memory, and a connection port. The main processor is connected to the coprocessor, and the main processor and the coprocessor are respectively connected to the memory and the connection port. The main processor and the coprocessor are also in communication connection.

[0105] It should be noted that the memory is a non-volatile storage medium. In addition, the type of the non-volatile storage medium is not limited in the embodiments of the present application, for example, it can be a non-volatile storage medium such as a flash memory.

[0106] The main processor is mainly used to execute most of the tasks required to be executed by the management controller.

[0107] The coprocessor is mainly used to execute a small part of the tasks required to be executed by the management controller.

[0108] The memory is mainly used to store the firmware program of the management controller, the monitoring information obtained by scanning the sensor, and the like.

[0109] The connection port is mainly used to connect to the bus so that the main processor and coprocessor can send commands, such as target commands and scan commands, and acquire monitoring information from the sensors.

[0110] Optionally, the coprocessor includes an orchestration scanning module and a message notification module. The main processor includes an alarm processing module. The firmware programs for the orchestration scanning module, message notification module, and alarm processing module are stored in memory.

[0111] The scanning arrangement module can be used to determine the target scanning order, as detailed in Part 3 of the following embodiments. Furthermore, it can also be used to sequentially scan multiple sensors based on the target scanning order, as detailed in Part 1 of the following embodiments.

[0112] The message notification module can be used to send the current monitoring information of the target sensor to the alarm processing module when the current monitoring information of the target sensor meets the alarm conditions, so as to instruct the alarm processing module to perform an alarm operation. See the first part of the following embodiment for details.

[0113] The alarm processing module can be used to execute the target alarm operation corresponding to the target sensor when it receives the current monitoring information of the target sensor sent by the notification module, as detailed in the first part of the following embodiment.

[0114] Optionally, the management controller may include a processor, which includes multiple cores.

[0115] In some embodiments, the management controller may include a main processor and a coprocessor, wherein the plurality of cores mentioned above refers to the plurality of cores included in the main processor.

[0116] In other embodiments, the management controller includes only one processor, and the aforementioned multiple cores refer to the multiple cores included in that single processor.

[0117] It should be noted that the system architecture and application scenarios described in the embodiments of this application are for the purpose of more clearly illustrating the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions provided in the embodiments of this application. As those skilled in the art will know, with the evolution of system architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of this application are also applicable to similar technical problems.

[0118] For ease of understanding, the sensor scanning method provided in this application is described below with reference to the accompanying drawings. This method is applicable to... Figures 1-3 The computer equipment shown.

[0119] The following embodiments of this application will be divided into three parts to exemplarily describe the sensor scanning method.

[0120] The first part, in combination Figure 4 introduces the process that the coprocessor scans the plurality of sensors in turn based on the target scanning order.

[0121] The second part, in combination Figure 5 introduces the process that one designated core in the plurality of cores of the processor scans the plurality of sensors in turn based on the target scanning order.

[0122] The third part, in combination Figure 6 introduces a determination process of the target scanning order in the first part and / or the second part.

[0123] Figure 4 is a flow chart of a sensor scanning method according to an exemplary embodiment. The method comprises the following S401-S404.

[0124] As shown above, the management controller comprises a main processor and a coprocessor. Optionally, S401-S404 are executed by the coprocessor.

[0125] S401: The coprocessor determines a target scanning order of the plurality of sensors.

[0126] In some embodiments, the coprocessor executes the scanning task of the plurality of sensors according to a preset period, and at the beginning of each execution period, the coprocessor determines the target scanning order to be used for scanning the plurality of sensors.

[0127] It should be noted that the present embodiment does not limit the specific duration of the preset period, which can be determined according to actual conditions, for example, can be determined according to the time required to scan all sensors.

[0128] For how to determine the target scanning order, there are various implementation manners, and the following will be exemplarily described by way of manner one to manner three.

[0129] Manner one, the target scanning order is pre-stored in the memory of the management controller, and the coprocessor determines the target scanning order from the memory.

[0130] Wherein, the total number of target commands corresponding to the target scanning order satisfies a preset condition. The total number of target commands corresponding to the target scanning order is the total number of target commands sent to the plurality of channel switches when scanning the plurality of sensors based on the target scanning order. The target command is used to instruct a channel switch to switch state.

[0131] It should be noted that the determination process of the target scanning order in manner one is described with reference to the embodiment shown in Figure 6 , which will not be described here in detail.

[0132] In the above manner one, since the scanning orders of at least part of the plurality of sensors in different scanning orders are different, when the plurality of sensors are scanned based on at least partially different scanning orders, the total number of target commands sent to the channel switch is different, and the less the total number of target commands sent to the plurality of switch channels, the less the time required to scan the plurality of sensors. Therefore, by setting the scanning order with the total number satisfying the preset condition as the target scanning order, that is, setting the scanning order with the total number as the target scanning order, the total number of target commands sent when the plurality of sensors are scanned based on the target scanning order is less, which helps to reduce the scanning time used when the plurality of sensors are scanned, thereby realizing the shortening of the time required to scan the plurality of sensors in each execution period, and further realizing the fast acquisition of the latest monitoring information of each sensor, which helps to improve the response speed to the abnormal state monitored by the sensor, and further helps to improve the running stability of the computer device.

[0133] In manner two, the coprocessor randomly generates a scanning order, and the randomly generated scanning order is the target scanning order.

[0134] In some embodiments, in each execution period, the coprocessor first randomly generates a scanning order (i.e., the target scanning order), and then executes S402 based on the randomly generated scanning order.

[0135] In other embodiments, in each execution period, the coprocessor determines the target scanning order in the process of scanning the plurality of sensors, in other words, the coprocessor determines the identities of the sensors at different ordering positions in the target scanning order while scanning the sensors. For example, the coprocessor first randomly determines the identity of the sensor at the first ordering position in the target scanning order, and then scans the sensor at the first ordering position. Alternatively, the coprocessor first randomly determines the identities of the sensors at the first and second ordering positions in the target scanning order, and then scans the sensors at the first and second ordering positions.

[0136] In the above manner two, the coprocessor randomly generates a scanning order and takes it as the target scanning order, and compared with the target scanning order corresponding to the total number of target commands satisfying the preset condition, the processing logic is simpler, which helps to simplify the task amount of the coprocessor. In addition, it also helps to reduce the storage space occupancy of the memory.

[0137] In manner three, the memory of the management controller pre-stores a scanning order, the scanning order is a scanning order randomly generated by the coprocessor, and the coprocessor determines the randomly generated scanning order from the memory as the target scanning order.

[0138] In some embodiments, the coprocessor randomly generates a scanning sequence based on the plurality of sensors to be scanned, and stores the randomly generated scanning sequence in the memory.

[0139] In the third manner, by storing the randomly generated target scanning sequence in the memory, the coprocessor does not need to generate the target scanning sequence in each execution cycle, which can shorten the time required in each execution cycle, improve the response speed to the abnormal state monitored by the sensors, and further help improve the running stability of the computer device.

[0140] S402: The coprocessor scans the plurality of sensors based on the target scanning sequence to obtain monitoring information of the plurality of sensors.

[0141] It should be noted that the execution order of S401 and S402 in the embodiments of the present application is not limited. For example, S401 can be executed first, and then S402 can be executed. Alternatively, S401 and S402 can be executed simultaneously.

[0142] When S401 and S402 are executed simultaneously, the coprocessor can first determine the identifiers of the sensors in a part of the sorting positions in the target scanning sequence, and then scan the sensors in the part of the sorting positions. On this basis, the coprocessor can determine the identifiers of the sensors in another part of the sorting positions during the scanning of the sensors in the part of the sorting positions, or can determine the identifiers of the sensors in another part of the sorting positions after the scanning of the sensors in the part of the sorting positions.

[0143] Hereinafter, the scanning process of S402 will be exemplarily described with reference to the plurality of sensors shown in FIG. 1. Figure 2

[0144] In some embodiments, the target scanning sequence is sensor 1, sensor 2, sensor 3, sensor 4, and sensor 5. Based on this, the main processor scans sensor 1, sensor 2, sensor 3, sensor 4, and sensor 5 in turn.

[0145] Hereinafter, the case where all the buses between the main processor and the plurality of sensors are in a disconnected state at the beginning of the execution cycle will be described.

[0146] It should be noted that if part of the buses between the main processor and the plurality of sensors are in a connected state at the beginning of the execution cycle, and the part of the buses need to be in a disconnected state when scanning the sensor in the first sorting position, the buses in the connected state need to be switched to the disconnected state first, and then the scanning of the sensor in the first sorting position can be performed.

[0147] ​For example, in the above target scanning sequence, the sensor ranked first is sensor 1, if bus 00, bus 12 and bus 31 are in the connected state, before scanning sensor 1, bus 12 and bus 31 need to be disconnected.

[0148] When scanning sensor 1, the main processor sends the following commands in sequence: send an opening command to channel switch 0 to control the connection between channel switch 0 and channel switch 1; send an opening command to channel switch 1 to control the connection between channel switch 1 and channel switch; send an opening command to channel switch 2 to control the connection between channel switch 2 and sensor 1; and send a scanning command to sensor 1. The scanning command is used to request to obtain the monitoring information stored in the sensor. It should be noted that the monitoring information stored in the sensor is the latest monitoring information obtained by the sensor.

[0149] When scanning sensor 2, since the connection between channel switch 2 and sensor 1 is in the connected state, the main processor sends the following commands in sequence: send a closing command to channel switch 2 to control the disconnection between channel switch 2 and sensor 1; send an opening command to channel switch 2 to control the connection between channel switch 2 and sensor 2; and send a scanning command to sensor 2.

[0150] When scanning sensor 3, the main processor sends the following commands in sequence: send a closing command to channel switch 2 to control the disconnection between channel switch 2 and sensor 2; send a closing command to channel switch 1 to control the disconnection between channel switch 1 and channel switch 2; send an opening command to channel switch 1 to control the connection between channel switch 1 and sensor 3; and send a scanning command to sensor 3.

[0151] When scanning sensor 4, the main processor sends the following commands in sequence: send a closing command to channel switch 1 to control the disconnection between channel switch 1 and sensor 3; send an opening command to channel switch 1 to control the connection between channel switch 1 and channel switch 3; send an opening command to channel switch 3 to control the connection between channel switch 3 and sensor 4; and send a scanning command to sensor 4.

[0152] When scanning sensor 5, the main processor sends the following commands in sequence: send a closing command to channel switch 3 to control the disconnection between channel switch 3 and sensor 4; send an opening command to channel switch 3 to control the connection between channel switch 3 and sensor 5; and send a scanning command to sensor 5.

[0153] Optionally, after the scanning task of the plurality of sensors is executed, the main processor updates each bus between the management controller and the plurality of sensors to the disconnected state. In this way, in the next execution cycle, the main processor does not have to send a close command to control the bus that is not disconnected in the last execution cycle, and can directly send an open command to control the bus connection between the main processor and the sensor ranked first.

[0154] Based on this, after scanning the sensor 5, the main processor can also send the following commands: send a close command to the channel switch 3 to control the disconnection between the channel switch 3 and the sensor 5, that is, control the bus 31 to be in the disconnected state; send a close command to the channel switch 1 to control the disconnection between the channel switch 1 and the channel switch 3, that is, control the bus 12 to be in the disconnected state; send a close command to the channel switch 0 to control the disconnection between the channel switch 0 and the channel switch 1, that is, control the bus 00 to be in the disconnected state.

[0155] Optionally, S403: If the current monitoring information of the target sensor meets the alarm condition, the coprocessor sends the current monitoring information of the target sensor to the main processor.

[0156] The current monitoring information of the target sensor is used to instruct the main processor to perform an alarm operation.

[0157] There are various implementation manners for how to determine whether the current monitoring information of the target sensor meets the alarm condition. The following is an exemplary description by way of a to c.

[0158] a: If the current monitoring information of the target sensor is different from the historical monitoring information of the target sensor, the current monitoring information of the target sensor meets the alarm condition.

[0159] The historical monitoring information of the target sensor can be the last monitoring information of the current monitoring information. Alternatively, it can also be any one monitoring information before the current monitoring information.

[0160] In some embodiments, the memory of the management controller pre-stores the historical monitoring information of each sensor in the plurality of sensors. After the coprocessor obtains the current monitoring information of the target sensor, it compares whether the current monitoring information of the target sensor and the historical monitoring information are the same. If the current monitoring information of the target sensor is different from the historical monitoring information of the target sensor, the current monitoring information of the target sensor meets the alarm condition, and the coprocessor sends the current monitoring information of the target sensor to the main processor.

[0161] In one example, the target sensor is configured to monitor whether a hard disk is in place. If the monitoring information is 0, it indicates that the hard disk is in place. If the monitoring information is 1, it indicates that the hard disk is not in place. Based on this, if the historical monitoring information of the target sensor is 0 and the current monitoring information of the target sensor is 1, the current monitoring information of the target sensor is different from the historical monitoring information of the target sensor. At this time, the current monitoring information of the target sensor meets the alarm condition, and the coprocessor sends the current monitoring information of the target sensor to the host processor.

[0162] In another example, the target sensor is configured to monitor the temperature of a CPU. If the historical monitoring information indicates that the temperature of the CPU is 35 degrees and the current monitoring information indicates that the temperature of the CPU is 38 degrees, the current monitoring information of the target sensor is different from the historical monitoring information of the target sensor. At this time, the current monitoring information of the target sensor meets the alarm condition, and the coprocessor sends the current monitoring information of the target sensor to the host processor.

[0163] In the above manner a, whether the current monitoring information of the target sensor meets the alarm condition is determined by whether the current monitoring information of the target sensor is the same as the historical monitoring information of the target sensor. In this way, the alarm operation can be performed immediately when the state of the monitored component changes, which helps to improve the safety of the component.

[0164] Manner b: if the difference between the current monitoring information of the target sensor and the second preset threshold is greater than or equal to a preset value, the current monitoring information of the target sensor meets the alarm condition.

[0165] Optionally, the sensors and the second preset thresholds correspond to each other, that is, different sensors correspond to different second preset thresholds. The sensors and the preset values correspond to each other, that is, different sensors correspond to different preset values.

[0166] In some embodiments, the management controller has stored in the memory thereof a first correspondence relationship between the sensors and the second preset thresholds, and a second correspondence relationship between the sensors and the preset values. After obtaining the current monitoring information of the target sensor, the second preset threshold corresponding to the target sensor and the preset value corresponding to the target sensor are determined based on the first target correspondence relationship (i.e., the correspondence relationship between the target sensor and the target second preset threshold) and the second target correspondence relationship (i.e., the correspondence relationship between the target sensor and the target preset value), respectively. Whether the current monitoring information of the target sensor meets the alarm condition is determined by the current monitoring information of the target sensor, the second preset threshold corresponding to the target sensor, and the preset value corresponding to the target sensor.

[0167] If the difference between the current monitoring information of the target sensor and the second preset threshold corresponding to the target sensor is greater than or equal to the preset value corresponding to the target sensor, the current monitoring information of the target sensor satisfies the alarm condition, and based on this, the coprocessor sends the current monitoring information of the target sensor to the main processor.

[0168] In one example, if the target sensor is a sensor for monitoring whether a hard disk is in place, the second preset threshold corresponding to the target sensor is 0 (representing that the hard disk is in place), and the preset value corresponding to the target sensor is 1. Based on this, if the current monitoring information of the target sensor is 1, the difference between the current monitoring information of the target sensor and the second preset threshold is greater than the preset value, and the current monitoring information of the target sensor satisfies the alarm condition.

[0169] In another example, the target sensor is used to monitor the temperature of a CPU, the second preset threshold corresponding to the target sensor is 38 degrees, and the preset value corresponding to the target sensor is 5. If the current monitoring information indicates that the temperature of the CPU is 45 degrees, the difference between 45 degrees and 38 degrees is 7 degrees (greater than the preset value 5), at this time, the current monitoring information of the target sensor satisfies the alarm condition, and the coprocessor sends the current monitoring information of the target sensor to the main processor.

[0170] In the above manner b, whether the current monitoring information of the target sensor satisfies the preset condition is determined by the difference between the current monitoring information of the target sensor and the second preset threshold, so that the alarm operation is performed only when the state of the monitored component changes greatly, that is, the difference is greater than or equal to the preset value, which helps to avoid frequent alarm and reduce the task amount of the main processor.

[0171] Manner c: If the difference between the current monitoring information of the target sensor and the historical monitoring information of the target sensor is greater than or equal to the preset value, the current monitoring information of the target sensor satisfies the alarm condition.

[0172] The historical monitoring information of the target sensor can be the last monitoring information of the current monitoring information. Alternatively, it can also be any monitoring information before the current monitoring information.

[0173] Optionally, the sensors and the preset values correspond to each other one by one, that is, different sensors correspond to different preset values.

[0174] In some embodiments, the management controller pre-stores in the memory thereof historical monitoring information of each of the plurality of sensors, and a second correspondence relationship between the sensors and preset values. After obtaining the current monitoring information of the target sensor, the target sensor corresponding preset value is determined based on the target correspondence relationship (i.e., the correspondence relationship between the target sensor and the target preset value), and whether the current monitoring information of the target sensor satisfies the alarm condition is determined by the current monitoring information of the target sensor, the historical monitoring information of the target sensor, and the target sensor corresponding preset value.

[0175] If the difference between the current monitoring information of the target sensor and the historical monitoring information of the target sensor is greater than or equal to the target sensor corresponding preset value, the current monitoring information of the target sensor satisfies the alarm condition, and based on this, the coprocessor sends the current monitoring information of the target sensor to the main processor.

[0176] In one example, if the target sensor is a sensor for monitoring whether the hard disk is in place, the target sensor corresponding preset value is 1. Based on this, if the current monitoring information of the target sensor is 1 and the historical monitoring information of the target sensor is 0 (indicating that the hard disk is in place), the difference between the current monitoring information and the historical monitoring information of the target sensor is greater than the preset value, and the current monitoring information of the target sensor satisfies the alarm condition. If the current monitoring information of the target sensor is 0, the difference between the current monitoring information and the historical monitoring information of the target sensor is less than the preset threshold, and the current monitoring information of the target sensor does not satisfy the alarm condition.

[0177] In another example, the target sensor is used to monitor the temperature of the CPU, the preset value is 4, and the historical monitoring information indicates that the temperature of the CPU is 32 degrees. If the current monitoring information indicates that the temperature of the CPU is 38 degrees, the difference between 38 degrees and 32 degrees is 6 degrees (greater than the preset value 4), at this time, the current monitoring information of the target sensor satisfies the alarm condition.

[0178] In the above manner c, whether the current monitoring information of the target sensor satisfies the preset condition is determined by the difference between the current monitoring information and the historical monitoring information of the target sensor, so that the alarm operation is performed only when the state of the monitored component changes greatly, i.e., the difference is greater than or equal to the preset value, which helps to avoid frequent alarms and further helps to reduce the task amount of the alarm operation of the main processor.

[0179] Optionally, S404: the main processor performs a target alarm operation corresponding to the target sensor based on receiving the current monitoring information of the target sensor.

[0180] In some embodiments, the main processor performs a target alarm operation corresponding to the target sensor after receiving the current monitoring information of the target sensor.

[0181] For example, the current monitoring information of the target sensor includes an identification of the target sensor and monitoring information currently stored by the target sensor. The main processor can determine the target alarm operation corresponding to the target sensor based on the identification of the target sensor.

[0182] Optionally, the management controller has stored in the memory a plurality of corresponding relationships between sensors and alarm operations. The alarm operation corresponding to a sensor is an operation required to be performed when the monitoring information of the sensor meets an alarm condition.

[0183] It should be noted that the alarm operations corresponding to different sensors can be the same or different, and the embodiments of the present application do not limit this. In addition, the present application does not limit the number of alarm operations corresponding to each sensor in the plurality of sensors.

[0184] In other embodiments, after receiving the current monitoring information of the target sensor, the main processor determines again whether the current monitoring information of the target sensor meets an alarm condition. If the alarm condition is met, the target alarm operation is performed. If the alarm condition is not met, the process ends.

[0185] It should be noted that how the main processor determines whether the current monitoring information of the target sensor meets an alarm condition can refer to the above description of how the coprocessor determines whether the current monitoring information of the target sensor meets an alarm condition. The principles are the same, and will not be repeated here.

[0186] For example, the alarm operation includes recording an alarm event, lighting an alarm lamp, and reporting current monitoring information.

[0187] In the above embodiments, the coprocessor sequentially scans the plurality of sensors based on the target scanning order of the plurality of sensors to obtain the current monitoring information of the plurality of sensors. Based on this, when the number of the plurality of sensors is large, that is, the scanning task of the sensors is heavy, the coprocessor scans the sensors, and the main processor only performs other tasks required to be processed by the management controller. In this way, the occupancy rate of the main processor can be prevented from being too high, for example, the occupancy rate being 100% for a long time, thereby helping to avoid affecting the response time of the other tasks required to be processed by the management controller, and further helping to ensure that the other tasks required to be processed by the management controller can be responded in time.

[0188] The above is the first part of the embodiments of the present application. In the following, the second part of the embodiments of the present application will be introduced. Figure 5

[0189] Figure 5 FIG. 5 is a flowchart of a sensor scanning method according to an example embodiment. The method includes the following S501-S504.​

[0190] The following describes the embodiments shown in the figures, taking an example that the management controller only includes one processor including multiple cores. Figure 5 The following describes the embodiments shown in the figures, taking an example that the management controller only includes one processor including multiple cores.

[0191] S501: One designated core of the multiple cores of the processor determines a target scanning sequence of the multiple sensors.

[0192] S502: One designated core of the processor scans the multiple sensors based on the target scanning sequence to obtain monitoring information of the multiple sensors.

[0193] It should be noted that the implementation principle of S501-S502 is the same as that of S401-S402, and therefore, the implementation process and related description of S501-S502 can refer to the implementation process and related description of S401-S402, which will not be described here in detail.

[0194] Optionally, S503: If the current monitoring information of the target sensor meets the alarm condition, one designated core of the processor sends the current monitoring information to a target process of the processor.

[0195] The target process is a process in the processor for performing an alarm operation.

[0196] It should be noted that how the one designated core determines whether the current monitoring information of the target sensor meets the alarm condition can refer to the related description of how the co-processor determines whether the current monitoring information of the target sensor meets the alarm condition, and the principles are the same, which will not be described here in detail.

[0197] Optionally, S504: The target process of the processor performs a target alarm operation corresponding to the target sensor.

[0198] It should be noted that the related description of performing the target alarm operation corresponding to the target sensor in S504 can refer to the above S404, which will not be described here in detail.

[0199] In the above embodiments, one designated core of the multiple cores scans the multiple sensors in turn based on a target scanning sequence of the multiple sensors to obtain current monitoring information of the multiple sensors. Based on this, when the number of the multiple sensors is large, that is, the scanning task of the sensors is heavy, only the one designated core scans the sensors, and most of the other cores are still used to perform other tasks required to be processed by the management controller. In this way, it can avoid that the occupancy rate of the processor is too high, for example, avoid that the occupancy rate is 100% for a long time, thereby helping to avoid affecting the response time of the other tasks required to be processed by the management controller, and further helping to ensure that the other tasks required to be processed by the management controller can be responded in time.

[0200] The above is the second part of the embodiments of the present application. The following is the third part of the embodiments of the present application. Figure 6 The following is the third part of the embodiments of the present application.

[0201] Figure 6 FIG. 7 is a flowchart of a sensor scanning method according to an example embodiment. The method includes the following S601-S603.

[0202] As shown above, the computer device includes a management controller, a plurality of channel switches, and a plurality of sensors, the management controller is connected with the plurality of sensors through the plurality of channel switches, each channel switch in the plurality of channel switches is used to control the connection or disconnection between the management controller and the corresponding sensor; wherein at least part of the plurality of sensors are connected with the management controller through the same channel switch.

[0203] The following is an example embodiment of the present application, taking the coprocessor as an execution subject. Figure 6 The following is an example embodiment of the present application, taking the coprocessor as an execution subject.

[0204] It should be noted that one designated core in the plurality of cores of the processor executes the principle of the embodiment shown in Figure 6 The principle of the embodiment shown in Figure 6 The principle of the embodiment shown in Figure 6 The principle of the embodiment shown in

[0205] S601: The coprocessor acquires a plurality of scanning path information of a plurality of sensors.

[0206] The plurality of sensors include a target sensor, and the scanning path information of the target sensor is used to indicate a target channel switch between the management controller and the target sensor.

[0207] It should be noted that the target sensor can be any one of the plurality of sensors.

[0208] In some embodiments, the memory of the management controller pre-stores the scanning path information of each sensor in the plurality of sensors, and the coprocessor acquires the plurality of scanning path information of the plurality of sensors from the memory.

[0209] The following is an example embodiment of the present application, taking the plurality of sensors shown in Figure 2 The following is an example embodiment of the present application, taking the plurality of sensors shown in

[0210] If sensor 1 is the target sensor, the scanning path information of the target sensor can include channel switch 0, channel switch 1, and channel switch 2.

[0211] Based on this, if sensor 1 needs to be scanned, the coprocessor needs to send a target command to channel switch 0 to control the connection between channel switch 0 and channel switch 1; send a target command to channel switch 1 to control the connection between channel switch 1 and channel switch 2; and send a target command to channel switch 2 to control the connection between channel switch 2 and sensor 1.

[0212] It should be noted that when sensor 2, sensor 3, sensor 4 or sensor 5 is the target sensor, the scanning path information of the target sensor can be referred to the description when sensor 1 is the target sensor, and will not be repeated here.

[0213] S602: The coprocessor determines the target scanning order based on multiple scanning path information from multiple sensors.

[0214] The total number of target commands corresponding to the target scanning order meets the preset conditions.

[0215] The total number of target commands corresponding to the target scanning sequence refers to the total number of target commands sent to multiple channel switches when scanning multiple sensors based on the target scanning sequence.

[0216] In particular, for different scanning sequences of multiple sensors, since at least some of the sensors in the different scanning sequences have different scanning order, the bus between the management controller and the sensor is in a connected state or a disconnected state when scanning the same sorted position of the sensor in different scanning sequences. Therefore, when scanning multiple sensors based on at least some different scanning sequences, the total number of target commands sent to the channel switch is different.

[0217] Here, "at least partially different scanning orders" means that among multiple different scanning orders, at least two different scanning orders correspond to different total numbers of target commands. The total number of target commands corresponding to a single scanning order refers to the total number of target commands sent to the channel switch when scanning multiple sensors based on that single scanning order.

[0218] For example, such as Figure 2 As shown, different scanning sequences include Scanning Sequence 1 and Scanning Sequence 2. Scanning Sequence 1 consists of Sensor 1, Sensor 5, Sensor 2, Sensor 3, and Sensor 4, while Scanning Sequence 2 consists of Sensor 1, Sensor 2, Sensor 3, Sensor 4, and Sensor 5. It can be seen that the second, third, fourth, and fifth sensors are different in Scanning Sequence 1 and Scanning Sequence 2; therefore, Scanning Sequence 1 and Scanning Sequence 2 are different scanning sequences.

[0219] The total number of target commands to be sent is 17 when the sensors are scanned in the order of sensor 1, sensor 5, sensor 2, sensor 3, sensor 4 based on the scanning sequence 1. The total number of target commands to be sent is 13 when the sensors are scanned in the order of sensor 1, sensor 2, sensor 3, sensor 4, sensor 5 based on the scanning sequence 2. It can be seen that the total number of target commands sent to the channel switch is different when the plurality of sensors are scanned based on the scanning sequence 1 and the scanning sequence 2 respectively.

[0220] It should be noted that how to calculate the total number of target commands corresponding to the scanning sequence 1 and the scanning sequence 2 respectively will be described in subsequent embodiments. For details, refer to the related description of the candidate scanning sequence 1 and the candidate scanning sequence 2 in the following mode 2, which will not be described here.

[0221] It can be understood that the more the total number of target commands is, the longer the time required for scanning the plurality of sensors is, which will inevitably lead to slower response speed and further lead to failure to respond to abnormal states in time.

[0222] Therefore, if the total number of target commands sent to the plurality of channel switches when the plurality of sensors are scanned based on the target scanning sequence meets a preset condition, the total number of target commands corresponding to the target scanning sequence can be limited by the preset condition, so as to reduce the total number of target commands sent when the plurality of sensors are scanned based on the target scanning sequence, and further shorten the time required for scanning the plurality of sensors and improve the response speed.

[0223] The target command is used to instruct the channel switch to switch the state. That is, to instruct the channel switch to switch the state between the connected components. For example, to switch from the connected state to the disconnected state, or to switch from the disconnected state to the connected state.

[0224] In other words, the target command is used to instruct the channel switch to switch the connected state or the disconnected state between the channel switch and the connected component.

[0225] For example, the state between the channel switch 2 and the sensor 1 is connected, and the state between the channel switch 2 and the sensor 2 is disconnected. If the management controller can send the target command 3 to the channel switch 1 to control the state between the channel switch 2 and the sensor 1 to be disconnected, the channel switch 2 will switch the state between the channel switch 2 and the sensor 1 from the connected state to the disconnected state. Then, the management controller sends the target command 4 to the channel switch 2 to control the state between the channel switch 2 and the sensor 2 to be connected, and the channel switch 2 will switch the state between the channel switch 2 and the sensor 2 from the disconnected state to the connected state.

[0226] The target scanning sequence indicates the order of each sensor in the plurality of sensors in the scanning process.

[0227] Optionally, the target command comprises an open command and a close command. The open command is used to instruct the channel switch to switch to the connected state, and the close command is used to instruct the channel switch to switch to the disconnected state.

[0228] Optionally, the target command comprises an identification of the component to be connected or an identification of the component to be disconnected.

[0229] The open command comprises the identification of the component to be connected, and the close command comprises the identification of the component to be disconnected.

[0230] After the channel switch receives the target command of the management controller, if the target command is the open command, the channel switch controls the component to be connected to be in the connected state.

[0231] In some embodiments, based on the scanning path information of the target sensor described above, the number of target commands required to be sent when scanning the target sensor can be determined. On this basis, based on the plurality of scanning path information of the plurality of sensors, the total number of target commands required to be sent when scanning the plurality of sensors can be determined.

[0232] Optionally, the preset condition is satisfied, comprising: the total number of target commands corresponding to the target scanning order is less than or equal to a first preset threshold.

[0233] In some embodiments, the first preset threshold can be set according to the time required for one target command, the total number of the plurality of sensors, and the predicted use time of scanning the plurality of sensors. For example, the time required for one target command is 0.2 seconds, the total number of the plurality of sensors is 10, the scanning time of one sensor is 0.2 seconds, and the predicted use time is 5 seconds. The first preset threshold can be set to 10, 15, etc.

[0234] The time required for one target command refers to the time between the sending time of the one target command and the end time of the execution of the one target command.

[0235] It should be noted that when the total number of target commands corresponding to a plurality of scanning orders is less than or equal to the first preset threshold, for example, the total number of target commands corresponding to the scanning order 1 is less than the first preset threshold, and the total number of target commands corresponding to the scanning order 2 is equal to the first preset threshold, any one of the plurality of scanning orders can be determined as the target scanning order, for example, the scanning order 1 or the scanning order 2 can be determined as the target scanning order.

[0236] In the above embodiment, by setting the total number of target commands corresponding to the target scanning sequence to be less than or equal to the first preset threshold, the total number of target commands corresponding to the determined target scanning sequence can be effectively controlled by setting a reasonable first preset threshold, which helps to effectively reduce the time required for scanning multiple sensors, and further helps to effectively shorten the response time and improve the response speed.

[0237] In addition, when determining the target scanning sequence based on this manner, on the one hand, since one scanning sequence of the multiple sensors is determined, whether the one scanning sequence can be used as the target scanning sequence can be determined according to the relationship between the total number of target commands corresponding to the one scanning sequence and the first preset threshold, that is, it is not necessary to compare the total number of target commands corresponding to the one scanning sequence with the total number of target commands corresponding to other scanning sequences, and thus it is not necessary to determine the total number of target commands corresponding to other scanning sequences, which helps to improve the speed of determining the target scanning sequence. On the other hand, since any one scanning sequence with a total number of corresponding target commands less than or equal to the first preset threshold can be used as the target scanning sequence, the diversity of the target scanning sequence is improved.

[0238] It should be noted that the specific value of the first preset threshold is not limited in the embodiments of the present application, and can be dynamically determined according to actual conditions.

[0239] Optionally, the preset condition is satisfied, including that the total number of target commands corresponding to the target scanning sequence is the smallest in the multiple total numbers corresponding to the multiple candidate scanning sequences.

[0240] The total number corresponding to one candidate scanning sequence is the total number of target commands sent to the multiple channel switches when the multiple sensors are scanned based on the one candidate scanning sequence.

[0241] In some embodiments, after the multiple total numbers corresponding to the multiple candidate scanning sequences are determined, the multiple candidate scanning sequences are sorted in the order of the total number from small to large to obtain a sequence, and then the candidate scanning sequence ranked first in the sequence is determined as the target scanning sequence. Of course, the multiple candidate scanning sequences can also be sorted in the order of the total number from large to small, and the candidate scanning sequence ranked last in the sequence is determined as the target scanning sequence.

[0242] In some other embodiments, after the multiple total numbers corresponding to the multiple candidate scanning sequences are determined, the smallest total number is determined by comparing different total numbers, and the candidate scanning sequence corresponding to the smallest total number is determined as the target scanning sequence.

[0243] In the above embodiment, by setting the total number of target commands corresponding to the target scanning sequence as the minimum in the multiple total numbers corresponding to the multiple candidate scanning sequences, the time required for scanning the multiple sensors is reduced to the maximum, and the response time is shortened to the maximum.

[0244] Optionally, S602 includes multiple implementation manners, which are exemplarily described below by way of way 1 to way 2.

[0245] Way 1: S602 includes determining the target scanning sequence based on the multiple scanning path information and a depth-first algorithm.

[0246] In some embodiments, the target scanning sequence is determined by Figure 2 The process of S602 is exemplarily introduced by taking the multiple sensors shown in FIG. 1 as an example. In this case, the nodes traversed by the depth-first algorithm include channel switches and sensors.

[0247] First, the channel switch 0 is selected as the root node A, and the root node A is put into the stack. The root node A is taken out of the stack, the child nodes of the root node A are addressed, and the nodes B1 (channel switch 1), …, and the node Bn (channel switch or sensor connected by the bus 0n) are obtained and put into the stack. The node B1 is taken out of the stack, the child nodes of the node B1 are addressed, and the nodes C1 (channel switch 2), the node C2 (sensor 3), the node C3 (channel switch 3), …, and the node Cn (channel switch or sensor connected by the bus 1n) are obtained and put into the stack. The node C1 is taken out of the stack, the child nodes of the node C1 are addressed, and the nodes D1 (sensor 1) and the node D2 (sensor 2) are obtained and put into the stack. Since the nodes D1 and D2 have no child nodes, the program jumps back to the node B1 to address the next unvisited child node. The node C2 is taken out of the stack, the child nodes of the node C2 are addressed, and since the node C2 has no child nodes, the program jumps back to the node B1 again. The node C3 is taken out of the stack, the child nodes of the node C3 are addressed, and the nodes E1 (sensor 4) and the node E2 (sensor 5) are obtained and put into the stack. At this time, the scanning path of each sensor in the multiple sensors is traversed.

[0248] As shown above, after the scanning path of each sensor is obtained based on the depth-first algorithm and the plurality of scanning path information, the scanning order is determined based on the depth-first algorithm, and the scanning order is the target scanning order. Specifically, for at least two sensors belonging to the same parent node (channel switch), the scanning order of each sensor is determined in the order of the scanning depth of each sensor from deep to shallow. Based on this, the scanning order 1: the scanning order of sensor 1, sensor 2, sensor 3, sensor 4, and sensor 5, and the scanning order 2: sensor 2, sensor 1, sensor 3, sensor 5, and sensor 4 can be determined. Among them, the scanning order 1 or the scanning order 2 can be taken as the target scanning order.

[0249] It should be noted that in mode 1, the plurality of candidate scanning orders in the above-mentioned "the total number of target commands corresponding to the target scanning order is the smallest in the plurality of total numbers corresponding to the plurality of candidate scanning orders" refers to other scanning orders in addition to the scanning orders (i.e., scanning order 1 and scanning order 2) determined based on the depth-first algorithm.

[0250] Optionally, mode 1 specifically includes: based on the depth-first algorithm and the plurality of scanning path information, the sensor identifier corresponding to each ranking position in the target scanning order is sequentially determined to obtain the target scanning order.

[0251] In some embodiments, after the scanning path of each sensor is determined based on the depth-first algorithm and the plurality of scanning path information of the plurality of sensors, the sensor identifier corresponding to each ranking position in the target scanning order can be sequentially determined, such as determining that the sensor identifier ranked first in the target scanning order is sensor 1, the sensor identifier ranked second is sensor 2, the sensor identifier ranked third is sensor 3, the sensor identifier ranked fourth is sensor 4, and the sensor identifier ranked fifth is sensor 5, thereby obtaining the target scanning order.

[0252] In the above-mentioned mode 1, after the scanning path and the scanning depth of each sensor are determined by the depth-first algorithm and the plurality of scanning path information of the plurality of sensors, for at least two sensors belonging to the same parent node (channel switch), the scanning order of each of the at least two child nodes is determined in the order of the depth of the child node from deep to shallow, and the target scanning order corresponding to the minimum total number of target commands can be directly obtained. Relative to determining a plurality of candidate scanning orders and selecting a target scanning order from the plurality of candidate scanning orders, it is helpful to quickly determine the target scanning order.

[0253] Mode 2: S602 includes S602a-S602b.

[0254] S602a: based on the plurality of scanning path information, a plurality of candidate scanning orders of the plurality of sensors are determined.

[0255] In some embodiments, taking the plurality of sensors shown in FIG. 1 as an example, it can be determined that a candidate scanning order 1 is sensor 1, sensor 5, sensor 2, sensor 3, sensor 4. A candidate scanning order 2 is sensor 1, sensor 2, sensor 3, sensor 4, sensor 5. Figure 2

[0256] S602b: determining a target scanning order from the plurality of candidate scanning orders based on a plurality of total quantities corresponding to the plurality of candidate scanning orders.

[0257] In some embodiments, the total quantity corresponding to one candidate scanning order is the total quantity of target commands sent to the plurality of channel switches when the plurality of sensors are scanned based on the one candidate scanning order.

[0258] In some embodiments, the candidate scanning order with the smallest total quantity of target commands corresponding thereto can be determined as the target scanning order from the plurality of candidate scanning orders, which helps to reduce the time required for scanning the plurality of sensors to the greatest extent, and in turn helps to shorten the response time to the greatest extent.

[0259] It should be noted that when there are at least two candidate scanning orders with the smallest total quantity of target commands corresponding thereto, any one of the at least two candidate scanning orders can be determined as the target scanning order.

[0260] In some embodiments, the candidate scanning order with the total quantity of target commands corresponding thereto less than or equal to a first preset threshold can be determined as the target scanning order from the plurality of candidate scanning orders, which helps to improve the speed of determining the target scanning order according to the relationship between the total quantity of target commands corresponding to one scanning order and the first preset threshold.

[0261] It should be noted that when there are at least two candidate scanning orders with the total quantity of target commands corresponding thereto less than or equal to the first preset threshold, any one of the at least two candidate scanning orders can be determined as the target scanning order.

[0262] There are various implementation manners for determining the total quantity corresponding to one candidate scanning order.

[0263] In one possible implementation manner, the total quantity corresponding to one candidate scanning order can be determined by determining the quantity of target commands required for each sensor in the plurality of sensors when the plurality of sensors are scanned based on the one candidate scanning order. The following illustrates this possible implementation manner by steps 1 to 2.

[0264] ​Step one: based on the number of target channel switches and the scanning order of the target sensor in one candidate scanning sequence, determine the number of target commands required when scanning the target sensor based on the one candidate scanning sequence.

[0265] As shown above, the target channel switch refers to the channel switch between the coprocessor and the target sensor.

[0266] It should be noted that the target sensor can be any one of the plurality of sensors.

[0267] Hereinafter, taking the sensor 1, the sensor 5, the sensor 2, the sensor 3, and the sensor 4 in the candidate scanning sequence 1 as examples, the step one is exemplarily described.

[0268] When scanning the sensor 1, the target commands required to be sent include: sending an open command to the channel switch 0 to control the communication between the channel switch 0 and the channel switch 1; sending an open command to the channel switch 1 to control the communication between the channel switch 1 and the channel switch 2; sending an open command to the channel switch 2 to control the communication between the channel switch 2 and the sensor 1. Therefore, the number of target commands required when scanning the sensor 1 based on the candidate scanning sequence 1 is 3.

[0269] When scanning the sensor 5, the target commands required to be sent include: sending a closed-off close command to the channel switch 2 to control the disconnection between the channel switch 2 and the sensor 1; sending a close command to the channel switch 1 to control the disconnection between the channel switch 1 and the channel switch 2; sending an open command to the channel switch 1 to control the communication between the channel switch 1 and the channel switch 3; sending an open command to the channel switch 3 to control the communication between the channel switch 3 and the sensor 5. Therefore, the number of target commands required when scanning the sensor 5 based on the candidate scanning sequence 1 is 4.

[0270] When scanning the sensor 2, the target commands required to be sent include: sending a close command to the channel switch 3 to control the disconnection between the channel switch 3 and the sensor 5; sending a close command to the channel switch 1 to control the disconnection between the channel switch 1 and the channel switch 3; sending an open command to the channel switch 1 to control the communication between the channel switch 1 and the channel switch 2; sending an open command to the channel switch 2 to control the communication between the channel switch 2 and the sensor 2. Therefore, the number of target commands required when scanning the sensor 2 based on the candidate scanning sequence 1 is 4.

[0271] When scanning sensor 3, the target commands needed to be sent include: a close command to channel switch 2 to control the disconnection between channel switch 2 and sensor 2; a close command to channel switch 1 to control the disconnection between channel switch 1 and channel switch 2; an open command to channel switch 1 to control the connection between channel switch 1 and sensor 3. Therefore, the number of target commands needed when scanning sensor 3 based on candidate scan order 1 is 3.

[0272] When scanning sensor 4, the target commands needed to be sent include: a close command to channel switch 1 to control the disconnection between channel switch 1 and sensor 3; an open command to channel switch 1 to control the connection between channel switch 1 and channel switch 3; an open command to channel switch 3 to control the connection between channel switch 3 and sensor 4. Therefore, the number of target commands needed when scanning sensor 4 based on candidate scan order 1 is 3.

[0273] Based on the same principle as above, for candidate scan order 2:

[0274] When scanning sensor 1, the target commands needed to be sent include: an open command to control the connection between channel switch 0 and channel switch 1; an open command to control the connection between channel switch 1 and channel switch 2; an open command to control the connection between channel switch 2 and sensor 1. Therefore, the number of target commands when scanning sensor 1 based on candidate scan order 2 is 3.

[0275] When scanning sensor 2, the target commands needed to be sent include: a close command to control the disconnection between channel switch 2 and sensor 1; an open command to control the connection between channel switch 2 and sensor 1. Therefore, the number of target commands when scanning sensor 2 based on candidate scan order 2 is 2.

[0276] When scanning sensor 3, the target commands needed to be sent include: a close command to control the disconnection between channel switch 2 and sensor 2; a close command to control the disconnection between channel switch 1 and channel switch 2; an open command to control the connection between channel switch 1 and sensor 3. Therefore, the number of target commands when scanning sensor 3 based on candidate scan order 2 is 3.

[0277] When scanning sensor 4, the target commands needed to be sent include: a close command to control the disconnection between channel switch and sensor 2; an open command to control the connection between channel switch 1 and channel switch 3; an open command to control the connection between channel switch 3 and sensor 4. Therefore, the number of target commands when scanning sensor 4 based on candidate scan order 2 is 3.

[0278] When scanning sensor 5, the target commands required to be sent include: a close command for controlling the disconnection between channel switch 3 and sensor 4, and an open command for controlling the connection between channel switch and sensor 5. Therefore, when scanning sensor 5 based on candidate scanning sequence 2, the number of target commands is 2.

[0279] Step 2: Based on the number of target commands required when scanning a target sensor, determine the total number of target commands sent to the plurality of channel switches when scanning the plurality of sensors based on the one scanning sequence.

[0280] Wherein, the total number of target commands is equal to the sum of the number of target commands required for each sensor in the plurality of sensors.

[0281] Based on the above steps 1 to 2, the total number of target commands sent to the plurality of channel switches when scanning the plurality of sensors based on candidate scanning sequence 1 is 17. The total number of target commands sent to the plurality of channel switches when scanning the plurality of sensors based on candidate scanning sequence 2 is 13.

[0282] In some embodiments, if the total number of target commands corresponding to the target scanning sequence is less than or equal to a first preset threshold, and the first preset threshold is 14, then candidate scanning sequence 2 is the target scanning sequence.

[0283] In some other embodiments, if the total number of target commands corresponding to the target scanning sequence is the smallest among the plurality of total numbers corresponding to the plurality of candidate scanning sequences, then candidate scanning sequence 2 is the target scanning sequence.

[0284] In the above manner 2, a plurality of candidate scanning sequences are determined based on the plurality of scanning path information of the plurality of sensors, and then the total number of target commands corresponding to each candidate scanning sequence in the plurality of candidate scanning sequences is determined to determine the target scanning sequence from the plurality of candidate scanning sequences. Since the total number of target commands corresponding to different candidate scanning sequences is determined, not only can the candidate scanning sequence corresponding to the smallest total number of target commands be determined as the target scanning sequence, but also the candidate scanning sequence satisfying the preset condition can be determined as the target scanning sequence, such as the candidate scanning sequence corresponding to the total number of target commands less than or equal to the first preset threshold. This helps to improve the diversity of the target scanning sequence.

[0285] S603: The coprocessor stores the target scanning sequence in the memory.

[0286] In some embodiments, after determining the target scanning sequence, the coprocessor writes the target scanning sequence into the memory for storage, so that when multiple sensors need to be scanned, the target scanning sequence that needs to be used can be determined from the memory, and it is not necessary to re-execute S601-S602 each time, which helps to reduce the time required for each execution cycle, and in turn helps to improve the scanning frequency of the sensor.

[0287] It should be noted that the computer device also includes a non-volatile storage medium, such as a hard disk, a storage chip, etc. on the computer device, which is in communication connection with the management controller. Based on this, the coprocessor can also store the target scanning sequence in the non-volatile storage medium.

[0288] The above mainly introduces the scheme provided by the embodiments of the present application from the perspective of the method. In order to implement the above functions, the sensor scanning device includes the hardware structure and / or software module for executing each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present application can be realized in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed in the form of hardware or computer software driven hardware depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.

[0289] The embodiments of the present application can divide the functional modules of the sensor scanning device according to the above method, for example, the sensor scanning device can include various functional modules corresponding to each functional division, or two or more functions can be integrated in one processing module. The above integrated module can be realized in the form of hardware or in the form of software functional module. It should be noted that the division of modules in the embodiments of the present application is illustrative, and is only a logical functional division. Actual implementation can have another division method.

[0290] For example, Figure 7 A possible structure schematic diagram of the sensor scanning device (denoted as sensor scanning device 700) involved in the above embodiments is shown, which is stored in the management controller of a computer device, and the computer device includes multiple sensors. The management controller includes a main processor and a coprocessor, and the actions performed by the sensor scanning device 700 are realized through the coprocessor, or the sensor scanning device 700 is realized through the coprocessor. Alternatively, the management controller includes a processor including multiple cores, and the actions performed by the sensor scanning device 700 are realized through the processor, or the sensor scanning device 700 is realized through a designated core in the multiple cores of the processor.

[0291] The sensor scanning apparatus 700 comprises a processing unit 701 and a scanning unit 702. The processing unit 701 is configured to determine a target scanning sequence of the plurality of sensors; the target scanning sequence is used to indicate an order of each sensor in the plurality of sensors in a scanning process. For example, Figure 4 S401 is shown, and Figure 5 S501 is shown. The scanning unit 702 is configured to sequentially scan the plurality of sensors based on the target scanning sequence to obtain current monitoring information of the plurality of sensors. For example, Figure 4 S402 is shown, and Figure 5 S502 is shown.

[0292] Optionally, the computer device further comprises a plurality of channel switches, the management controller is connected with the plurality of sensors through the plurality of channel switches, each channel switch in the plurality of channel switches is used to control the communication or disconnection between the management controller and the corresponding sensor; wherein at least part of the plurality of sensors are connected with the management controller through the same channel switch; a total number of target commands corresponding to the target scanning sequence satisfies a preset condition; wherein the total number of target commands corresponding to the target scanning sequence is a total number of target commands sent to the plurality of channel switches based on scanning the plurality of sensors according to the target scanning sequence; the target command is used to indicate a switching state of a channel switch.

[0293] Optionally, the processing unit 701 is further configured to: obtain a plurality of scanning path information of the plurality of sensors; the plurality of sensors comprise a target sensor, the scanning path information of the target sensor is used to indicate a target channel switch between the management controller and the target sensor; determine the target scanning sequence based on a depth-first algorithm and the plurality of scanning path information.

[0294] Optionally, the processing unit 701 is specifically configured to: determine a sensor identifier corresponding to each order position in the target scanning sequence based on the depth-first algorithm and the plurality of scanning path information to obtain the target scanning sequence.

[0295] Optionally, the processing unit 701 is further configured to: obtain a plurality of scanning path information of the plurality of sensors; the plurality of sensors comprise a target sensor, the scanning path information of the target sensor is used to indicate a target channel switch between the management controller and the target sensor; determine a plurality of candidate scanning sequences of the plurality of sensors based on the scanning path information of the plurality of sensors; determine the target scanning sequence from the plurality of candidate scanning sequences based on a total number corresponding to each candidate scanning sequence; wherein the total number corresponding to a candidate scanning sequence is a total number of target commands sent to the plurality of channel switches based on scanning the plurality of sensors according to the candidate scanning sequence.

[0296] Optionally, the processing unit 701 is further configured to: determine a number of target commands required for scanning the target sensors based on the number of target channel switches and the scanning order of the target sensors in one candidate scanning sequence; and determine a total number of target commands sent to the plurality of channel switches based on the number of target commands required for scanning the target sensors based on the one scanning sequence.

[0297] Optionally, the preset condition is satisfied, including: the total number of target commands corresponding to the target scanning sequence is less than or equal to a first preset threshold; or the total number of target commands corresponding to the target scanning sequence is the smallest in a plurality of total numbers corresponding to a plurality of candidate scanning sequences; wherein the total number corresponding to one candidate scanning sequence is a total number of target commands sent to the plurality of channel switches based on scanning the plurality of sensors based on the one candidate scanning sequence.

[0298] Optionally, the plurality of sensors includes a target sensor; and the apparatus further includes a notification unit 703, configured to: if the current monitoring information of the target sensor satisfies an alarm condition, send the current monitoring information of the target sensor to the main processor by the coprocessor; and the current monitoring information of the target sensor is used to instruct the main processor to perform an alarm operation.

[0299] Optionally, the current monitoring information of the target sensor satisfies the alarm condition, including: the current monitoring information of the target sensor is different from historical monitoring information of the target sensor; or a difference between the current monitoring information of the target sensor and a second preset threshold is greater than or equal to a preset value; or a difference between the current monitoring information of the target sensor and the historical monitoring information of the target sensor is greater than or equal to a preset value.

[0300] For specific descriptions of the above optional manners, refer to the foregoing method embodiments, which will not be described here. In addition, the explanations and beneficial effect descriptions of any one of the above sensor scanning apparatuses 700 can refer to the corresponding method embodiments described above, which will not be described here.

[0301] The embodiments of the present application further provide a computer device, including: a management controller and a plurality of sensors, the management controller being connected with the plurality of sensors; the management controller including a main processor and a coprocessor; and the coprocessor is configured to scan the plurality of sensors to obtain monitoring information of the plurality of sensors.

[0302] The embodiments of the present application further provide a computer device, including: a management controller and a plurality of sensors, the management controller and the plurality of sensors being connected; the management controller including a processor, the processor including a plurality of cores; and one designated core in the plurality of cores of the processor is configured to scan the plurality of sensors to obtain monitoring information of the plurality of sensors.

[0303] The embodiments of the present application further provide a computer device, which comprises a processor and a memory. The processor is connected with the memory. The memory stores computer execution instructions. The processor implements the data processing method in the above embodiments when executing the computer execution instructions. The embodiments of the present application do not make any limitation on the specific form of the computer device. For example, the computer device can be a terminal device or a network device. The terminal device can be referred to as a terminal, a user equipment (UE), a terminal device, an access terminal, a subscriber unit, a subscriber station, a mobile station, a remote station, a remote terminal, a mobile device, a user terminal, a wireless communication device, a user agent or a user equipment, etc. The terminal device can be a mobile phone, an augmented reality (AR) device, a virtual reality (VR) device, a tablet computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), etc. The network device can be a server, etc. The server can be one physical or logical server, or two or more physical or logical servers sharing different responsibilities, or cooperating with each other to implement the functions of the server.

[0304] The embodiments of the present application further provide a computer readable storage medium, which stores a computer program. When the computer program runs on a computer, the computer is caused to execute the method implemented by any of the computer devices provided above.

[0305] The explanations and beneficial effects of the related content in any of the computer readable storage media provided above are the same as those of the corresponding embodiments described above, which will not be repeated here.

[0306] The embodiments of the present application further provide a chip. The chip integrates a control circuit and one or more ports for implementing the functions of the computer device. Optionally, the functions supported by the chip can refer to the above, and will not be described here. Those skilled in the art can understand that all or part of the steps of the above-mentioned embodiments can be instructed by programs to relevant hardware to complete. The programs can be stored in a computer readable storage medium. The storage medium mentioned above can be a read-only memory, a random access memory, etc. The above-mentioned processing unit or processor can be a central processing unit, a general-purpose processor, an application specific integrated circuit (ASIC), a digital signal processor (DSP), a field programmable gate array (FPGA) or other programmable logic device, a transistor logic device, a hardware component or any combination thereof.

[0307] The embodiments of the present application further provide a computer program product containing instructions, which, when executed on a computer, cause the computer to perform any of the methods in the above embodiments. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, all or part of the processes or functions according to the embodiments of the present application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer readable storage medium or transferred from one computer readable storage medium to another, for example, the computer instructions can be transferred from one website, computer, server or data center to another website, computer, server or data center through wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) mode. The computer readable storage medium can be any available medium that can be accessed by a computer or data storage device including one or more servers, data centers, etc. integrated with the medium. The available medium can be a magnetic medium (such as a floppy disk, a hard disk, a magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as an SSD), etc.

[0308] It should be noted that the above-mentioned devices for storing computer instructions or computer programs provided by the embodiments of the present application, such as but not limited to the above-mentioned memory, computer readable storage medium and communication chip, etc., all have non-volatility (non-transitory).

[0309] In the above embodiments, all or part of the embodiments can be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments can be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions according to the embodiments of the present application are generated. The computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions can be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions can be transmitted from one website site, computer, server or data center to another website site, computer, server or data center through wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) mode. The computer readable storage medium can be any available medium that can be accessed by a computer or data storage device including one or more servers, data centers, etc. integrated with the medium. The available medium can be a magnetic medium (such as a floppy disk, a hard disk, a magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state disk (SSD)), etc.

[0310] Although the present application is described herein in conjunction with various embodiments, it is understood that other variations of the disclosed embodiments can be understood and effected by those skilled in the art in practicing the claimed application, from an inspection of the drawings, the disclosure, and the appended claims. The word "comprising" does not exclude other components or steps not listed in the claims, "a" or "an" does not exclude a plurality, and a single processor or other unit can fulfill the functions of several means recited in the claims. Means-plus-function or step-plus-function clauses are used where for procedural or logical operations, the recitation of means or steps does not imply a limitation to a specific order of operations.

[0311] Although the present application is described herein in conjunction with various embodiments, it is understood that other variations of the disclosed embodiments can be understood and effected by those skilled in the art in practicing the claimed application, from an inspection of the drawings, the disclosure, and the appended claims. The word "comprising" does not exclude other components or steps not listed in the claims, "a" or "an" does not exclude a plurality, and a single processor or other unit can fulfill the functions of several means recited in the claims. Means-plus-function or step-plus-function clauses are used where for procedural or logical operations, the recitation of means or steps does not imply a limitation to a specific order of operations.

[0311] Although the present application is described herein in conjunction with various embodiments, it is understood that other variations of the disclosed embodiments can be understood and effected by those skilled in the art in practicing the claimed application, from an inspection of the drawings, the disclosure, and the appended claims. The word "comprising" does not exclude other components or steps not listed in the claims, "a" or "an" does not exclude a plurality, and a single processor or other unit can fulfill the functions of several means recited in the claims. Means-plus-function or step-plus-function clauses are used where for procedural or logical operations, the recitation of means or steps does not imply a limitation to a specific order of operations.

Claims

1. A sensor scanning method, characterized by, A method for a computer device, the computer device comprising a management controller, a plurality of channel switches and a plurality of sensors, the management controller being connected with the plurality of sensors through the plurality of channel switches, each of the plurality of channel switches being used to control the connection or disconnection between a corresponding sensor and the management controller, wherein at least part of the plurality of sensors are connected with the management controller through the same channel switch; the management controller comprising a main processor and a coprocessor, the method being executed by the coprocessor, or the management controller comprising a processor comprising a plurality of cores, the method being executed by a specified core of the plurality of cores; the method comprising: obtaining a plurality of scanning path information of the plurality of sensors; the plurality of sensors comprising a target sensor, the scanning path information of the target sensor being used to indicate a target channel switch between the management controller and the target sensor; determining a plurality of candidate scanning sequences of the plurality of sensors based on the scanning path information of the plurality of sensors; determining a target scanning sequence of the plurality of sensors from the plurality of candidate scanning sequences based on a plurality of total numbers corresponding to the plurality of candidate scanning sequences; wherein a total number corresponding to a candidate scanning sequence is a total number of target commands sent to the plurality of channel switches when the plurality of sensors are scanned based on the candidate scanning sequence; a total number of target commands corresponding to the target scanning sequence satisfies a preset condition; wherein the total number of target commands corresponding to the target scanning sequence is a total number of target commands sent to the plurality of channel switches when the plurality of sensors are scanned based on the target scanning sequence; a target command is used to indicate a switching state of a channel switch; scanning the plurality of sensors based on the target scanning sequence to obtain monitoring information of the plurality of sensors.

2. The method of claim 1, wherein, The method further comprises: obtaining a plurality of scanning path information of the plurality of sensors; the plurality of sensors comprising a target sensor, the scanning path information of the target sensor being used to indicate a target channel switch between the management controller and the target sensor; determining the target scanning sequence based on a depth-first algorithm and the plurality of scanning path information.

3. The method of claim 2, wherein, The determining the target scanning sequence based on the depth-first algorithm and the plurality of scanning path information comprises: determining a sensor identifier corresponding to each ranking position in the target scanning sequence in turn based on the depth-first algorithm and the plurality of scanning path information to obtain the target scanning sequence.

4. The method of claim 1, wherein, The method further comprises: determining a number of target commands required when the target sensor is scanned based on a candidate scanning sequence based on a number of the target channel switches and a scanning ranking of the target sensor in the candidate scanning sequence; determining a total number of target commands sent to the plurality of channel switches when the plurality of sensors are scanned based on the candidate scanning sequence based on the number of target commands required when the target sensor is scanned.

5. The method according to any one of claims 1-4, characterized in that, The satisfying the preset condition comprises: A total number of the target commands corresponding to the target scan order is less than or equal to a first preset threshold. Alternatively, the total number of the target commands corresponding to the target scan order is the smallest among a plurality of total numbers corresponding to a plurality of candidate scan orders; wherein a total number corresponding to one candidate scan order is a total number of the target commands sent to the plurality of channel switches when the plurality of sensors are scanned based on the one candidate scan order.

6. The method according to any one of claims 1-4, characterized in that, The plurality of sensors includes a target sensor; when the method is executed by the coprocessor, the method further includes: If the current monitoring information of the target sensor satisfies an alarm condition, the coprocessor sends the current monitoring information of the target sensor to the host processor; the current monitoring information of the target sensor is used to instruct the host processor to perform an alarm operation.

7. The method of claim 6, wherein, The current monitoring information of the target sensor satisfies an alarm condition, including: The current monitoring information of the target sensor is different from the historical monitoring information of the target sensor; or The difference between the current monitoring information of the target sensor and the second preset threshold is greater than or equal to a preset value; or The difference between the current monitoring information of the target sensor and the historical monitoring information of the target sensor is greater than or equal to a preset value.

8. A computer device, comprising: Including: A management controller, a plurality of channel switches, and a plurality of sensors, the management controller is connected with the plurality of sensors through the plurality of channel switches, each channel switch in the plurality of channel switches is used to control the connection or disconnection between the corresponding sensor and the management controller, wherein at least part of the plurality of sensors are connected with the management controller through the same channel switch; The management controller includes a host processor and a coprocessor, the coprocessor is used to: Obtain a plurality of scan path information of the plurality of sensors; the plurality of sensors includes a target sensor, the scan path information of the target sensor is used to indicate a target channel switch between the management controller and the target sensor; Determine a plurality of candidate scan orders of the plurality of sensors based on the scan path information of the plurality of sensors; Determine a target scan order from the plurality of candidate scan orders based on a plurality of total numbers corresponding to the plurality of candidate scan orders; wherein a total number corresponding to one candidate scan order is a total number of the target commands sent to the plurality of channel switches when the plurality of sensors are scanned based on the one candidate scan order; a total number of the target commands corresponding to the target scan order satisfies a preset condition; wherein the total number of the target commands corresponding to the target scan order is a total number of the target commands sent to the plurality of channel switches when the plurality of sensors are scanned based on the target scan order; the target command is used to instruct a channel switch to switch state; Scan the plurality of sensors based on the target scan order to obtain monitoring information of the plurality of sensors; Alternatively, the management controller includes a processor including a plurality of cores, one designated core in the plurality of cores of the processor is used to: obtaining a plurality of scanning path information of the plurality of sensors; the plurality of sensors comprises a target sensor, and the scanning path information of the target sensor is used to indicate a target channel switch between the management controller and the target sensor; determining a plurality of candidate scanning sequences of the plurality of sensors based on the scanning path information of the plurality of sensors; determining a target scanning sequence of the plurality of sensors from the plurality of candidate scanning sequences based on a plurality of total numbers corresponding to the plurality of candidate scanning sequences; a total number corresponding to a candidate scanning sequence is a total number of the target commands sent to the plurality of channel switches when the plurality of sensors are scanned based on the candidate scanning sequence; a total number of the target commands corresponding to the target scanning sequence satisfies a preset condition; the total number of the target commands corresponding to the target scanning sequence is a total number of the target commands sent to the plurality of channel switches when the plurality of sensors are scanned based on the target scanning sequence; and the target command is used to indicate a switching state of a channel switch; scanning the plurality of sensors based on the target scanning sequence to obtain monitoring information of the plurality of sensors.

Citation Information

Patent Citations

  • Extreme-low-altitude laser radar digital terrain mapping system and extreme-low-altitude laser radar digital terrain mapping method of small-sized unmanned helicopter

    CN102928846A

  • Sensing unit scanning method and fingerprint identification method of fingerprint identification sensor

    CN104408410A