A SRB bus testing method and related device

By using the equipment to be tested to perform the information sending and receiving process itself in the SRB bus testing method, the existing test methods are complicated and inefficient, and efficient and accurate SRB bus detection is achieved.

CN119292852BActive Publication Date: 2025-04-01BEIJING ZHONGTIAN STAR CONTROL TECH DEV CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411811422.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-10
Publication Date
2025-04-01
Estimated Expiration
2044-12-10

AI Technical Summary

Technical Problem

The existing SRB bus testing method requires at least two devices to participate, and the testing process is cumbersome and it is difficult to efficiently complete the detection of the SRB bus, especially when there is a large demand for a secure real-time bus.

Method used

A SRB bus testing method is provided, by instructing the device to be tested to perform the information transmission and reception process, and using the data processing module to generate the information to be sent, transmit it to the sending port, and then transfer it to the receiving port, simulating the information reception process, and determining whether the information transmission function is abnormal.

Benefits of technology

This method does not require the participation of other devices, and can accurately and efficiently complete the detection of the SRB bus, improve the testing efficiency, reduce the testing difficulty, and accurately analyze whether the information transmission function of the equipment to be tested is abnormal.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119292852B_ABST
    Figure CN119292852B_ABST
Patent Text Reader

Abstract

The embodiment of the present application discloses an SRB bus testing method and related devices, which can instruct the device to be tested not to directly send the generated information to be sent from the sending port when executing the information sending process, but to directly transfer the first information that completes the information generation process and the information transmission process to the receiving port of the device to be tested, and instruct the device to be tested to execute the information receiving process, that is, to transmit the received information to the data processing module to obtain the second information. Through the consistency between the second information and the information to be sent, it can be analyzed whether an abnormality occurs in the information transmission process, and then it can be accurately analyzed whether the information transmission function of the device to be tested is abnormal. This process does not require the participation of other devices and does not require actual information transmission, and the test efficiency is high.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to an SRB bus testing method and related devices. Background Art

[0002] SRB (secure real-time bus) is an industrial data fieldbus built on the basis of high-performance semiconductor components. Bus (BUS) refers to a collection of various signal lines, which are often used between various components of embedded systems, including high-performance components (controller chips, memory, communication interfaces, etc.), underlying software, communication protocols, etc. that make up embedded systems. It transmits binary data on communication lines and completes various communication tasks, such as data transmission and conversion, system control, etc., through specific instructions and commands. Secure real-time bus is a bus technology developed on the basis of SRB bus. Its characteristics are stable, secure, and real-time data transmission, and it is suitable for harsh use environments.

[0003] In the related art, in order for multiple devices on the SRB bus to be able to transmit information normally when the SRB bus is put into use, it is necessary to perform information transmission tests on each device on the SRB bus to detect whether each device can accurately send and receive information.

[0004] However, this test method requires at least two devices to serve as a sending device and a receiving device each time, and the test process is relatively cumbersome. When the demand for a secure real-time bus is large, it is difficult to efficiently complete the detection of the SRB bus. Summary of the invention

[0005] In order to solve the above technical problems, the present application provides an SRB bus testing method, which can accurately and efficiently complete the detection of the SRB bus.

[0006] The embodiments of the present application disclose the following technical solutions:

[0007] In a first aspect, an embodiment of the present application discloses a SRB bus testing method, the method comprising:

[0008] Instruct the device to be tested to start executing an information sending process, wherein the device to be tested is any device among the multiple devices included in the SRB bus to be tested, and the information sending process includes an information generation process and an information transmission process, wherein the information generation process is used to generate information to be sent through a data processing module in the device to be tested, and the information transmission process is used to transmit the information to be sent from the data processing module to a sending port in the device to be tested, and the sending port is used to send information received through the information transmission process to other devices;

[0009] Based on the device to be tested completing the information transmission process, determining the first information received by the sending port through the information transmission process;

[0010] Transferring the first information to a receiving port corresponding to the device under test, and instructing the device under test to start executing an information receiving process, wherein the information receiving process is used to transmit the first information from the receiving port to the data processing module;

[0011] According to the consistency between the second information received by the data processing module through the information receiving process and the information to be sent, it is determined whether an abnormality occurs in the information transmission function of the device to be tested.

[0012] In a possible implementation, judging whether an abnormality occurs in the information transmission function of the device under test according to the consistency between the second information received by the data processing module through the information receiving process and the information to be sent includes:

[0013] Based on the consistency between the information to be sent and the second information, determining that there is no abnormality in the information transmission function of the device to be tested;

[0014] Based on the inconsistency between the information to be sent and the second information, it is determined that an abnormality occurs in the information transmission function of the device to be tested.

[0015] In a possible implementation, the method further includes:

[0016] Based on determining that an abnormality occurs in the information transmission function of the device to be tested, abnormality indication information is sent, where the abnormality indication information is used to indicate that an abnormality occurs in the information transmission function of the device to be tested.

[0017] In a possible implementation, the method further includes:

[0018] Based on the consistency of the information to be sent, the first information and the second information, it is determined whether there is an abnormal process in the information sending process and the information receiving process.

[0019] In a possible implementation manner, the determining, based on the consistency of the information to be sent, the first information, and the second information, which process has an abnormality in the information sending process and the information receiving process includes:

[0020] Based on the inconsistency between the information to be sent and the first information, determining that an abnormality occurs in the information transmission process;

[0021] Based on the inconsistency between the first information and the second information, it is determined that an abnormality occurs in the information receiving process.

[0022] In a second aspect, an embodiment of the present application discloses an SRB bus test device, the device comprising a first indication unit, a first determination unit, a second indication unit and a judgment unit:

[0023] The first indication unit is used to instruct the device to be tested to start executing an information sending process, the device to be tested is any device among the multiple devices included in the SRB bus to be tested, the information sending process includes an information generation process and an information transmission process, the information generation process is used to generate information to be sent through a data processing module in the device to be tested, the information transmission process is used to transmit the information to be sent from the data processing module to a sending port in the device to be tested, and the sending port is used to send information received through the information transmission process to other devices;

[0024] The first determining unit is used to determine the first information received by the sending port through the information transmission process based on the device under test completing the information transmission process;

[0025] The second indicating unit is used to transfer the first information to the receiving port corresponding to the device under test, and instruct the device under test to start executing an information receiving process, wherein the information receiving process is used to transmit the first information from the receiving port to the data processing module;

[0026] The judging unit is used to judge whether an abnormality occurs in the information transmission function of the device under test according to the consistency between the second information received by the data processing module through the information receiving process and the information to be sent.

[0027] In a possible implementation manner, the determining unit is specifically configured to:

[0028] Based on the consistency between the information to be sent and the second information, it is determined that there is no abnormality in the information transmission function of the device to be tested;

[0029] Based on the inconsistency between the information to be sent and the second information, it is determined that an abnormality occurs in the information transmission function of the device to be tested.

[0030] In a possible implementation manner, the device further includes a sending unit:

[0031] The sending unit is used to send abnormality indication information based on determining that the information transmission function of the device to be tested is abnormal, where the abnormality indication information is used to indicate that the information transmission function of the device to be tested is abnormal.

[0032] In a possible implementation manner, the apparatus further includes a second determining unit:

[0033] The second determining unit is used to determine an abnormal process in the information sending process and the information receiving process based on the consistency of the information to be sent, the first information and the second information.

[0034] In a possible implementation manner, the second determining unit is specifically configured to:

[0035] Based on the inconsistency between the information to be sent and the first information, determining that an abnormality occurs in the information transmission process;

[0036] Based on the inconsistency between the first information and the second information, it is determined that an abnormality occurs in the information receiving process.

[0037] In a third aspect, an embodiment of the present application discloses a computer device, wherein the computer device includes a processor and a memory:

[0038] The memory is used to store a computer program and transmit the computer program to the processor;

[0039] The processor is used to execute the SRB bus testing method according to any one of the first aspects according to the instructions in the computer program;

[0040] In a fourth aspect, an embodiment of the present application discloses a computer-readable storage medium, wherein the computer-readable storage medium is used to store a computer program, and the computer program is used to execute the SRB bus test method described in any one of the first aspects;

[0041] In a fifth aspect, an embodiment of the present application discloses a computer program product including a computer program, which, when executed on a computer device, enables the computer device to execute the SRB bus test method described in any one of the first aspects.

