CN117724443A - Cabin machine testing method and device, computer equipment and storage medium - Google Patents

Cabin machine testing method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN117724443A
CN117724443A CN202311714533.1A CN202311714533A CN117724443A CN 117724443 A CN117724443 A CN 117724443A CN 202311714533 A CN202311714533 A CN 202311714533A CN 117724443 A CN117724443 A CN 117724443A
Authority
CN
China
Prior art keywords
data
pressure data
vehicle
pressure
tested
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202311714533.1A
Other languages
Chinese (zh)
Other versions
CN117724443B (en
Inventor
张阿关
李思维
沈国明
霍岩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mgjia Beijing Technology Co ltd
Original Assignee
Mgjia Beijing Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mgjia Beijing Technology Co ltd filed Critical Mgjia Beijing Technology Co ltd
Priority to CN202311714533.1A priority Critical patent/CN117724443B/en
Publication of CN117724443A publication Critical patent/CN117724443A/en
Application granted granted Critical
Publication of CN117724443B publication Critical patent/CN117724443B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The invention relates to the technical field of cabin locomotives, and discloses a cabin locomotive testing method, a device, computer equipment and a storage medium, comprising the following steps: generating pressure data of the vehicle to be tested; inputting pressure data into a data processing module of the vehicle to be tested through a bus of the vehicle to be tested; reading first pressure data information when the data processing module receives the pressure data; and comparing the second pressure data information with the first pressure data information to obtain a vehicle-to-machine test result. The second pressure data information is data information when pressure data is input to the vehicle to be tested. The invention confirms the bearing capacity and the data transmission efficiency of the bus in time by testing the change of the pressure data before and after the bus transmission, thereby realizing the subsequent maintenance of the data transmission capacity of the vehicle.

Description

Cabin machine testing method and device, computer equipment and storage medium
Technical Field
The invention relates to the technical field of system pressure, in particular to a cabin vehicle machine testing method, a cabin vehicle machine testing device, computer equipment and a storage medium.
Background
With the rapid development of intelligent automobiles, the number of automobile electronic control units (Electronic Control Unit, ECU) is increasing, and these ECU interact with cabin software through buses. Therefore, the data that needs to be processed and analyzed in real time in the automobile cabin system grows exponentially, and a great pressure is brought to the cabin system. And with the continuous increase of the number of ECUs, the data volume that the bus needs to transmit also can increase, when bus load pressure is great, leads to the signal to lose the frame easily, and then causes problems such as software card is put on, system black screen to influence user experience, and probably cause the potential safety hazard, consequently, discover the potential problem of bus as early as possible is crucial to promoting the software quality of system.
Disclosure of Invention
In view of the above, the present invention provides a method, apparatus, computer device and storage medium for testing a cabin vehicle, so as to solve the problem of uncertainty in the pressure bearing capability of the bus transmission data of the cabin of the vehicle in the related art.
In a first aspect, the present invention provides a method for testing a cabin vehicle, including: generating pressure data of the vehicle to be tested; inputting pressure data into a data processing module of the vehicle to be tested through a bus of the vehicle to be tested; reading first pressure data information when the data processing module receives the pressure data; and comparing the second pressure data information with the first pressure data information to obtain a vehicle-to-machine test result.
According to the cabin machine testing method, the first pressure information of the data processing module of the machine to be tested is detected through generating the pressure data, the pressure data is compared with the second pressure information after passing through the bus, the situation that frames fall off and the like can not occur after the data pass through the bus is confirmed, the bearing capacity of the bus to the data is further determined, and the robustness test of the automobile bus is achieved.
In an alternative embodiment, the step of comparing the second pressure data information with the first pressure data information when generating the pressure data to obtain the vehicle test result includes: and comparing the first data volume with the second data volume, if the first data volume is smaller than the second data volume, judging that the data processing module loses frames, recording the second data volume as a pressure threshold value of the data processing module, and issuing test failure information.
The test method of the cabin machine provided by the invention has the advantages that the first data volume is compared with the second data volume, when the first data volume is smaller than the second data volume, the condition that the pressure data is lost after being transmitted by the bus is proved, the transmission capacity of the bus at the moment is proved to be not in accordance with the existing data transmission requirement, the test result is failure, the data transmission capacity of the bus can be effectively confirmed, and the test method is simple and convenient to execute.
In an alternative embodiment, the step of comparing the second pressure data information with the first pressure data information when generating the pressure data, and obtaining the test result of the vehicle machine further includes: if the first data volume is the same as the second data volume, judging whether the current detection duration is greater than or equal to the preset duration; if the current detection time length is greater than or equal to the preset time length, issuing test success information; and if the current detection duration is smaller than the preset duration, increasing the second data amount of the pressure data, and returning to the step of inputting the pressure data into the data processing module of the vehicle to be detected through the bus of the vehicle to be detected.
According to the cabin machine testing method, bus transmission detection is carried out after pressure data are generated, and when the first data amount is equal to the second data amount as a result of the detection, it is verified that the bus can bear the current data amount; generating new pressure data for further testing the bearing capacity of the bus, and executing a new round of testing; and when the first data quantity clock is equal to the second data quantity within the preset time period, the test is successful. The method realizes multiple rounds of testing on the bus, does not need to manually adjust the times of testing, and has scientificity and rationality in the testing process.
In an alternative embodiment, the step of comparing the second pressure data information with the first pressure data information when generating the pressure data to obtain the vehicle test result includes: determining the transmission time of each frame of data according to the receiving time and the sending time; and comparing the transmission time of each frame of data with a timeout threshold value to obtain a timeout detection result when the data is transmitted in the vehicle to be detected.
According to the cabin vehicle testing method provided by the invention, the transmission efficiency of the bus is additionally tested besides the pressure of the bus, the bearing capacity and efficiency condition of the bus testing capability are obtained, and the integrity of the bus testing is ensured.
In an alternative embodiment, the vehicle to be tested includes a plurality of data processing modules, and the step of comparing the second pressure data information with the first pressure data information when generating the pressure data to obtain the vehicle test result includes: determining the transmission sequence of pressure data among the data processing modules; determining the transmission time of each frame of data at each node according to the transmission sequence, the transmission time of each frame of data and the receiving time of each data processing module for each frame of data; and comparing the transmission time of each frame of data in each node with an overtime threshold value to obtain an overtime detection result when the data is transmitted in the vehicle to be tested, wherein the overtime detection result comprises overtime data, overtime nodes and overtime time length.
According to the cabin vehicle testing method provided by the invention, the transmission efficiency of the bus of each node in the vehicle to be tested is detected, the bus condition of the vehicle to be tested is comprehensively detected, and the reliability of the test data of the bus is ensured.
In an alternative embodiment, the step of generating pressure data of the vehicle to be tested includes: acquiring preset parameters of a vehicle to be tested; and generating pressure data according to the preset parameters.
According to the cabin vehicle testing method provided by the invention, the pressure data is generated according to the preset parameters of the vehicle to be tested, so that the pressure data for testing is ensured to be in accordance with the reasonable bearing capacity range of the vehicle to be tested as far as possible, and the reliability of the testing result is ensured.
In an alternative embodiment, the pressure data of the vehicle to be tested includes one or more of random message, real vehicle message, hard line data.
In a second aspect, the present invention provides a cabin machine testing system, which is characterized by comprising: the system comprises a bus load generation module, a vehicle to be tested, a vehicle end load detection module and a cloud decision module, wherein the vehicle to be tested comprises a data processing module, the cloud decision module is used for sending a test instruction to the bus load generation module, and the test instruction comprises second pressure data information which is data information when pressure data is input to the vehicle to be tested; the bus load generation module is used for generating pressure data of the vehicle to be tested according to the test instruction, and inputting the pressure data into the data processing module of the vehicle to be tested through the bus of the vehicle to be tested; the vehicle end load detection module is used for reading first pressure data information when the data processing module receives the pressure data and sending the first pressure data information to the cloud decision module; the cloud decision module is further used for comparing the second pressure data information with the first pressure data information to obtain a vehicle-machine test result.
In a third aspect, the present invention provides a computer device comprising: the cabin vehicle testing method comprises the steps of storing a computer instruction in a memory, and executing the computer instruction by the processor, wherein the memory and the processor are in communication connection, and the processor executes the cabin vehicle testing method according to the first aspect or any corresponding implementation mode.
In a fourth aspect, the present invention provides a computer readable storage medium having stored thereon computer instructions for causing a computer to execute the cabin machine test method of the first aspect or any of its corresponding embodiments.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the present invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a cabin machine testing method according to an embodiment of the invention;
FIG. 2 is a flow chart of another cabin machine testing method according to an embodiment of the present invention;
FIG. 3 is a flow chart of a further cabin machine testing method according to an embodiment of the invention;
FIG. 4 is a flow chart of yet another cabin machine testing method according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a cabin machine test system according to an embodiment of the invention;
fig. 6 is a schematic diagram of a hardware structure of a computer device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
As the number of automotive ECUs (electronic control units) is increasing in the high-speed development of automotive intellectualization, these ECUs interact with cabin software via buses. And because the bus load pressure is larger, signal frame loss and delay are easy to occur in data transmission, so that the problems of software blocking, system black screen and the like are caused, the user experience is influenced, and potential safety hazards are possibly caused. In the software development stage, engineers generally only pay attention to whether the functions are correct or not, and often neglect the performance problems of signal frame loss, transmission delay and the like. Therefore, the invention designs a cabin vehicle testing method, which can test the bearing capacity of the bus in advance in the software development stage and find out the performance problems of signal frame loss, transmission delay and the like, thereby improving the software quality and the robustness and stability of the vehicle bus.
According to the present embodiment, a cabin machine testing method is provided, and it should be noted that technical features related to different embodiments of the present invention described below may be combined with each other as long as they do not form a conflict with each other.
Fig. 1 is a flowchart of a cabin machine testing method according to an embodiment of the present invention, as shown in fig. 1, and the flowchart includes the following steps:
step S101, generating pressure data of the vehicle to be tested.
In an alternative embodiment, in order to detect the bus load capacity of the vehicle to be tested, pressure data that can be transmitted via the bus are first generated.
Step S102, inputting pressure data into a data processing module of the vehicle to be tested through a bus of the vehicle to be tested.
In an alternative embodiment, after the pressure data is generated, the pressure data is input to a data processing module of the vehicle to be tested, and the transmission process is based on bus transmission.
Step S103, reading first pressure data information when the data processing module receives the pressure data.
In an alternative embodiment, after the pressure data is transmitted to the data processing module, the detecting data processing module can receive the first pressure data information, where the first pressure data information is the amount of pressure data transmitted to the data processing module via the bus and the time information that the pressure data is received by the data processing module.
And step S104, comparing the second pressure data information with the first pressure data information to obtain a vehicle-to-machine test result.
In an alternative embodiment, the first pressure data information is compared with the second pressure data information, the second pressure data information is the data information when the vehicle to be tested inputs the pressure data, the second pressure data information is transmitted to the detection data processing module through the bus to obtain the first pressure data information, and whether the pressure data is changed only through the bus transmission can be determined through the difference comparison of the first pressure data information and the second pressure data information, so that the bus carrying capacity is further obtained.
According to the cabin machine testing method, the first pressure information of the data processing module of the machine to be tested is detected through generating the pressure data, the pressure data is compared with the second pressure information after passing through the bus, the situation that frames fall off and the like can not occur after the data pass through the bus is confirmed, the bearing capacity of the bus to the data is further determined, and the robustness test of the automobile bus is achieved.
In this embodiment, a method for testing a cabin machine is provided, and fig. 2 is a flowchart of a method for testing a cabin machine according to an embodiment of the present invention, as shown in fig. 2, where the flowchart includes the following steps:
step S201, generating pressure data of the vehicle to be tested. Please refer to step S101 in the embodiment shown in fig. 1 in detail, which is not described herein.
Step S202, inputting pressure data into a data processing module of the vehicle to be tested through a bus of the vehicle to be tested. Please refer to step S102 in the embodiment shown in fig. 1 in detail, which is not described herein.
In step S203, the data processing module reads the first pressure data information when the pressure data is received. Please refer to step S103 in the embodiment shown in fig. 1 in detail, which is not described herein.
And step S204, comparing the second pressure data information with the first pressure data information to obtain a vehicle-to-machine test result.
Specifically, the step S204 includes:
step S2041 compares the first data amount with the second data amount.
In an alternative embodiment, the first pressure data information includes a first data amount when the data processing module receives the pressure data, the second pressure data information includes a second data amount when the pressure data is input to the vehicle to be tested, the first data amount is transmitted to the data processing module through the bus to be the second data amount, and the data amount change of the pressure data transmitted through the bus can be obtained by comparing the first data amount with the second data amount.
In step S2042, the first data amount is equal to the second data amount.
In an alternative embodiment, when the first data amount is equal to the second data amount, it indicates that the data loss such as frame dropping will not occur when the pressure data is transmitted through the bus, and further measures whether a data delay phenomenon occurs when the pressure data is transmitted through the bus.
Step S2043, if the first data volume is smaller than the second data volume, determining that the data processing module loses frames, recording the second data volume as a pressure threshold of the data processing module, and issuing test failure information.
In an alternative embodiment, the first data amount is compared with the second data amount, when the first data amount is smaller than the second data amount, data loss occurs in the transmission of the pressure data through the bus, so that a frame loss phenomenon occurs when the pressure data arrives at the data processing module, the bus cannot completely transmit the pressure data, and the pressure test of the bus fails. The second data amount at this time is the maximum value that the data processing module can receive the pressure data, namely the pressure threshold value, and when the pressure data is greater than or equal to the pressure threshold value, the pressure data exceeds the bus bearing range.
The test method of the cabin machine provided by the invention has the advantages that the first data volume is compared with the second data volume, when the first data volume is smaller than the second data volume, the condition that the pressure data is lost after being transmitted by the bus is proved, the transmission capacity of the bus at the moment is proved to be not in accordance with the existing data transmission requirement, the test result is failure, the data transmission capacity of the bus can be effectively confirmed, and the test method is simple and convenient to execute.
Step S2044, if the first data amount is the same as the second data amount, judging whether the current detection duration is greater than or equal to the preset duration;
in an alternative embodiment, when the first data volume is the same as the second data volume, it is proved that the transmission of the pressure data through the bus does not have the condition of losing data, and the bus can bear the current data volume; further judging whether the detected duration meets the preset duration, if not, continuing to test the bus in the next step.
Step S2045, if the current detection duration is less than the preset duration, increasing the second data amount of the pressure data, and returning to the step of inputting the pressure data into the data processing module of the vehicle to be tested through the bus of the vehicle to be tested.
In an alternative embodiment, when the first data amount is the same as the second data amount, but the test duration does not meet the preset duration, so that the pressure data amount borne by the bus can be further increased to test, so that the second data amount is increased, the transmission of the pressure data through the bus is continuously performed to obtain the first data amount, and the comparison of the first data amount and the second data amount is performed to judge whether the frame loss condition occurs in the bus.
Step S2046, if the current detection time is longer than the preset time, issuing test success information;
in an alternative embodiment, when the first data amount and the second data amount are all kept the same in the time of the predetermined test, the condition that the data frame is lost is proved not to occur in the bus in the whole test process, the pressure test of the bus does not reach the threshold value, the bus meets the preset requirement, and the test result is successful.
According to the cabin machine testing method, bus transmission detection is carried out after pressure data are generated, and when the first data amount is equal to the second data amount as a result of the detection, it is verified that the bus can bear the current data amount; generating new pressure data for further testing the bearing capacity of the bus, and executing a new round of testing; and when the first data quantity clock is equal to the second data quantity within the preset time period, the test is successful. The method realizes multiple rounds of testing on the bus, does not need to manually adjust the times of testing, and has scientificity and rationality in the testing process.
In this embodiment, a method for testing a cabin machine is provided, and fig. 3 is a flowchart of a method for testing a cabin machine according to an embodiment of the present invention, as shown in fig. 3, where the flowchart includes the following steps:
step S301, generating pressure data of the vehicle to be tested. Please refer to step S101 in the embodiment shown in fig. 1 in detail, which is not described herein.
Step S302, inputting pressure data into a data processing module of the vehicle to be tested through a bus of the vehicle to be tested. Please refer to step S102 in the embodiment shown in fig. 1 in detail, which is not described herein.
In step S303, the data processing module reads the first pressure data information when the pressure data is received. Please refer to step S103 in the embodiment shown in fig. 1 in detail, which is not described herein.
And step S304, comparing the second pressure data information with the first pressure data information to obtain a vehicle-to-machine test result.
Specifically, the step S304 includes:
step S3041, determining the transmission time of each frame of data according to the reception time and the transmission time.
In an alternative embodiment, the bus data transmission efficiency is also detected in addition to the bearing capacity of the bus, and therefore, the present embodiment detects the transmission time of each frame of pressure data and the reception time to the data processing module to confirm the transmission time of this frame of pressure data in the bus.
Step S3042, comparing the transmission time of each frame of data with the timeout threshold to obtain the timeout detection result when the data is transmitted in the vehicle to be detected.
In an alternative embodiment, the highest duration of the transmission of the pressure data, namely a timeout threshold, is set, when the transmission time of one frame of pressure data is greater than the timeout threshold, the delay condition of the transmission of the pressure data in the bus is proved, and the test result is that the data are overtime.
According to the cabin vehicle machine testing method, the pressure of the bus is tested, the transmission efficiency of the bus is additionally tested, the bearing capacity and the efficiency condition of the bus testing capacity are obtained, and the integrity of the bus testing is guaranteed.
In this embodiment, a method for testing a cabin machine is provided, and fig. 4 is a flowchart of a method for testing a cabin machine according to an embodiment of the present invention, as shown in fig. 4, where the flowchart includes the following steps:
step S401, generating pressure data of the vehicle to be tested. Please refer to step S101 in the embodiment shown in fig. 1 in detail, which is not described herein.
Step S402, inputting pressure data into a data processing module of the vehicle to be tested through a bus of the vehicle to be tested. Please refer to step S102 in the embodiment shown in fig. 1 in detail, which is not described herein.
In step S403, the data processing module reads the first pressure data information when the pressure data is received. Please refer to step S103 in the embodiment shown in fig. 1 in detail, which is not described herein.
And step S404, comparing the second pressure data information with the first pressure data information to obtain a vehicle-to-machine test result.
Specifically, the step S404 includes:
in step S4041, the transmission order of the pressure data between the data processing modules is determined.
In an alternative embodiment, the vehicle to be tested includes a plurality of data processing modules, and the pressure data is sequentially transmitted through the buses between the data processing modules during testing, so that the transmission sequence between the data processing modules needs to be known for testing the transmission efficiency of the buses.
In an alternative embodiment, most of the automobile cabin areas adopt hardware architecture of MCU plus SOC, so the data processing module includes MCU and SOC, and the transmission sequence selected in this embodiment is: the pressure data is generated and transmitted to the MCU through the bus, and then is continuously transmitted to the SOC.
Step S4042, determining the transmission time of each frame of data at each node according to the transmission sequence, the transmission time of each frame of data, and the reception time of each frame of data by each data processing module.
In an alternative embodiment, after the pressure data is generated, reading time t1 when the pressure data is sent to the bus, and reading time t2 when the pressure data is transmitted to the MCU through the bus again to obtain time t3=t2-t 1 when the pressure data is transmitted in the bus between the pressure data generating module and the MCU; similarly, the pressure data is transmitted to the SOC via the bus after passing through the MCU at time t4, and then transmitted between the MCU and the SOC at time t5=t4-t 2.
Step S4043, comparing the transmission time of each frame of data in each node with the timeout threshold to obtain the timeout detection result when the data is transmitted in the vehicle to be detected.
In an alternative embodiment, the timeout detection result includes data, a timeout node and a timeout duration, wherein the data, the timeout node and the timeout duration are overtime. Detecting whether the transmission time of each frame of pressure data in the bus is overtime, comparing the calculated transmission time in each bus with a set overtime threshold, and when the transmission time in the bus in a certain node is greater than the overtime threshold, proving that overtime occurs and the pressure data transmission in the bus is delayed.
According to the cabin vehicle testing method, the transmission efficiency of the bus of each node in the vehicle to be tested is detected, the bus condition of the vehicle to be tested is comprehensively detected, and the reliability of the test data of the bus is guaranteed.
In an alternative embodiment, the step of generating pressure data of the vehicle to be tested includes: acquiring preset parameters of a vehicle to be tested; and generating pressure data according to the preset parameters.
In an alternative embodiment, the preset parameters include generator type, initial pressure threshold, etc., pressure threshold update time period, pressure threshold update times, etc., and historical data previously reported by the vehicle.
According to the cabin vehicle machine testing method, the pressure data are generated according to the preset parameters of the vehicle machine to be tested, the pressure data for testing are ensured to be in line with the reasonable bearing capacity range of the vehicle machine to be tested as far as possible, and the reliability of the testing result is ensured.
In an alternative embodiment, the pressure data of the vehicle to be tested includes one or more of random message, real vehicle message, hard line data.
According to the cabin vehicle machine testing method provided by the embodiment, the pressure data for testing is not limited obviously, one or more of random messages, real vehicle messages and hard line data can be generated, and only the data can be transmitted in the bus for detecting the bearing capacity of the bus, so that the difficulty in executing the testing method is further reduced.
In a second aspect, the present invention provides a cabin machine testing system for implementing the above embodiment and the preferred implementation, as shown in fig. 5, where the system includes: the system comprises a bus load generation module 3, a vehicle to be tested 1, a vehicle end load detection module 2 and a cloud decision module 4.
The vehicle machine 1 to be tested comprises a data processing module.
The vehicle end load detection module 2 is used for reading the first pressure data information when the data processing module receives the pressure data and sending the first pressure data information to the cloud decision module.
The bus load generating module 3 is used for generating pressure data of the vehicle to be tested according to the test instruction and inputting the pressure data into the data processing module of the vehicle to be tested through the bus of the vehicle to be tested.
The cloud decision module 4 is configured to send a test instruction to the bus load generating module, where the test instruction includes second pressure data information, where the second pressure data information is data information when pressure data is input to the vehicle to be tested. The cloud decision module is further used for comparing the second pressure data information with the first pressure data information to obtain a vehicle-machine test result.
The cabin vehicle testing system provided by the embodiment comprises four modules, the cabin vehicle testing method in the embodiment can be executed, the bearing capacity and the transmission efficiency of the bus in the vehicle are detected, the modules can be realized through a software virtual program without special hardware, and the vehicle bus is conveniently tested. The cloud decision module can inform the bus load generation module to dynamically generate the bus load according to the reporting result and the decision algorithm parameters; meanwhile, the cloud decision module can display the test result and the historical result in multiple dimensions, and is convenient for comparing the software quality and the historical data.
The embodiment of the invention also provides computer equipment, which is provided with the cabin vehicle machine testing system shown in the figure 5.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a computer device according to an alternative embodiment of the present invention, as shown in fig. 6, the computer device includes: one or more processors 10, memory 20, and interfaces for connecting the various components, including high-speed interfaces and low-speed interfaces. The various components are communicatively coupled to each other using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions executing within the computer device, including instructions stored in or on memory to display graphical information of the GUI on an external input/output device, such as a display device coupled to the interface. In some alternative embodiments, multiple processors and/or multiple buses may be used, if desired, along with multiple memories and multiple memories. Also, multiple computer devices may be connected, each providing a portion of the necessary operations (e.g., as a server array, a set of blade servers, or a multiprocessor system). One processor 10 is illustrated in fig. 6.
The processor 10 may be a central processor, a network processor, or a combination thereof. The processor 10 may further include a hardware chip, among others. The hardware chip may be an application specific integrated circuit, a programmable logic device, or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general-purpose array logic, or any combination thereof.
Wherein the memory 20 stores instructions executable by the at least one processor 10 to cause the at least one processor 10 to perform the methods shown in implementing the above embodiments.
The memory 20 may include a storage program area that may store an operating system, at least one application program required for functions, and a storage data area; the storage data area may store data created from the use of the computer device of the presentation of a sort of applet landing page, and the like. In addition, the memory 20 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid-state storage device. In some alternative embodiments, memory 20 may optionally include memory located remotely from processor 10, which may be connected to the computer device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
Memory 20 may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as flash memory, hard disk, or solid state disk; the memory 20 may also comprise a combination of the above types of memories.
The computer device also includes a communication interface 30 for the computer device to communicate with other devices or communication networks.
The embodiments of the present invention also provide a computer readable storage medium, and the method according to the embodiments of the present invention described above may be implemented in hardware, firmware, or as a computer code which may be recorded on a storage medium, or as original stored in a remote storage medium or a non-transitory machine readable storage medium downloaded through a network and to be stored in a local storage medium, so that the method described herein may be stored on such software process on a storage medium using a general purpose computer, a special purpose processor, or programmable or special purpose hardware. The storage medium can be a magnetic disk, an optical disk, a read-only memory, a random access memory, a flash memory, a hard disk, a solid state disk or the like; further, the storage medium may also comprise a combination of memories of the kind described above. It will be appreciated that a computer, processor, microprocessor controller or programmable hardware includes a storage element that can store or receive software or computer code that, when accessed and executed by the computer, processor or hardware, implements the methods illustrated by the above embodiments.
Although embodiments of the present invention have been described in connection with the accompanying drawings, various modifications and variations may be made by those skilled in the art without departing from the spirit and scope of the invention, and such modifications and variations fall within the scope of the invention as defined by the appended claims.

Claims (10)

1. A cabin machine testing method, comprising:
generating pressure data of the vehicle to be tested;
inputting the pressure data into a data processing module of the vehicle to be tested through a bus of the vehicle to be tested;
reading first pressure data information when the data processing module receives the pressure data;
and comparing the second pressure data information with the first pressure data information to obtain a vehicle-to-machine test result, wherein the second pressure data information is data information when the pressure data is input to the vehicle-to-be-tested machine.
2. The method of claim 1, wherein the first pressure data information includes a first amount of data when the data processing module receives the pressure data, the second pressure data information includes a second amount of data when the pressure data is input to the vehicle under test, and the step of comparing the second pressure data information when the pressure data is generated with the first pressure data information to obtain the vehicle test result includes:
comparing the first data amount with the second data amount,
if the first data volume is smaller than the second data volume, determining that the data processing module loses frames, recording the second data volume as a pressure threshold value of the data processing module, and issuing test failure information.
3. The method of claim 2, wherein comparing the second pressure data information with the first pressure data information when generating the pressure data, the step of obtaining the vehicle test result further comprises:
if the first data amount is the same as the second data amount,
judging whether the current detection duration is greater than or equal to a preset duration;
if the current detection time length is greater than or equal to the preset time length, issuing test success information;
and if the current detection duration is smaller than the preset duration, increasing the second data volume of the pressure data, and returning to the step of inputting the pressure data into the data processing module of the vehicle to be detected through the bus of the vehicle to be detected.
4. The method of claim 1, wherein the pressure data comprises multi-frame data, the first pressure data information comprises a time of receipt of each frame of data by the data processing module, the second pressure data information comprises a time of transmission of each frame of data to the vehicle under test, and the step of comparing the second pressure data information when the pressure data is generated with the first pressure data information to obtain a vehicle test result comprises:
determining the transmission time of each frame of data according to the receiving time and the sending time;
and comparing the transmission time of each frame of data with a timeout threshold value to obtain a timeout detection result when the data is transmitted in the vehicle to be detected.
5. The method of claim 4, wherein if the vehicle to be tested includes a plurality of data processing modules, the step of comparing the second pressure data information with the first pressure data information when generating the pressure data to obtain the vehicle test result includes:
determining a transmission sequence of the pressure data among the data processing modules;
determining the transmission time of each frame of data at each node according to the transmission sequence, the transmission time of each frame of data and the receiving time of each data processing module for each frame of data;
comparing the transmission time of each frame of data in each node with an overtime threshold value to obtain an overtime detection result when the data is transmitted in the vehicle to be tested, wherein the overtime detection result comprises overtime data, overtime nodes and overtime time length.
6. The method of claim 1, wherein the step of generating pressure data for the vehicle under test comprises:
acquiring preset parameters of a vehicle to be tested;
and generating pressure data according to the preset parameters.
7. The method according to claim 1 or 6, wherein,
the pressure data of the vehicle to be tested comprises one or more of random messages, real vehicle messages and hard line data.
8. A cabin machine testing system, comprising: the bus load generating module, the vehicle to be tested, the vehicle end load detecting module and the cloud decision module, wherein the vehicle to be tested comprises a data processing module,
the cloud decision module is used for sending a test instruction to the bus load generation module, wherein the test instruction comprises second pressure data information, and the second pressure data information is data information when pressure data is input to the vehicle to be tested;
the bus load generation module is used for generating pressure data of the vehicle to be tested according to the test instruction, and inputting the pressure data into the data processing module of the vehicle to be tested through a bus of the vehicle to be tested;
the vehicle-end load detection module is used for reading first pressure data information when the data processing module receives the pressure data and sending the first pressure data information to the cloud decision module;
the cloud decision module is further used for comparing the second pressure data information with the first pressure data information to obtain a vehicle-machine test result.
9. A computer device, comprising:
a memory and a processor, the memory and the processor being communicatively connected to each other, the memory having stored therein computer instructions, the processor executing the computer instructions to perform the cabin machine test method of any one of claims 1 to 7.
10. A computer-readable storage medium having stored thereon computer instructions for causing a computer to perform the cabin machine test method of any one of claims 1 to 7.
CN202311714533.1A 2023-12-13 2023-12-13 Cabin machine testing method and device, computer equipment and storage medium Active CN117724443B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311714533.1A CN117724443B (en) 2023-12-13 2023-12-13 Cabin machine testing method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311714533.1A CN117724443B (en) 2023-12-13 2023-12-13 Cabin machine testing method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN117724443A true CN117724443A (en) 2024-03-19
CN117724443B CN117724443B (en) 2024-07-05

Family

ID=90199284

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311714533.1A Active CN117724443B (en) 2023-12-13 2023-12-13 Cabin machine testing method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117724443B (en)

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6311292B1 (en) * 1998-07-30 2001-10-30 Sandcraft, Inc. Circuit, architecture and method for analyzing the operation of a digital processing system
US20090083585A1 (en) * 2007-09-21 2009-03-26 Inventec Corporation Method of pressure testing for peripheral component interconnect (pci) bus stage
US20140157053A1 (en) * 2012-12-05 2014-06-05 Christopher P. Mozak Memory subsystem data bus stress testing
CN104185083A (en) * 2013-05-20 2014-12-03 安凯(广州)微电子技术有限公司 Self-adaptive frame missing method and device thereof
US20150149832A1 (en) * 2013-11-26 2015-05-28 Inventec Corporation Bus pressure testing system and method thereof
CN104750588A (en) * 2015-03-04 2015-07-01 广东好帮手电子科技股份有限公司 Serial port communication based pressure testing method
JP2016001425A (en) * 2014-06-12 2016-01-07 株式会社日立製作所 Monitoring control system and monitoring control method
WO2017173893A1 (en) * 2016-04-08 2017-10-12 努比亚技术有限公司 Data transmission device and method, and computer storage medium
US20180131595A1 (en) * 2016-11-08 2018-05-10 Inventec (Pudong) Technology Corporation System For Using Kernel To Perform Pressure Test On Communication Port And Method
CN108364670A (en) * 2018-02-06 2018-08-03 珠海全志科技股份有限公司 Read and write method for testing pressure, device, equipment and storage medium
CN111367734A (en) * 2020-02-28 2020-07-03 上海御渡半导体科技有限公司 Method for carrying out pressure test in testing machine
KR20210086411A (en) * 2019-12-30 2021-07-08 현대자동차주식회사 The software communication method and the vehicle
CN113295325A (en) * 2021-05-21 2021-08-24 上海钧嵌传感技术有限公司 Battery pack pressure monitoring device and method
CN113994274A (en) * 2019-04-10 2022-01-28 豪倍公司 Network pressure testing
CN115695241A (en) * 2022-10-21 2023-02-03 深圳市正浩创新科技股份有限公司 Communication pressure testing method and electronic equipment
CN116827805A (en) * 2023-04-19 2023-09-29 中国人民解放***箭军工程大学 Bus pressure testing method based on EPA bus load node

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6311292B1 (en) * 1998-07-30 2001-10-30 Sandcraft, Inc. Circuit, architecture and method for analyzing the operation of a digital processing system
US20090083585A1 (en) * 2007-09-21 2009-03-26 Inventec Corporation Method of pressure testing for peripheral component interconnect (pci) bus stage
US20140157053A1 (en) * 2012-12-05 2014-06-05 Christopher P. Mozak Memory subsystem data bus stress testing
CN104185083A (en) * 2013-05-20 2014-12-03 安凯(广州)微电子技术有限公司 Self-adaptive frame missing method and device thereof
US20150149832A1 (en) * 2013-11-26 2015-05-28 Inventec Corporation Bus pressure testing system and method thereof
JP2016001425A (en) * 2014-06-12 2016-01-07 株式会社日立製作所 Monitoring control system and monitoring control method
CN104750588A (en) * 2015-03-04 2015-07-01 广东好帮手电子科技股份有限公司 Serial port communication based pressure testing method
WO2017173893A1 (en) * 2016-04-08 2017-10-12 努比亚技术有限公司 Data transmission device and method, and computer storage medium
US20180131595A1 (en) * 2016-11-08 2018-05-10 Inventec (Pudong) Technology Corporation System For Using Kernel To Perform Pressure Test On Communication Port And Method
CN108364670A (en) * 2018-02-06 2018-08-03 珠海全志科技股份有限公司 Read and write method for testing pressure, device, equipment and storage medium
CN113994274A (en) * 2019-04-10 2022-01-28 豪倍公司 Network pressure testing
KR20210086411A (en) * 2019-12-30 2021-07-08 현대자동차주식회사 The software communication method and the vehicle
CN111367734A (en) * 2020-02-28 2020-07-03 上海御渡半导体科技有限公司 Method for carrying out pressure test in testing machine
CN113295325A (en) * 2021-05-21 2021-08-24 上海钧嵌传感技术有限公司 Battery pack pressure monitoring device and method
CN115695241A (en) * 2022-10-21 2023-02-03 深圳市正浩创新科技股份有限公司 Communication pressure testing method and electronic equipment
CN116827805A (en) * 2023-04-19 2023-09-29 中国人民解放***箭军工程大学 Bus pressure testing method based on EPA bus load node

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
牟少锋;谷师泉;陈刚;: "装甲车辆1553B总线***试验方法", 兵工自动化, no. 03, 30 March 2007 (2007-03-30), pages 91 - 92 *

Also Published As

Publication number Publication date
CN117724443B (en) 2024-07-05

Similar Documents

Publication Publication Date Title
CN109240614B (en) Data storage method, device and related equipment
US11444891B2 (en) Electronic control unit, abnormality determination program, and abnormality determination method
CN114124767B (en) Automatic test method and device for gateway network management strategy
US20230229762A1 (en) Anomaly detection device and anomaly detection method
CN115632706B (en) FC link management method, device, equipment and readable storage medium
CN114866250B (en) Method and device for constructing in-vehicle CAN network freshness value, vehicle and storage medium
CN113254375A (en) Data transmission method and device, electronic equipment and storage medium
CN113382056A (en) Data reporting method, device, equipment, storage medium and system
CN116560889A (en) Data link management method, device, computer equipment and storage medium
CN111600758A (en) Message reporting method and platform, intelligent gateway and storage medium
CN117724443B (en) Cabin machine testing method and device, computer equipment and storage medium
CN114363334A (en) Network configuration method, device and equipment for cloud system and cloud desktop virtual machine
CN115883310A (en) Service deployment method, service deployment system, electronic device, and storage medium
CN107205241B (en) Wireless communication detection method and equipment thereof
CN109218137B (en) Method and device for detecting state of node in distributed system
CN115657646A (en) Test method and device of CAN controller
CN110752972A (en) Network card state monitoring method, device, equipment and medium
CN111740881B (en) Network card link detection method, system, equipment and computer storage medium
CN104283950B (en) A kind of method, apparatus and system of service request processing
CN113835946A (en) Pressure testing method for data exchange
CN115242687B (en) Node activity detection method, device, equipment and medium
CN114202947B (en) Internet of vehicles data transmission method and device and automatic driving vehicle
CN117407343B (en) Method and device for processing clock extension in integrated circuit bus transparent transmission mode
CN111585844B (en) Test method, system, server and storage medium based on verification code
CN116719639A (en) Link dynamic adjustment and data processing method, device, computer equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant