A T-BOX offline testing method and device
By conducting preliminary and retesting of peripheral modules after power-on-on T-BOX is started, the success rate of the communication module is determined, and the dormant detection strategy is determined based on the success rate, the problems of low direct through rate, high labor cost and low production capacity of T-BOX offline detection are solved, and an efficient and automated testing process is achieved.
Patent Information
- Application Number
- CN202210679864.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-16
- Publication Date
- 2025-06-06
- Estimated Expiration
- 2042-06-16
AI Technical Summary
In the prior art, during the offline inspection process of T-BOX products, the production line pass rate is low, the labor cost is high and the production capacity is low.
A downline test method and device for T-BOX is provided. After power-on on the T-BOX, the peripheral module is initially tested and retested, and the network-resident success rate of the communication module is determined, and the sleep detection strategy is determined based on the network-resident success rate is adopted, and the appropriate sleep wake-up test strategy is adopted.
It improves the production line throughput rate and production capacity, reduces labor costs, realizes an automated test process, and ensures full coverage of test items.
Smart Images

Figure CN115086997B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle testing, and in particular to a T-BOX off-line testing method and device. Background Art
[0002] As an intelligent vehicle terminal for automotive products, T-BOX carries data interactions of multiple wireless transmission modules such as wifi, gps, 4G, etc. During its offline testing, the pass rate of the production line is related to multiple factors such as the current test environment, signal strength, production line rhythm, software stability, and test strategy.
[0003] At present, when T-BOX products encounter test failures during the eol (end-of-line inspection) test, they need to follow the production line retest standards, wait for one or more production batches to be completed, and then retest the defective parts together, and ship them out after they meet the shipping standards.
[0004] Although retesting can eliminate some occasional problems that are not related to the product itself and ensure that the product can be produced and shipped normally, this method of retesting defective parts at the same time reduces the production line pass rate, and workers have to retest defective parts at the same time, which increases labor costs and reduces the production capacity of T-BOX products. Summary of the invention
[0005] In view of this, the present application provides a T-BOX offline testing method and device, which is used to solve the problems of low production line pass rate, high labor cost and low production capacity in the prior art. The technical solution is as follows:
[0006] A T-BOX offline test method is applied to a first processor in a telematics processor T-BOX, wherein the first processor includes at least one peripheral module, wherein at least one peripheral module includes a communication module, and the communication module is used to perform network communication with an external device. The T-BOX also includes a second processor, wherein the second processor is used to forward messages when the first processor communicates with a host computer, wherein the first processor communicates with the second processor via a serial peripheral interface SPI and / or a universal asynchronous receiver / transmitter UART, wherein the second processor communicates with the host computer via a CAN bus, wherein the first processor tests at least one peripheral module, and upon receiving a test message sent by the host computer via the second processor, the first processor feeds back a test result of whether the at least one peripheral module has passed the test to the host computer via the second processor;
[0007] T-BOX offline testing methods include:
[0008] After the T-BOX is powered on, at least one peripheral module is initially tested, and at least one peripheral module that fails the initial test is retested;
[0009] After the communication module passes the initial test or the retest, determine the network success rate of the communication module;
[0010] After receiving the low-power sleep message, the sleep detection strategy is determined according to the network success rate, and the determined sleep detection strategy is used to perform a sleep wake-up test on the T-BOX. Among them, when the upper computer determines that all peripheral modules have passed the initial test or the retest after self-test, the low-power sleep message is sent to the first processor through the second processor.
[0011] Optionally, retesting the peripheral module that fails the initial test among at least one peripheral module includes:
[0012] The retest instruction is used to control the peripheral modules that have not passed the initial test to be powered off and then powered on again, and the peripheral modules that have not passed the initial test are retested after powering on.
[0013] Optionally, determining a success rate of the communication module staying on the network includes:
[0014] Obtain the network status of the communication module at preset time intervals until all peripheral modules pass the initial test or retest;
[0015] Determine the number of successful network access times and the total number of acquisition times among all network access states acquired;
[0016] The quotient of the number of successful network access times and the total number of acquisition times is calculated, and the quotient is used as the network access success rate.
[0017] Optionally, a dormancy detection strategy is determined based on the success rate of network access, including:
[0018] When the success rate of network access is greater than the success rate threshold, the phone ringing wake-up strategy is used as the determined dormancy detection strategy;
[0019] When the network access success rate is less than or equal to the success rate threshold, the real-time clock RTC wake-up strategy is used as the determined sleep detection strategy.
[0020] Optionally, when the network access success rate is less than or equal to the success rate threshold, a sleep detection strategy is used to perform a sleep wakeup test on the T-BOX, including:
[0021] Controlling at least one peripheral module except the communication module to power off, controlling the communication module to start the flight mode, and controlling the second processor to sleep;
[0022] Generate a low-power request message for the low-power sleep message, and send the low-power request message to the host computer through the second processor, so that the host computer performs a sleep current test on the T-BOX after waiting for a preset test time;
[0023] The first processor is awakened by the communication module after waiting for a preset RTC wake-up time, so that the first processor wakes up the second processor;
[0024] Control the communication module to release the flight mode;
[0025] The RTC wake-up message is sent to the host computer through the second processor, so that when the sleep current test passes and the host computer determines that the received message is the RTC wake-up message, the host computer sends the first ringing instruction to the T-BOX through the load board;
[0026] The first ringing event is monitored through the communication module, and when the first ringing event is monitored, the generated first phone wake-up message is sent to the host computer through the second processor, wherein the first ringing event is an event in which the host computer sends a first ringing instruction.
[0027] Optionally, when the network access success rate is greater than the success rate threshold, a sleep detection strategy is used to perform a sleep wakeup test on the T-BOX, including:
[0028] Controlling at least one peripheral module except the communication module to power off, controlling the communication module to enter a sleep mode, and controlling the second processor to sleep;
[0029] Generate a low-power request message for the low-power sleep message, and send the low-power request message to the host computer through the second processor, so that the host computer performs a sleep current test on the T-BOX after waiting for a preset test time;
[0030] The second ringing event is monitored through the communication module, and when the second ringing event is monitored, the first processor is awakened through the communication module so that the first processor wakes up the second processor, wherein the second ringing event is an event in which the host computer sends a second ringing instruction to the T-BOX through the load board when the sleep current test passes;
[0031] A second phone wake-up message is generated, and the second phone wake-up message is sent to the host computer through the second processor.
[0032] Optionally, the low power request message carries network success rate parameter information, and the network success rate parameter information is used to indicate whether the network success rate is greater than a success rate threshold;
[0033] When the sleep current test passes and the host computer determines that the network success rate is greater than the success rate threshold based on the network success rate parameter information, the host computer sends a second ringing instruction to the T-BOX through the load board.
[0034] Optionally, the process of performing an initial test or retest on the communication module includes:
[0035] After receiving the ready message sent by the communication module after successful power-on startup, the communication module is initialized and configured and an initialization status detection is performed. After the initialization status detection is successful, a return value sent by the communication module indicating that the test network stationing is successful is received. When the return value indicating that the test network stationing is successful is received, it indicates that the initial test or retest of the communication module has passed.
[0036] Optionally, at least one peripheral module further includes one or more of the following modules: a global positioning system GPS module, a security chip module and a WIFI module;
[0037] The process of initial or retesting the GPS module includes:
[0038] Receive the location information message sent by the GPS module after power-on initialization, and parse the location information message to determine whether the location information message contains a flag bit indicating successful positioning, wherein if the location information message contains a flag bit, it indicates that the initial test or retest of the GPS module has passed;
[0039] The process of initial testing or retesting the security chip module includes:
[0040] After the security chip module is powered on and the driver is initialized, test data is sent to the security chip module, and after receiving the return value fed back by the security chip module, the return value is compared with the preset data, wherein the return value is obtained based on the data after the security chip module encrypts the test data, and when the return value is successfully compared with the preset data, it indicates that the initial test or retest of the security chip module has passed;
[0041] The process of initial testing or retesting the WIFI module includes:
[0042] After the WIFI module is powered on and the kernel loads the driver of the WIFI module, a test data acquisition instruction is sent to the WIFI module to read specified data from the WIFI module. When the specified data is read from the WIFI module, it indicates that the initial test or retest of the WIFI module is successful.
[0043] A T-BOX offline test device is applied to a first processor in a telematics processor T-BOX, the first processor includes at least one peripheral module, at least one peripheral module includes a communication module, the communication module is used to perform network communication with an external device, the T-BOX also includes a second processor, the second processor is used to forward messages when the first processor communicates with a host computer, the first processor communicates with the second processor via a serial peripheral interface SPI and / or a universal asynchronous receiver / transmitter UART, the second processor communicates with the host computer via a CAN bus, the first processor tests at least one peripheral module, and when receiving a test message sent by the host computer via the second processor, the first processor feeds back a test result of whether the at least one peripheral module has passed the test to the host computer via the second processor;
[0044] T-BOX's offline test equipment includes:
[0045] The test module is used to perform an initial test on at least one peripheral module after the T-BOX is powered on and start up, and to retest the peripheral module that fails the initial test among the at least one peripheral module;
[0046] A network success rate determination module is used to determine the network success rate of the communication module after the communication module passes the initial test or the retest;
[0047] The sleep and wake-up test module is used to determine the sleep detection strategy according to the network success rate after receiving the low-power sleep message, and use the determined sleep detection strategy to perform a sleep and wake-up test on the T-BOX. Among them, when the upper computer determines that all peripheral modules have passed the initial test or the retest after self-test, the low-power sleep message is sent to the first processor through the second processor.
[0048] Through the above technical solution, it can be known that the present application provides an offline test method of a T-BOX for a first processor in a telematics processor T-BOX, wherein the first processor includes at least one peripheral module, and at least one peripheral module includes a communication module, and the communication module is used to communicate with an external device over a network, and the T-BOX also includes a second processor, and the second processor is used to forward messages when the first processor communicates with a host computer, and the first processor communicates with the second processor via a serial peripheral interface SPI and / or a universal asynchronous receiver / transmitter UART, and the second processor communicates with the host computer via a CAN bus, and the first processor is used to control at least one peripheral module. The module is tested, and when receiving the test message sent by the host computer through the second processor, the test result of whether at least one peripheral module has passed the test is fed back to the host computer through the second processor. After the T-BOX is powered on, the offline test method of the T-BOX performs an initial test on at least one peripheral module, and retests the peripheral module that has not passed the initial test in at least one peripheral module. After the communication module passes the initial test or the retest, the network success rate of the communication module is determined. After receiving the low-power sleep message, the sleep detection strategy is determined according to the network success rate, and the determined sleep detection strategy is used to perform a sleep wake-up test on the T-BOX. The present application can automatically retest the peripheral modules that have not passed the initial test when the peripheral module fails the initial test. At the same time, the present application can determine the sleep detection strategy according to the network success rate, and use the determined sleep detection strategy to perform a sleep wake-up test on the T-BOX, ensuring full coverage of test items and improving the production line beat and pass rate, with higher production capacity, and the entire process does not require manual operation, reducing labor costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be 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 the provided drawings without paying any creative work.
[0050] Figure 1 It is a schematic diagram of the interaction between the host computer, MCU processor and OpenCPU processor;
[0051] Figure 2 A schematic diagram of a process flow of a T-BOX offline testing method provided in an embodiment of the present application;
[0052] Figure 3 It is an optional schematic diagram of the power-on detection process of the 4G module, GPS module, SE module and WIFI module;
[0053] Figure 4An optional schematic diagram of the sleep and wake-up test process of the SE module and the 4G module;
[0054] Figure 5 A schematic diagram of the structure of a T-BOX offline test device provided in an embodiment of the present application;
[0055] Figure 6 This is a hardware structure block diagram of the T-BOX offline test equipment provided in an embodiment of the present application. DETAILED DESCRIPTION
[0056] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0057] The present application provides a T-BOX offline test method, which can be applied to a first processor in a telematics BOX (T-BOX), wherein the first processor includes at least one peripheral module, wherein the at least one peripheral module includes a communication module, and the communication module is used to perform network communication with an external device. The T-BOX also includes a second processor, and the second processor is used to forward messages when the first processor communicates with a host computer. The first processor communicates with the second processor through a serial peripheral interface (SPI) and / or a universal asynchronous receiver / transmitter (UART), and the second processor communicates with the host computer through a controller area network (CAN) bus. The first processor tests the at least one peripheral module, and when receiving a test message sent by the host computer through the second processor, the first processor feeds back a test result of whether the at least one peripheral module has passed the test to the host computer through the second processor.
[0058] Optionally, the first processor may be any microprocessor (Microprocessor Unit, MPU), for example, the first processor may be an OpenCPU processor; optionally, the second processor may be an MCU (Microcontroller Unit) processor.
[0059] Optionally, the communication module may be a 4G module, and the at least one peripheral module may also include one or more of the following modules: a positioning module, a secure element (SE) module, and a WIFI module. Here, the positioning module may specifically be a global positioning system (GPS) module and / or a global navigation satellite system (GNSS) module.
[0060] Of course, the above peripheral modules may also be other, such as a low-power Bluetooth (BLE, Bluetooth LowEnergy) module, an RS485 module, etc., which is not limited in this application.
[0061] For example, taking the first processor as an OpenCPU processor, the second processor as an MCU processor, and at least one peripheral module including a 4G module, an SE module, and a GNSS module as an example, see Figure 1 The diagram shows the interaction between the host computer, MCU processor and OpenCPU processor.
[0062] like Figure 1 As shown, the OpenCPU processor includes an eol (End of Line) program, and the OpenCPU processor tests the 4G module, SE module and GNSS module through the eol program to obtain a test result indicating whether the module has passed the test. The host computer can send a test message through its own test program, and the test message is sent to the MCU processor in the T-BOX through the CAN bus. The MCU processor communicates with the OpenCPU processor through SPI and / or UART, and forwards the test message to the eol program in the OpenCPU processor. Thereafter, the eol program can feed back the test results of the 4G module, SE module and GNSS module to the host computer through the MCU processor, so that the host computer can obtain the test results of the 4G module, SE module and GNSS module.
[0063] Here, the OpenCPU processor tests the peripheral modules (such as 4G module, SE module and GNSS module) through the eol program. The eol program is a code integration program written based on the open source framework of libev. Its internal interaction is event-driven. Specifically, the eol program is started, and the initialization operation is performed after the main thread is started, and the eol, 4G, SE, GNSS and other threads are started independently (such as Figure 1The sub-modules in the OpenCPU box shown in the figure) are used to register the processing events and corresponding processing functions of 4G, SE and GNSS, and other sub-threads such as 4G, SE, GNSS, etc. are used to process their corresponding test programs and return the test results to the eol thread. In this way, the eol program can obtain the test results of whether the peripheral module passes.
[0064] For example, Figure 1 As shown, after the eol thread is started, it will register EVENT_APP_4G_ST, EVENT_APP_SE_ST, EVENT_APP_GNSS_ST and other events to process the processing results of each module, and process the corresponding logic in the corresponding function. 4G, SE and GNSS will register the event of EVENT_APP_DEV_CTRL to process the test request sent by the eol thread. When the eol program is started, the eol thread will send a request to the thread that has registered the EVENT_APP_DEV_CTRL event through broadcasting, and add enumeration value parameters to distinguish the specific test content. When a thread, such as 4G, obtains the request event and is consistent with the enumeration value of the specific test content, it enters the corresponding logic for testing. When the test result is obtained, the eol thread obtains the request result of the event and parses it by broadcasting the EVENT_APP_4G_ST event and passing the test result. When receiving the test message sent by the host computer through the MCU processor, the test result can be transmitted to the MCU through SPI and / or UART, and returned to the host computer through CAN.
[0065] In order to enable those skilled in the art to better understand the present application, the offline testing method of the T-BOX provided by the present application is described in detail through the following embodiments.
[0066] See also Figure 2 , shows a schematic flow chart of a T-BOX offline test method provided in an embodiment of the present application, and the T-BOX offline test method may include:
[0067] Step S201: After the T-BOX is powered on, an initial test is performed on at least one peripheral module, and a retest is performed on the peripheral module that fails the initial test among the at least one peripheral module.
[0068] The T-BOX in this embodiment is a device under test (DUT). After the dut is powered on and starts the program, it enters the eol test process. The eol test process includes an initial test process and a retest process.
[0069] Specifically, see Figure 1As shown, the first processor in this embodiment includes an eol program. After the eol program is started, relevant events such as EVENT_APP_4G_ST, EVENT_APP_SE_ST, and EVENT_APP_GNSS_ST are registered. After the EVENT_APP_DEV_CTRL event is registered in the peripheral modules such as 4G, SE, and GNSS modules, a relevant test request is sent to at least one peripheral module, so that at least one peripheral module is powered on to enter the test process for initial testing. After the initial test is completed, the initial test results corresponding to the at least one peripheral module can be obtained. Based on the initial test results corresponding to the at least one peripheral module, the peripheral modules that failed the initial test can be obtained.
[0070] This step can automatically retest the peripheral modules that have not passed the initial test. Optionally, this step can retest all peripheral modules that have not passed the initial test after all peripheral modules have completed the initial test.
[0071] Optionally, this step can retest the peripheral modules that failed the initial test multiple times. Preferably, the peripheral modules that failed the initial test can be retested only once. However, whether it is retested once or multiple times, the number of retests of each peripheral module must strictly follow the production line retest standard.
[0072] Optionally, in this step, when performing an initial test on at least one peripheral module and retesting a peripheral module that fails the initial test, the test is performed module by module so that the test results correspond to the peripheral modules one by one.
[0073] Optionally, the process of this step of "retesting at least one peripheral module that failed the initial test" may include: controlling the peripheral module that failed the initial test to power off and then power on again through a retest instruction, and retesting the peripheral module that failed the initial test after powering on.
[0074] Specifically, the eol program can send a retest instruction to the peripheral module that failed the initial test to control the peripheral module that failed the initial test to power off and power on again, and then re-enter the test process after powering on to perform retesting and wait for the test results to be returned.
[0075] Optionally, in addition to the 4G module, at least one peripheral module also includes one or more of the following modules: a global positioning system GPS module, a security chip module (ie, SE module) and a WIFI module.
[0076] See also Figure 3 As shown, it is an optional schematic diagram of the power-on detection process of the 4G module, GPS module, SE module and WIFI module provided in an embodiment of the present application. Figure 3In the process, after the 4G module, GPS module, SE module and WIFI module are powered on, they can be tested separately (including initial test and retest). After the test, the test results can be returned to the eol program. The eol program then determines whether each peripheral module has passed the test. If the test fails, the peripheral module that has not passed the test (i.e., the test failure item) is controlled to be powered off and powered on again, and then retested.
[0077] The following Figure 3 The test process of 4G module, global positioning system GPS module, security chip module and WIFI module is introduced.
[0078] Optionally, the process of performing an initial test or a retest on a communication module may include: after receiving a ready message sent by the communication module after successful power-on startup, initializing the configuration of the communication module and performing an initialization status detection, and after the initialization status detection is successful, receiving a return value sent by the communication module indicating that the test network stationing is successful, wherein, when the return value indicating that the test network stationing is successful is received, it indicates that the initial test or the retest of the communication module has passed.
[0079] Taking the first processor as the openCPU processor and the communication module as the 4G module as an example, after the 4G module is powered on and started successfully, it will send a ready signal (i.e., a ready message) to notify the openCPU processor. After receiving the signal, the openCPU processor will initialize and configure the 4G module, such as configuring the apn (Access Point Name) dial-up Internet access and other related parameters, and perform status detection, such as the abnormal state of the antenna open circuit and short circuit, and the sim (Subscriber Identity Module) stuck in the network package traffic, etc. If the initialization status detection is normal, the openCPU processor will control the 4G module to search the network, analyze the network status, the neighboring cell signal status, etc. If the network is successfully stationed, the eol program will parse the parameters of the network status. After the eol program obtains the parameters, it indicates that the test network is successful and returns the result.
[0080] Optionally, the process of performing an initial test or a retest on the GPS module may include: receiving a location information message sent by the GPS module after power-on initialization, and parsing the location information message to determine whether the location information message contains a flag bit indicating successful positioning, wherein if the location information message contains a flag bit, it indicates that the initial test or the retest of the GPS module has passed.
[0081] Taking the GPS module as an example, the GPS module will be initialized after power-on. The openCPU processor communicates with the GPS module through SPI, and will parse the nema message (i.e., location information message) sent by the GPS module. The eol program will parse out the positioning status, longitude and latitude values, number of visible stars, signal-to-noise ratio and other data. If the positioning is successful, the nema message will obtain the flag bit of successful positioning. The eol program obtains the flag bit and the test passes.
[0082] Optionally, the process of performing an initial test or a retest on the security chip module may include: after the security chip module is powered on and the driver is initialized, sending test data to the security chip module, and after receiving a return value fed back by the security chip module, comparing the return value with preset data, wherein the return value is obtained based on data after the security chip module encrypts the test data, and when the return value is successfully compared with the preset data, it indicates that the initial test or the retest on the security chip module has passed.
[0083] Taking the security chip module as an example, after power-on, the driver of the security chip is loaded for initialization. The eol program sends test data to the security chip module through SPI, which will be encrypted by the module program. The received return value will be compared with the existing preset data. If the comparison is successful, the test passes.
[0084] Optionally, the process of performing an initial test or a retest on the WIFI module may include: after the WIFI module is powered on and the kernel loads a driver for the WIFI module, sending a test data acquisition instruction to the WIFI module to read specified data from the WIFI module, wherein when the specified data is read from the WIFI module, it indicates that the initial test or the retest on the WIFI module is successful.
[0085] Taking the WIFI module as an example, after power-on, the kernel will load the driver of the WIFI module, openCPU and the WIFI module communicate through sdio (Secure Digital Input and Output), and the eol program obtains the test data of the WIFI module by sending AT commands (i.e., test data acquisition commands). If data is read out, the test passes.
[0086] In summary, this step can increase retesting in the production process as much as possible, and will not isolate and retest failed parts at the same time, thus improving the pass rate of the production line.
[0087] Step S202: after the communication module passes the initial test or the retest, determine the network success rate of the communication module.
[0088] Specifically, after the communication module test passes, that is, after the communication test and network access are completed, signal strength statistics may be performed to determine the network access success rate of the communication module.
[0089] That is, the network success rate determined in this step can represent the signal strength. The higher the network success rate, the higher the signal strength. Conversely, the lower the network success rate, the lower the signal strength.
[0090] Step S203: after receiving the low-power sleep message, determine the sleep detection strategy according to the network success rate, and use the determined sleep detection strategy to perform a sleep wakeup test on the T-BOX.
[0091] The low-power sleep message is sent to the first processor through the second processor in the T-BOX when the host computer determines that all peripheral modules have passed the initial test or the retest after the self-test.
[0092] After the host computer performs a power-on self-test, an instruction (sent in the form of a message) for obtaining the test results of each peripheral module can be sent to the first processor through the second processor to obtain the initial test result or retest result of the peripheral module corresponding to the instruction. When all peripheral modules pass the test, the host computer can send a low-power sleep message to the first processor through the second processor.
[0093] For example, see Figure 3 As shown, after the host computer performs a power-on self-test, the SE message used to obtain the initial test result or retest result of the SE module can be sent to the first processor through the second processor, and the initial test result or retest result of the SE module can be obtained from the eol program of the first processor based on the SE message; similarly, the host computer can obtain the initial test result or retest result of the 4G module, GPS module and WIFI module, so that the host computer can determine whether the four peripheral modules have all passed the test based on the initial test results or retest results of the four peripheral modules.
[0094] When the first processor receives the low-power sleep message, it can use different sleep detection strategies to perform sleep wakeup tests on the T-BOX according to different network access success rates.
[0095] The present application provides an offline test method of a T-BOX for a first processor in a telematics processor T-BOX, wherein the first processor includes at least one peripheral module, and at least one peripheral module includes a communication module, and the communication module is used to communicate with an external device over a network, and the T-BOX also includes a second processor, and the second processor is used to forward messages when the first processor communicates with a host computer, and the first processor communicates with the second processor via a serial peripheral interface SPI and / or a universal asynchronous receiver / transmitter UART, and the second processor communicates with the host computer via a CAN bus, and the first processor tests at least one peripheral module , and when receiving the test message sent by the host computer through the second processor, the test result of whether at least one peripheral module has passed the test is fed back to the host computer through the second processor. After the T-BOX is powered on, the offline test method of the T-BOX performs an initial test on at least one peripheral module, and retests the peripheral module that has not passed the initial test in at least one peripheral module. After the communication module passes the initial test or the retest, the network success rate of the communication module is determined. After receiving the low-power sleep message, the sleep detection strategy is determined according to the network success rate, and the determined sleep detection strategy is used to perform a sleep wake-up test on the T-BOX. This application can automatically retest the peripheral modules that have not passed the initial test when the peripheral module fails the initial test. At the same time, this application can determine the sleep detection strategy according to the network success rate, and use the determined sleep detection strategy to perform a sleep wake-up test on the T-BOX, ensuring full coverage of test items and improving the production line beat and pass rate, with higher production capacity, and the entire process does not require manual operation, reducing labor costs.
[0096] In one embodiment of the present application, the process of "determining the network success rate of the communication module" in step S202 is introduced.
[0097] In the prior art, regardless of whether the signal strength during the test is strong or weak, the T-BOX is awakened by a telephone ringing wake-up strategy. However, when the signal strength is weak, the telephone ringing method can easily cause the sleep wake-up test to fail, thereby reducing the production line pass rate. In order to improve the production line pass rate during the sleep wake-up test, the signal strength during the test (i.e., the network success rate) can be first determined through this embodiment.
[0098] Optionally, the process of “determining the network success rate of the communication module” may include the following steps a1 to a3:
[0099] Step a1: Obtain the network status of the communication module at preset time intervals until all peripheral modules pass the initial test or the retest.
[0100] This step can be performed by the eol program after the communication module completes the network stationing, which initiates a timer to obtain the network stationing status of the communication module every preset time period until all peripheral modules are tested and the network stationing status of the communication module is no longer obtained.
[0101] Step a2: Determine the number of successful network access times and the total number of acquisition times in all acquired network access states.
[0102] Step a3: Calculate the quotient of the number of successful network access times and the total number of acquisition times, and use the quotient as the network access success rate.
[0103] That is, the success rate of network access = the number of successful network access times / the total number of acquisition times.
[0104] Optionally, in this step, the obtained quotient value may be expressed in the form of a percentage, and the quotient value in the form of a percentage is the network success rate in this step.
[0105] This embodiment determines the signal strength during the test based on the success rate of staying on the network, which helps to subsequently select a sleep detection strategy suitable for the current network environment.
[0106] The following is an explanation of the process of "determining a sleep detection strategy according to the success rate of network access, and performing a sleep wakeup test on the T-BOX using the determined sleep detection strategy" in step S203.
[0107] In one embodiment, the present embodiment may pre-set a success rate threshold, and determine whether the signal strength in the current test process will affect the pass rate of the sleep wake-up test using the phone ringing wake-up strategy based on the success rate threshold and the network success rate calculated in the above steps. If it does not affect, the phone ringing wake-up strategy is adopted (the phone ringing wake-up strategy is a hard-line wake-up strategy), and if it affects, software wake-up is adopted instead of hard-line wake-up. Optionally, the software wake-up in the present embodiment may specifically be a real-time clock (RTC) wake-up strategy.
[0108] Specifically, the process of this step "determining the sleep detection strategy according to the network success rate" may include: when the network success rate is greater than the success rate threshold, using the phone ringing wake-up strategy as the determined sleep detection strategy; when the network success rate is less than or equal to the success rate threshold, using the RTC wake-up strategy as the determined sleep detection strategy.
[0109] In this step, when the success rate of network access is greater than the success rate threshold, it means that the signal strength in the current test process is strong. In this case, the phone ringing wake-up strategy can be used to perform a sleep wake-up test; when the success rate of network access is less than or equal to the success rate threshold, it means that the signal strength in the current test process is weak. In this case, if the phone ringing wake-up strategy (which is a hard-line wake-up strategy) is still used to perform a sleep wake-up test, the production line pass rate will be reduced, thereby reducing the production capacity of T-BOX. In order to solve this problem, the inventor of this case thought of using the RTC wake-up strategy to perform a sleep wake-up test on T-BOX. The RTC wake-up strategy is a way to simulate the actual product software being awakened by software rather than hard-line awakening. Compared with hard-line awakening, the use of the RTC wake-up strategy can effectively improve the production line pass rate.
[0110] After experimental verification, for a batch of T-BOX sleep wake-up tests, when the signal strength is weak, compared with the sleep wake-up test method using the phone ringing wake-up strategy, the RTC wake-up strategy allows more than ten additional T-BOXs to pass the sleep test, thereby improving the production line pass rate.
[0111] Optionally, the success rate threshold may be 90%. Currently, the success rate threshold may also be set to other values according to actual conditions, which is not limited in this application.
[0112] After the specific sleep detection strategy is determined based on the actual signal strength during the test, the sleep wakeup test can be performed on the T-BOX according to the determined sleep detection strategy.
[0113] The process of performing a sleep wakeup test on the T-BOX using the RTC wakeup strategy may include the following steps b1 to b6:
[0114] Step b1, controlling at least one peripheral module except the communication module to be powered off, controlling the communication module to turn on the flight mode, and controlling the second processor to sleep.
[0115] In this embodiment, the process of the sleep-wake-up test includes a process of performing a sleep current test on the sleep-in T-BOX by the host computer and a process of waking up the sleep-in T-BOX after the sleep current test succeeds.
[0116] This step is mainly used to put the T-BOX into sleep mode. Specifically, at least one peripheral module except the communication module is controlled to be powered off (powering off also means powering off), and when the network success rate is less than or equal to the success rate threshold, the communication module is controlled to turn on the flight mode, and the second processor is controlled to sleep.
[0117] Optionally, in this step, the eol program in the first processor can send instructions to all peripheral modules to control the power off of peripheral modules except the communication module, and control the communication module to enter flight mode and return results. At the same time, the eol program will put the second processor to sleep.
[0118] It should be noted that this step controls the communication module to turn on the flight mode because: when the network success rate is less than or equal to the success rate threshold, in order to avoid hibernation failure caused by weak external signal strength (here, the external signal strength is positively correlated with the signal strength corresponding to the aforementioned network success rate) during hibernation, an instruction to force entering the flight mode will be sent before hibernation to ensure the success of the hibernation test.
[0119] Taking the example that at least one peripheral module in the first processor (eg, OpenCPU processor) includes an SE module and a 4G module, and the success rate threshold is 90%, see Figure 4 As shown, when the low-power sleep message is transmitted to the first processor through the second processor (for example, the MCU processor), the first processor can parse the low-power sleep message. After parsing, the eol program will control the SE module to power off, and control the 4G module to turn on the flight mode when it is judged that the network success rate is less than or equal to 90%, enter the sleep process, and control the second processor to sleep.
[0120] Step b2: Generate a low power request message for the low power sleep message, and send the low power request message to the host computer through the second processor, so that the host computer performs a sleep current test on the T-BOX after waiting for a preset test time.
[0121] In this step, after receiving and parsing the low-power sleep message, a low-power request message for the low-power sleep message can be generated (the low-power request message is a feedback message for the low-power sleep message), and the low-power request message can be fed back to the host computer through the second processor. When the host computer receives the low-power request message, it can parse the low-power request message to confirm the low-power request and wait for a preset test time to perform a sleep current test on the T-BOX (i.e., the device under test dut).
[0122] Optionally, in this step, the process of the host computer performing a sleep current test on the T-BOX includes: the host computer detects the sleep current at a specified time interval, and ends the current detection after reaching the standard. Of course, if the sleep current still fails to reach the standard after a period of time (greater than the specified time), the current detection will also be ended, but the sleep current test has not passed at this time.
[0123] It should be noted that this embodiment does not limit the order of this step and the aforementioned step b1. In practical applications, this step and the aforementioned step b1 can be performed simultaneously.
[0124] It should also be noted that the test time in this step can ensure that step b1 is completed. That is, when the host computer performs a sleep current test on the T-BOX after waiting for the test time, at least one peripheral module except the communication module has been powered off, the communication module has turned on the flight mode, and the second processor has been in sleep mode.
[0125] Optional, see Figure 4 As shown, in this step, when generating a low-power request message, a low-power request message can be generated based on the network success rate parameter information. Here, the network success rate parameter information is used to characterize whether the network success rate is greater than the success rate threshold. For example, if the network success rate parameter information is 1, it indicates that the network success rate is greater than the success rate threshold. If the network success rate is 0, it indicates that the network success rate is less than or equal to the success rate threshold. In this case, the upper computer can determine whether the network success rate under the current test environment is greater than the success rate threshold by parsing the low-power request message.
[0126] Step b3: Wake up the first processor through the communication module after waiting for a preset RTC wake-up time, so that the first processor wakes up the second processor.
[0127] In this step, during the sleep wake-up test, the communication module is in flight mode and is not powered off, so the first processor can be awakened by the communication module after waiting for the RTC wake-up time. After the first processor wakes up, the current increases and pulls up the second processor wake-up pin to wake up the second processor.
[0128] For example, see Figure 4 As shown, the 4G module will perform RTC wake-up while waiting for the RTC wake-up time, so that the eol program enters the wake-up mode, and the eol program then wakes up the second processor.
[0129] Step b4, controlling the communication module to release the flight mode.
[0130] After the sleep current test is completed, the communication module can be controlled to release the flight mode.
[0131] Optionally, the eol program may send a command to the communication module to release the flight mode.
[0132] Step b5: Send the RTC wake-up message to the host computer through the second processor, so that when the sleep current test passes and the host computer determines that the received message is the RTC wake-up message, it sends the first ringing instruction to the T-BOX through the load board.
[0133] like Figure 4As shown, when the success rate of network access is less than or equal to the success rate threshold of 90%, the eol program "sending a wake-up message" specifically refers to sending an RTC wake-up message, which can be sent to the host computer through the second processor. When the host computer passes the sleep current test and determines that the received message is an RTC wake-up message, it will send a first ringing instruction (the first ringing instruction is specifically a call instruction) to the T-BOX through the load board.
[0134] Step b6: monitor the first ringing event through the communication module, and when the first ringing event is monitored, send the generated first phone wake-up message to the host computer through the second processor.
[0135] The first ringing event is an event in which the host computer sends a first ringing instruction.
[0136] For example, Figure 4 As shown, after the flight mode is released, the 4G module will monitor the first ringing event. When the first ringing event is monitored, the eol program will send the first phone wake-up message to the host computer through the second processor. The host computer ends the sleep wake-up test when it confirms that the voice function is normal.
[0137] The process of performing a sleep wakeup test on the T-BOX using the phone ringing wakeup strategy may include the following steps c1 to c4:
[0138] Step c1, controlling at least one peripheral module except the communication module to be powered off, controlling the communication module to enter a sleep mode, and controlling the second processor to sleep.
[0139] This step is similar to the aforementioned step b1, and is also used to put the T-BOX into sleep mode. Specifically, at least one peripheral module except the communication module is controlled to be powered off (powered off also means power off), and when the network access success rate is greater than the success rate threshold, the communication module is controlled to enter sleep mode, and the second processor is controlled to sleep at the same time.
[0140] Optionally, this step can send instructions to all peripheral modules through the eol program in the first processor to control the power off of peripheral modules except the communication module, and control the communication module to enter sleep mode and return results. At the same time, the eol program will put the second processor into sleep mode.
[0141] Taking the example that at least one peripheral module in the first processor (eg, OpenCPU processor) includes an SE module and a 4G module, and the success rate threshold is 90%, see Figure 4As shown, when the low-power sleep message is transmitted to the first processor through the second processor (for example, the MCU processor), the first processor can parse the low-power sleep message. After parsing, the eol program will control the SE module to power off, and control the 4G module to enter the sleep mode when it is judged that the network success rate is greater than 90%, so as to enter the normal sleep process, and control the second processor to sleep at the same time.
[0142] Step c2: Generate a low power request message for the low power sleep message, and send the low power request message to the host computer through the second processor, so that the host computer performs a sleep current test on the T-BOX after waiting for a preset test time.
[0143] In this step, after receiving and parsing the low-power sleep message, a low-power request message for the low-power sleep message can be generated (the low-power request message is a feedback message for the low-power sleep message), and the low-power request message can be fed back to the host computer through the second processor. When the host computer receives the low-power request message, it can parse the low-power request message to confirm the low-power request and wait for a preset test time to perform a sleep current test on the T-BOX (i.e., the device under test dut).
[0144] Optionally, in this step, the process of the host computer performing a sleep current test on the T-BOX includes: the host computer detects the sleep current at a specified time interval, and ends the current detection after reaching the standard. Of course, if the sleep current still fails to reach the standard after a period of time (greater than the specified time), the current detection will also be ended, but the sleep current test has not passed at this time.
[0145] It should be noted that this embodiment does not limit the order of this step and the aforementioned step c1. In practical applications, this step and the aforementioned step c1 can be performed simultaneously.
[0146] It should also be noted that the test time in this step can ensure that step c1 is executed. That is, when the host computer performs a sleep current test on the T-BOX after waiting for the test time, at least one peripheral module except the communication module has been powered off, the communication module has entered sleep mode, and the second processor has been in sleep mode.
[0147] Optional, see Figure 4As shown, the process of generating a low-power request message in this step includes: generating a low-power request message carrying parameter information of the on-line success rate. Here, the parameter information of the on-line success rate is used to characterize whether the on-line success rate is greater than the success rate threshold. For example, if the parameter information of the on-line success rate is 1, it indicates that the on-line success rate is greater than the success rate threshold. If the on-line success rate is 0, it indicates that the on-line success rate is less than or equal to the success rate threshold. In this case, the host computer can determine whether the on-line success rate under the current test environment is greater than the success rate threshold by parsing the low-power request message. In this case, if the host computer determines that the on-line success rate is greater than the success rate threshold and the sleep current test passes, a second ringing instruction can be sent to the T-BOX through the load board.
[0148] Step c3: monitor the second ringing event through the communication module, and when the second ringing event is monitored, wake up the first processor through the communication module, so that the first processor wakes up the second processor.
[0149] The second ringing event is an event in which the host computer sends a second ringing instruction to the T-BOX through the load board when the sleep current test passes.
[0150] In this step, during the sleep wake-up test, the communication module is in sleep mode but not powered off, so the second ringing event can be monitored through the communication module. If the second ringing event is monitored, the first processor is awakened. After the first processor is awakened, the current increases and the second processor wake-up pin is pulled high to wake up the second processor.
[0151] For example, see Figure 4 As shown, when the 4G module monitors the second ringing event, it wakes up the first processor, causing the eol program to enter the wake-up mode, and the eol program then wakes up the second processor.
[0152] Step c4: Generate a second phone wake-up message, and send the second phone wake-up message to the host computer through the second processor.
[0153] like Figure 4 As shown, when the network success rate is greater than the success rate threshold of 90%, the eol program "sending a wake-up message" specifically refers to sending a second phone wake-up message, which can be sent to the host computer through the second processor. The host computer ends the sleep wake-up test when the sleep current test passes and it is determined that the received message is not an RTC wake-up message (if the received message is not an RTC wake-up message, it means that the received message is a second phone wake-up message).
[0154] It should be noted that, in the present embodiment, the “first” and “second” in the first ringing instruction and the second ringing instruction are only used to distinguish different instructions, and are not used to limit the order of the instructions; similarly, the “first” and “second” in the first ringing event and the second ringing event are only used to distinguish different events, and are not used to limit the order of the events, and the “first” and “second” in the first phone wake-up message and the second phone wake-up message are only used to distinguish different messages, and are not used to limit the order of the messages.
[0155] During the sleep and wake-up test process, this embodiment can dynamically adjust the sleep detection strategy according to the signal strength in the current test process. The phone ringing wake-up test is strongly related to the signal strength. When the signal is weak, RTC wake-up is performed first, and then the phone voice test is performed after dut wake-up. This method can ensure full coverage of test items and minimize the impact on the production line rhythm, thereby improving the pass rate.
[0156] The embodiment of the present application also provides a T-BOX offline test device, which is applied to the first processor in the telematics processor T-BOX, the first processor includes at least one peripheral module, at least one peripheral module includes a communication module, the communication module is used to communicate with an external device over the network, the T-BOX also includes a second processor, the second processor is used to forward messages when the first processor communicates with the host computer, the first processor communicates with the second processor through a serial peripheral interface SPI and / or a universal asynchronous receiver transmitter UART, the second processor communicates with the host computer through a CAN bus, the first processor tests at least one peripheral module, and when receiving a test message sent by the host computer through the second processor, the test result of whether the at least one peripheral module has passed the test is fed back to the host computer through the second processor. The offline test device of the T-BOX provided in the embodiment of the present application is described below, and the offline test device of the T-BOX described below and the offline test method of the T-BOX described above can be referred to each other.
[0157] See also Figure 5 , shows a schematic diagram of the structure of the T-BOX offline test device provided in an embodiment of the present application, such as Figure 5 As shown, the offline test device of the T-BOX may include: a test module 501 , a network success rate determination module 502 , and a sleep and wake-up test module 503 .
[0158] The test module 501 is used to perform an initial test on at least one peripheral module after the T-BOX is powered on and start up, and to retest the peripheral module that fails the initial test among the at least one peripheral module.
[0159] The network success rate determination module 502 is used to determine the network success rate of the communication module after the communication module passes the initial test or the retest.
[0160] The sleep wake-up test module 503 is used to determine the sleep detection strategy according to the network success rate after receiving the low-power sleep message, and use the determined sleep detection strategy to perform a sleep wake-up test on the T-BOX, wherein the low-power sleep message is sent to the first processor through the second processor in the T-BOX when the upper computer determines that all peripheral modules have passed the initial test or the retest after self-test.
[0161] The present application provides an offline test method of a T-BOX for a first processor in a telematics processor T-BOX, wherein the first processor includes at least one peripheral module, and at least one peripheral module includes a communication module, and the communication module is used to communicate with an external device over a network, and the T-BOX also includes a second processor, and the second processor is used to forward messages when the first processor communicates with a host computer, and the first processor communicates with the second processor via a serial peripheral interface SPI and / or a universal asynchronous receiver / transmitter UART, and the second processor communicates with the host computer via a CAN bus, and the first processor tests at least one peripheral module , and when receiving the test message sent by the host computer through the second processor, the test result of whether at least one peripheral module has passed the test is fed back to the host computer through the second processor. After the T-BOX is powered on, the offline test method of the T-BOX performs an initial test on at least one peripheral module, and retests the peripheral module that has not passed the initial test in at least one peripheral module. After the communication module passes the initial test or the retest, the network success rate of the communication module is determined. After receiving the low-power sleep message, the sleep detection strategy is determined according to the network success rate, and the determined sleep detection strategy is used to perform a sleep wake-up test on the T-BOX. This application can automatically retest the peripheral modules that have not passed the initial test when the peripheral module fails the initial test. At the same time, this application can determine the sleep detection strategy according to the network success rate, and use the determined sleep detection strategy to perform a sleep wake-up test on the T-BOX, ensuring full coverage of test items and improving the production line beat and pass rate, with higher production capacity, and the entire process does not require manual operation, reducing labor costs.
[0162] In one possible implementation, when the test module 501 retests a peripheral module that has not passed the initial test among at least one peripheral module, it can be specifically used to control the power-off and power-on of the peripheral module that has not passed the initial test through a retest instruction, and retest the peripheral module that has not passed the initial test after power-on.
[0163] In a possible implementation, the network stationing success rate determination module 502 may specifically include: a network stationing state acquisition module, a number determination module and a network stationing success rate calculation module.
[0164] The network status acquisition module is used to obtain the network status of the communication module at preset time intervals until all peripheral modules pass the initial test or the retest.
[0165] The number determination module is used to determine the number of successful network access times and the total number of acquisition times in all acquired network access states.
[0166] The network success rate calculation module is used to calculate the quotient of the number of successful network acquisitions and the total number of acquisitions, and the quotient is used as the network success rate.
[0167] In a possible implementation, when determining the sleep detection strategy according to the network success rate, the sleep wakeup test module 503 may include: a network success rate comparison module, a first sleep detection strategy determination module, and a second sleep detection strategy determination module.
[0168] The network success rate comparison module is used to determine whether the network success rate is greater than a preset success rate threshold.
[0169] The first sleep detection strategy determination module is used to use the phone ringing wake-up strategy as the determined sleep detection strategy when the network success rate is greater than the success rate threshold.
[0170] The second sleep detection strategy determination module is used to use the real-time clock RTC wake-up strategy as the determined sleep detection strategy when the network success rate is less than or equal to the success rate threshold.
[0171] In a possible implementation, when the network success rate is less than or equal to the success rate threshold, the sleep wake-up test module 503 may include: a first sleep module, a first message sending module, a first wake-up module, a flight release module, a second message sending module and a first monitoring module when performing a sleep wake-up test on the T-BOX using a determined sleep detection strategy.
[0172] The first sleep module is used to control the power-off of the peripheral modules except the communication module in at least one peripheral module, control the communication module to start the flight mode, and control the second processor to sleep.
[0173] The first message sending module is used to generate a low power request message for the low power sleep message, and send the low power request message to the host computer through the second processor, so that the host computer performs a sleep current test on the T-BOX after waiting for a preset test time.
[0174] The first wake-up module is used to wake up the first processor through the communication module after waiting for a preset RTC wake-up time, so that the first processor wakes up the second processor.
[0175] The flight release module is used to control the communication module to release the flight mode.
[0176] The second message sending module is used to send the RTC wake-up message to the host computer through the second processor, so that when the sleep current test passes and the host computer determines that the received message is the RTC wake-up message, the host computer sends the first ringing instruction to the T-BOX through the load board.
[0177] The first monitoring module is used to monitor the first ringing event through the communication module, and when the first ringing event is monitored, the generated first phone wake-up message is sent to the host computer through the second processor, wherein the first ringing event is an event in which the host computer sends a first ringing instruction.
[0178] In a possible implementation, when the network access success rate is greater than the success rate threshold, the sleep wakeup test module 503 may include: a second sleep module, a third message sending module, a second monitoring module and a fourth message sending module when performing a sleep wakeup test on the T-BOX using a determined sleep detection strategy.
[0179] The second sleep module is used to control the power-off of the peripheral modules except the communication module in at least one peripheral module, control the communication module to enter the sleep mode, and control the second processor to sleep.
[0180] The third message sending module is used to generate a low power request message for the low power sleep message, and send the low power request message to the host computer through the second processor, so that the host computer performs a sleep current test on the T-BOX after waiting for a preset test time.
[0181] The second monitoring module is used to monitor the second ringing event through the communication module, and when the second ringing event is monitored, wake up the first processor through the communication module so that the first processor wakes up the second processor, wherein the second ringing event is an event in which the host computer sends a second ringing instruction to the T-BOX through the load board when the sleep current test passes.
[0182] The fourth message sending module is used to generate a second phone wake-up message and send the second phone wake-up message to the host computer through the second processor.
[0183] In a possible implementation manner, the low power consumption request message carries network station success rate parameter information, and the network station success rate parameter information is used to indicate whether the network station success rate is greater than a success rate threshold.
[0184] On this basis, when the sleep current test is passed and the host computer determines that the network success rate is greater than the success rate threshold based on the network success rate parameter information, the host computer sends a second ringing instruction to the T-BOX through the load board.
[0185] In one possible implementation, the process of the above-mentioned test module 501 performing an initial test or a retest on the communication module may specifically include: after receiving a ready message sent by the communication module after the power-on startup is successful, initializing the configuration of the communication module and performing an initialization status detection, and after the initialization status detection is successful, receiving a return value sent by the communication module indicating that the test network is successful, wherein, when the return value indicating that the test network is successful is received, it indicates that the initial test or the retest of the communication module has passed.
[0186] In a possible implementation, at least one peripheral module may further include one or more of the following modules: a global positioning system GPS module, a security chip module, and a WIFI module.
[0187] The process of the above-mentioned test module 501 performing initial test or retest on the GPS module may specifically include: receiving the location information message sent by the GPS module after power-on initialization, and parsing the location information message to determine whether the location information message contains a flag bit indicating successful positioning, wherein, if the location information message contains a flag bit, it indicates that the initial test or retest of the GPS module has passed.
[0188] The process of the above-mentioned test module 501 performing initial test or retest on the security chip module may specifically include: after the security chip module is powered on and the driver is initialized, sending test data to the security chip module, and after receiving the return value fed back by the security chip module, comparing the return value with the preset data, wherein the return value is obtained based on the data after the security chip module encrypts the test data, and when the return value is successfully compared with the preset data, it indicates that the initial test or retest of the security chip module has passed.
[0189] The process of the above-mentioned test module 501 performing initial test or retest on the WIFI module may specifically include: after the WIFI module is powered on and the kernel loads the driver of the WIFI module, sending a test data acquisition instruction to the WIFI module to read specified data from the WIFI module, wherein, when the specified data is read from the WIFI module, it indicates that the initial test or retest on the WIFI module is successful.
[0190] The embodiment of the present application also provides an offline test device for T-BOX, which is applied to the first processor in the telematics processor T-BOX, the first processor includes at least one peripheral module, at least one peripheral module includes a communication module, the communication module is used to communicate with external devices over the network, the T-BOX also includes a second processor, the second processor is used to forward messages when the first processor communicates with the host computer, the first processor communicates with the second processor via the serial peripheral interface SPI and / or the universal asynchronous receiver transmitter UART, the second processor communicates with the host computer via the CAN bus, the first processor tests at least one peripheral module, and when receiving the test message sent by the host computer through the second processor, the test result of whether at least one peripheral module has passed the test is fed back to the host computer via the second processor. Optionally, Figure 6 The hardware structure diagram of the T-BOX offline test equipment is shown in Figure 6 , the hardware structure of the T-BOX offline test equipment may include: at least one processor 601, at least one communication interface 602, at least one memory 603 and at least one communication bus 604;
[0191] In the embodiment of the present application, the number of the processor 601, the communication interface 602, the memory 603, and the communication bus 604 is at least one, and the processor 601, the communication interface 602, and the memory 603 communicate with each other through the communication bus 604;
[0192] The processor 601 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention;
[0193] The memory 603 may include a high-speed RAM memory, and may also include a non-volatile memory, such as at least one disk memory;
[0194] The memory 603 stores a program, and the processor 601 can call the program stored in the memory 603, and the program is used to:
[0195] After the T-BOX is powered on, at least one peripheral module is initially tested, and at least one peripheral module that fails the initial test is retested;
[0196] After the communication module passes the initial test or the retest, determine the network success rate of the communication module;
[0197] After receiving the low-power sleep message, the sleep detection strategy is determined according to the network success rate, and the determined sleep detection strategy is used to perform a sleep wake-up test on the T-BOX. Among them, when the upper computer determines that all peripheral modules have passed the initial test or the retest after self-test, the low-power sleep message is sent to the first processor through the second processor.
[0198] Optionally, the detailed functions and extended functions of the program may refer to the above description.
[0199] The embodiment of the present application further provides a readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the offline test method of the T-BOX as described above is implemented.
[0200] Optionally, the detailed functions and extended functions of the program may refer to the above description.
[0201] Finally, it should be noted that, in this article, relational terms such as and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "comprises a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0202] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0203] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A T-BOX offline testing method, It is characterized in that A first processor applied to a telematics processor T-BOX, wherein the first processor includes at least one peripheral module, wherein the at least one peripheral module includes a communication module, wherein the communication module is used to perform network communication with an external device, wherein the T-BOX further includes a second processor, wherein the second processor is used to forward messages when the first processor communicates with a host computer, wherein the first processor communicates with the second processor via a serial peripheral interface SPI and / or a universal asynchronous receiver / transmitter UART, wherein the second processor communicates with the host computer via a CAN bus, wherein the first processor tests the at least one peripheral module, and upon receiving a test message sent by the host computer via the second processor, feeds back a test result of whether the at least one peripheral module has passed the test to the host computer via the second processor; The offline testing method of the T-BOX includes: After the T-BOX is powered on, performing an initial test on the at least one peripheral module, and retesting the peripheral module that fails the initial test among the at least one peripheral module; After the communication module passes the initial test or the retest, determining the network success rate of the communication module; After receiving the low-power sleep message, determine the sleep detection strategy according to the network success rate, and use the determined sleep detection strategy to perform a sleep wakeup test on the T-BOX, wherein, when the host computer determines that all peripheral modules have passed the initial test or the retest after the self-test, the low-power sleep message is sent to the first processor through the second processor; The determining of the dormancy detection strategy according to the network success rate includes: In the case where the on-network success rate is greater than the success rate threshold, using a phone ringing wake-up strategy as a determined dormancy detection strategy; In the case where the on-network success rate is less than or equal to the success rate threshold, a real-time clock RTC wake-up strategy is used as a determined sleep detection strategy; Wherein, when the network access success rate is less than or equal to the success rate threshold, the adopting a determined sleep detection strategy to perform a sleep wakeup test on the T-BOX includes: Controlling the peripheral modules of the at least one peripheral module except the communication module to be powered off, controlling the communication module to turn on the flight mode, and controlling the second processor to sleep; Generate a low power request message for the low power sleep message, and send the low power request message to the host computer through the second processor, so that the host computer performs a sleep current test on the T-BOX after waiting for a preset test time; Waking up the first processor through the communication module after waiting for a preset RTC wake-up time, so that the first processor wakes up the second processor; Controlling the communication module to release the flight mode; Sending the RTC wake-up message to the host computer through the second processor, so that when the sleep current test passes and the host computer determines that the received message is the RTC wake-up message, the host computer sends a first ringing instruction to the T-BOX through the load board; The communication module monitors a first ringing event, and when the first ringing event is monitored, the generated first phone wake-up message is sent to the host computer through the second processor, wherein the first ringing event is an event in which the host computer sends the first ringing instruction.
2. The offline testing method of T-BOX according to claim 1, It is characterized in that The retesting of the at least one peripheral module that fails the initial test includes: The retest instruction is used to control the peripheral module that has not passed the initial test to be powered off and then powered on again, and the peripheral module that has not passed the initial test is retested after powering on.
3. The offline testing method of T-BOX according to claim 1, It is characterized in that The determining the network success rate of the communication module comprises: Obtaining the network status of the communication module at preset time intervals until all peripheral modules pass the initial test or the retest; Determine the number of successful network access times and the total number of acquisition times among all network access states acquired; The quotient of the number of successful network accesses and the total number of acquisitions is calculated, and the quotient is used as the network access success rate.
4. The offline testing method of T-BOX according to claim 1, It is characterized in that When the network access success rate is greater than the success rate threshold, the adopting a determined sleep detection strategy to perform a sleep wakeup test on the T-BOX includes: Controlling the peripheral modules of the at least one peripheral module except the communication module to be powered off, controlling the communication module to enter a sleep mode, and controlling the second processor to sleep; Generate a low power request message for the low power sleep message, and send the low power request message to the host computer through the second processor, so that the host computer performs a sleep current test on the T-BOX after waiting for a preset test time; monitoring a second ringing event through the communication module, and waking up the first processor through the communication module when the second ringing event is monitored, so that the first processor wakes up the second processor, wherein the second ringing event is an event in which the host computer sends a second ringing instruction to the T-BOX through the load board when the sleep current test passes; Generate a second phone wake-up message, and send the second phone wake-up message to the host computer through the second processor.
5. The offline testing method of T-BOX according to claim 4, It is characterized in that The low power consumption request message carries network success rate parameter information, and the network success rate parameter information is used to indicate whether the network success rate is greater than the success rate threshold; When the sleep current test passes and the host computer determines that the network success rate is greater than the success rate threshold based on the network success rate parameter information, the host computer sends the second ringing instruction to the T-BOX through the load board.
6. The offline testing method of T-BOX according to claim 1, It is characterized in that The process of performing initial testing or retesting on the communication module includes: After receiving the ready message sent by the communication module after the power-on startup is successful, the communication module is initialized and configured and an initialization status detection is performed. After the initialization status detection is successful, a return value sent by the communication module indicating that the test network is successful is received. When the return value indicating that the test network is successful is received, it indicates that the initial test or retest of the communication module has passed.
7. The offline testing method of T-BOX according to claim 1, It is characterized in that The at least one peripheral module also includes one or more of the following modules: a global positioning system GPS module, a security chip module and a WIFI module; The process of performing initial measurement or re-measurement on the GPS module includes: Receiving a location information message sent by the GPS module after power-on initialization, and parsing the location information message to determine whether the location information message contains a flag bit indicating successful positioning, wherein if the location information message contains the flag bit, it indicates that the initial test or retest of the GPS module has passed; The process of initially testing or retesting the security chip module includes: After the security chip module is powered on and the driver is initialized, test data is sent to the security chip module, and after receiving a return value fed back by the security chip module, the return value is compared with preset data, wherein the return value is obtained based on data after the security chip module encrypts the test data, and if the return value is successfully compared with the preset data, it indicates that the initial test or retest of the security chip module has passed; The process of performing initial testing or retesting on the WIFI module includes: After the WIFI module is powered on and the kernel loads the driver of the WIFI module, a test data acquisition instruction is sent to the WIFI module to read specified data from the WIFI module, wherein, when the specified data is read from the WIFI module, it indicates that the initial test or retest of the WIFI module is successful.
8. A T-BOX offline test device, It is characterized in that A first processor applied to a telematics processor T-BOX, wherein the first processor includes at least one peripheral module, wherein the at least one peripheral module includes a communication module, wherein the communication module is used to perform network communication with an external device, wherein the T-BOX further includes a second processor, wherein the second processor is used to forward messages when the first processor communicates with a host computer, wherein the first processor communicates with the second processor via a serial peripheral interface SPI and / or a universal asynchronous receiver / transmitter UART, wherein the second processor communicates with the host computer via a CAN bus, wherein the first processor tests the at least one peripheral module, and upon receiving a test message sent by the host computer via the second processor, feeds back a test result of whether the at least one peripheral module has passed the test to the host computer via the second processor; The offline test device of the T-BOX comprises: A test module, configured to perform an initial test on the at least one peripheral module after the T-BOX is powered on and start, and to retest the peripheral module that fails the initial test among the at least one peripheral module; A network success rate determination module, used to determine the network success rate of the communication module after the communication module passes the initial test or the retest; A sleep wake-up test module, configured to determine a sleep detection strategy according to the network success rate after receiving a low-power sleep message, and perform a sleep wake-up test on the T-BOX using the determined sleep detection strategy, wherein, when the host computer determines that all peripheral modules have passed the initial test or the retest after the self-test, the low-power sleep message is sent to the first processor through the second processor; The sleep-wake-up test module determines a sleep detection strategy according to the network success rate, and is specifically used to: In the case where the on-network success rate is greater than the success rate threshold, using a phone ringing wake-up strategy as a determined dormancy detection strategy; In the case where the on-network success rate is less than or equal to the success rate threshold, a real-time clock RTC wake-up strategy is used as a determined sleep detection strategy; Wherein, when the on-network success rate is less than or equal to the success rate threshold, the sleep-wake-up test module adopts a determined sleep detection strategy to perform a sleep-wake-up test on the T-BOX, specifically for: Controlling the peripheral modules of the at least one peripheral module except the communication module to be powered off, controlling the communication module to turn on the flight mode, and controlling the second processor to sleep; Generate a low power request message for the low power sleep message, and send the low power request message to the host computer through the second processor, so that the host computer performs a sleep current test on the T-BOX after waiting for a preset test time; Waking up the first processor through the communication module after waiting for a preset RTC wake-up time, so that the first processor wakes up the second processor; Controlling the communication module to release the flight mode; Sending the RTC wake-up message to the host computer through the second processor, so that when the sleep current test passes and the host computer determines that the received message is the RTC wake-up message, the host computer sends a first ringing instruction to the T-BOX through the load board; The communication module monitors a first ringing event, and when the first ringing event is monitored, the generated first phone wake-up message is sent to the host computer through the second processor, wherein the first ringing event is an event in which the host computer sends the first ringing instruction.
Citation Information
Patent Citations
Automatic test method and related device
CN111585841A
T-box parameter automatic calibration and test method and device
CN111880508A