Electric seat testing method, device and equipment
By using a fully automated testing method, infrared sensors and a host computer are used to automatically perform electric seat tests, which solves the problems of low efficiency and poor accuracy of manual testing. This achieves efficient and accurate assessment of seat stability and reliability, and reduces testing costs.
Patent Information
- Application Number
- CN202511971029.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-24
- Publication Date
- 2026-03-17
AI Technical Summary
Existing testing methods for electric seats rely on manual operation, which is inefficient and susceptible to human factors. They cannot comprehensively assess the stability and reliability of the seats, and the accuracy and consistency of test results are poor, resulting in high testing costs and limited functional evaluation.
A fully automated testing method is adopted, utilizing infrared sensors and a host computer to generate hash values that match seat position data through automated execution of initialization, comfortable entry test, and comfortable exit test, reducing the amount of computation and ensuring the accuracy and consistency of test results.
It achieves fully automated testing, reduces human error, improves testing efficiency and accuracy, ensures the stability and reliability of the seats in various usage scenarios, and reduces testing costs.
Smart Images

Figure CN121678253A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of automotive intelligent connected vehicle testing technology, and in particular to an electric seat testing method, apparatus, and equipment. Background Technology
[0002] In the evolution of automotive in-vehicle connectivity systems, testing the memory and comfort functions of power seats has become a core aspect of improving user experience. Modern power seats' memory modules not only enable the three basic functions of fore-and-aft movement, vertical adjustment, and backrest angle adjustment, but also extend to convenient features for getting in and out of the vehicle. These functions aim to improve the user's experience in and out of the car; however, the current testing landscape presents numerous challenges to achieving this goal.
[0003] In related technologies, comfort entry and exit tests for electric seats largely rely on manual operation, which is inefficient and susceptible to human error. This approach not only wastes time but may also lead to inaccurate test results. Furthermore, existing automated testing solutions mostly only cover basic functional verification and cannot comprehensively assess the stability and reliability of the seat during long-term use. They also lack comprehensive testing capabilities across multiple locations, which limits the comprehensiveness of functional evaluation.
[0004] Because most existing testing methods rely on manual intervention, the testing cycle is long and resource-intensive. Each test requires the tester to open and close the car door twice and unfasten and refasten the seatbelt twice. If testing continues for more than half an hour, the tester's physical strength will be severely depleted, leading to a decrease in testing speed. In reality, durability testing typically requires at least 10,000 tests at each seat starting point, which obviously necessitates multiple shifts for manual operation. Furthermore, if automated testing is conducted on actual vehicles, vehicle maintenance must be considered, and the limited interior space makes it difficult to install corresponding monitoring equipment. These high testing costs not only affect the company's operational efficiency but also limit the promotion and application of new technologies, failing to provide consumers with a better seat functionality experience.
[0005] The existing testing methods have not performed satisfactorily. Due to the lack of precise monitoring of key positions during seat movement and the state of the seat after long-term operation, as well as the differences in test records recorded by different personnel, and even differences in records recorded by the same personnel due to fatigue after long-term work, the reliability and consistency of the test results are seriously affected.
[0006] Therefore, there is an urgent need to develop more efficient testing methods for the memory and comfort functions of electric seats in order to reduce costs, improve testing accuracy and reliability, thereby ensuring product quality and enhancing user experience. Summary of the Invention
[0007] This invention provides a method, apparatus, and equipment for testing electric seats, which addresses the problems of low efficiency in manual testing and the susceptibility of test results to subjective influence by testers in the prior art.
[0008] In a first aspect, embodiments of the present invention provide a method for testing an electric seat, comprising: Initialize the test process for executing the electric seat test; After receiving the user's start command, the test process is used to repeatedly execute the comfort boarding test and the comfort alighting test. After each execution of the comfort boarding test and the comfort alighting test, the test result is determined. The electric seat test is completed after the preset number of tests is reached.
[0009] Optionally, the initialization of the test process for performing the electric seat test includes: Set the number of tests, reset the number of tests to zero, reset the state variable to the start state, and establish the database; The establishment of the database includes: Determine when to start the test process; The database name is determined based on the startup time and file storage path; Create a database using the database name.
[0010] Optionally, the database includes: The number of rows in the database is determined according to the number of tests. Each row in the database is used to record test information for one comfortable boarding test or one comfortable disembarking test. The database has 6 columns. Each column in the database is used to record the test information of the corresponding item in a comfortable vehicle entry test or a comfortable vehicle exit test. The test information includes the sequence number, action type, test time, test result, raw data, and error type.
[0011] Optionally, performing the comfort boarding test and determining the test results include: The display interface shows the current number of tests, the current seat operating status, and the comfort entry test prompt. The first comfort entry test pre-state is updated through message values. The seat operating status includes running and stopping. The first comfort entry test pre-state includes the door being closed and the seat belt not being fastened. The first sensor used to determine the comfort level of the vehicle is activated. The second comfort entry test pre-state is updated by the message value. The second comfort entry test pre-state includes the seat belt being fastened. The second comfort entry test pre-state is used to trigger the electric seat to perform the comfort entry action. Once it is determined that the electric seat has completed the comfortable entry action, the first position data collected by the first sensor on the electric seat is acquired. The comfort boarding test results are determined based on the first location data and recorded. The process of performing the comfort disembarkation test and determining the test results includes: The display interface shows the current number of tests, the current seat operating status, and the comfortable exit test prompt. The first comfortable exit test pre-state is updated through message values. The seat operating status includes running and stopping. The first comfortable exit test pre-state includes the door not closed and the seat belt fastened. Activate the second sensor used to determine the comfort level of the vehicle; The second comfortable exit test pre-state is updated by message value. The second comfortable exit test pre-state includes not wearing a seat belt. The second comfortable entry test pre-state is used to trigger the electric seat to perform a comfortable exit action. Once it is determined that the electric seat has completed the comfortable alighting action, the second position data collected by the second sensor on the electric seat is acquired. The results of the comfortable disembarkation test are determined based on the second location data and recorded.
[0012] Optionally, the comfort entry test result is determined based on the first location data, and the comfort exit test result is determined based on the second location data, including: A first hash value is generated based on the first location data or the second location data; The first hash value is matched with several preset hash values in a preset array; The result of the comfortable entry test or the result of the comfortable exit test are determined based on the seat status represented by the matched target hash value.
[0013] Optionally, the method for determining the test results after each comfortable entry test and comfortable exit test further includes: Compare the first or second location data with the stall data; When the first position data or the second position data is the same as the stall data, it is determined that the test result is abnormal; When the first position data or the second position data is different from the stall data, it is determined that the test result is not abnormal; The stall data is updated using either the first location data or the second location data after each comfortable boarding test or comfortable disembarking test is completed and the test results are confirmed to be normal.
[0014] Optionally, the method further includes: When the state variable is detected to have changed to a paused state, a sleep period of a preset first duration is initiated, and the state variable is re-detected after the sleep period ends. When the state variable is detected to have changed to a recovery state, the comfortable boarding test and the comfortable disembarking test continue to be executed.
[0015] Secondly, embodiments of the present invention provide an electric seat testing device, the device comprising: The initialization module initializes the test process for executing the electric seat test; After receiving the user's start command, the testing module sequentially and repeatedly executes the comfort boarding test and the comfort alighting test through the testing process. After each execution of the comfort boarding test and the comfort alighting test, the test result is determined. The module ends when the preset number of tests is reached, completing the electric seat test.
[0016] Thirdly, embodiments of the present invention provide an electronic device, including: At least one processor; and At least one memory communicatively connected to the processor, wherein: The memory stores program instructions that can be executed by the processor, which can invoke the program instructions to perform the method as described in any of the first aspects.
[0017] Fourthly, embodiments of the present invention provide a storage medium including a stored program, wherein, when the program is executed, it controls the device where the storage medium is located to perform the method described in any of the first aspects.
[0018] In this embodiment of the invention, fully automated testing can be achieved using only infrared sensors and a host computer, replacing manual testing of actual vehicles. The operation is simple, and the entire testing process does not require long-term human intervention, allowing for 24-hour uninterrupted testing.
[0019] Meanwhile, by replacing multiple shifts of manual testing with fully automated on-site testing, the functions of the electric seat controller and the movement range of the three-way motor of the seat can be accurately tested simultaneously. The final automated judgment of the test results replaces the subjective recording by humans, eliminating the error of subjective recording data by humans and avoiding subjective recording errors caused by human fatigue, thus ensuring the stability and reliability of the seat in various usage scenarios. Attached Figure Description
[0020] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0021] Figure 1 The diagram shown is a flowchart of a test method for an electric seat provided in an embodiment of this application; Figure 2 The diagram shown is a structural schematic of an electric seat testing device provided in an embodiment of this application; Figure 3 The diagram shown is a structural schematic of an electronic device provided in an embodiment of this application. Detailed Implementation
[0022] To better understand the technical solution of this application, the embodiments of this application will be described in detail below with reference to the accompanying drawings.
[0023] It should be understood that the described embodiments are merely some, not all, of the embodiments in this application. All other embodiments obtained by those skilled in the art based on the embodiments in this application without inventive effort are within the scope of protection of this application.
[0024] like Figure 1 The diagram shown is a flowchart of a testing method for an electric seat provided in this application. See also... Figure 1 The specific steps of this method include: S101, Initialize the test process for executing the electric seat test.
[0025] Specifically, when initializing the test process, it is necessary to set the number of tests, reset the number of tests to zero, reset the status variable to the start state, and establish a database to store test records.
[0026] When setting the number of tests, the operator needs to manually configure the test count variable on the display interface. Before the actual test begins, the test process retrieves the test count by reading the variable set by the operator.
[0027] The number of tests and the status variable are represented by setting string variables.
[0028] Optionally, the display variables on the display interface can also be reset, that is, the displacement, height, and angle of the vehicle and the displacement, height, and angle of the vehicle are returned to 0.
[0029] When creating a database, it is necessary to determine the start time of the test process, and determine the database name based on the start time and file storage path, and then create the database using the database name.
[0030] First, the internal string variable used to record the date needs to be reset, and a new time variable needs to be defined to record the local test time, i.e., the start time of the test process. The current raw time of the local host computer is obtained and converted into a formatted "year-month-day-hour-minute-second" format as the start time, which is then stored in the created string variable.
[0031] Create a string containing a file storage path and filename in a specific format to name the database. The string consists of the file storage path address, the start time of the test process recorded in the string variable from the previous step, and the Excel file extension ".xlsx". Before using the new string, first remove references to the old string to free up memory, then concatenate the new string.
[0032] When creating a database based on a given database name, if a database with the same name already exists locally, a new database will not be created. Data can be written directly to it without needing to create it again.
[0033] The number of rows in the created database is determined by the number of tests conducted. Each row in the database records test information for either a comfort-on-the-vehicle test or a comfort-on-the-vehicle test.
[0034] Generally, the number of rows in the database is twice the number of tests plus two rows. Since each test needs to include two records: "getting on" and "getting off," the number of rows is twice the number of tests. Additionally, to prevent data overflow and for the database headers, two more rows are added.
[0035] The database has six columns, each used to record test information for a specific item in a comfort boarding test or a comfort disembarking test. The test information includes: sequence number, action type, test time, test result, raw data, and error type.
[0036] Among them, the serial number is used to record the number of tests, the action type is used to distinguish between getting on and getting off the vehicle, the test time is used to record the actual time when the test is performed, the test result is used to distinguish whether the test passes or fails, the raw data is used to record the raw data in hexadecimal corresponding to the sensor, and the error type is used to record the other 28 reasons for failure in Chinese. If there are reasons beyond the 28, they are replaced with unknown reasons.
[0037] S102, after receiving the user's start command, the test process is used to repeatedly execute the comfort boarding test and the comfort alighting test. After each execution of the comfort boarding test and the comfort alighting test, the test result is determined.
[0038] Specifically, during the comfort entry test, the display interface shows the current number of tests, the current seat operating status, and comfort entry test prompts. The seat operating status includes running and stopped.
[0039] Specifically, by finding the variable indicating the current number of runs, the value of the variable is synchronously transmitted to the test process's display interface to show the variable indicating the current number of runs. Within the sub-process that executes a specific test task, the string "Comfortable Getting In" is synchronously transmitted to the test process's display interface and displayed, distinguishing between the current test stage of "Comfortable Getting In" or "Comfortable Getting Out." Within the sub-process, the CAN device is invoked to receive specific messages regarding the electric seat's operating status, extracting the signal values related to the operating status, and synchronously converting the corresponding results into the strings "Running" and "Stopped," which are then synchronously updated and displayed on the test process's display interface to show the operator the current operating status of the seat.
[0040] The First Comfort boarding test pre-test status is updated via message values to simulate the user's actions as they prepare to get into the vehicle. The First Comfort boarding test pre-test status includes the door being closed and the seatbelt not being fastened.
[0041] Turn on the first sensor used to determine the comfort of getting into the vehicle for testing, and turn off the second sensor used to determine the comfort of getting out of the vehicle for testing.
[0042] One issue is that the first sensor used for boarding tests and the second sensor used for disembarking tests, both deployed on the power seat, can interfere with each other when powered on simultaneously, leading to errors in the test results. Therefore, the power to the first and second sensors needs to be switched on and off sequentially to ensure that the two sets of sensors do not interfere with each other.
[0043] The working subprocess sends a command through the RS485 serial port to turn on the power supply of the first sensor used for determining comfort boarding, thereby turning on the first sensor; and sends a command through the RS485 serial port to turn off the power supply of the second sensor used for comfort disembarking, thereby turning off the second sensor.
[0044] The second comfort entry test pre-state is updated via message value to simulate the action of a user already entering the vehicle. The second comfort entry test pre-state includes "seatbelt fastened". The second comfort entry test pre-state is used to trigger the power seat to perform the comfort entry action.
[0045] The power seat uses a motor to perform a comfortable entry maneuver, moving to its forward and highest positions. After confirming that the power seat has completed the comfortable entry maneuver, the system acquires the first position data collected by the first sensor.
[0046] The process involves a 15-second sleep delay, waiting for the electric seat to complete the comfortable entry maneuver. Once the subprocess finishes its sleep phase, it confirms that the electric seat has completed the comfortable entry maneuver.
[0047] Alternatively, the subprocess can call the CAN device to collect messages related to the operating status of the electric seat in the CAN network, in order to determine whether the electric seat has completed the comfortable entry action.
[0048] After confirming the comfortable entry action is completed, a query command is used to activate the first sensor to scan the position of the electric seat using infrared light, and a collection command is used to retrieve the first position data collected by the first sensor. Specifically, the first sensor includes seven monitoring sensors, deployed at the horizontal standard point, horizontal deviation point, height horizontal point, height deviation point, backrest extension standard point, and backrest extension deviation point.
[0049] The comfort test results are determined by retrieving the first location data and recorded in the established database.
[0050] In this embodiment of the invention, during the comfortable exit test, the current number of tests, the current seat operating status, and the comfortable exit test prompt are displayed on the screen, and the first comfortable exit test pre-state is updated via message values. The first comfortable exit test pre-state includes an open door and a fastened seatbelt.
[0051] Turn on the second sensor used to determine the comfort level of the vehicle and turn off the first sensor.
[0052] The second comfort exit test pre-test status is updated via message values. The second comfort exit test pre-test status includes not wearing a seatbelt. The second comfort entry test pre-test status triggers the power seat to perform a comfortable exit maneuver. The power seat, powered by a motor, performs the comfortable exit maneuver, moving to the final and lowest positions.
[0053] Once it is determined that the electric seat has completed the comfortable disembarkation action, the second position data collected by the second sensor on the electric seat is acquired.
[0054] The results of the comfortable disembarkation test are determined based on the second location data, and the test results are recorded in the database.
[0055] In this embodiment of the invention, the first position data or the second position data returned by the first sensor or the second sensor is a raw data array consisting of a set of hexadecimal integers of length 21. In the main process, 30 sets of data representing the seat state of the electric seat are predefined. By comparing the determined first position data or second position data with the predefined 30 sets of data, it is determined whether there is an error in the position reached by the electric seat after performing a comfort entry test or a comfort exit test.
[0056] Table 1 shows a power seat status table provided in an embodiment of the present invention. The table contains 30 sets of sensor values and the seat status corresponding to each set of sensor values.
[0057] Table 1. Status of Electric Seats Since the first or second test result needs to be compared with 30 pre-stored arrays, a direct comparison would require 21 executions in the worst case. 30 = 630 comparisons significantly increases the computational load and complexity of the processing.
[0058] In this embodiment of the invention, a hash calculation is performed on 30 pre-stored arrays to generate a unique hash value, which is then stored in the array to replace the original 21-bit hexadecimal integer.
[0059] The acquired first or second location data is hashed to generate a first hash value. This first hash value is then matched with 30 sets of hash values in a preset array. Based on the seat status represented by the matched target hash value, a comfortable boarding or comfortable alighting result is determined.
[0060] In one specific embodiment, if the first hash value obtained by hashing the first position data is the same as the hash value of the 9 groups, it can be determined that there is an error in displacement and height when performing the comfort boarding test.
[0061] In this way, a maximum of 30 matches are needed to obtain the test result, reducing redundant calculations.
[0062] Optionally, in this embodiment of the invention, when determining the test results, it is also necessary to determine whether an anomaly has occurred through stall data.
[0063] Specifically, the main process contains a set of stall data with the same length as the first and second position data. During the first test, the array storing the stall data is cleared to zero due to main process initialization. That is, after the first comfort boarding test, it is not necessary to compare the first position data with the stall data, but comparisons are required after each subsequent comfort boarding and comfort disembarking test.
[0064] After each comfortable entry test or comfortable exit test is completed, and it is confirmed that no abnormalities have occurred in the test results, the stall data is updated using the obtained first position data or second position data, so that it can be compared during the next comfortable exit test or comfortable entry test.
[0065] When the first position data or the second position data is the same as the stall data, the test result is determined to be abnormal; when the first position data or the second position data is different from the stall data, the test result is determined to be normal.
[0066] Specifically, during the comfort entry test, after acquiring the first position data collected by the first sensor, it is compared with the stall data. If they are the same, it means that the electric seat did not move after the last comfort exit test; if they are different, it means that the seat moved after the last comfort exit test, which is normal.
[0067] When performing a comfortable exit, the second position data collected by the second sensor is compared with the stall data. If they are the same, it means that the seat did not move after the last comfortable exit test. If they are different, it means that the seat moved after the last comfortable exit test, which is normal.
[0068] S103, the electric seat test is completed after the preset number of tests is reached.
[0069] Specifically, state variables include four types: start state, paused state, resumed state, and end state.
[0070] "Starting state" indicates that the worker process is in the state of starting to execute the test.
[0071] "Paused state" indicates that the operator issues an operation command through the display interface, hoping to temporarily interrupt the currently ongoing test. At this time, the child process will interrupt subsequent work, jump to the initial entry point of the child process, and sleep for 100ms. The values of the system variables that were assigned before the interruption, such as the number of tests, remain unchanged. The child process enters sleep mode. After 100ms, the child process will restart and check the status value of the status variables. If the status is still "paused state", the child process will enter sleep mode again and repeat the above actions until the "paused state" is lifted and becomes "resumption state".
[0072] "Resume state" means that the worker subprocess is restored from the "paused" state to the running state, continuing the previously interrupted workflow.
[0073] The "Termination State" indicates that the worker process will be forcibly closed, completely ending the current test, turning off the sensor power, and updating the display message to "Test Ended." Once the "Termination State" is triggered, the previous test state cannot be restored through the "Restore State" process; a new test cycle can only be started by using the "Start State."
[0074] In this embodiment of the invention, after each comfortable boarding test or comfortable boarding / alighting test, it is necessary to determine whether the current number of tests has reached the preset number of tests. When the number of tests has exceeded the preset number of tests, the test process terminates the execution of the working subprocess, and the power supply relay switches of the first and second sensors are turned off via the RS485 serial port protocol, and the display screen is updated with the message "Test Ended". When the number of tests has been less than the preset number of tests, the test continues.
[0075] In this embodiment of the invention, fully automated testing can be achieved using only infrared sensors and a host computer, replacing manual testing of actual vehicles. The operation is simple, and the entire testing process does not require long-term human intervention, allowing for 24-hour uninterrupted testing.
[0076] Meanwhile, by replacing multiple shifts of manual testing with fully automated on-site testing, the functions of the electric seat controller and the movement range of the three-way motor of the seat can be accurately tested simultaneously. The final automated judgment of the test results replaces the subjective recording by humans, eliminating the error of subjective recording data by humans and avoiding subjective recording errors caused by human fatigue, thus ensuring the stability and reliability of the seat in various usage scenarios.
[0077] Corresponding to the above-described electric seat testing method, this application also provides an electric seat testing device. See [link to relevant documentation]. Figure 2 This is a schematic diagram of the structure of an electric seat testing device provided in an embodiment of this application. The electric seat testing device may include: an initialization module 201, a testing module 202, and an end module 203.
[0078] Initialize module 201 to initialize the test process for executing the electric seat test.
[0079] After receiving the user's start command, the test module 202 sequentially executes the comfort boarding test and the comfort alighting test through the test process, and determines the test result after each execution of the comfort boarding test and the comfort alighting test.
[0080] End module 203: The electric seat test is completed when the preset number of tests is reached.
[0081] Figure 3 This is a schematic diagram illustrating the structure of one embodiment of the electronic device described in this specification. Specifically, the electronic device can be implemented as an electronic device for performing the electric seat testing method provided in this embodiment. For example... Figure 3 As shown, the electronic device may include at least one processor; and at least one memory communicatively connected to the processing unit, wherein the memory stores program instructions executable by the processing unit, and the processor can execute the electric seat testing method provided in this embodiment by calling the program instructions.
[0082] The aforementioned electronic device can be a device capable of intelligent dialogue with the user, such as a cloud server. This specification does not limit the specific form of the electronic device in the embodiments. It is understood that the electronic device here refers to the machine mentioned in the method embodiments.
[0083] Figure 3 A block diagram of an exemplary electronic device suitable for implementing embodiments of this specification is shown. Figure 3 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of use of the embodiments described in this specification.
[0084] like Figure 3 As shown, the electronic device is represented in the form of a general-purpose computing device. The components of the electronic device may include, but are not limited to: one or more processors 310, communication interface 320, memory 330, and communication bus 340 connecting different system components (including memory 330, communication interface 320 and processor 310).
[0085] Communication bus 340 represents one or more of several bus architectures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any of the various bus architectures. For example, these architectures include, but are not limited to, Industry Standard Architecture (ISA) buses, Micro Channel Architecture (MAC) buses, Enhanced ISA buses, Video Electronics Standards Association (VESA) local buses, and Peripheral Component Interconnect (PCI) buses.
[0086] Electronic devices typically include a variety of computer-readable media. These media can be any available media that can be accessed by the electronic device, including volatile and non-volatile media, and removable and non-removable media.
[0087] Memory 330 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) and / or cache memory. The electronic device may further include other removable / non-removable, volatile / non-volatile computer system storage media. Memory 330 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of the embodiments described herein.
[0088] A program / utility having a set (at least one) of program modules may be stored in memory 330. Such program modules include, but are not limited to, an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include an implementation of a network environment. The program modules typically perform the functions and / or methods described in the embodiments of this specification.
[0089] The processor 310 executes various functional applications and data processing by running programs stored in the memory 330, such as implementing the electric seat testing method provided in the embodiments shown in this specification.
[0090] This specification provides a non-transitory computer-readable storage medium storing computer instructions that cause the computer to execute the electric seat testing method provided in the embodiments shown in this specification.
[0091] The aforementioned non-transitory computer-readable storage medium may be any combination of one or more computer-readable media. A computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), or flash memory, optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in connection with an instruction execution system, apparatus, or device.
[0092] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, capable of sending, propagating, or transmitting programs for use by or in connection with an instruction execution system, apparatus, or device.
[0093] Program code contained on a computer-readable medium may be transmitted using any suitable medium, including but not limited to wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.
[0094] Computer program code for performing the operations described herein can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages such as "C" or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or it can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0095] The foregoing has described specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims may be performed in a different order than that shown in the embodiments and may still achieve the desired result. Furthermore, the processes depicted in the drawings do not necessarily require the specific or sequential order shown to achieve the desired result. In some embodiments, multitasking and parallel processing are possible or may be advantageous.
[0096] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this specification, "a plurality of" means at least two, such as two, three, etc., unless otherwise explicitly specified.
[0097] Any process or method described in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more executable instructions for implementing custom logic functions or processes, and the scope of the preferred embodiments of this specification includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as will be understood by those skilled in the art to which the embodiments of this specification pertain.
[0098] Depending on the context, the word "if" as used here can be interpreted as "when," "when," "in response to determination," or "in response to detection." Similarly, depending on the context, the phrase "if determination" or "if detection (of the stated condition or event)" can be interpreted as "when determination," "in response to determination," "when detection (of the stated condition or event)," or "in response to detection (of the stated condition or event)."
[0099] It should be noted that the terminals involved in the embodiments of this specification may include, but are not limited to, personal computers (PCs), personal digital assistants (PDAs), wireless handheld devices, tablet computers, mobile phones, MP3 players, MP4 players, etc.
[0100] In the embodiments provided in this specification, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.
[0101] Furthermore, the functional units in the various embodiments of this specification can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or in a combination of hardware and software functional units.
[0102] The integrated units implemented as software functional units described above can be stored in a computer-readable storage medium. These software functional units, stored in a storage medium, include several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute some steps of the methods described in the various embodiments of this specification.
[0103] The above description is merely a preferred embodiment of this specification and is not intended to limit this specification. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this specification should be included within the scope of protection of this specification.
Claims
1. A method of testing an electric seat, characterized by, The application relates to a test process for initializing and executing an electric seat test. After receiving a starting instruction from a user, the test process is used to repeatedly execute a comfortable getting-in test and a comfortable getting-out test in sequence, wherein after each execution of the comfortable getting-in test and the comfortable getting-out test, a test result is determined. When the number of tests reaches a preset number of tests, the electric seat test is completed. The test process for initializing and executing an electric seat test comprises:
2. The method of claim 1, wherein, setting a test number, resetting a state variable to a start state, and establishing a database. The database is established according to the database name. The database comprises: The number of rows in the database is determined according to the test number, and each row in the database is used to record test information of one comfortable getting-in test or one comfortable getting-out test. The number of columns in the database is six, and each column in the database is used to record test information of a corresponding item in one comfortable getting-in test or one comfortable getting-out test, wherein the test information comprises a serial number, an action type, a test time, a test result, original data, and an error type. The execution of the comfortable getting-in test and the determination of the test result comprise:
3. The method of claim 2, wherein, displaying the current test number, the current seat running state and a comfortable getting-in test prompt through a display interface, updating a first comfortable getting-in test pre-state through a message value, the seat running state comprises running and stopping, and the first comfortable getting-in test pre-state comprises a closed door and an unfastened seat belt; starting a first sensor used to judge the comfortable getting-in test; updating a second comfortable getting-in test pre-state through a message value, the second comfortable getting-in test pre-state comprises a fastened seat belt, and the second comfortable getting-in test pre-state is used to trigger the electric seat to execute a comfortable getting-in action; 4. The method of claim 1, wherein, after determining that the electric seat completes the comfortable getting-in action, acquiring first position data collected by the first sensor on the electric seat; determining a comfortable getting-in test result according to the first position data and recording the comfortable getting-in test result; The execution of the comfortable getting-out test and the determination of the test result comprise: displaying the current test number, the current seat running state and a comfortable getting-out test prompt through a display interface, updating a first comfortable getting-out test pre-state through a message value, the seat running state comprises running and stopping, and the first comfortable getting-out test pre-state comprises an open door and a fastened seat belt; starting a second sensor used to judge the comfortable getting-in test; updating a second comfortable getting-out test pre-state through a message value, the second comfortable getting-out test pre-state comprises an unfastened seat belt, and the second comfortable getting-out test pre-state is used to trigger the electric seat to execute a comfortable getting-out action; after determining that the electric seat completes the comfortable getting-out action, acquiring second position data collected by the second sensor on the electric seat; determining a comfortable getting-out test result according to the second position data and recording the comfortable getting-out test result. 5. The method of claim 4, wherein, According to the first position data, a comfortable getting-in test result is determined, and according to the second position data, a comfortable getting-out test result is determined, comprising: generating a first hash value according to the first position data or the second position data; matching the first hash value with a plurality of preset hash values in a preset array; determining the comfortable getting-in test result or the comfortable getting-out test result according to a seat state represented by a target hash value matched.
6. The method of claim 4, wherein, After each execution of the comfortable getting-in test and the comfortable getting-out test, the method further comprises: comparing the first position data or the second position data with stall data; when the first position data or the second position data is the same as the stall data, determining that the test result is abnormal; when the first position data or the second position data is different from the stall data, determining that the test result is not abnormal; wherein the stall data is updated by the first position data or the second position data after each execution of the comfortable getting-in test or the comfortable getting-out test, and determination that the test result is not abnormal.
7. The method of claim 1, wherein, The method further comprises: when detecting that a state variable becomes a pause state, hibernating for a preset first duration, and after ending hibernation, re-detecting the state variable; when detecting that the state variable becomes a recovery state, continuing to execute the comfortable getting-in test and the comfortable getting-out test.
8. An electric seat test device characterized by comprising: The device comprises: an initialization module, which initializes a test process of executing an electric seat test; a test module, which, after receiving a start instruction of a user, executes a comfortable getting-in test and a comfortable getting-out test in sequence and repeatedly through the test process, wherein after each execution of the comfortable getting-in test and the comfortable getting-out test, a test result is determined; an end module, which completes the electric seat test when a test number reaches a preset test number.
9. An electronic device, comprising: comprise: at least one processor; and at least one memory in communication with the processor, wherein: the memory stores program instructions executable by the processor, and the processor calling the program instructions can execute the method of any one of claims 1 to 7.
10. A storage medium, characterized by The storage medium comprises a stored program, wherein when the program runs, the device where the storage medium is located executes the method of any one of claims 1 to 7.
