Board-level support packet restarting method and device, vehicle and storage medium

By judging the connection status of the board-level support package and the control unit, and automatically issuing restart instructions to realize the restart of the board-level support package, the problem of non-automation of restart in the existing technology is solved and the testing efficiency is improved.

CN120103809APending Publication Date: 2025-06-06HAOMO TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311639085.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-01
Publication Date
2025-06-06

AI Technical Summary

Technical Problem

In the prior art, the restart board-level support package mainly relies on manual power outage and then power on, and cannot achieve automation, especially in the QNX system, the lack of restart commands and the entire system cannot be restarted directly.

Method used

By receiving test instructions, it is determined whether there is a process connected to the control unit on the board-level support package of the domain controller. If present, a restart instruction is issued to the control unit through the board-level support package, and the control unit controls the domain controller to perform power-off and power-supply actions to restart the board-level support package. Otherwise, establish a connection between the industrial control machine and the control unit, and restart is achieved by issuing a restart command by the industrial control machine.

Benefits of technology

It realizes the automatic restart of the board-level support package, replaces the manual power-off and power-on restart method, improves the testing efficiency, and supports abnormal power-off and restart in the test automation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120103809A_ABST
    Figure CN120103809A_ABST
Patent Text Reader

Abstract

The invention discloses a board-level support packet restarting method and device, a vehicle and a storage medium, and the method comprises the steps: judging whether a process connected with a control unit exists on a board-level support packet of a domain controller or not when a test instruction is received; if yes, a restart instruction is issued to the control unit through the board-level support packet; and otherwise, establishing connection between the industrial personal computer and the control unit so as to issue a restart instruction to the control unit through the industrial personal computer, so that the control unit controls the domain controller to execute power failure and power supply actions so as to restart the board-level support packet. The purpose of initializing the test environment can be achieved, a method of restarting the controller by manual power failure is replaced, and a basis is provided for realizing automatic test. Furthermore, in test automation and abnormal power-off restart in a construction process, the method can also be adopted to carry out without manual waiting, so that the test efficiency is greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of vehicle technology, and in particular to a method, device, vehicle and storage medium for restarting a board support package. Background Art

[0002] When testing the application software on the operating system, the domain controller often needs a clean BSP (Board Support Package) environment. The conventional method is to restart the board support package to obtain a clean BSP environment. In the prior art, restarting the board support package is mainly achieved by manually powering off and then powering on the domain controller, which cannot meet the needs of automation. In addition, if the domain controller's BSP is a QNX system, the system does not provide a restart command, and the entire QNX system cannot be directly restarted. Summary of the invention

[0003] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the present invention aims to provide a method, device, vehicle and storage medium for restarting a board support package.

[0004] The present invention proposes a method for restarting a board support package, the method comprising: upon receiving a test instruction, determining whether there is a process connected to the control unit on the board support package of the domain controller; if so, issuing a restart instruction to the control unit through the board support package, so that the control unit controls the domain controller to perform power-off and power-on actions to restart the board support package; otherwise, establishing a connection between an industrial computer and the control unit, so as to issue the restart instruction to the control unit through the industrial computer, so that the control unit controls the domain controller to perform power-off and power-on actions to restart the board support package.

[0005] In addition, the restart method of the board support package according to the embodiment of the present invention may also have the following additional technical features:

[0006] Furthermore, issuing a restart instruction to the control unit through the board support package includes: interrupting and clearing the process connected to the control unit; installing a restart program on the board support package; and issuing the restart instruction to the control unit through the restart program.

[0007] Furthermore, issuing the restart instruction to the control unit through the industrial computer includes: modifying the board support package and the IP address of the industrial computer; installing a restart program on the industrial computer; and issuing the restart instruction to the control unit through the restart program.

[0008] Further, modifying the IP addresses of the board support package and the industrial computer includes: modifying the IP address of the industrial computer to an IP address corresponding to the board support package; and modifying the IP address of the board support package to a preset IP address.

[0009] Furthermore, issuing the restart instruction to the control unit through the restart program includes: establishing a TCP connection with the control unit using the restart program; after the connection is successful, sending the restart instruction to the control unit using the restart program, so that the control unit controls the domain controller to perform power-off and power-on actions according to the restart instruction to restart the board support package.

[0010] Furthermore, the board support package includes a QNX system.

[0011] Furthermore, the control unit includes a motor controller.