[0042] It can be seen from the above technical scheme that when testing the information transmission function of the device to be tested on the SRB bus to be tested, the present application only requires the device to be tested itself to participate. During the test process, the device to be tested can be instructed to start executing the information sending process. The information sending process includes an information generation process and an information transmission process. The information generation process is used to generate information to be sent through the data processing module in the device to be tested. The information transmission process is used to transmit the information to be sent from the data processing module to the sending port in the device to be tested. The sending port is used to send information received through the information transmission process to other devices. Based on the completion of the information transmission process by the device to be tested, that is, when the information is transmitted to the sending port, it can be determined that the first information received by the sending port through the information transmission process, and then the sending port does not need to send the first information, but directly transfers the first information to the receiving port corresponding to the device to be tested, and instructs the device to be tested to start executing the information receiving process. The information receiving process is used to transmit the first information from the receiving port to the data processing module, so that the complete information sending and receiving process can be simulated. If there are no abnormalities in the information sending and receiving processes, the second information should be consistent with the generated information to be sent. Therefore, it is possible to determine whether the information transmission function of the device to be tested is abnormal based on the consistency between the second information received by the data processing module through the information receiving process and the information to be sent. It can be seen that the test method of the present application only requires the participation of the device to be tested itself throughout the process, and does not require information transmission between other devices and the device to be tested. While ensuring the accuracy of the test, it improves the test efficiency and reduces the difficulty of the test. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0044] Figure 1 A flow chart of an SRB bus testing method provided in an embodiment of the present application;

[0045] Figure 2 A flow chart of an SRB bus testing method provided in an embodiment of the present application;

[0046] Figure 3 A structural block diagram of an SRB bus test device provided in an embodiment of the present application;

[0047] Figure 4 A structural diagram of a terminal provided in an embodiment of the present application;

[0048] Figure 5 A structural diagram of a server provided in an embodiment of the present application. DETAILED DESCRIPTION

[0049] The embodiments of the present application are described below in conjunction with the accompanying drawings.

[0050] At present, the demand for testing the safe real-time bus is increasing as the safe real-time bus is widely used. For example, before the safe real-time bus is actually used, it is necessary to test whether the multiple devices connected to the safe real-time bus can accurately transmit information. In the relevant technology, the tester needs to prepare at least two devices to be tested, and transmit information from one device to the other device. Whether the received information is consistent with the sent information is used to measure whether the information transmission function of the device to be tested is abnormal.

[0051] However, this testing method requires the participation of multiple devices. On the one hand, the testing efficiency is low and the testing difficulty is high. On the other hand, when the sent information is inconsistent with the received information, it is difficult to determine which device has a problem, and the testing accuracy is low.

[0052] In order to solve the above technical problems, the present application provides an SRB bus testing method, which can instruct the device to be tested not to directly send the generated information to be sent from the sending port when executing the information sending process, but to directly transfer the first information that completes the information generation process and the information transmission process to the receiving port of the device to be tested, and instruct the device to be tested to execute the information receiving process, that is, to transmit the received information to the data processing module to obtain the second information. The consistency between the second information and the information to be sent can be used to analyze whether an abnormality occurs during the information transmission process, and then the information transmission function of the device to be tested can be accurately analyzed. This process does not require the participation of other devices and does not require actual information transmission, and the test efficiency is high.

[0053] It is understandable that the method can be applied to a computer device, which is a computer device capable of testing, such as a terminal device or a server, or the device to be tested itself. The method can be executed independently by a terminal device or a server, or it can be applied to a network scenario in which a terminal device and a server communicate, and is executed in cooperation with a terminal device and a server. Among them, the terminal device can be a mobile phone, a tablet computer, a laptop computer, a desktop computer and other devices. The terminal device can also include a variety of virtual reality devices, such as augmented reality (AR) devices, such as AR glasses, AR screens and other devices, and virtual reality technology (VR) devices, such as head-mounted VR glasses and other devices. The server can be understood as an application server, or a Web server. In actual deployment, the server can be an independent server, a cluster server, or a cloud server.

[0054] Next, the technical solution provided by this application will be introduced in detail in conjunction with the accompanying drawings.

[0055] See also Figure 1 , Figure 1 A flow chart of an SRB bus testing method provided in an embodiment of the present application, the method comprising:

[0056] S101: instructing the device to be tested to start executing the information sending process.

[0057] The device to be tested may be any device among the multiple devices included in the SRB bus to be tested, and the SRB bus to be tested may be any secure real-time bus or other types of SRB buses. The information sending process includes an information generation process and an information transmission process. The information generation process is used to generate information to be sent through a data processing module in the device to be tested. The information transmission process is used to transmit the information to be sent from the data processing module to a sending port in the device to be tested. The information transmission process can be completed by one or more modules in the device to be tested. The sending port is used to send information received through the information transmission process to other devices.

[0058] S102: Based on the completion of the information transmission process by the device to be tested, determine the first information received by the sending port through the information transmission process.

[0059] During the process of the device to be tested executing the information sending process, the computer device does not need to complete all processes, that is, it does not need to actually send the information to be sent through the sending port. It only needs to complete the information generation process and the information transmission process. At this time, the computer device can determine the first information received by the sending port through the information transmission process. The first information may be the same as the information to be sent or may be different, depending on whether there is an abnormality in the information transmission process.

[0060] S103: Transfer the first information to a receiving port corresponding to the device under test, and instruct the device under test to start executing an information receiving process.

[0061] The information receiving process is used to transmit the first information from the receiving port to the data processing module. The computer device can transfer the first information to the receiving port corresponding to the device under test to simulate that the device under test has received the first information. The receiving port is used to receive information sent by other devices to the device under test. After completing the transfer of the first information, the computer device can instruct the device under test to start executing the information receiving process to detect whether there is an abnormality in the information receiving process.

[0062] S104: judging whether an abnormality occurs in the information transmission function of the device to be tested according to the consistency between the second information received by the data processing module through the information receiving process and the information to be sent.

[0063] Among them, the information transmission function includes the above-mentioned information sending process and information receiving process. It can be understood that if the information transmission function does not have an abnormality, that is, there is no abnormal information change in the information sending process and the information receiving process, then the information sent by the device to be tested should be consistent with the information received, that is, the information to be sent should be consistent with the second information. Based on this, the computer device can detect whether there is an abnormality in the information receiving process based on the consistency between the information to be sent and the second information.

[0064] It can be seen from the above technical scheme that when testing the information transmission function of the device to be tested on the SRB bus to be tested, the present application only requires the device to be tested itself to participate. During the test process, the device to be tested can be instructed to start executing the information sending process. The information sending process includes an information generation process and an information transmission process. The information generation process is used to generate information to be sent through the data processing module in the device to be tested. The information transmission process is used to transmit the information to be sent from the data processing module to the sending port in the device to be tested. The sending port is used to send information received through the information transmission process to other devices. Based on the completion of the information transmission process by the device to be tested, that is, when the information is transmitted to the sending port, it can be determined that the first information received by the sending port through the information transmission process, and then the sending port does not need to send the first information, but directly transfers the first information to the receiving port corresponding to the device to be tested, and instructs the device to be tested to start executing the information receiving process. The information receiving process is used to transmit the first information from the receiving port to the data processing module, so that the complete information sending and receiving process can be simulated. If there are no abnormalities in the information sending and receiving processes, the second information should be consistent with the generated information to be sent. Therefore, it is possible to determine whether the information transmission function of the device to be tested is abnormal based on the consistency between the second information received by the data processing module through the information receiving process and the information to be sent. It can be seen that the test method of the present application only requires the participation of the device to be tested itself throughout the process, and does not require information transmission between other devices and the device to be tested. While ensuring the accuracy of the test, it improves the test efficiency and reduces the difficulty of the test.

[0065] Next, the technical details involved in this application will be introduced in detail.

[0066] First, how to determine whether the information transmission function is abnormal is introduced. When executing step S104, the computer device can execute steps S1041-S1042 (not shown in the figure), and steps S1041-S1042 are a possible implementation of step S104, including:

[0067] S1041: Based on the consistency between the information to be sent and the second information, it is determined that there is no abnormality in the information transmission function of the device to be tested.

[0068] If the information to be sent is consistent with the second information, it means that there is a high probability that no information anomaly occurs in the information sending process and the information transmission process, and thus it can be said that there is a high probability that no anomaly occurs in the information transmission function.

[0069] S1042: Based on the inconsistency between the information to be sent and the second information, it is determined that an abnormality occurs in the information transmission function of the device to be tested.

[0070] If the information to be sent is inconsistent with the second information, it means that an abnormal information change has occurred in the information sending process and / or the information transmission process, which can indicate that the information transmission function is likely to be abnormal.

[0071] In a possible implementation, in order to enable relevant personnel to timely understand the test results of the device under test, based on determining that the information transmission function of the device under test is abnormal, the computer device can send abnormal indication information, and the abnormal indication information is used to indicate that the information transmission function of the device under test is abnormal. Therefore, by receiving the abnormal indication information, it can be timely known that the information transmission function of the device under test is abnormal, so that the device under test can be repaired in time.

[0072] In addition, in a possible implementation method, the computer device can also determine the abnormal process in the information sending process and the information receiving process based on the consistency of the information to be sent, the first information and the second information, that is, determine in which process the information anomaly occurs through the consistency between different information, thereby providing more accurate test results.

[0073] Specifically, in a possible implementation, when determining that an abnormal process exists in the information sending process and the information receiving process based on the consistency of the information to be sent, the first information, and the second information, the computer device may determine that an abnormality occurs in the information transmission process based on the inconsistency between the information to be sent and the first information, that is, when the information to be sent is inconsistent with the first information, since the information to be sent is the starting information of the information transmission process and the first information is the ending information of the information transmission process, it can be determined that an abnormality occurs in the information transmission process;

[0074] Based on the inconsistency between the first information and the second information, it is determined that an abnormality occurs in the information receiving process. That is, when the first information and the second information are inconsistent, since the first information is the starting information of the information receiving process and the second information is the ending information of the information receiving process, it can be determined that an abnormality occurs in the information receiving process. In this way, the computer device can more accurately detect abnormalities in the device to be tested, obtain more accurate test results, and further improve test accuracy and test efficiency.

[0075] Specifically, the test process can be as follows Figure 2 As shown, including:

[0076] S201: Obtain automatic test instructions.

[0077] This command is used to instruct to start testing the device under test.

[0078] S202: Configure automatic test parameters.

[0079] S203: Send test data.

[0080] The test data is the information to be sent, which is used to test whether the information transmission function of the device to be tested is abnormal.

[0081] S204: receiving loopback data.

[0082] The loopback data is the second information received through the information sending process and the information receiving process.

[0083] S205: Data comparison.

[0084] The computer device can compare the test data with the loopback data to detect whether there is any abnormality in the information transmission function of the device under test.

[0085] S206: Output the test results.

[0086] If the test data is consistent with the loopback data, it means that there is no abnormality in the information transmission function; if the test data is inconsistent with the loopback data, it means that there is an abnormality in the information transmission function. The computer equipment can analyze in detail which process has the abnormality based on the consistency of the data.

[0087] Based on the SRB bus test method provided in the above embodiment, the present application also provides an SRB bus test device, see Figure 3 , Figure 3 The structural block diagram of an SRB bus test device provided in an embodiment of the present application, the device 300 includes a first indication unit 301, a first determination unit 302, a second indication unit 303 and a judgment unit 304:

[0088] The first indication unit 301 is used to instruct the device to be tested to start executing the information sending process, the device to be tested is any device among the multiple devices included in the SRB bus to be tested, the information sending process includes an information generation process and an information transmission process, the information generation process is used to generate the information to be sent through the data processing module in the device to be tested, the information transmission process is used to transmit the information to be sent from the data processing module to the sending port in the device to be tested, and the sending port is used to send the information received through the information transmission process to other devices;

[0089] The first determining unit 302 is used to determine the first information received by the sending port through the information transmission process based on the device under test completing the information transmission process;

[0090] The second indication unit 303 is used to transfer the first information to the receiving port corresponding to the device under test, and instruct the device under test to start executing an information receiving process, wherein the information receiving process is used to transmit the first information from the receiving port to the data processing module;

[0091] The judging unit 304 is configured to judge whether an abnormality occurs in the information transmission function of the device under test according to the consistency between the second information received by the data processing module through the information receiving process and the information to be sent.

[0092] In a possible implementation, the determining unit 304 is specifically configured to:

[0093] Based on the consistency between the information to be sent and the second information, it is determined that there is no abnormality in the information transmission function of the device to be tested;

[0094] Based on the inconsistency between the information to be sent and the second information, it is determined that an abnormality occurs in the information transmission function of the device to be tested.

[0095] In a possible implementation manner, the device further includes a sending unit:

