A USB link keep-alive method, device and storage medium based on ARM array Android cloud server
Through the USB Device ID identification and link status inspection strategy, the problem of USB link loss and fault recovery of the ARM array Android cloud server is solved, the automatic recovery and stable operation of the link are realized, and the availability and stable operation of the server are improved. sex.
Patent Information
- Application Number
- CN202211711150.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-29
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2042-12-29
AI Technical Summary
The USB link of the ARM array Android cloud server is easy to lose connection in scenarios such as non-simultaneous power-on and hot-plugging, and when multiple USB peripherals are connected in a USB HUB cascade, link failure recovery is difficult to ensure long-term stable operation. There is a lack of Automatic recovery mechanism.
Design the USB Device ID identification method and USB link status inspection strategy, parse the slot number through the I2C extended IO chip, bind the USB Device ID, and implement USB link status inspection and abnormal recovery on the BMC management board, including delayed Time detection, USB HUB reset and VBUS power restart and other measures.
It achieves long-term stable operation of the USB link, improves the stability and availability of the ARM array Android cloud server, and reduces on-site operation and maintenance costs.
Smart Images

Figure CN115955503B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of server hardware, and in particular to a USB link keep-alive method, device and storage medium based on an ARM array Android cloud server. Background Art
[0002] Cloud phones are cloud phones controlled by App / Web. ARM array Android cloud servers are the most suitable hardware devices for cloud phone application scenarios in the industry today. One ARM array Android cloud server usually contains dozens or even hundreds of real mobile phone motherboards (Android boards). For mobile phones, USB interfaces and USB links are indispensable. Users need to use them to upload and download data, especially when the mobile phone operating system is accidentally bricked, USB is needed to implement system flashing to restore the operating system. For ARM array Android cloud servers, the role of USB links will be more prominent, because the server works in the data center computer room, the on-site operation and maintenance costs are very high, and remote operation and maintenance capabilities are required:
[0003] 1. When the operating system fails seriously or the underlying system partition needs to be modified, the OTA function or the general system recovery function will not work. The remote flashing function is required, and the USB link is the only option in the local bus.
[0004] 2. As the USB ADB debugging and operation and maintenance management bus function of the Android board, in the scenario where the system can work normally, USB ADB is much more efficient than the operation and maintenance management of the UART serial port (high bus speed), and can also meet the needs of separating the management bus and the business bus (business Ethernet).
[0005] 3. Used to manage the upload and download functions of data files. The management bus and the business bus (business Ethernet) are separated, and the business bus bandwidth is not occupied. This can not only improve the utilization rate of business network resources but also ensure the stability of business network transmission.
[0006] The server has very high requirements for the stability of the operation of each functional module, requiring 7*24 hours a year to run without failure as much as possible, and even if a failure occurs, automatic failure recovery measures are required as much as possible. The USB link as the management bus of the ARM array Android cloud server has the same stability requirements:
[0007] 1. The blade-type hardware architecture based on the high-speed backplane is the best product hardware form for the ARM array Android cloud server. This will result in the USB controller and the USB peripheral (Android board) not being on the same hardware board. The USB controller is on the BMC management board, while the USB peripheral (Android card) is on the blade node. In actual use, the two boards may not be powered on and run at the same time, such as resetting and restarting the Android board, hot-swapping blade nodes or BMC boards during operation and maintenance. In this scenario, there is a certain probability that the USB controller of the BMC management board will not recognize the Android card. As a server, the system needs to ensure that the Android card does not lose connection abnormalities as much as possible in any working mode, and it needs to have an automatic recovery function even if the USB link fails and loses connection.
[0008] 2. Because the BMC management board needs to support dozens or even hundreds of USB peripherals (Android cards), which far exceeds the number of USB links of the BMC control board itself, it needs to be expanded through USB HUB cascading. When too many USB peripherals (Android cards) are connected to the same USB bus, it is difficult to ensure that there will be no failures during long-term operation by relying on the reliability of the USB link itself. It is necessary to consider the scenario where the USB peripheral link is accidentally disconnected or fails, and it is also necessary to have an automatic recovery function. Summary of the invention
[0009] The present invention provides a USB link keep-alive method based on an ARM array Android cloud server, which has the advantage of ensuring the long-term stable operation of the USB link and solves the problem of how to automatically recover when an abnormality occurs in the existing USB link.
[0010] According to an embodiment of the present application, a USB link keep-alive method based on an ARM array Android cloud server is provided, including a USB Device ID identification method, and the USB Device ID identification method includes the following steps:
[0011] Design a blade slot identification ID configuration circuit for each blade node slot on the backplane;
[0012] Design a card slot identification ID configuration circuit for each Android card slot on each blade node baseboard;
[0013] An I2C expansion IO chip is designed for each Android card slot on each blade node baseboard, and the IO expansion chip can parse the IO logic level of the card slot identifier into an I2C signal;
[0014] The Android card reads the IO data information of the IO expansion chip in the corresponding slot on the node baseboard through the I2C bus, and can determine the blade slot number of the card in the chassis backplane and the card slot number on the node baseboard;
[0015] The Android card can identify its own USB Device ID according to the location number it obtains, and can bind the USB Device ID and the card location number;
[0016] Each time the Android card is powered on, the location information of the card is obtained through the above steps, and the default USB Device ID information in the system is updated;
[0017] The blade node in-place identification signal and the card in-place identification signal can be realized through pull-up and pull-down resistors, and are used by the BMC management system to determine whether the blade node and the Android board are in place, as auxiliary signals;
[0018] The blade node power-on control signal and the Android board power-on control signal are sent through the I2C expansion IO chip of the BMC management board to control the power on and off of the blade node and the Android board. They are also used by the BMC management system to determine whether the blade node and the Android board are in the powered-on state as auxiliary signals.
[0019] Preferably, it also includes a USB link status inspection strategy and a USB link abnormality recovery method. In order to ensure the stability of the USB link, it is necessary to inspect and monitor the USB link activity status. The USB link status inspection strategy includes the following steps:
[0020] The BMC management board queries the presence and power-on status of the blade node and Android card at a specified interval and marks them locally;
[0021] Check whether the USB Device ID number of the Android board in the server hardware system is correct. If it is correct, it means that all USB links in the system are operating normally and waiting for the next round of cyclic inspection;
[0022] If the number of USB Device IDs is found to decrease, it indicates that there is an abnormal USB link of the Android board. Further confirmation is required to determine whether an abnormality has actually occurred. If an abnormality has actually occurred in the USB link, it is necessary to retrieve the location where the USBDevice ID of the Android board cannot be identified and mark it locally.
[0023] Preferably, the reasons why the USB Device ID cannot be identified due to the USB link abnormality include:
[0024] The first exception is that the Android card is in the process of system restart, and the USB link is temporarily disconnected. After the system restarts, the USB link will automatically connect;
[0025] The second abnormality is that the working status of the USB HUB is abnormal, and several USB downstream ports on the USB HUB are abnormal at the same time, and the corresponding USB HUB needs to be reset;
[0026] The third exception is that the USB link between the Android board and the BMC management board is accidentally disconnected, and the hardware circuits are normal. It is necessary to re-initiate USB peripheral enumeration to restore the USB link.
[0027] Preferably, the USB link abnormality recovery method is used to handle USB link abnormalities, and the USB link abnormality recovery method includes:
[0028] For the first type of exception, if the USB link of the Android card in one or some locations is found to be abnormal, do not perform USB link recovery processing first, delay for a specified time, and then re-detect. If the abnormality is found to be recovered, exit the abnormality processing process and enter the next inspection process; if the abnormality still exists, it means that the abnormality is not caused by the Android board being restarted, and the next step needs to be performed;
[0029] For the second type of exception, if it is found that the USBs of multiple blade nodes are abnormal at the same time, it means that the USB HUB chip on the backplane is abnormal. The BMC management board controls the extended IO through I2C to reset or power off and restart the corresponding USB HUB chip to restore the corresponding USB link. If it is found that the USB links of all Android boards on a certain blade node are abnormal, it means that the USB HUB chip on the blade node bottom board is abnormal. The BMC management board controls the extended IO through I2C to reset or power off and restart the corresponding USB HUB chip to restore the USB link.
[0030] For the third exception, if the USB link of a certain Android card is abnormal, according to the working principle of the USB host enumerating USB peripherals, when the USB peripheral mounted on the USB host is powered on, or a USB peripheral is inserted into the USB host port, the USB controller of the USB peripheral detects that the USB VBUS signal is high, the USB peripheral will trigger the USB controller of the USB host to perform USB peripheral enumeration to establish a USB communication link. An independent USBVBUS power control circuit can be designed for each Android board on the blade node baseboard. The VBUS power supply can be implemented by a DC-DC power supply or an LDO power supply, and the enable end of each VBUS power supply is independently controlled by an independent IO signal.
[0031] Preferably, the USB link status inspection strategy and USB link abnormality recovery method include the following steps:
[0032] The server starts running the USB link inspection and abnormal recovery process;
[0033] Delay T1 second;
[0034] Inspect the status of blade nodes and Android boards and mark them;
[0035] Inspect the power-on status of blade nodes and Android boards and mark them;
[0036] Check the number of USB Device IDs of Android boards;
[0037] Determine whether the Android board is in place and the power-on quantity is equal to the ID quantity; if they are equal, return a delay of T1 seconds; if they are not equal, return a delay of T2 seconds (T2 seconds is greater than the Android board system restart time);
[0038] Secondary inspection of the status of blade nodes and Android boards and marking them;
[0039] Secondary inspection of the power-on status of blade nodes and Android boards and marking;
[0040] Check the number of USB Device IDs of Android boards;
[0041] Determine whether the Android board is in place and the power-on quantity is equal to the ID quantity; if they are equal, return a delay of T1 seconds; if they are not equal, retrieve the unrecognized USB Device ID and mark it;
[0042] Determine whether the Device IDs of multiple blade nodes are abnormal at the same time; if so, reset the USB HUB chip corresponding to the backplane and return a delay of T1 second; if not, determine whether the Device IDs of the same blade node are abnormal at the same time; if so, reset the USB HUB chip of the blade backplane and return a delay of T1 second; if not, restart the UBS VBUS power supply of the Android board with the abnormal USB link and return a delay of T1 second.
[0043] An electronic device comprises a processor and a memory storing a computer program, wherein when the processor executes the computer program, the steps of the USB link keep-alive method based on an ARM array Android cloud server are implemented as described above.
[0044] A non-transitory computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the steps of the USB link keep-alive method based on an ARM array Android cloud server as described above are implemented.
[0045] The technical solution provided by the embodiment of the present application may have the following beneficial effects:
[0046] The present invention provides a USB link keep-alive method, device and storage medium based on an ARM array Android cloud server to ensure the long-term stable operation of the USB link, proposes a complete set of USB link keep-alive solutions, improves the stability and availability of the operation of the ARM array Android cloud server, and reduces on-site operation and maintenance costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings in the following description are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.
[0048] Figure 1 The hardware structure diagram of the USB Device ID identification method of the present invention is shown in FIG.
[0049] Figure 2 A schematic diagram of the hardware structure of the present invention for recovering USB link abnormality;
[0050] Figure 3 The present invention is a flow chart of the USB link status inspection strategy and the USB link abnormality recovery method. DETAILED DESCRIPTION
[0051] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0052] It should also be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0053] It should be further understood that the term "and / or" used in the present description and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
[0054] Using the USB ADB protocol to implement USB management link communication is the simplest and most common technical solution. The BMC management board needs a fixed USB Device ID to identify the Android board through USB ADB. Although each USB peripheral (Android board) system will be assigned a USB Device ID by default, this ID is random and cannot be used directly by the BMC management system. This random ID needs to be modified to a fixed ID value. It can also be modified directly under the Android board system, but there are many disadvantages: 1) It brings additional configuration workload during factory production; 2) If the Android board is flashed, it will be lost and needs to be reconfigured; 3) If the position of the Android board or blade node in the chassis changes, the BMC management system will be confused in the management order of the Android board.
[0055] The first embodiment of the present invention provides a USB link keep-alive method based on an ARM array Android cloud server, including a USB Device ID identification method, wherein the USB Device ID identification method is based on the USB Device ID identification bound to the Android board position (blade node slot + Android board slot). For hardware diagrams, please refer to Figure 1 The USB Device ID identification method comprises the following steps:
[0056] Step S1: designing a blade slot identification ID configuration circuit for each blade node slot on the backplane. For example, blade node slot 6 can be identified as 0110 using a set of binary digital IO signals.
[0057] Step S2: A card slot identification ID configuration circuit is designed for each Android card slot on each blade node baseboard. For example, card slot 3 can be identified as 0011 using a set of binary forms of digital IO signals.
[0058] Step S3: designing an I2C expansion IO chip for each Android card slot on each blade node baseboard, and the IO expansion chip can resolve the IO logic level of the card slot identifier into an I2C signal;
[0059] Step S4: The Android card reads the IO data information of the IO expansion chip in the corresponding slot on the node baseboard through the I2C bus, and can determine the blade slot number of the card in the chassis backplane and the card slot number on the node baseboard (for example, blade slot 6 and card slot 3 can be identified as 63 (0110 0011));
[0060] Step S5: The Android card can identify its own USB Device ID according to the location number it obtains, so that the USB Device ID and the location number of the card are bound;
[0061] Step S6: Each time the Android card is powered on, the location information of the card is obtained through the above step S4, and the default USB Device ID information in the system is updated (so that even if the Android board is replaced, the Android board is re-flashed, or the Android board is changed, it will not affect the BMC management system to correctly identify the USB Device ID of the Android board);
[0062] Step S7: The blade node in-place identification signal and the card in-place identification signal can be realized through pull-up and pull-down resistors, and are used by the BMC management system to determine whether the blade node and the Android board are in place, as an auxiliary signal for implementing the technical solution (because if the blade node or the Android board is not in place, there is no need to detect the USB Device ID of the corresponding Android board, which will be used below);
[0063] Step S8: The blade node power-on control signal and the Android board power-on control signal are sent through the I2C expansion IO chip of the BMC management board, which are used to control the power on and off of the blade node and the Android board, and are also used by the BMC management system to determine whether the blade node and the Android board are in a powered-on state, as an auxiliary signal for implementing the technical solution (because even if the blade node or Android board is in place but in a powered-off state, it is not necessary to detect the USB Device ID of the corresponding board, which will be used below);
[0064] The hardware implementation of the USB Device ID identification method is as follows Figure 1 (The number of blade slots in the whole machine is N, and the number of Android boards in each blade node is M, that is, the whole machine has a total of N*M Android cards).
[0065] In order to ensure the stability of the USB link, it is necessary to first inspect and monitor the activity status of the USB link. A USB link keep-alive method based on an ARM array Android cloud server also includes a USB link status inspection strategy and a USB link abnormality recovery method. In order to ensure the stability of the USB link, it is necessary to first inspect and monitor the activity status of the USB link. The USB link status inspection strategy includes the following steps:
[0066] Step S11: The BMC management board queries the presence and power-on status of the blade node and the Android card once at a specified interval T1 (for example, 30 seconds), and performs local marking.
[0067] Step S12: Then query whether the number of USB Device IDs of the Android board in the server hardware system is correct (i.e., equal to the number of Android cards in place and powered on). If correct, it means that all USB links in the system are operating normally and waiting for the next round of cyclic inspection.
[0068] Step S13: If it is found that the number of USB Device IDs has decreased, it means that the USB link of the Android board is abnormal, and further confirmation is made whether the abnormality really occurs or it is a misjudgment (such as the Android board is in the process of restarting the system). If the USB link abnormality really occurs, it is necessary to retrieve the position of the Android board whose USB Device ID cannot be recognized and mark it locally. There are three reasons why the USB Device ID cannot be recognized due to USB link abnormality (USB link problems caused by abnormalities of the Android board and the BMC management board are not included in this patent solution and can be solved by other strategic solutions):
[0069] The first exception: The Android card is in the process of system restart. The characteristic is that the USB link is temporarily disconnected. After the system restarts, the USB link will automatically connect. In the actual application of the product, this type of exception is also relatively common, and the strategy needs to be taken into consideration.
[0070] The second abnormality: The working state of the USB HUB is abnormal, which is characterized by the fact that several USB downstream ports on the USB HUB are abnormal at the same time, and the corresponding USB HUB needs to be reset (or the USB HUB can be powered off and restarted). In the actual application of the product, it is relatively rare for the USB HUB to have abnormalities, but as an important function of the server equipment, it is necessary to consider the possibility of abnormalities in long-term operation and design an abnormal automatic recovery plan.
[0071] The third abnormality: The USB link between the Android board and the BMC management board is accidentally disconnected, and the hardware circuits are normal. In this case, you need to re-initiate USB peripheral enumeration to restore the USB link. In the actual application of the product, this type of failure is the most common and needs to be solved with emphasis.
[0072] The USB link abnormality recovery method is used to handle USB link abnormalities. The USB link abnormality recovery method includes:
[0073] For the first exception: If the USB link of the Android card in one or some locations is found to be abnormal (the BMC management board cannot detect the corresponding USB Device ID), do not perform USB link recovery processing first, delay for a specified time (greater than the normal system restart time of the Android board), and then re-detect. If the abnormality is found to be recovered, exit the exception handling process and enter the next inspection process; if the abnormality still exists, it means that the abnormality is not caused by the Android board being in the process of restarting, and the next step needs to be performed.
[0074] For the second type of abnormality: If it is found that the USB of multiple blade nodes is abnormal at the same time, it means that the USB HUB chip on the backplane is abnormal. The BMC management board can restore the corresponding USB link by resetting (or powering off) and restarting the corresponding USBHUB chip through I2C control expansion IO. If it is found that the USB link of all Android boards on a blade node is abnormal, it means that the USB HUB chip on the blade node backplane is abnormal. The BMC management board can restore the USB link by resetting (or powering off) and restarting the corresponding USB HUB chip through I2C control expansion IO.
[0075] For the third exception: If the USB link of a certain Android card is abnormal: According to the working principle of USB host enumerating USB peripherals, when the USB peripheral mounted on the USB host is powered on (or a USB peripheral is inserted into the USB host port), the USB controller of the USB peripheral detects that the USB VBUS signal is high, and the USB peripheral will trigger the USB controller of the USB host to perform USB peripheral enumeration to establish a USB communication link. An independent USB VBUS power control circuit (N*M) can be designed for each Android board on the blade node baseboard. The VBUS power supply can be implemented by a DC-DC power supply or an LDO power supply, and the enable end of each VBUS power supply is independently controlled by an independent IO signal (N*M). Because the system requires a large number of IO control signals (N*M), but the CPU usually cannot provide so many IO signals, this technical solution is implemented through an I2C expansion IO chip. When an abnormal USB link is found, the CPU of the BMC management board can restart (turn off and then on) the VBUS power signal of the corresponding Android board through the extended IO signal to simulate the action of inserting the USB peripheral into the USB host port. In this way, the USB controller of the Android board CPU can re-send the enumeration trigger signal to trigger the USB host port of the BMC management board to re-enumerate the USB peripheral to re-establish the USB communication link. Through this technical solution, USB link abnormalities caused by non-hardware failures can be restored. The hardware of this technical solution is as follows: Figure 2 shown.
[0076] See also Figure 3 The USB link status inspection strategy and USB link abnormality recovery method include the following steps:
[0077] The server starts running the USB link inspection and abnormal recovery process;
[0078] Delay T1 second;
[0079] Inspect the status of blade nodes and Android boards and mark them;
[0080] Inspect the power-on status of blade nodes and Android boards and mark them;
[0081] Check the number of USB Device IDs of Android boards;
[0082] Determine whether the Android board is in place and the power-on quantity is equal to the ID quantity; if they are equal, return a delay of T1 seconds; if they are not equal, return a delay of T2 seconds (T2 seconds is greater than the Android board system restart time);
[0083] Secondary inspection of the status of blade nodes and Android boards and marking them;
[0084] Secondary inspection of the power-on status of blade nodes and Android boards and marking;
[0085] Check the number of USB Device IDs of Android boards;
[0086] Determine whether the Android board is in place and the power-on quantity is equal to the ID quantity; if they are equal, return a delay of T1 seconds; if they are not equal, retrieve the unrecognized USB Device ID and mark it;
[0087] Determine whether the Device IDs of multiple blade nodes are abnormal at the same time; if so, reset the USB HUB chip corresponding to the backplane and return a delay of T1 second; if not, determine whether the Device IDs of the same blade node are abnormal at the same time; if so, reset the USB HUB chip of the blade backplane and return a delay of T1 second; if not, restart the UBS VBUS power supply of the Android board with the abnormal USB link and return a delay of T1 second.
[0088] The technical solution provided by the embodiment of the present application may have the following beneficial effects:
[0089] The present invention provides a USB link keep-alive method, device and storage medium based on an ARM array Android cloud server to ensure the long-term stable operation of the USB link, proposes a complete set of USB link keep-alive solutions, improves the stability and availability of the operation of the ARM array Android cloud server, and reduces on-site operation and maintenance costs.
[0090] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A USB link keep-alive method based on an ARM array Android cloud server, characterized in that: The method comprises a USB Device ID identification method, wherein the USB Device ID identification method comprises the following steps: Design a blade slot identification ID configuration circuit for each blade node slot on the backplane; Design a card slot identification ID configuration circuit for each Android card slot on each blade node baseboard; An I2C expansion IO chip is designed for each Android card slot on each blade node baseboard, and the IO expansion chip parses the IO logic level of the card slot identifier into an I2C signal; The Android card reads the IO data information of the IO expansion chip in the corresponding slot on the node baseboard through the I2C bus, and determines the blade slot number of the card in the chassis backplane and the card slot number on the node baseboard; The Android card identifies its own USB Device ID according to the location number it obtains, that is, it binds the USB Device ID and the card location number; Each time the Android card is powered on, the location information of the card is obtained through the above steps, and the default USBDevice ID information in the system is updated; The blade node in-place identification signal and the card in-place identification signal are implemented through pull-up and pull-down resistors, and are used by the BMC management system to determine whether the blade node and the Android board are in place, as auxiliary signals; The blade node power-on control signal and the Android board power-on control signal are sent through the I2C expansion IO chip of the BMC management board to control the power on and off of the blade node and the Android board. They are also used by the BMC management system to determine whether the blade node and the Android board are in the power-on state as auxiliary signals. It also includes a USB link status inspection strategy and a USB link abnormality recovery method. In order to ensure the stability of the USB link, it is necessary to inspect and monitor the USB link activity status. The USB link status inspection strategy includes the following steps: The BMC management board queries the presence and power-on status of the blade node and Android card at a specified interval and marks them locally; Check whether the USB Device ID number of the Android board in the server hardware system is correct. If it is correct, it means that all USB links in the system are operating normally and waiting for the next round of cyclic inspection; If the number of USB Device IDs decreases, it indicates that there is an abnormal USB link of the Android board. Then further confirm whether the abnormality actually occurs. If a USB link abnormality actually occurs, you need to retrieve the location where the USB DeviceID of the Android board cannot be identified and mark it locally; The USB link status inspection strategy and USB link abnormality recovery method include the following steps: The server starts running the USB link inspection and abnormal recovery process; Delay T1 second; Inspect the status of blade nodes and Android boards and mark them; Inspect the power-on status of blade nodes and Android boards and mark them; Check the number of USB Device IDs of Android boards; Determine whether the Android board is in place and the power-on quantity is equal to the ID quantity; if they are equal, return a delay of T1 seconds; if they are not equal, delay T2 seconds, which is greater than the Android board system restart time; Secondary inspection of the status of blade nodes and Android boards and marking them; Secondary inspection of the power-on status of blade nodes and Android boards and marking; Check the number of USB Device IDs of Android boards; Determine whether the Android board is in place and the number of powered-on cards is equal to the number of IDs; if they are equal, return a delay of T1 seconds; If they are not equal, retrieve the unrecognized USB Device ID and identify it; Determine whether the Device IDs of multiple blade nodes are abnormal at the same time; If so, reset the USB HUB chip corresponding to the backplane and return a delay of T1 second; if not, determine whether the Device ID of a single blade node is abnormal at the same time; if so, reset the USB HUB chip of the blade baseboard and return a delay of T1 second; if not, restart the UBS VBUS power supply of the Android board with the abnormal USB link and return a delay of T1 second.
2. According to a USB link keep-alive method based on an ARM array Android cloud server according to claim 1, it is characterized in that: The reasons why the USB Device ID cannot be recognized due to USB link abnormality include: The first exception is that the Android card is in the process of system restart, and the USB link is temporarily disconnected. After the system restarts, the USB link will automatically connect; The second abnormality is that the working status of the USB HUB is abnormal, and several USB downstream ports on the USB HUB are abnormal at the same time, and the corresponding USB HUB needs to be reset; The third exception is that the USB link between the Android board and the BMC management board is accidentally disconnected, and the hardware circuits are normal. It is necessary to re-initiate USB peripheral enumeration to restore the USB link.
3. A USB link keep-alive method based on an ARM array Android cloud server according to claim 2, characterized in that: The USB link abnormality recovery method is used to handle USB link abnormalities. The USB link abnormality recovery method includes: For the first type of exception, if the USB link of the Android card in one or some locations is found to be abnormal, do not perform USB link recovery processing first, delay for a specified time, and then re-detect. If the abnormality is found to be recovered, exit the abnormality processing process and enter the next inspection process; if the abnormality still exists, it means that the abnormality is not caused by the Android board being restarted, and the next step needs to be performed; For the second type of abnormality, if it is found that the USBs of multiple blade nodes are abnormal at the same time, it means that the USBHUB chip on the backplane is abnormal. The BMC management board controls the extended IO through I2C to reset or power off and restart the corresponding USB HUB chip to restore the corresponding USB link. If it is found that the USB links of all Android boards on a certain blade node are abnormal, it means that the USB HUB chip on the blade node bottom board is abnormal. The BMC management board controls the extended IO through I2C to reset or power off and restart the corresponding USB HUB chip to restore the corresponding USB link. For the third exception, if the USB link of a certain Android card is abnormal, according to the working principle of the USB host enumerating USB peripherals, when the USB peripheral mounted on the USB host is powered on, or a USB peripheral is inserted into the USB host port, the USB controller of the USB peripheral detects that the USB VBUS signal is high, the USB peripheral will trigger the USB controller of the USB host to perform USB peripheral enumeration to establish a USB communication link. An independent USB VBUS power control circuit is designed for each Android board on the blade node baseboard. The VBUS power supply is realized by a DC-DC power supply or an LDO power supply, and the enable end of each VBUS power supply is independently controlled by an independent IO signal.
4. An electronic device comprising a processor and a memory storing a computer program, characterized in that: When the processor executes the computer program, the steps of the USB link keep-alive method based on the ARM array Android cloud server are implemented as described in any one of claims 1 to 3.
5. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by the processor, the steps of the USB link keep-alive method based on the ARM array Android cloud server are implemented as described in any one of claims 1 to 3.