[0012] According to the restart method of the board support package of the embodiment of the present invention, when receiving the test instruction, it is determined whether there is a process connected to the control unit on the board support package of the domain controller; if so, the restart instruction is sent to the control unit through the board support package, so that the control unit controls the domain controller to perform power-off and power-on actions to restart the board support package; otherwise, a connection is established between the industrial computer and the control unit, so that the restart instruction is sent to the control unit through the industrial computer, so that the control unit controls the domain controller to perform power-off and power-on actions to restart the board support package, which can achieve the purpose of initializing the test environment, replace the method of manually powering off and restarting the board support package, and provide a basis for realizing automated testing. Furthermore, in test automation, abnormal power off and restart in the construction process can also be carried out by this method without manual waiting, which greatly improves the test efficiency.

[0013] In view of the above-mentioned problems, the present invention further proposes a restart device for a board support package, comprising: a judgment module, which is used to judge whether there is a process connected to the control unit on the board support package of the domain controller when a test instruction is received; a control module, which is used to send a restart instruction to the control unit through the board support package when there is a process connected to the control unit on the board support package, so that the control unit controls the domain controller to perform power-off and power-on actions to restart the board support package; or, when there is no process connected to the control unit on the board support package, establish a connection between an industrial computer and the control unit, so as to send the restart instruction to the control unit through the industrial computer, so that the control unit controls the domain controller to perform power-off and power-on actions to restart the board support package.

[0014] According to the restart device of the board support package of the embodiment of the present invention, when receiving the test instruction, it is determined whether there is a process connected to the control unit on the board support package of the domain controller; if so, the restart instruction is sent to the control unit through the board support package, so that the control unit controls the domain controller to perform power-off and power-on actions to restart the board support package; otherwise, a connection is established between the industrial computer and the control unit, so that the restart instruction is sent to the control unit through the industrial computer, so that the control unit controls the domain controller to perform power-off and power-on actions to restart the board support package, which can achieve the purpose of initializing the test environment, replace the method of manually powering off and restarting the board support package, and provide a basis for realizing automated testing. Furthermore, in test automation, abnormal power-off and restart in the construction process can also be carried out by this method without manual waiting, which greatly improves the test efficiency.

[0015] In response to the above-mentioned problems, the present invention also proposes a vehicle, comprising: a processor; a memory; a restart program of a board support package stored in the memory and executable on the processor, wherein the restart program of the board support package, when executed by the processor, implements the restart method of the board support package as described in any of the above-mentioned embodiments.

[0016] According to the vehicle of the embodiment of the present invention, when receiving the test instruction, it is determined whether there is a process connected to the control unit on the board support package of the domain controller; if so, a restart instruction is sent to the control unit through the board support package, so that the control unit controls the domain controller to perform power-off and power-on actions to restart the board support package; otherwise, a connection is established between the industrial computer and the control unit to send the restart instruction to the control unit through the industrial computer, so that the control unit controls the domain controller to perform power-off and power-on actions to restart the board support package. The purpose of initializing the test environment can be achieved, replacing the method of manually powering off and restarting the board support package, and providing a basis for realizing automated testing. Furthermore, in test automation, abnormal power off and restart in the construction process can also be carried out using this method without manual waiting, which greatly improves the test efficiency.

[0017] In response to the above-mentioned problems, the present invention further proposes a computer-readable storage medium, on which a restart program of a board support package is stored. When the restart program of the board support package is executed by a processor, the restart method of the board support package as described in any of the above-mentioned embodiments is implemented.

[0018] According to the computer-readable storage medium of the embodiment of the present invention, when the restart program of the board support package stored thereon is executed by the processor, when receiving the test instruction, it is determined whether there is a process connected to the control unit on the board support package of the domain controller; if so, the restart instruction is sent to the control unit through the board support package, so that the control unit controls the domain controller to perform power-off and power-on actions to restart the board support package; otherwise, a connection is established between the industrial computer and the control unit, so that the restart instruction is sent to the control unit through the industrial computer, so that the control unit controls the domain controller to perform power-off and power-on actions to restart the board support package, which can achieve the purpose of initializing the test environment, replace the method of manually powering off and restarting the board support package, and provide a basis for realizing automated testing. Furthermore, in test automation, abnormal power-off and restart in the construction process can also be carried out by this method without manual waiting, which greatly improves the test efficiency.

[0019] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:

[0021] Figure 1 is a flowchart of a method for restarting a board support package according to an embodiment of the present invention;

[0022] Figure 2 4 is a schematic diagram of the structure of a restart device of a board support package according to an embodiment of the present invention. DETAILED DESCRIPTION

[0023] In order to be able to understand the features and technical contents of the embodiments of the present invention in more detail, the implementation of the embodiments of the present invention is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present invention. In the following technical description, for the convenience of explanation, a full understanding of the disclosed embodiments is provided through multiple details. However, one or more embodiments can still be implemented without these details. In other cases, to simplify the drawings, well-known structures and devices can be simplified for display.

[0024] Reference below Figure 1-Figure 2 A method, an apparatus, a vehicle and a storage medium for restarting a board support package according to an embodiment of the present invention are described.

[0025] Figure 1 FIG. 1 is a flowchart of a method for restarting a board support package according to an embodiment of the present invention. Figure 1 As shown, a method for restarting a board support package includes the following steps:

[0026] Step S1: upon receiving a test instruction, determining whether there is a process connected to the control unit on the board support package of the domain controller.

[0027] Specifically, "domain" means that the automotive electronic system is decomposed into several functional blocks according to its functions. The domain controller takes the lead in building the system architecture inside different functional blocks, and uses multi-core CPU / GPU chips with stronger processing power to relatively centrally control each domain. The domain controller is equipped with a board support package, which separates the upper-layer software of the domain controller from the underlying hardware, making the underlying driver of the domain controller independent of the hardware. The control unit is a chip-level computer formed by integrating various circuits on a single chip. The control unit can receive instructions to control the domain controller to perform power-off and power-on actions. When testing the software on the board support package, the board support package needs to be initialized. The most direct and effective method is to restart the board support package, but some board support packages do not have effective commands to restart the system automatically, and cannot achieve self-restart. The control unit can control the domain controller to perform power-off and power-on actions, thereby restarting the board support package on the domain controller by powering off and powering on the domain controller, and achieving the purpose of initializing the test environment. Specifically, the industrial computer sends a RESET instruction (i.e., a restart instruction) to the domain controller to the control unit through the gateway. After receiving the instruction, the control unit controls the domain controller to perform power-off and power-on actions. When the domain controller is powered off, the board support package is shut down; when the domain controller is powered on again, the board support package is turned on, so that the board support package is restored to the initialization state, thereby completing the initialization of the test environment, replacing the method of manually powering off and restarting the board support package, and providing a basis for realizing automated testing. In addition, in test automation, abnormal power off and restart in the construction process can also be carried out using this method without manual waiting, which greatly improves test efficiency.

[0028] Step S2: If there is a process connected to the control unit on the board support package of the domain controller, a restart instruction is sent to the control unit through the board support package, so that the control unit controls the domain controller to perform power-off and power-on actions to restart the board support package.

[0029] Specifically, considering security factors, the IP address used to establish a network connection with the control unit is a preset fixed value and cannot be changed. That is, the industrial computer issues a RESET command to the control unit through the gateway, and the IP address used is a fixed value. If during the test, there is a process connected to the control unit on the board support package of the domain controller, that is, the fixed IP address is used by the domain controller, the industrial computer can no longer use the IP address, and can only establish a network connection with the control unit through the board support package and issue a RESET command (restart command) to the control unit so that the control unit can control the domain controller to perform power-off and power-on actions to restart the board support package.

[0030] Step S3: If there is no process connected to the control unit on the board support package of the domain controller, a connection is established between the industrial computer and the control unit, so that a restart instruction is sent to the control unit through the industrial computer, so that the control unit controls the domain controller to perform power-off and power-on actions to restart the board support package.

[0031] Specifically, if there is no process connected to the control unit on the board support package of the domain controller, it is considered that the fixed IP address for establishing a connection with the control unit may not be used by the board support package, so that the industrial computer can use the fixed IP address. That is, the connection between the industrial computer and the control unit is established through the IP address, so that the industrial computer sends a restart instruction to the control unit, so that the control unit controls the domain controller to perform power-off and power-on actions to restart the board support package.

[0032] In one embodiment of the present invention, issuing a restart instruction to the control unit via a board support package includes: interrupting and clearing a process connected to the control unit; installing a restart program on the board support package; and issuing a restart instruction to the control unit via the restart program.

[0033] Specifically, since there is a process connected to the control unit on the board support package, and the board support package communicates with the control unit, when it sends a restart instruction to the control unit, it is necessary to first interrupt and clear the process connected to the control unit, and then install a restart program on the board support package. The restart program includes restart instructions, such as RESET instructions, so that the restart instruction is sent to the control unit through the restart program to initialize the test environment.

[0034] In a specific embodiment, the restart program can be a C++ program or a Python program. However, the process is the same, that is, a TCP connection is established with the control unit through the restart program, and then a RESTE instruction (such as the 0X1101 instruction of UDS) is sent, that is, a restart instruction is issued to the control unit through the restart program. It should be noted that there is no Python by default on the board support package QNX system, and a C++ program is required, that is, when the board support package is a QNX system, the restart program is a C++ program.

[0035] In one embodiment of the present invention, issuing a restart instruction to the control unit through an industrial computer includes: modifying a board support package and an IP address of the industrial computer; installing a restart program on the industrial computer; and issuing a restart instruction to the control unit through the restart program.

[0036] Specifically, since the RESET command is issued to the control unit, the IP address connected to the control unit needs to be a preset fixed value. Therefore, when the restart command is issued to the control unit through the industrial computer, the IP address of the industrial computer needs to be modified to the preset fixed value first. After the restart program is installed on the industrial computer, the restart command can be issued to the control unit through the restart program, thereby initializing the test environment.

[0037] In one embodiment of the present invention, modifying the IP addresses of the board support package and the industrial computer includes: modifying the IP address of the industrial computer to correspond to the IP address of the board support package; and modifying the IP address of the board support package to a preset IP address.

[0038] In a specific embodiment, if the IP address of the original board support package is a preset fixed value (i.e., the IP address connected to the control unit), in order for the industrial computer to be able to send a restart instruction to the control unit through the restart program, the IP address of the industrial computer needs to be modified to the IP address corresponding to the board support package. The board support package, the industrial computer, and the control unit are located in the same virtual local area network, and the IP addresses of the three cannot be the same. Therefore, the IP address of the board support package needs to be modified to a preset IP address (different from the preset fixed value) so that the industrial computer can send a restart instruction to the control unit through the restart program, so that the control unit can control the domain controller to perform power-off and power-on actions to restart the board support package, thereby initializing the test environment.

[0039] In one embodiment of the present invention, a restart instruction is sent to the control unit through a restart program, including: using the restart program to establish a TCP connection with the control unit; after the connection is successful, using the restart program to send the restart instruction to the control unit, so that the control unit controls the domain controller to perform power-off and power-on actions according to the restart instruction to restart the board support package.

[0040] Specifically, sending a restart instruction to the control unit through a restart program includes two cases. One is sending a restart instruction to the control unit by installing a restart program on a board support package. The other is sending a restart instruction to the control unit by installing a restart program on an industrial computer. In both cases, a restart instruction, such as a RESET instruction, is sent to the control unit through a restart program, so that the control unit controls the domain controller to perform power-off and power-on actions according to the restart instruction, thereby restarting the board support package to achieve the purpose of initializing the test environment.

[0041] In one embodiment of the present invention, the board support package includes a QNX system. In a specific embodiment, the QNX system is a distributed, scalable, POSIX-compliant Unix-like hard real-time operating system. The QNX system does not have a restart command and cannot directly and effectively restart itself. A restart instruction can be issued to the control unit so that the control unit controls the domain controller to perform power-off and power-on actions according to the restart instruction, thereby restarting the QNX system and achieving the purpose of initializing the test environment.

[0042] In one embodiment of the present invention, the control unit includes a motor controller. In a specific embodiment, the motor controller is used to control the start, operation, advance and retreat, speed, stop, etc. of the motor, and is an important component of the car. When the board support package of the domain controller is a QNX system, a restart instruction can be issued to the motor controller so that the motor controller performs power-off and power-on actions according to the restart instruction domain controller to restart the board support package, thereby achieving the purpose of initializing the test environment.

[0043] According to the restart method of the board support package of the embodiment of the present invention, when receiving the test instruction, it is determined whether there is a process connected to the control unit on the board support package of the domain controller; if so, the restart instruction is sent to the control unit through the board support package, so that the control unit controls the domain controller to perform power-off and power-on actions to restart the board support package; otherwise, a connection is established between the industrial computer and the control unit, so that the restart instruction is sent to the control unit through the industrial computer, so that the control unit controls the domain controller to perform power-off and power-on actions to restart the board support package, which can achieve the purpose of initializing the test environment, replace the method of manually powering off and restarting the board support package, and provide a basis for realizing automated testing. Furthermore, in test automation, abnormal power off and restart in the construction process can also be carried out by this method without manual waiting, which greatly improves the test efficiency.