[0096] The sending unit is used to send abnormality indication information based on determining that the information transmission function of the device to be tested is abnormal, where the abnormality indication information is used to indicate that the information transmission function of the device to be tested is abnormal.

[0097] In a possible implementation manner, the apparatus further includes a second determining unit:

[0098] The second determining unit is used to determine an abnormal process in the information sending process and the information receiving process based on the consistency of the information to be sent, the first information and the second information.

[0099] In a possible implementation manner, the second determining unit is specifically configured to:

[0100] Based on the inconsistency between the information to be sent and the first information, determining that an abnormality occurs in the information transmission process;

[0101] Based on the inconsistency between the first information and the second information, it is determined that an abnormality occurs in the information receiving process.

[0102] The present application also provides a computer device, see Figure 4 As shown, the computer device may be a terminal device, and a mobile phone is taken as an example:

[0103] Figure 4FIG. 1 is a block diagram showing a partial structure of a mobile phone related to a terminal device provided in an embodiment of the present application. Figure 4 The mobile phone includes: a radio frequency (RF) circuit 710, a memory 720, an input unit 730, a display unit 740, a sensor 750, an audio circuit 760, a wireless fidelity (WiFi) module 770, a processor 780, and a power supply 790. Those skilled in the art can understand that Figure 4 The mobile phone structure shown in the figure does not constitute a limitation on the mobile phone, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0104] Combine the following Figure 4 A detailed introduction to the various components of the mobile phone:

[0105] The RF circuit 710 can be used for receiving and sending signals during the process of sending and receiving information or making calls. In particular, after receiving the downlink information of the base station, it is sent to the processor 780 for processing; in addition, the designed uplink data is sent to the base station. Usually, the RF circuit 710 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, referred to as LNA), a duplexer, etc. In addition, the RF circuit 710 can also communicate with the network and other devices through wireless communication. The above-mentioned wireless communication can use any communication standard or protocol, including but not limited to the Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), etc.

[0106] The memory 720 can be used to store software programs and modules. The processor 780 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 720. The memory 720 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory 720 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0107] The input unit 730 can be used to receive input digital or character information, and generate key signal input related to the user settings and function control of the mobile phone. Specifically, the input unit 730 may include a touch panel 731 and other input devices 732. The touch panel 731, also known as a touch screen, can collect the user's touch operation on or near it (such as the user's operation on the touch panel 731 or near the touch panel 731 using any suitable object or accessory such as a finger, stylus, etc.), and drive the corresponding connection device according to a pre-set program. Optionally, the touch panel 731 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the touch point coordinates, and then sends it to the processor 780, and can receive and execute the command sent by the processor 780. In addition, the touch panel 731 can be implemented in various types such as resistive, capacitive, infrared and surface acoustic wave. In addition to the touch panel 731, the input unit 730 may further include other input devices 732. Specifically, the other input devices 732 may include but are not limited to one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.

[0108] The display unit 740 can be used to display information input by the user or information provided to the user and various menus of the mobile phone. The display unit 740 may include a display panel 741. Optionally, the display panel 741 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc. Further, the touch panel 731 may cover the display panel 741. When the touch panel 731 detects a touch operation on or near it, it is transmitted to the processor 780 to determine the type of touch event. Subsequently, the processor 780 provides a corresponding visual output on the display panel 741 according to the type of touch event. Although in Figure 4 In the embodiment, the touch panel 731 and the display panel 741 are used as two independent components to realize the input and output functions of the mobile phone, but in some embodiments, the touch panel 731 and the display panel 741 can be integrated to realize the input and output functions of the mobile phone.

[0109] The mobile phone may also include at least one sensor 750, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 741 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel 741 and / or the backlight when the mobile phone is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; As for other sensors that can be configured in the mobile phone, such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be repeated here.

[0110] The audio circuit 760, the speaker 761, and the microphone 762 can provide an audio interface between the user and the mobile phone. The audio circuit 760 can transmit the received audio data to the speaker 761 after converting the received audio data into an electrical signal, which is converted into a sound signal for output; on the other hand, the microphone 762 converts the collected sound signal into an electrical signal, which is received by the audio circuit 760 and converted into audio data, and then the audio data is output to the processor 780 for processing, and then sent to another mobile phone through the RF circuit 710, or the audio data is output to the memory 720 for further processing.

