Offline detection method and vehicle
By automatically switching the operating mode and downloading the inspection application of the vehicle host, efficient down-line detection of the vehicle controller is achieved, solving the problems of low detection efficiency and high cost in the existing technology, and improving the detection efficiency and accuracy.
Patent Information
- Application Number
- CN202411739823.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-29
- Publication Date
- 2025-03-28
AI Technical Summary
The prior art is inefficient and costly during the downline detection process of vehicle controllers, and operators need to operate one by one to write, which increases the workload of near-field diagnostic equipment and reduces the brushing efficiency.
Automatic offline detection is realized through the vehicle host, and the operation mode is switched to the inspection mode using the switching diagnostic code, download and install the inspection application, download diagnostic data from the cloud server, and perform offline detection of the vehicle through the intelligent inspection application. After completion, uninstall the application and restore the default operation mode.
It improves the efficiency of offline inspection, reduces the cost of inspection, realizes efficient diagnostic and writing of vehicle controllers, and improves the accuracy of inspection.
Smart Images

Figure CN119714924A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle technology, and in particular to an off-line detection method and a vehicle. Background Art
[0002] With the popularization of the Internet of Vehicles, more and more functions are being realized based on the Internet of Vehicles. More and more controllers rely on writing relevant vehicle information in advance on the production line side to realize the functions defined later. When diagnosing and flashing the vehicle controller, the near-field diagnostic device is usually required to download and save the diagnostic flashing process on the cloud server, and then send the flashing process to the vehicle through the near-field diagnostic device. Although this method can also flash, it requires operators to flash one by one, which increases the workload of the near-field diagnostic device and reduces the flashing efficiency of the vehicle controller. Summary of the invention
[0003] In view of this, the purpose of the present application is to propose an offline detection method and a vehicle, which can realize automatic offline detection of the vehicle through the vehicle host, improve the offline detection efficiency and reduce the offline detection cost.
[0004] Based on the above purpose, the present application provides a offline detection method, which is characterized by being applied to a vehicle host; the offline detection method comprises:
[0005] The vehicle host switches the current operation mode to the electric inspection mode according to the received switching diagnostic code;
[0006] In the electrical inspection mode, the vehicle host downloads the electrical inspection application from the cloud server after successfully connecting to the network, and installs the electrical inspection application locally;
[0007] The vehicle host downloads diagnostic data from the cloud server through the electrical inspection application, and performs vehicle offline inspection based on the diagnostic data and the intelligent electrical inspection application. After determining that the vehicle offline inspection is completed, the intelligent electrical inspection application is uninstalled and the electrical inspection mode is switched to the default operating mode.
[0008] The present disclosure provides a vehicle host, which is used to execute the offline detection method as described above.
[0009] Based on the same inventive concept, the present disclosure also provides a vehicle, including a vehicle host, wherein the vehicle host is used to execute the offline detection method as described above.
[0010] From the above, it can be seen that the offline detection method and vehicle provided by the present application are applied to the vehicle host; the vehicle host switches the current operating mode to the electrical inspection mode according to the received switching diagnostic code; in the electrical inspection mode, the vehicle host downloads the electrical inspection application from the cloud server after the network is successfully connected, and installs the electrical inspection application locally; the vehicle host downloads the diagnostic data from the cloud server through the electrical inspection application, and performs the offline inspection of the whole vehicle according to the diagnostic data and the intelligent electrical inspection application. After determining that the offline inspection of the whole vehicle is completed, the intelligent electrical inspection application is uninstalled, and the electrical inspection mode is switched to the default operating mode. Only after receiving the switching diagnostic code of the diagnostic device is the vehicle host allowed to switch the current operating mode to the electrical inspection mode, and the entry into the electrical inspection mode is controlled to prevent malicious use, thereby realizing the controllability of intelligent electrical inspection. Only when switching to the electrical inspection mode does the vehicle host download the electrical inspection application, and uninstall the electrical inspection application in time after the electrical inspection is completed, saving the storage space of the system and realizing the economy of intelligent electrical inspection. The vehicle host determines the download conditions based on the preset service set identifier, and automatically downloads the electrical inspection application from the cloud server when the download conditions are met, thereby realizing the high efficiency of intelligent electrical inspection and improving the diagnostic flashing efficiency and accuracy of the vehicle controller. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] In order to more clearly illustrate the technical solutions in the present application or related technologies, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0012] Figure 1 This is a flow chart of the offline detection method of an embodiment of the present application;
[0013] Figure 2 A schematic diagram of a download triggering process of an electric inspection application according to an embodiment of the present application;
[0014] Figure 3a A schematic diagram of the execution process of the electrical inspection using a host computer according to an embodiment of the present application;
[0015] Figure 3b A flowchart for downloading and installing an electrical inspection application for an embodiment of the present application;
[0016] Figure 4 This is a flow chart of downloading diagnostic data from a cloud server through an electrical inspection application according to an embodiment of the present application;
[0017] Figure 5 This is a flow chart of an embodiment of the present application for performing off-line vehicle testing based on diagnostic data and electrical inspection applications;
[0018] Figure 6A flowchart for determining whether the vehicle off-line inspection is completed in an embodiment of the present application;
[0019] Figure 7 The present invention is a flowchart of application uninstallation and mode recovery in an embodiment of the present application. DETAILED DESCRIPTION
[0020] In order to make the objectives, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.
[0021] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present application should be the usual meanings understood by people with ordinary skills in the field to which the present application belongs. The "first", "second" and similar words used in the embodiments of the present application do not represent any order, quantity or importance, but are only used to distinguish different components. "Including" or "comprising" and similar words mean that the elements or objects appearing in front of the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0022] It should be understood herein that any number of elements in the drawings is for illustration rather than limitation, and any naming is only for distinction rather than having any limiting meaning.
[0023] Based on the description of the above background technology, the related technology also has the following situations:
[0024] In the related technology, when the vehicle controller is diagnosed and flashed during the vehicle end of line (EOL) process, the EOL diagnostic equipment is usually required to download the diagnostic flashing process and the list of vehicle controllers that need to be flashed from the cloud server in advance, and save the diagnostic flashing process and the list of vehicle controllers locally to provide data support for subsequent diagnostic flashing processes.
[0025] After the preparation of the EOL diagnostic equipment is completed, the flashing process is sent to the vehicle through the EOL diagnostic equipment, and then the operator needs to perform diagnostic flashing of the controllers one by one according to the vehicle controller list. As the degree of vehicle intelligence increases, the number of controllers deployed in the vehicle increases, resulting in an increasing workload of the offline inspection process, which reduces the flashing efficiency and accuracy of the vehicle controller. In addition, when the operator performs diagnostic flashing one by one, there may be omissions or repeated inspections, which further reduces the flashing efficiency and accuracy of the vehicle controller.
[0026] When performing offline testing, multiple testing stations need to be combined to realize the testing of all controllers. The testing efficiency of one testing station will affect the testing efficiency of the entire offline testing. Therefore, the related technology uses manual execution of the diagnostic flashing of the entire offline testing, which has the problems of low efficiency and low accuracy.
[0027] The offline detection method and vehicle provided in the embodiment of the present application are applied to the vehicle host; the vehicle host switches the current operation mode to the electric inspection mode according to the received switching diagnostic code; in the electric inspection mode, the vehicle host downloads the electric inspection application from the cloud server after the network is successfully connected, and installs the electric inspection application locally; the vehicle host downloads the diagnostic data from the cloud server through the electric inspection application, and performs the whole vehicle offline inspection according to the diagnostic data and the intelligent electric inspection application, and after determining that the whole vehicle offline inspection is completed, uninstalls the intelligent electric inspection application, and switches the electric inspection mode to the default operation mode. Only after receiving the switching diagnostic code of the diagnostic device is the vehicle host allowed to switch the current operation mode to the electric inspection mode, and the entry into the electric inspection mode is controlled to prevent malicious use, so as to realize the controllability of intelligent electric inspection. Only when switching to the electric inspection mode, the vehicle host downloads the electric inspection application, and uninstalls the electric inspection application in time after the electric inspection is completed, which saves the storage space of the system and realizes the economy of intelligent electric inspection. The vehicle host determines the download conditions based on the preset service set identifier, and automatically downloads the electrical inspection application from the cloud server when the download conditions are met, thereby realizing the high efficiency of intelligent electrical inspection and improving the diagnostic flashing efficiency and accuracy of the vehicle controller.
[0028] The offline detection method provided by the embodiments of the present application is described in detail below with reference to the accompanying drawings.
[0029] In some embodiments, Figure 1 As shown, a offline detection method includes:
[0030] Step 101: The vehicle host switches the current operating mode to the electrical inspection mode according to the received switching diagnostic code.
[0031] In specific implementation, the offline detection method is applied to the vehicle host HUT, which is connected to the cloud server and the diagnostic detection device. The vehicle host is provided with an interface connected to the diagnostic device for wired connection with the diagnostic device. If the vehicle host has a wireless connection function, it can also be connected to the diagnostic device wirelessly, such as through Bluetooth or wireless LAN. The vehicle host is also connected to the controller in the vehicle that needs to be diagnosed and flashed, so as to realize the diagnostic flashing of the controller by executing the offline detection method.
[0032] When performing diagnostic flashing, you first need to establish a connection between the diagnostic device and the vehicle host to obtain the switching diagnostic code sent by the diagnostic device. The switching diagnostic code is used to switch the electrical inspection mode. The vehicle host includes a default operating mode for normal operation and an electrical inspection mode for the diagnostic flashing controller. The vehicle host in the default operating mode can execute various instructions during normal vehicle operation, but cannot implement the diagnostic flashing function for the vehicle controller. The vehicle host in the electrical inspection mode cannot execute conventional control instructions, but can execute instructions or functions related to diagnostic flashing.
[0033] Exemplarily, the diagnostic code (Diagnostic ID, DID) sent by the diagnostic device includes a recovery diagnostic code F1D101 corresponding to the default operating mode and a switching diagnostic code F1D102 corresponding to the smart diagnostic mode. After receiving the switching diagnostic code sent by the diagnostic device, the vehicle host will switch from the current operating mode (generally the default operating mode) to the smart diagnostic mode. After receiving the recovery diagnostic code sent by the diagnostic device, the vehicle host will recover from the smart diagnostic mode to the current operating mode (generally the default operating mode).
[0034] In some embodiments, Figure 2 As shown, the vehicle host includes a micro control unit; the vehicle host switches the current operating mode to the electric inspection mode according to the received switching diagnostic code, including:
[0035] Step 1011: In response to the microcontroller unit detecting that the device of the diagnostic device is connected to the CAN signal, the vehicle host is controlled to enter the extended mode and receive the switching diagnostic code sent by the diagnostic device.
[0036] During specific implementation, after connecting to the diagnostic device, the vehicle end will generate a device access CAN signal of the diagnostic device. After the microcontroller unit in the vehicle host detects the device access CAN signal of the diagnostic device, it will control the vehicle host to enter the extended mode. The extended mode indicates a special state that allows the vehicle host to switch to other modes besides the default operating mode.
[0037] Step 1012: The microcontroller unit performs security authentication on the vehicle host according to the security access service, and after the security authentication is passed, writes a switching diagnostic code according to the write data service to switch the vehicle host from the current operating mode to the electrical inspection mode.
[0038] In specific implementation, the diagnostic device performs security verification with the microcontroller unit (MCU) of the vehicle host through a security access service (such as the 0x27 service). After the security verification is passed, the MCU uses the write data service (such as the 0x2E service) to write the pre-defined switching diagnostic code for controlling the working mode switching into the vehicle host. The vehicle host switches the current operating mode to the electrical inspection mode according to the switching diagnostic code to prepare for intelligent electrical inspection. Among them, the security access service is used to unlock the ECU. In addition to the 0x27 service, other protocols that can unlock the ECU can also be used as security access services. The write data service is used to write data to the ECU. In addition to the 0x2E service, other protocols that can write data to the ECU can also be used as write data services.
[0039] The vehicle host is allowed to switch the current operating mode to the electrical inspection mode only after receiving the switching diagnostic code from the diagnostic device. The entry into the electrical inspection mode is controlled to prevent malicious exploitation and realize the controllability of intelligent electrical inspection.
[0040] Step 102: In the electrical inspection mode, the vehicle host downloads the electrical inspection application from the cloud server after successfully connecting to the network, and installs the electrical inspection application locally.
[0041] In specific implementation, after entering the electric inspection mode, since there is no electric inspection application for performing intelligent electric inspection in the host at this time, it is necessary to trigger the download process of the electric inspection application. After the download conditions are met, the vehicle host downloads the electric inspection application from the cloud server, and automatically installs the electric inspection application after the download is complete, preparing to use the intelligent electric inspection application to perform diagnostic flashing of the vehicle controller. The specific process is that after the download conditions are met, the vehicle host downloads the electric inspection application from the cloud server through the front-end component application, and calls the package management service Packagemanager in the Android system to install the electric inspection application.
[0042] After the microcontroller in the vehicle host determines that the vehicle host has entered the electrical inspection mode, it triggers the download process of the system-on-chip SOC in the vehicle host. Figure 2 The system-level chip shown is deployed with a main operating system (real-time operating system QNX, Linux system) and a virtualization system (such as Android system, Hongmeng system).
[0043] In some embodiments, Figure 2As shown, the vehicle host includes a system-level chip connected to a microcontroller unit; after the vehicle host is successfully connected to the network, it downloads the electric inspection application from the cloud server and installs the electric inspection application locally, including:
[0044] Step 1021: The micro control unit sends the mode switching result to the system-on-chip.
[0045] In specific implementation, the download process of the electrical inspection application is as follows Figure 2 As shown, the microcontroller unit transmits the application download instruction to the intelligent electrical inspection bridge service on the QNX side through the interface (a bridge service between the upper and lower layers, such as the HOST service. In addition to the HOST service, other services used to connect the upper and lower layers can also serve as bridge services), and the intelligent electrical inspection bridge service passes it to the intelligent electrical inspection vehicle-side service through the internal interface of the QNX side. Finally, the application download instruction is forwarded to the Android system deployed in the system-level chip through the intelligent electrical inspection vehicle-side service.
[0046] Step 1022: In response to the system-level chip receiving the mode switching result, the corresponding target line communication network is connected according to the preset service set identifier and communication password, and after the target communication network is successfully connected, the electrical inspection application is downloaded from the cloud server and installed locally.
[0047] In specific implementation, after receiving the application download instruction, the Android system responds to the application download instruction through the front-end component application (for example, Figure 2 The BooststartAPP in the system establishes a communication connection with the intelligent electric inspection cloud server to prepare for application download. Before downloading the electric inspection application, the Android system will determine whether the conditions for downloading the electric inspection application are met through the front-end component application. The Android system needs to determine whether the download conditions of the electric inspection application are met based on the preset service set identifier. By setting the download conditions, the vehicle can avoid erroneous downloading of the electric inspection application and realize the controllability of the intelligent electric inspection.
[0048] After the download conditions are met, the vehicle host downloads the electric inspection application from the cloud server, and automatically installs the electric inspection application after the download is complete, preparing to use the intelligent electric inspection application to perform diagnostic flashing of the vehicle controller. The specific process is that after the download conditions are met, the vehicle host downloads the electric inspection application from the cloud server through the front-end component application, and calls the package management service Packagemanager in the Android system to install the electric inspection application.
[0049] Step 103: The vehicle host downloads diagnostic data from the cloud server through the electrical inspection application, and performs an off-line inspection of the vehicle based on the diagnostic data and the intelligent electrical inspection application. After determining that the off-line inspection of the vehicle is completed, the intelligent electrical inspection application is uninstalled and the electrical inspection mode is switched to the default operating mode.
[0050] In specific implementation, after the electronic inspection application is downloaded, the vehicle host starts the electronic inspection application and downloads diagnostic data such as VIN information and vehicle configuration word information from the cloud server (such as the intelligent electronic inspection server) through the electronic inspection application. After the diagnostic data is downloaded, the vehicle host distributes the diagnostic data to different vehicle controllers through the electronic inspection application so that the vehicle controller can perform its own diagnostic flash and receive feedback data from each vehicle controller in real time. After all vehicle control diagnostic flashes are completed, the electronic inspection application is uninstalled and the electronic inspection mode is switched to the default operation mode to complete the intelligent electronic inspection of the vehicle.
[0051] In summary, the offline detection method provided in the embodiment of the present application allows the vehicle host to switch the current operating mode to the electrical inspection mode only after receiving the switching diagnostic code of the diagnostic device, and controls the entry into the electrical inspection mode to prevent malicious use, thereby achieving the controllability of intelligent electrical inspection. The electrical inspection application is downloaded only when switching to the electrical inspection mode, and the electrical inspection application is uninstalled in time after the electrical inspection is completed, saving the storage space of the system and achieving the economy of intelligent electrical inspection. The download conditions are judged according to the preset service set identifier, and the electrical inspection application is automatically downloaded from the cloud server after the download conditions are met, thereby achieving the high efficiency of intelligent electrical inspection and improving the diagnostic flash writing efficiency of the vehicle controller.
[0052] In some embodiments, Figure 3a As shown, the system-level chip is deployed with the real-time operating system QNX as the main operating system and the Android system as the virtualization system; the Android system in the vehicle HUT is composed of BooststartAPP, MOTAAPP, and system settings APP; the real-time operating system QNX is composed of the vehicle-side MOTA server, bridge service, and diagnostic protocol client DOIP Client; the MCU side is composed of diagnostic services; the outside of HUT is composed of the central gateway CEM and other control ECUs to be detected; the outside of the vehicle is composed of factory WIFI and cloud MOTA server.
[0053] in, Figure 3a The detailed functions of each functional module are as follows:
[0054] The system settings application (system settings APP) can pre-write the service set ID and password of the factory WIFI. After scanning the communication ID of the factory WIFI, fill in the password to achieve seamless automatic connection, and then notify the front-end component application that the network connection is successful.
[0055] The package management service (Packagemanager) can receive calls from front-end component applications and install the downloaded electrical inspection application (MOTAAPP) into the virtualization system of the vehicle host, thereby realizing the intelligent electrical inspection process, and uninstalling the electrical inspection application after the intelligent electrical inspection is completed.
[0056] The front-end component application can communicate with the intelligent electrical inspection cloud server (MOTA cloud server) to trigger the download of the electrical inspection application when it recognizes that it is connected to the factory WIFI and the vehicle host has switched to electrical inspection mode. After the electrical inspection application is downloaded, it notifies the package management service to install the electrical inspection application.
[0057] The electronic inspection application (MOTAAPP) is downloaded by the front-end component application and installed by the package management service. It connects to the cloud server through the network, downloads the diagnostic configuration information from the cloud server, and writes the vehicle configuration word, VIN and other diagnostic configurations into the vehicle host and other vehicle controllers (Electronic Control Unit, ECU) through the intelligent electronic inspection vehicle-side service (vehicle-side MOTA) and bridge service and diagnostic protocol client (DOIP Client). The received feedback data is forwarded to the cloud server to realize automated diagnosis.
[0058] The intelligent electrical inspection vehicle-side service serves as a bridge between the upper-level electrical inspection application and the lower-level bridge service communication, realizing the transition from JAVA to C language, thereby realizing the data conversion and transmission process of intelligent electrical inspection.
[0059] The bridge service is a bridge between the upper-layer intelligent electrical inspection vehicle-side service and the lower-layer diagnostic protocol client.
[0060] The diagnostic protocol client (DOIP Client) can convert the diagnostic request of the vehicle's intelligent electrical inspection vehicle-side service into a standard Ethernet diagnostic command and send it to the diagnostic protocol server (DOIP Server) of the vehicle gateway. The central gateway will then forward the diagnostic command to other Ethernet and CAN bus-connected controllers to be inspected, receive feedback data from the diagnostic protocol server in the central gateway, upload the feedback data to the intelligent electrical inspection vehicle-side service, and then forward it to the electrical inspection application, and finally send it to the MOTA cloud server through the electrical inspection application to achieve automatic diagnosis.
[0061] If Figure 3a and Figure 3b As shown, the corresponding target line communication network is connected according to the preset service set identifier and communication password, and after the target communication network is successfully connected, the electric inspection application is downloaded from the cloud server and installed locally, including:
[0062] Step 301: The main operating system forwards the mode switching result to the virtualization system.
[0063] When implementing it, Figure 3aAs shown, after receiving the notification, the diagnostic service of the MCU switches the working mode of the HUT to the intelligent electrical inspection mode, and at the same time transmits it to the bridge service on the QNX side through the internal interface, and the bridge service transmits it to the MOTA vehicle-side service on the QNX side through the internal interface, and the MOTA vehicle-side service finally notifies the virtualization system BooststartAPP.
[0064] Step 302: After the virtualization system determines that the mode switching result is successful, it identifies the target line communication network corresponding to the service set identifier through the deployed system setting application, and connects to the target wireless communication network according to the communication password.
[0065] In specific implementation, since the electric inspection mode is an internal mode dedicated to power-off detection, in order to ensure that the switching of the electric inspection mode is not caused by an erroneous trigger or a malicious attack, the switching of the electric inspection mode needs to be safely verified. The switching of the electric inspection mode needs to be activated using a switching diagnostic code, so the switching diagnostic code can be verified. The standard for verifying the switching diagnostic code is the first standard code corresponding to the electric inspection mode and the second standard code corresponding to the default operating mode. The first standard code is consistent with the correct switching diagnostic code, which is F1D102. The second standard code is consistent with the correct recovery diagnostic code, which is F1D101.
[0066] If the switching diagnostic code is consistent with the first standard code, it means that the switching of the electrical inspection mode is activated by the correct switching diagnostic code, which is a legal mode switch. It is determined that the electrical inspection mode is safely activated and the operating mode conditions are met, allowing subsequent intelligent electrical inspections.
[0067] If the switching diagnostic code is consistent with the second standard code, it means that the switching of the electrical inspection mode is activated by the wrong recovery diagnostic code, which is an illegal and unexpected mode switch. It is determined that the electrical inspection mode is unexpectedly activated, and it is determined that the operating mode conditions are not met, and subsequent intelligent electrical inspections are prohibited.
[0068] When downloading the electrical inspection application from the cloud server, you also need to ensure that the vehicle host is connected to the Internet. Otherwise, network data transmission will not be possible, resulting in the inability to ensure the installation and download of the electrical inspection application. Therefore, you first need to connect the vehicle host to the Internet. However, in order to ensure the security of the electrical inspection process, not any wireless communication network WiFi can be used. Therefore, the vehicle host needs to be connected to a specific secure wireless communication network.
[0069] The specific implementation process is: the vehicle host searches for connectable WiFi through the system setting application, and can determine at least one connectable wireless communication network.
[0070] For each wireless communication network searched, each wireless communication network requires independent identity authentication. Only users who pass the identity authentication can enter the corresponding wireless communication network, preventing unauthorized users from entering the wireless communication network. Therefore, each wireless communication network has a unique communication identifier for identity authentication. All the communication identifiers searched are integrated to obtain a communication identifier set.
[0071] The service set identifier is used by the vehicle host for identity authentication. If the communication identifier of a wireless communication network is consistent with the service set identifier, it means that the vehicle host can pass the identity authentication of the wireless communication network and then connect to the wireless communication network according to the corresponding password.
[0072] If there is no target communication identifier consistent with the service set identifier in the communication identifier set, it means that the vehicle host cannot pass the authentication of any wireless communication network, the vehicle host cannot connect to the Internet, and cannot transmit data with the cloud server, resulting in the inability to download the installation package of the electrical inspection application, and it is determined that the network communication conditions are not met.
[0073] If there is a target communication identifier that is consistent with the service set identifier in the communication identifier set, it means that the vehicle host can pass the identity authentication of at least one wireless communication network, the vehicle host can be connected to the Internet, and can transmit data with the cloud server. The use of the service set identifier for identity authentication ensures the security of the connected wireless communication network and will not connect to other wireless communication networks that pose security risks.
[0074] like Figure 3a As shown, under normal circumstances, there is a factory WiFi specifically used for intelligent electrical inspection in the offline detection factory as a safe target wireless communication network. Therefore, if there is a factory WiFi in at least one identified wireless communication network, the communication identifier corresponding to the factory WiFi in the communication identifier set is the target communication identifier. It can be determined that there is a target communication identifier consistent with the service set identifier in the communication identifier set, and then the factory WiFi is determined as the target wireless communication network corresponding to the target communication identifier.
[0075] After identifying the target wireless communication network, the vehicle calls the communication password stored locally and uses the communication password to initiate a connection to the target wireless communication network, so that the vehicle host can safely transmit data with the cloud server and ensure the safe download of the installation package of the electrical inspection application.
[0076] Authentication cannot completely guarantee the security of network connection. Secondary verification is performed using the communication password stored in the vehicle host. If the communication password stored in the vehicle host can connect to the target wireless communication network, it is determined that secure data transmission can be achieved using the target wireless communication network, and the network communication conditions are met, the target line communication network corresponding to the service set identifier can be identified through the deployed system setting application, and the target wireless communication network can be connected according to the communication password.
[0077] If the communication password stored in the vehicle host cannot connect to the target wireless communication network, it means that the password of the factory WiFi that serves as the target wireless communication network may have been changed, and the factory WiFi is no longer suitable for intelligent electrical inspection. The vehicle host cannot access the network and cannot interact with the cloud server for data. Naturally, it is impossible to download the installation package of the electrical inspection application from the cloud server, and it is determined that the network communication conditions are not met.
[0078] Step 303: After the target communication network is successfully connected, the virtualization system downloads the electrical inspection application from the cloud server through the deployed front-end component application, and installs the electrical inspection application to the virtualization system through the deployed call package management service.
[0079] In specific implementation, if only the network communication conditions are met, it means that the electric inspection mode is unexpectedly activated, intelligent electric inspection is not allowed, and the electric inspection application cannot be downloaded, and it is determined that the download conditions of the electric inspection application are not met. If only the operation mode conditions are met, it means that the Internet cannot be connected, a communication connection cannot be established with the cloud server, and the installation package cannot be downloaded, and it is determined that the download conditions of the electric inspection application are not met. Only when both the network communication conditions and the operation mode conditions are met can the electric inspection application be downloaded safely, and it is determined that the download conditions of the electric inspection application are met.
[0080] The implementation process of downloading the electrical inspection application is as follows Figure 3a As shown: After the HUT is switched from normal mode to intelligent electrical inspection mode through the EOL diagnostic device, when the system setting APP recognizes that the SSID of the factory WIFI is consistent with the factory WIFI SSID pre-made by the system, the system setting APP will use the preset communication password to initiate a connection to the factory WIFI. After the connection is successful, it will notify the front-end component application component BooststartAPP, download the electrical inspection application MOTAAPP from the cloud server to the HUT through the network, and call the Android native package management service Packagemanager to install MOTAAPP.
[0081] In some embodiments, Figure 4 As shown, the vehicle host downloads diagnostic data from the cloud server through the electronic inspection application, including:
[0082] Step 401: The front-end component application in the vehicle host displays a selection interaction interface for starting the intelligent electrical inspection through the central control display screen, wherein the selection interaction interface includes a first control for starting the intelligent electrical inspection and a second control for closing the intelligent electrical inspection.
[0083] When implementing it, Figure 3a As shown, after the installation package of the electric inspection application is downloaded, the package management service Packagemanager in the Android system is called to install the electric inspection application (for example Figure 3a The MOTAAPP in the vehicle control panel is installed. After the electric inspection application is installed, the vehicle host prompts to start the intelligent electric inspection through the front-end component application, and the selection interaction interface for starting the intelligent electric inspection is displayed through the central control display screen of the vehicle host. The selection interaction interface displays the prompt text "Do you want to start the intelligent electric inspection?", as well as the first control for starting the intelligent electric inspection and the second control for turning off the intelligent electric inspection. The first control can display the text "Yes" and the second control can display the text "No", which are used to cooperate with the prompt text to provide the operator with a choice of whether to start the intelligent electric inspection.
[0084] Step 402: In response to the front-end component application detecting a touch operation on the first control, the selection interaction interface is closed, and a data download instruction is sent to the electrical inspection application.
[0085] During specific implementation, if the user detects a touch operation on the first control, it means that the operator has clicked on the first control. The operator confirms the start of the intelligent electrical inspection, the front-end component application closes the selection interactive interface, and forwards the start electrical inspection instruction to the electrical inspection application. The electrical inspection application sends a data download signal to the intelligent electrical inspection server. After receiving the data download signal, the intelligent electrical inspection server sends the pre-configured VIN information, vehicle configuration word information, etc. to the vehicle host one by one to realize the download of diagnostic data.
[0086] Step 403: The electrical inspection application sends a data download signal to the cloud server, and receives the diagnostic data sent by the intelligent electrical inspection server according to the data download signal.
[0087] In the specific implementation, the vehicle host realizes data communication with the intelligent electrical inspection server through the electrical inspection application. When the intelligent electrical inspection data receives all the VIN information, vehicle configuration word information, etc., it determines that the diagnostic data download is completed, providing data support for subsequent intelligent electrical inspections.
[0088] In some embodiments, Figure 5 As shown, the vehicle end-of-line inspection is carried out based on the diagnostic data and electrical inspection application, including:
[0089] Step 501: The system-level chip of the vehicle host sends the diagnostic data to the central gateway, so that the central gateway can perform self-refresh according to the diagnostic data and send the self-refresh result to the system-level chip.
[0090] When implementing it, Figure 3a As shown, the vehicle host's system-level chip sends diagnostic data to the central gateway, including:
[0091] Step 5011: the SoC sends the diagnostic data to the main operating system in the SoC through the electrical inspection application installed in the virtualization system;
[0092] Step 5012: The electrical inspection vehicle service deployed within the main operating system receives the diagnostic data and
[0093] Step 5013: The bridge service of the main operating system forwards the diagnostic data and the diagnostic request to the diagnostic protocol client of the main operating system;
[0094] Step 5014: The diagnostic protocol client converts the diagnostic request into a standard Ethernet diagnostic instruction, and sends the standard Ethernet diagnostic instruction and diagnostic data to the central gateway diagnostic protocol server. The diagnostic protocol server distributes the diagnostic data to the controller to be detected according to the standard Ethernet diagnostic instruction.
[0095] The vehicle host sends the diagnostic data to the intelligent electrical inspection vehicle service through the electrical inspection application, and the intelligent electrical inspection vehicle service sends the diagnostic data to the diagnostic protocol client (for example Figure 3a The IP client sends the diagnostic data to the central gateway CEM via Ethernet, and the diagnostic protocol server of the central gateway (such as Figure 3a The DOIP Server in the central gateway receives the diagnostic data and uses the diagnostic data to flash the central gateway first. Because the flashing of other vehicle controllers needs to be controlled by the central gateway, that is, the central gateway is the parent node of the controller to be inspected, and each controller to be inspected is a child node of the central gateway. Therefore, only when the central network passes the diagnostic flashing can it be determined that the central gateway has complete functions, and then continue to complete the diagnostic flashing of the subsequent controllers to be inspected.
[0096] Step 502: After the system-level chip determines that the self-flashing result is successful, the system-level chip sends the diagnostic data to the controller to be inspected through the central gateway.
[0097] During specific implementation, after the central gateway has completed self-flashing, it is necessary to further perform diagnostic flashing on the controller with electrical inspection. Since the central gateway has completed self-flashing and has the ability to perform electrical inspection control, the electrical inspection application is controlled to send diagnostic data to each controller to be inspected through the central gateway and the controller area network bus (also known as CAN bus), and forward the feedback data sent by each controller with electrical inspection to the vehicle host, so that the vehicle host can determine whether the intelligent electrical inspection is completed based on the feedback data.
[0098] If Figure 3a The implementation process of the offline detection shown is as follows: after the electrical inspection application is successfully installed, a pop-up window will pop up by the Booststart APP to prompt whether to enter the electrical inspection mode. After the production line operator clicks to confirm, the notification will be sent to the MOTAAPP, and the MOTAAPP will send the confirmation command to the MOTA server. The MOTA server will send the pre-configured VIN information, vehicle configuration word information, etc. to the HUT one by one, and the HUT will send it to the multi-IP server DOIP Server of the central gateway through the MOTAAPP, MOTA vehicle-side service, bridge service, and DOIP Client via Ethernet. After the central gateway is self-flashed, it will be sent to the CAN node ECU through the UDS diagnostic protocol based on the CAN bus, and then sent to the Ethernet node ECU through the UDS diagnostic protocol based on Ethernet.
[0099] In some embodiments, Figure 6 As shown, determine whether the vehicle off-line inspection is completed, including:
[0100] Step 601: The vehicle host receives feedback data forwarded by the central gateway, and determines the detection quantity and expected quantity of the controllers to be inspected based on the feedback data.
[0101] In specific implementation, feedback data will be fed back only after the diagnosis of the electronic inspection controller is written, so the number of feedback data is the number of detections of the electronic inspection controller.
[0102] The number of vehicle controllers that require diagnostic flashing for different types of vehicles is certain. The downloaded diagnostic data will contain the corresponding number of vehicle controllers that need to be diagnostically flashed. For example, the diagnostic data can be in the form of a list, and each vehicle controller has its own number, and there is a special row of counting columns to determine the sequential position and expected number of each vehicle controller.
[0103] Step 602: In response to the detection quantity being equal to the expected quantity, the vehicle host determines that the vehicle off-line detection is completed.
[0104] During specific implementation, if the number of inspections is equal to the expected number, it means that all controllers to be inspected have completed the diagnostic flash, and the vehicle offline inspection is completed, and the cloud server is waiting to determine the electrical inspection results based on the feedback data, and the controllers that fail the electrical inspection results are re-diagnosed and flashed until all vehicle controllers are diagnosed and flashed. The front-end component application uses the central control display screen to pop up an uninstallation interactive interface for whether to uninstall the electrical inspection application after the intelligent electrical inspection has been completed. The uninstallation interactive interface includes a "yes" control and a "no" control, and the electrical inspection application is uninstalled according to the operator's touch operation of the "yes" control. At the same time, the vehicle host is restored from the electrical inspection mode to the default operation mode to ensure the normal progress of subsequent work.
[0105] It can be seen that during the entire intelligent electrical inspection process, the operator only needs to perform a few touch operations on the central control display screen of the vehicle host to complete the intelligent electrical inspection of the entire vehicle. It has interactive efficiency, minimizes manual participation, and improves the efficiency of intelligent electrical inspection of the entire vehicle.
[0106] Step 603: In response to the number of inspections being less than the expected number, the vehicle host determines that the vehicle off-line inspection is not completed.
[0107] In specific implementation, if the number of detections is less than the expected number, it means that there are unfinished diagnostic flashes and the electrical inspection control determines that the vehicle offline inspection is not completed, and continues to wait for the vehicle controller that has not completed the diagnostic flash to send feedback data.
[0108] In some embodiments, Figure 7 As shown in the figure, uninstall the smart electric inspection application and switch the electric inspection mode to the default operation mode, including:
[0109] Step 701: The front-end component application of the vehicle host displays the uninstall selection interactive interface after the electrical inspection is completed through the central control display screen; wherein the uninstall selection interactive interface includes a third control for agreeing to uninstall the electrical inspection application and a fourth control for disagreeing to uninstall the electrical inspection application.
[0110] In the specific implementation, in order to save system memory space, it is necessary to uninstall MOTAAPP after completing all intelligent electrical inspection tasks. The specific process is as follows Figure 3a As shown, after completing all intelligent electrical inspection tasks, Booststart APP displays the uninstall selection interactive interface to the operator, notifying them that the offline inspection has been completed.
[0111] Step 702: In response to the front-end component application detecting a touch operation on a third control, the electrical inspection application is uninstalled, and the electrical inspection mode is switched to a default operation mode.
[0112] During specific implementation, after the operator clicks the third control, BooststartAPP calls Packagemanager through the internal interface to uninstall MOTAAPP and switch the electrical inspection mode to the default operation mode.
[0113] Step 703: In response to the front-end component application detecting a touch operation on the fourth control, the uninstall selection interactive interface is displayed again after a preset time interval.
[0114] During specific implementation, after the operator clicks the fourth third control, the BooststartAPP will display the uninstall selection interactive interface again after a period of time, prompting the staff that the offline inspection is completed, and the smart electrical inspection application can be uninstalled and the electrical inspection mode can be switched to the default operating mode.
[0115] It should be noted that the method of the embodiment of the present application can be performed by a single device, such as a computer or server. The method of this embodiment can also be applied to a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only perform one or more steps in the method of the embodiment of the present application, and the multiple devices will interact with each other to complete the described method.
[0116] It should be noted that the above describes some embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0117] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments, the present application also provides a vehicle, including the vehicle host of the above-mentioned embodiment, and executing the offline detection method described in any of the above embodiments through the vehicle host, and having the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0118] It is understandable that before using the technical solutions of each embodiment of the present disclosure, the type, scope of use, usage scenarios, etc. of the personal information involved will be informed to the user in an appropriate manner, and the user's authorization will be obtained.
[0119] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly remind the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can independently choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.
[0120] As an optional but non-limiting implementation, in response to receiving the user's active request, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0121] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0122] A person skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present application is limited to these examples. In line with the concept of the present application, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present application as described above, which are not provided in detail for the sake of simplicity.
[0123] In addition, to simplify the description and discussion, and in order not to make the embodiments of the present application difficult to understand, the known power supply / ground connection with the integrated circuit (IC) chip and other components may or may not be shown in the provided drawings. In addition, the device can be shown in the form of a block diagram to avoid making the embodiments of the present application difficult to understand, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform to be implemented in the embodiments of the present application (that is, these details should be fully within the scope of understanding of those skilled in the art). In the case of elaborating specific details (e.g., circuits) to describe exemplary embodiments of the present application, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details or when these specific details are changed. Therefore, these descriptions should be considered to be illustrative rather than restrictive.
[0124] Although the present application has been described in conjunction with specific embodiments of the present application, many replacements, modifications and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.
[0125] The embodiments of the present application are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the present application. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present application should be included in the protection scope of the present application.
Claims
1. A method for offline detection, characterized in that: Applied to a vehicle host; the offline detection method comprises: The vehicle host switches the current operation mode to the electric inspection mode according to the received switching diagnostic code; In the electrical inspection mode, the vehicle host downloads the electrical inspection application from the cloud server after successfully connecting to the network, and installs the electrical inspection application locally; The vehicle host downloads diagnostic data from the cloud server through the electrical inspection application, and performs vehicle offline inspection based on the diagnostic data and the intelligent electrical inspection application. After determining that the vehicle offline inspection is completed, the intelligent electrical inspection application is uninstalled and the electrical inspection mode is switched to the default operating mode.
2. The offline detection method according to claim 1, characterized in that: The vehicle host includes a micro control unit; The vehicle host switches the current operation mode to the electric inspection mode according to the received switching diagnostic code, including: In response to the microcontroller unit detecting a device access CAN signal of the diagnostic device, controlling the vehicle host to enter an extended mode and receiving the switching diagnostic code sent by the diagnostic device; The microcontrol unit performs security authentication on the vehicle host according to the security access service, and after the security authentication is passed, writes the switching diagnostic code according to the write data service to switch the vehicle host from the current operating mode to the electrical inspection mode.
3. The offline detection method according to claim 1, characterized in that: The vehicle host includes a system-level chip connected to the microcontroller unit; after the vehicle host is successfully connected to the network, it downloads the electric inspection application from the cloud server and installs the electric inspection application locally, including: The micro control unit sends the mode switching result to the system-level chip; In response to the system-level chip receiving the mode switching result, the corresponding target line communication network is connected according to the preset service set identifier and communication password, and after the target communication network is successfully connected, the electrical inspection application is downloaded from the cloud server and installed locally.
4. The offline detection method according to claim 3, characterized in that: The system-level chip is deployed with a main operating system and a virtualization system; the corresponding target line communication network is connected according to the preset service set identifier and communication password, and after the target communication network is successfully connected, the electric inspection application is downloaded from the cloud server and the electric inspection application is installed locally, including: The main operating system forwards the mode switching result to the virtualization system; After the virtualization system determines that the mode switching result is a successful switching, the target line communication network corresponding to the service set identifier is identified by the deployed system setting application, and the target wireless communication network is connected according to the communication password; After the target communication network is successfully connected, the virtualization system downloads the electrical inspection application from the cloud server through the deployed front-end component application, and installs the electrical inspection application to the virtualization system through the deployed call package management service.
5. The offline detection method according to claim 1, characterized in that: The vehicle host downloads diagnostic data from the cloud server through the electrical inspection application, including: The front-end component application in the vehicle host displays a selection interaction interface for starting the intelligent electrical inspection through the central control display screen; wherein the selection interaction interface includes a first control for starting the intelligent electrical inspection and a second control for closing the intelligent electrical inspection; In response to the front-end component application detecting a touch operation on the first control, closing the selection interaction interface and sending a data download instruction to the electrical inspection application; The electrical inspection application sends a data download signal to the cloud server, and receives the diagnostic data sent by the cloud server according to the data download signal.
6. The offline detection method according to claim 1, characterized in that: The performing of vehicle off-line testing according to the diagnostic data and the electrical testing application includes: The system-level chip of the vehicle host sends the diagnostic data to the central gateway, so that the central gateway can perform self-flash writing according to the diagnostic data, and send the self-flash writing result to the system-level chip; After the system-level chip determines that the self-flashing result is successful, the diagnostic data is sent to the controller to be inspected through the central gateway.
7. The offline detection method according to claim 6, characterized in that: The system-level chip of the vehicle host sends the diagnostic data to the central gateway, including: The system-on-chip sends the diagnostic data to a main operating system in the system-on-chip through the electrical inspection application installed in the virtualization system; The electrical inspection vehicle end service deployed inside the main operating system receives the diagnostic data and The bridge service of the host operating system forwards the diagnostic data and the diagnostic request to the diagnostic protocol client of the host operating system; The diagnostic protocol client converts the diagnostic request into a standard Ethernet diagnostic instruction, and sends the standard Ethernet diagnostic instruction and the diagnostic data to the central gateway diagnostic protocol server, and the diagnostic protocol server distributes the diagnostic data to the controller to be detected according to the standard Ethernet diagnostic instruction.
8. The offline detection method according to claim 1, characterized in that: Determining whether the vehicle off-line inspection is completed includes: The vehicle host receives the feedback data forwarded by the central gateway, and determines the detection quantity and expected quantity of the controllers to be inspected according to the feedback data; In response to the detection number being equal to the expected number, the vehicle host determines that the vehicle off-line detection is completed; In response to the detection number being less than the expected number, the vehicle host determines that the vehicle off-line detection is not completed.
9. The offline detection method according to claim 1, characterized in that: The step of uninstalling the intelligent electrical inspection application and switching the electrical inspection mode to a default operation mode includes: The front-end component application of the vehicle host displays the uninstall selection interactive interface of the electric inspection completion through the central control display screen; wherein the uninstall selection interactive interface includes a third control for agreeing to uninstall the electric inspection application and a fourth control for disagreeing to uninstall the electric inspection application; In response to the front-end component application detecting a touch operation on the third control, uninstalling the electrical inspection application and switching the electrical inspection mode to a default operation mode; In response to the front-end component application detecting a touch operation on the fourth control, the uninstall selection interaction interface is displayed again after a preset time interval.
10. A vehicle, characterized in that: It comprises a vehicle host, and the vehicle host is used to execute the offline detection method according to claims 1 to 9.