[0044] A further embodiment of the present invention also discloses a restart device for a board support package. Figure 2 is a schematic diagram of the structure of a restart device of a board support package according to an embodiment of the present invention. Figure 2As shown, the device 10 includes: a judgment module 11 and a control module 11. The judgment module 11 is used to judge whether there is a process connected to the control unit on the board support package of the domain controller when receiving the test instruction; the control module 11 is used to send a restart instruction to the control unit through the board support package when there is a process connected to the control unit on the board support package, so that the control unit controls the domain controller to perform power-off and power-on actions to restart the board support package; or, when there is no process connected to the control unit on the board support package, establish a connection between the industrial computer and the control unit, so as to send a restart instruction to the control unit through the industrial computer, so that the control unit controls the domain controller to perform power-off and power-on actions to restart the board support package.

[0045] In one embodiment of the present invention, the control module 11 sends a restart instruction to the control unit through a board support package, including: interrupting and clearing the process connected to the control unit; installing a restart program on the board support package; and sending a restart instruction to the control unit through the restart program.

[0046] In one embodiment of the present invention, the control module 11 sends a restart instruction to the control unit through the industrial computer, including: modifying the board support package and the IP address of the industrial computer; installing a restart program on the industrial computer; and sending a restart instruction to the control unit through the restart program.

[0047] In one embodiment of the present invention, the control module 11 modifies the IP addresses of the board support package and the industrial computer, including: modifying the IP address of the industrial computer to the IP address corresponding to the board support package; modifying the IP address of the board support package to a preset IP address.

[0048] In one embodiment of the present invention, the control module 11 sends a restart instruction to the control unit through a restart program, including: using the restart program to establish a TCP connection with the control unit; after the connection is successful, using the restart program to send a restart instruction to the control unit, so that the control unit controls the domain controller to perform power-off and power-on actions according to the restart instruction to restart the board support package.

[0049] In one embodiment of the present invention, the board support package includes a QNX system.

[0050] In one embodiment of the present invention, the control unit includes a motor controller. It should be noted that when the restart device of the board support package of the embodiment of the present invention restarts the board support package, its specific implementation method is similar to the specific implementation method of the restart method of the board support package of the embodiment of the present invention. For details, please refer to the description of the restart method of the board support package. In order to reduce redundancy, it will not be repeated here.

[0051] According to the restart device of the board support package of the embodiment of the present invention, when receiving the test instruction, it is determined whether there is a process connected to the control unit on the board support package of the domain controller; if so, the restart instruction is sent to the control unit through the board support package, so that the control unit controls the domain controller to perform power-off and power-on actions to restart the board support package; otherwise, a connection is established between the industrial computer and the control unit, so that the restart instruction is sent to the control unit through the industrial computer, so that the control unit controls the domain controller to perform power-off and power-on actions to restart the board support package, which can achieve the purpose of initializing the test environment, replace the method of manually powering off and restarting the board support package, and provide a basis for realizing automated testing. Furthermore, in test automation, abnormal power-off and restart in the construction process can also be carried out by this method without manual waiting, which greatly improves the test efficiency.

[0052] A further embodiment of the present invention also discloses a vehicle, comprising: a processor; a memory; a restart program of a board support package stored in the memory and executable on the processor, wherein the restart program of the board support package, when executed by the processor, implements the restart method of the board support package as described in any of the above embodiments.

[0053] It should be noted that when the vehicle in the embodiment of the present invention restarts the board support package, its specific implementation method is similar to the specific implementation method of the restart method of the board support package in the embodiment of the present invention. Please refer to the description of the restart method of the board support package for details. In order to reduce redundancy, it will not be repeated here.