[0111] WiFi is a short-range wireless transmission technology. The mobile phone can help users send and receive emails, browse web pages and access streaming media through the WiFi module 770. It provides users with wireless broadband Internet access. Figure 4 A WiFi module 770 is shown, but it is understandable that it is not an essential component of the mobile phone and can be omitted as needed without changing the essence of the invention.

[0112] The processor 780 is the control center of the mobile phone. It uses various interfaces and lines to connect various parts of the entire mobile phone. By running or executing software programs and / or modules stored in the memory 720, and calling data stored in the memory 720, it executes various functions of the mobile phone and processes data, thereby performing overall detection of the mobile phone. Optionally, the processor 780 may include one or more processing units; preferably, the processor 780 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 780.

[0113] The mobile phone also includes a power supply 790 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 780 through a power management system, so that the power management system can manage charging, discharging, power consumption and other functions.

[0114] Although not shown, the mobile phone may also include a camera, a Bluetooth module, etc., which will not be described in detail here.

[0115] In this embodiment, the processor 780 included in the terminal device also has the following functions:

[0116] Instruct the device to be tested to start executing an information sending process, wherein the device to be tested is any device among the multiple devices included in the SRB bus to be tested, and the information sending process includes an information generation process and an information transmission process, wherein the information generation process is used to generate information to be sent through a data processing module in the device to be tested, and the information transmission process is used to transmit the information to be sent from the data processing module to a sending port in the device to be tested, and the sending port is used to send information received through the information transmission process to other devices;

[0117] Based on the device to be tested completing the information transmission process, determining the first information received by the sending port through the information transmission process;

[0118] Transferring the first information to a receiving port corresponding to the device under test, and instructing the device under test to start executing an information receiving process, wherein the information receiving process is used to transmit the first information from the receiving port to the data processing module;

[0119] According to the consistency between the second information received by the data processing module through the information receiving process and the information to be sent, it is determined whether an abnormality occurs in the information transmission function of the device to be tested.

[0120] The present application also provides a server. Figure 5 As shown, Figure 5 The structural diagram of the server 800 provided in the embodiment of the present application, the server 800 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 822 (for example, one or more processors) and a memory 832, and one or more storage media 830 (for example, one or more mass storage devices) storing application programs 842 or data 844. Among them, the memory 832 and the storage medium 830 can be short-term storage or permanent storage. The program stored in the storage medium 830 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the server. Furthermore, the central processing unit 822 can be configured to communicate with the storage medium 830 and execute a series of instruction operations in the storage medium 830 on the server 800.

[0121] The server 800 may also include one or more power supplies 826, one or more wired or wireless network interfaces 850, one or more input and output interfaces 858, and / or one or more operating systems 841, such as Windows Server 2000. TM , Mac OS X TM , Unix TM , Linux TM , FreeBSD TM etc.

[0122] The steps performed by the server in the above embodiment can be based on Figure 5 The server structure shown.

[0123] An embodiment of the present application further provides a computer-readable storage medium for storing a computer program, wherein the computer program is used to execute any one of the implementations of the SRB bus test method described in the aforementioned embodiments.

[0124] An embodiment of the present application further provides a computer program product including a computer program, which, when executed on a computer device, enables the computer device to execute the SRB bus test method described in any one of the above embodiments.

[0125] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the above program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the above storage medium can be at least one of the following media: read-only memory (English: read-only memory, abbreviated: ROM), RAM, magnetic disk or optical disk, etc. Various media that can store program codes.

[0126] It should be noted that each embodiment in this specification is described in a progressive manner, and the same and similar parts between the embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and system embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiments. The device and system embodiments described above are merely schematic, in which the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative work.

[0127] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A SRB bus testing method, characterized in that: The method comprises: Instruct the device to be tested to start executing an information sending process, wherein the device to be tested is any device among multiple devices included in the SRB bus to be tested, and the information sending process includes an information generation process and an information transmission process, wherein the information generation process is used to generate information to be sent through a data processing module in the device to be tested, and the information transmission process is used to transmit the information to be sent from the data processing module to a sending port in the device to be tested, and the sending port is used to send information received through the information transmission process to other devices, and the SRB bus is a secure real-time bus; Based on the device to be tested completing the information transmission process, determining the first information received by the sending port through the information transmission process; Transferring the first information to a receiving port corresponding to the device under test, and instructing the device under test to start executing an information receiving process, wherein the information receiving process is used to transmit the first information from the receiving port to the data processing module; According to the consistency between the second information received by the data processing module through the information receiving process and the information to be sent, it is determined whether an abnormality occurs in the information transmission function of the device to be tested.