[0054] According to the vehicle of the embodiment of the present invention, when receiving the test instruction, it is determined whether there is a process connected to the control unit on the board support package of the domain controller; if so, a restart instruction is sent to the control unit through the board support package, so that the control unit controls the domain controller to perform power-off and power-on actions to restart the board support package; otherwise, a connection is established between the industrial computer and the control unit to send the restart instruction to the control unit through the industrial computer, so that the control unit controls the domain controller to perform power-off and power-on actions to restart the board support package. The purpose of initializing the test environment can be achieved, replacing the method of manually powering off and restarting the board support package, and providing a basis for realizing automated testing. Furthermore, in test automation, abnormal power off and restart in the construction process can also be carried out using this method without manual waiting, which greatly improves the test efficiency.

[0055] A further embodiment of the present invention also discloses a computer-readable storage medium, on which a restart program of a board support package is stored. When the restart program of the board support package is executed by a processor, the restart method of the board support package as described in any of the above embodiments is implemented.

[0056] According to the computer-readable storage medium of the embodiment of the present invention, when the restart program of the board support package stored thereon is executed by the processor, when receiving the test instruction, it is determined whether there is a process connected to the control unit on the board support package of the domain controller; if so, the restart instruction is sent to the control unit through the board support package, so that the control unit controls the domain controller to perform power-off and power-on actions to restart the board support package; otherwise, a connection is established between the industrial computer and the control unit, so that the restart instruction is sent to the control unit through the industrial computer, so that the control unit controls the domain controller to perform power-off and power-on actions to restart the board support package, which can achieve the purpose of initializing the test environment, replace the method of manually powering off and restarting the board support package, and provide a basis for realizing automated testing. Furthermore, in test automation, abnormal power-off and restart in the construction process can also be carried out by this method without manual waiting, which greatly improves the test efficiency.

[0057] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials, or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example.

[0058] Although the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the claims and their equivalents.

Claims

1. A method for restarting a board support package. It is characterized in that The method comprises: When receiving the test instruction, determining whether there is a process connected to the control unit on the board support package of the domain controller; If yes, issuing a restart instruction to the control unit through the board support package, so that the control unit controls the domain controller to perform power-off and power-on actions to restart the board support package; Otherwise, a connection is established between the industrial computer and the control unit to send the restart instruction to the control unit through the industrial computer, so that the control unit controls the domain controller to perform power-off and power-on actions to restart the board support package.

2. The method for restarting a board support package according to claim 1, It is characterized in that Sending a restart instruction to the control unit through the board support package includes: interrupting and clearing the process connected to the control unit; Installing a reboot program on the board support package; The restart instruction is sent to the control unit through the restart program.

3. The method for restarting a board support package according to claim 1, It is characterized in that Sending the restart instruction to the control unit by the industrial computer includes: Modify the board support package and the IP address of the industrial computer; Installing a restart program on the industrial computer; The restart instruction is sent to the control unit through the restart program.

4. The method for restarting a board support package according to claim 3, It is characterized in that Modifying the IP address of the board support package and the industrial computer includes: Modify the IP address of the industrial computer to the IP address corresponding to the board support package; The IP address of the board support package is modified to a preset IP address.

5. The method for restarting a board support package according to claim 2 or 3, It is characterized in that Sending the restart instruction to the control unit through the restart program includes: Establishing a TCP connection with the control unit using the restart program; After the connection is successful, the restart program is used to send a restart instruction to the control unit, so that the control unit controls the domain controller to perform power-off and power-on actions according to the restart instruction to restart the board support package.

6. The method for restarting a board support package according to any one of claims 1 to 4, It is characterized in that The board support package includes the QNX system.

7. The method for restarting a board support package according to any one of claims 1 to 4, It is characterized in that The control unit includes a motor controller.

8. A restart device for a board support package, It is characterized in that include: A judgment module, configured to judge whether there is a process connected to the control unit on the board support package of the domain controller when receiving the test instruction; A control module is used for, when there is a process connected to the control unit on the board support package, issuing a restart instruction to the control unit through the board support package, so that the control unit controls the domain controller to perform power-off and power-on actions to restart the board support package; or, when there is no process connected to the control unit on the board support package, establishing a connection between an industrial computer and the control unit, so as to issue the restart instruction to the control unit through the industrial computer, so that the control unit controls the domain controller to perform power-off and power-on actions to restart the board support package.

9. A vehicle, It is characterized in that include: processor; Memory; A restart program of a board support package stored in the memory and executable on the processor, wherein when the restart program of the board support package is executed by the processor, the restart method of the board support package according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a restart program of a board support package, and when the restart program of the board support package is executed by a processor, the restart method of the board support package according to any one of claims 1 to 7 is implemented.