2. The method according to claim 1, characterized in that The determining whether an abnormality occurs in the information transmission function of the device under test according to the consistency between the second information received by the data processing module through the information receiving process and the information to be sent includes: Based on the consistency between the information to be sent and the second information, determining that there is no abnormality in the information transmission function of the device to be tested; Based on the inconsistency between the information to be sent and the second information, it is determined that an abnormality occurs in the information transmission function of the device to be tested.

3. The method according to claim 1, characterized in that The method further comprises: Based on determining that an abnormality occurs in the information transmission function of the device to be tested, abnormality indication information is sent, where the abnormality indication information is used to indicate that an abnormality occurs in the information transmission function of the device to be tested.

4. The method according to claim 1, characterized in that: The method further comprises: Based on the consistency of the information to be sent, the first information and the second information, it is determined whether there is an abnormal process in the information sending process and the information receiving process.

5. The method according to claim 4, characterized in that The process of determining that an abnormality exists in the information sending process and the information receiving process based on the consistency of the information to be sent, the first information and the second information includes: Based on the inconsistency between the information to be sent and the first information, determining that an abnormality occurs in the information transmission process; Based on the inconsistency between the first information and the second information, it is determined that an abnormality occurs in the information receiving process.

6. A SRB bus test device, characterized in that: The device is used to execute the method according to claim 1, and the device includes a first indication unit, a first determination unit, a second indication unit and a judgment unit: The first indication unit is used to instruct the device to be tested to start executing an information sending process, the device to be tested is any device among the multiple devices included in the SRB bus to be tested, the information sending process includes an information generation process and an information transmission process, the information generation process is used to generate information to be sent through a data processing module in the device to be tested, the information transmission process is used to transmit the information to be sent from the data processing module to a sending port in the device to be tested, and the sending port is used to send information received through the information transmission process to other devices; The first determining unit is used to determine the first information received by the sending port through the information transmission process based on the device under test completing the information transmission process; The second indicating unit is used to transfer the first information to the receiving port corresponding to the device under test, and instruct the device under test to start executing an information receiving process, wherein the information receiving process is used to transmit the first information from the receiving port to the data processing module; The judging unit is used to judge whether an abnormality occurs in the information transmission function of the device under test according to the consistency between the second information received by the data processing module through the information receiving process and the information to be sent.

7. The device according to claim 6, characterized in that The judging unit is specifically used for: Based on the consistency between the information to be sent and the second information, determining that there is no abnormality in the information transmission function of the device to be tested; Based on the inconsistency between the information to be sent and the second information, it is determined that an abnormality occurs in the information transmission function of the device to be tested.

8. The device according to claim 6, characterized in that The device also includes a sending unit: The sending unit is used to send abnormality indication information based on determining that the information transmission function of the device to be tested is abnormal, where the abnormality indication information is used to indicate that the information transmission function of the device to be tested is abnormal.

9. The device according to claim 6, characterized in that The device also includes a second determining unit: The second determining unit is used to determine an abnormal process in the information sending process and the information receiving process based on the consistency of the information to be sent, the first information and the second information.

10. The device according to claim 9, characterized in that The second determining unit is specifically configured to: Based on the inconsistency between the information to be sent and the first information, determining that an abnormality occurs in the information transmission process; Based on the inconsistency between the first information and the second information, it is determined that an abnormality occurs in the information receiving process.

11. A computer device, characterized in that: The computer device comprises a processor and a memory: The memory is used to store a computer program and transmit the computer program to the processor; The processor is used to execute the SRB bus testing method according to any one of claims 1 to 5 according to the instructions in the computer program.

12. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store a computer program, and the computer program is used to execute the SRB bus testing method according to any one of claims 1 to 5.

13. A computer program product comprising a computer program, which, when executed on a computer device, enables the computer device to execute the SRB bus testing method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Information interaction method and terminal

    CN110557271A

  • Data transmission method and device

    CN114466405A