Signal transmission detection method and device, electronic equipment and storage medium

By generating and sending preset frame numbers, signal transmission detection between automobile controllers is realized, which solves the problem that the prior art cannot detect signal transmission at the same time, and ensures the accuracy and security of signal transmission.

CN119109726APending Publication Date: 2024-12-10CHONGQING JINKANG POWER NEW ENERGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411174496.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-26
Publication Date
2024-12-10

AI Technical Summary

Technical Problem

The prior art cannot simultaneously detect signal transmission between automotive controllers, resulting in signal transmission errors affecting vehicle functions and safety.

Method used

By generating a signal corresponding to a wake-up instruction, and generating a message with a preset frame number based on the signal, it is sent to the second controller for signal transmission detection, and the signal transmission detection between the controllers at both ends of the signal transmission and transmission are realized.

Benefits of technology

It realizes signal transmission detection between the controllers at both ends of signal transmission and transmission, avoiding functional and safety issues caused by development and testing errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119109726A_ABST
    Figure CN119109726A_ABST
Patent Text Reader

Abstract

The invention discloses a signal transmission detection method and apparatus, an electronic device and a storage medium, a first controller generates a first signal corresponding to a wake-up instruction when obtaining the wake-up instruction, generates a first message of a preset frame number based on the first signal, and further sends the first message to a second controller, and sending the first message to the second controller, so that the second controller obtains a signal transmission detection result between the first controller and the second controller according to a comparison result between one or more signal assignments corresponding to the first message and the test value after receiving the first message. In this way, signal transmission between the two controllers corresponding to the signal transmitting end and the signal receiving end can be detected. Besides, the mode is not only suitable for a detection environment, but also can realize signal transmission self-inspection in an actual stage, thereby avoiding the function and even safety problems in a subsequent use stage caused by development and test errors and the like.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a signal transmission detection method, device, electronic device and storage medium. Background Art

[0002] In the automotive Controller Area Network (CAN) bus communication, after a signal is sent from one controller, it often needs to pass through multiple modules before it can be received by another controller. During the signal transmission process, if there is a problem in the development of any module, the signal will not be transmitted correctly, thus affecting the normal operation of the vehicle function and even posing a safety hazard to the vehicle and the driver.

[0003] In the related art, in order to ensure the correct transmission of signals, usually during the product development process, test engineers write corresponding test cases and use hardware-in-the-loop (HIL) testing to detect whether the CAN signal is transmitted correctly.

[0004] However, this signal transmission detection method usually targets each controller and is equipped with a corresponding simulation system to detect the corresponding signal transmission of the controller. This test link can only verify whether the transmission and reception of a controller are correct, but cannot simultaneously detect the signal transmission between the two controllers corresponding to the two ends of the signal transmission and reception. Summary of the invention

[0005] The present application discloses a signal transmission detection method, device, electronic device and storage medium, which can detect the signal transmission between two controllers corresponding to the signal sending and receiving ends.

[0006] On the one hand, an embodiment of the present application provides a signal transmission detection method, which is applied to a first controller, and the method includes:

[0007] In response to obtaining the wake-up instruction, generating a first signal corresponding to the wake-up instruction, where the value carried by the first signal is a test value;

[0008] Based on the first signal, a first message with a preset number of frames is generated, the value carried by the first message is a self-test value, and the self-test value indicates that the signal carried by the first message is in a detection state;

[0009] A first message is sent to the second controller, so that after receiving the first message, the second controller compares the one or more signal values ​​corresponding to the first message with the test values ​​to obtain a signal transmission detection result between the first controller and the second controller.

[0010] Optionally, in response to acquiring the wake-up instruction, generating a first signal corresponding to the wake-up instruction includes:

[0011] In response to acquiring the wake-up instruction, generating a second signal corresponding to the wake-up instruction;

[0012] The second signal is assigned a value according to the test value, and the second signal after the assignment is used as the first signal.

[0013] Optionally, generating a first message with a preset number of frames based on the first signal includes:

[0014] Based on the first signal, generate a second message with a preset number of frames;

[0015] In the second message, the self-test status bit is defined;

[0016] The self-check status bit is assigned a value according to the self-check value to obtain a first message.

[0017] On the one hand, an embodiment of the present application further provides a signal transmission detection method, which is applied to a second controller, and the method includes:

[0018] When receiving the first message sent by the first controller, updating the accumulated number of frames received by the first message;

[0019] When the accumulated number of frames is less than or equal to the preset number of frames, determining whether the value assigned to the self-check status bit in the first message is a self-check value;

[0020] If so, assign one or more signal values ​​corresponding to the first message, compare them with the preset test values ​​respectively, and obtain the signal transmission detection result between the first controller and the second controller according to the comparison result;

[0021] If not, it is confirmed that the signal transmission detection result between the first controller and the second controller is detection failure.

[0022] Optionally, obtaining a signal transmission detection result between the first controller and the second controller according to the comparison result includes:

[0023] If there is a comparison inconsistency in the comparison result, the signal transmission test result is confirmed as failure;

[0024] Otherwise, the signal detection result is confirmed to be detection passed.

[0025] Optionally, the method further includes:

[0026] When the accumulated number of frames is greater than the preset number of frames, the signals corresponding to the one or more signals are assigned values ​​and transmitted to the corresponding application program.

[0027] On the one hand, an embodiment of the present application provides a signal transmission detection device, which is applied to a first controller, and the device includes:

[0028] A generating module, configured to generate a first signal corresponding to the wake-up instruction in response to obtaining the wake-up instruction, wherein the value carried by the first signal is a test value; based on the first signal, generate a first message of a preset number of frames, wherein the value carried by the first message is a self-test value, and the self-test value indicates that the signal carried by the first message is in a detection state;

[0029] The sending module is used to send a first message to the second controller, so that after receiving the first message, the second controller can obtain the signal transmission detection result between the first controller and the second controller according to the comparison results between one or more signal assignments corresponding to the first message and the test values.

[0030] Optionally, generate modules for:

[0031] In response to acquiring the wake-up instruction, generating a second signal corresponding to the wake-up instruction;

[0032] The second signal is assigned a value according to the test value, and the second signal after the assignment is used as the first signal.

[0033] Optionally, generate modules for:

[0034] Based on the first signal, generate a second message with a preset number of frames;

[0035] In the second message, the self-test status bit is defined;

[0036] The self-check status bit is assigned a value according to the self-check value to obtain a first message.

[0037] On the one hand, an embodiment of the present application further provides a signal transmission detection device, which is applied to a second controller, and the device includes:

[0038] A receiving module, configured to update the accumulated number of frames received of the first message when receiving the first message sent by the first controller;

[0039] The detection module is used to determine whether the value assigned to the self-test status bit in the first message is a self-test value when the cumulative number of frames is less than or equal to a preset number of frames; if so, one or more signal assignments corresponding to the first message are compared with preset test values ​​respectively, and based on the comparison result, the signal transmission detection result between the first controller and the second controller is obtained; if not, it is confirmed that the signal transmission detection result between the first controller and the second controller is a detection failure.

[0040] Optionally, the detection module is used to:

[0041] If there is a comparison inconsistency in the comparison result, the signal transmission test result is confirmed as failure;

[0042] Otherwise, the signal detection result is confirmed to be detection passed.

[0043] Optionally, the device further comprises:

[0044] When the accumulated number of frames is greater than the preset number of frames, the signals corresponding to the one or more signals are assigned values ​​and transmitted to the corresponding application program.

[0045] In one aspect, the present application provides an electronic device, comprising:

[0046] Memory, used to store computer programs;

[0047] The processor is used to implement the above-mentioned signal transmission detection method when executing the computer program stored in the memory.

[0048] On the one hand, the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the above-mentioned signal transmission detection method is implemented.

[0049] The beneficial effects of this application are as follows:

[0050] The signal transmission detection method, device, electronic device and storage medium provided in the embodiments of the present application, when the first controller obtains the wake-up instruction, generates a first signal corresponding to the wake-up instruction, and based on the first signal, generates a first message of a preset number of frames, and further sends the first message to the second controller, so that after receiving the first message, the second controller assigns one or more signals corresponding to the first message, and compares the results with the test values, respectively, to obtain the signal transmission detection result between the first controller and the second controller. In this process, the signal transmission detection result is completed based on the mutual cooperation between the first controller and the second controller. Therefore, based on the signal transmission detection result, it is possible to detect the signal transmission between the two controllers corresponding to the two ends of the signal transmission and reception.

[0051] In addition, this signal transmission detection method is not only applicable to the detection environment, but can also realize signal transmission self-checking in the actual stage, avoiding functional and even safety problems in the subsequent use stage caused by development and testing errors. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] Figure 1 An example diagram of a signal transmission detection method provided in this application;

[0053] Figure 2 A flowchart of a signal transmission detection method applied to a first controller provided in the present application;

[0054] Figure 3 An example diagram of a first controller initialization process provided by the present application;

[0055] Figure 4 A flowchart of a signal transmission detection method applied to a second controller provided in the present application;

[0056] Figure 5 An example diagram of a step flow of a second controller signal transmission detection provided in the present application;

[0057] Figure 6 A schematic diagram of a signal transmission detection method provided in this application;

[0058] Figure 7 A schematic diagram of the structure of a signal transmission detection device applied to a first controller provided in the present application;

[0059] Figure 8 A schematic diagram of the structure of a signal transmission detection device applied to a second controller provided in the present application;

[0060] Fig. 9 A schematic diagram of the structure of an electronic device provided in this application. DETAILED DESCRIPTION

[0061] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. The specific operating methods in the method embodiments can also be applied to device embodiments or system embodiments. It should be noted that in the description of the present application, "multiple" is understood as "at least two". "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. A is connected to B, which can represent: A is directly connected to B and A is connected to B through C. In addition, in the description of the present application, words such as "first" and "second" are only used to distinguish the purpose of description, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying order.

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

[0063] In automotive CAN bus communications, after a signal is sent from one controller, it often needs to pass through multiple modules before it can be received by another controller.

[0064] For example, refer to Figure 1 , is a schematic diagram of a signal transmission path. Figure 1In the example, after the application software of controller 1 sends out signal sig1, it continues to pass through multiple modules of controller 1, such as the real-time runtime environment (RTE), COM, high-voltage power distribution unit (PDU), CAN transport layer protocol (CANTP), CAN interface module (CANIF), CAN, CAN driver (CAN_Drv), etc., and is transmitted to the CAN bus. It continues to pass through multiple modules such as CAN_Drv, CAN, CANIF, CANTP, PDU, COM, RTE, etc. before being received by controller 2. After multiple layers of transmission, it can reach the corresponding application software of controller 2. In the process of signal transmission, if there is a problem in the development of any module, the signal will not be transmitted correctly, thus affecting the normal operation of the vehicle function and even bringing potential safety hazards to the vehicle and the driver.

[0065] In the related art, in order to ensure the correct transmission of signals, usually during the product development process, test engineers write corresponding test cases and use HIL testing to detect whether the transmission of CAN signals is correct.

[0066] However, this signal transmission detection method usually targets each controller and is equipped with a corresponding simulation system to detect the corresponding signal transmission of the controller. This test link can only verify whether the transmission and reception of a controller are correct, but cannot simultaneously detect the signal transmission between the two controllers corresponding to the two ends of the signal transmission and reception.

[0067] In order to solve the above problems, the present application provides a signal transmission detection method, device, electronic device and storage medium. When the first controller obtains the wake-up instruction, it generates a first signal corresponding to the wake-up instruction, and based on the first signal, generates a first message of a preset number of frames. Further, the first message is sent to the second controller, so that after receiving the first message, the second controller assigns one or more signals corresponding to the first message, and compares the comparison results with the test values ​​respectively, to obtain the signal transmission detection result between the first controller and the second controller. In this process, the signal transmission detection result is completed based on the mutual cooperation between the first controller and the second controller. Therefore, based on the signal transmission detection result, the signal transmission between the two controllers corresponding to the signal sending and receiving ends can be detected. In addition, the signal transmission detection method is not only applicable to the detection environment, but also can realize signal transmission self-checking in the actual stage, avoiding functional and even safety problems in the subsequent use stage caused by development and testing errors.

[0068] Among them, the methods, devices, electronic devices and storage media in the embodiments of the present application are based on the same technical concept and the principles of solving the problems are similar. Therefore, the embodiments of the devices, electronic devices, storage media and methods can refer to each other, and the repeated parts will not be repeated.

[0069] In particular, the preferred embodiments of the present application are described below in conjunction with the drawings in the specification. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present application, and are not used to limit the present application, and the embodiments of the present application and the features in the embodiments may be combined with each other if there is no conflict.

[0070] Embodiment 1:

[0071] like Figure 2 FIG. 1 is a flow chart of a signal transmission detection method provided by the present application. The method is applied to a first controller and specifically includes the following steps:

[0072] S201, in response to obtaining a wake-up instruction, generating a first signal corresponding to the wake-up instruction, where the value carried by the first signal is a test value.

[0073] In the embodiment of the present application, the wake-up instruction is used to activate the first controller. When the first controller receives the wake-up instruction, it generates a second signal corresponding to the wake-up instruction in response to the wake-up instruction. For example, Figure 1 The signal sig1 in is a second signal.

[0074] Further, the first controller assigns the generated second signal according to the test value, and uses the assigned second signal as the first signal. The test value is pre-defined in the requirements stage, which is one of the most critical stages in the product development process. It aims to clarify and define the product's functions, performance, constraints, and interfaces, and accurately and professionally describe user expectations to the development team to ensure the effectiveness of the product development process.

[0075] S202, based on the first signal, generating a first message of a preset frame number, wherein the value carried by the first message is a self-test value, and the self-test value indicates that the signal carried by the first message is in a detection state.

[0076] In an embodiment of the present application, after the first controller generates the first signal, it generates a second message with a preset number of frames based on the first signal, wherein the preset number of frames may be 3 frames, 4 frames or 5 frames, and no specific limitation is made here.

[0077] After the second message is obtained, a self-test status bit is defined in the second message, and the self-test status bit is assigned a value according to the self-test value to obtain the first message. The self-test value is assigned to 1, and of course, it can also be set to other values, which are not specifically limited here. Then all signals in the first message are in the detection state.

[0078] By setting a self-test value for the first message signal, when the second controller that receives the first message can identify the self-test value, it starts to detect the signal transmission between the first controller and the second controller.

[0079] S203, sending a first message to the second controller, so that after receiving the first message, the second controller can obtain a signal transmission detection result between the first controller and the second controller based on the comparison results between one or more signal assignments corresponding to the first message and the test values.

[0080] In the embodiment of the present application, after the first controller generates the first message including the self-test value, it sends the first message to the second controller.

[0081] After receiving the first message, the second controller assigns one or more signals corresponding to the first message, compares them with the test values, obtains one or more comparison results, and obtains the signal transmission detection result between the first controller and the second controller according to the comparison results. The specific implementation method can refer to the subsequent embodiment 2, which will not be repeated here.

[0082] After the first controller sends out the first message with the preset frame number, the subsequently generated second signal is no longer assigned according to the test value, but the third message is generated by the second signal according to the actual value, and the self-test status bit in the third message is assigned to 0 instead of the self-test value. From then on, the first message used for signal transmission detection is no longer generated, indicating that for the first controller, the signal transmission self-test between the first controller and the second controller is completed.

[0083] The above signal transmission detection process of the first controller can also be regarded as the network initialization process of the first controller, such as Figure 3 FIG. 1 is an example diagram of the initialization process of the first controller, which specifically includes the following steps:

[0084] Step 1: First controller network wake-up;

[0085] Step 2: The self-check flag signal is set to 1, that is, the self-check status bit in the sent message is assigned a value of 1;

[0086] Step 3: Set the values ​​of all signals to test values;

[0087] Step 4: Send 3 frames of messages to the second controller;

[0088] Step 5: The self-check flag signal is set to 0, that is, the self-check status bit in the subsequent sent message is assigned to 0;

[0089] Step 6: Assign the values ​​of all signals to actual values;

[0090] Step 7: Self-test is completed.

[0091] In the above signal transmission detection method, the first controller generates a first signal corresponding to the wake-up instruction, and based on the first signal, generates a first message of a preset frame number, and further sends the first message to the second controller, so that after receiving the first message, the second controller assigns one or more signals corresponding to the first message, and compares the results with the test values ​​to obtain the signal transmission detection result between the first controller and the second controller. In this process, the signal transmission detection result is completed based on the mutual cooperation between the first controller and the second controller. Therefore, based on the signal transmission detection result, the signal transmission between the two controllers corresponding to the signal sending and receiving ends can be detected.

[0092] In addition, this signal transmission detection method is not only applicable to the detection environment, but can also realize signal transmission self-checking in the actual stage, avoiding functional and even safety problems in the subsequent use stage caused by development and testing errors.

[0093] Embodiment 2:

[0094] like Figure 4 FIG. 1 is a flow chart of a signal transmission detection method provided by the present application. The method is applied to the second controller and specifically includes the following steps:

[0095] S401, when receiving a first message sent by a first controller, updating the accumulated number of frames received of the first message;

[0096] In an embodiment of the present application, after the second controller receives the first message sent by the first controller, it updates the cumulative frame number of the received first message. For example, after previously receiving 2 frames of the first message, the next time the first message is received, the cumulative frame number is updated to 3. Of course, other counting methods can also be used, which are not specifically limited here.

[0097] In one embodiment, when the second controller receives the first message, it is also necessary to parse the first message to obtain a corresponding message signal.

[0098] S402, when the accumulated number of frames is less than or equal to the preset number of frames, determining whether the value assigned to the self-check status bit in the first message is a self-check value;

[0099] In an embodiment of the present application, after determining the cumulative number of frames of the first message, the second controller determines whether the cumulative number of frames is less than or equal to the preset number of frames. If the cumulative number of frames is greater than the preset number of frames, the second controller assigns one or more signals corresponding to the message signal obtained by parsing the first message, and transmits them to the corresponding application program; if the cumulative number of frames is less than or equal to the preset number of frames, it is further determined whether the value assigned to the self-test status in the first message is a self-test value. Here, the self-test value indicates that the signal in the message is used to test the signal transmission between the first controller and the second controller. Here, the value of the self-test value is 1. Of course, it can also be other values, and there is no specific limitation here.

[0100] S403, if yes, assigning values ​​to one or more signals corresponding to the first message, respectively comparing them with preset test values, and obtaining a signal transmission detection result between the first controller and the second controller according to the comparison result;

[0101] In an embodiment of the present application, if the value corresponding to the self-test status bit in the first message signal is a self-test value, it indicates that the first message sent by the first controller is used for signal transmission detection. At this time, the signal assignments of one or more message signals corresponding to the first message are respectively compared with preset test values ​​to obtain one or more corresponding comparison results, wherein the test value is set in the demand stage, indicating that the signal in the message is used to test whether the signal transmission is abnormal, and the comparison results obtained include consistent comparison and inconsistent comparison.

[0102] In one embodiment, if there is a comparison inconsistency in one or more comparison results, it is confirmed that the signal transmission between the first controller and the second controller is abnormal, and the corresponding signal transmission detection result is detection failure. Otherwise, it is confirmed that the signal detection result is detection passing.

[0103] For example, the first message contains three signals, namely, signal sigA, signal sigB, and signal sigC, wherein the signal value corresponding to signal sigA is 1, the signal value corresponding to signal sigB is 1, and the signal value corresponding to signal sigC is 0. In the product development requirement stage, the preset test value is 1, then the signal values ​​corresponding to signal sigA and signal sigB are respectively consistent with the test values, while the signal value corresponding to signal sigC is inconsistent with the test value. Therefore, among the three comparison results, there is an inconsistent comparison result. Therefore, it is confirmed that there is an abnormality in the signal transmission between the first controller and the second controller, and the corresponding signal transmission detection result is detection failure.

[0104] S404: If not, confirm that the signal transmission detection result between the first controller and the second controller is detection failure.

[0105] In an embodiment of the present application, when the cumulative number of frames is less than or equal to the preset number of frames, if the assigned value corresponding to the self-test status bit in the first message signal is inconsistent with the self-test value, it is directly confirmed that the signal transmission between the first controller and the second controller is abnormal, and the corresponding signal transmission detection result is detection failure.

[0106] When the signal transmission detection result obtained by the second controller is that the detection fails, functional protection measures will be taken, such as parking, lowering high voltage, etc.

[0107] For example, refer to Figure 5 , is a flowchart of a second controller signal transmission detection step, which specifically includes the following steps:

[0108] Step 1: Receive the first message;

[0109] Step 2: The number of the first message increases by 1;

[0110] Step 3: Analyze the first message and obtain the message signal;

[0111] Step 4: Determine whether the cumulative number of the first message is less than or equal to 3, if not, execute step 5, if yes, execute step 7;

[0112] Step 5: Assign the parsed message to the corresponding application and execute Step 6;

[0113] Step 6: End;

[0114] Step 7: Determine whether the self-test status bit in the first message is 1, if not, execute step 8, if yes, execute step 9;

[0115] Step8: Self-check signal failure;

[0116] Step 9: Compare the signal values ​​of the message signals one by one to see if they are equal to the test values;

[0117] Step 10: Determine whether all the assigned signals are equal to the test value. If so, execute step 11 and step 6, otherwise execute step 8;

[0118] Step 11: The message self-check passes.

[0119] In order to further elaborate the technical solution disclosed in the present application, the following description is made with the first controller as the signal sending end and the second controller as the signal receiving end. Figure 6 FIG. 1 is a schematic diagram of a signal transmission detection method provided in an embodiment of the present application, which specifically includes the following steps:

[0120] Step 1: The first controller obtains the wake-up command;

[0121] Step 2: Generate a first signal corresponding to the wake-up instruction, where the value carried by the first signal is a test value;

[0122] Step 3: Generate a first message with a preset number of frames, where the value carried by the first message is a self-test value;

[0123] Step 4: Send the first message to the second controller;

[0124] Step 5: The second controller updates the accumulated frame number of the first message;

[0125] Step 6: When the accumulated number of frames is less than or equal to the preset number of frames, determine whether the value assigned to the self-test status bit in the first message is a self-test value;

[0126] Step 7: If yes, assign values ​​to one or more signals corresponding to the first message, compare them with preset test values ​​respectively, and obtain the signal transmission detection result between the first controller and the second controller according to the comparison result;

[0127] Step 8: If not, confirm that the signal transmission detection result between the first controller and the second controller is detection failure.

[0128] It should be noted that the specific implementation method of the steps executed by the controller in this schematic diagram can refer to the above-mentioned embodiment 1 and embodiment 2, and will not be elaborated here.

[0129] Based on the same inventive concept, the embodiment of the present application further provides a signal transmission detection device, which is applied to the first controller, such as Figure 7 FIG. 1 is a schematic diagram of a signal transmission detection device in the present application, and the device includes:

[0130] The generating module 701 is used to generate a first signal corresponding to the wake-up instruction in response to obtaining the wake-up instruction, where the value carried by the first signal is a test value; based on the first signal, generate a first message of a preset number of frames, where the value carried by the first message is a self-test value, and the self-test value indicates that the signal carried by the first message is in a detection state;

[0131] The sending module 702 is used to send a first message to the second controller, so that after receiving the first message, the second controller can obtain the signal transmission detection result between the first controller and the second controller according to the comparison results between one or more signal assignments corresponding to the first message and the test values.

[0132] Optionally, the generating module 701 is used for:

[0133] In response to acquiring the wake-up instruction, generating a second signal corresponding to the wake-up instruction;

[0134] The second signal is assigned a value according to the test value, and the second signal after the assignment is used as the first signal.

[0135] Optionally, the generating module 701 is used for:

[0136] Based on the first signal, generate a second message with a preset number of frames;

[0137] In the second message, the self-test status bit is defined;

[0138] The self-check status bit is assigned a value according to the self-check value to obtain a first message.

[0139] Based on the same inventive concept, the embodiment of the present application further provides a signal transmission detection device, which is applied to the second controller, such as Figure 8 FIG. 1 is a schematic diagram of a signal transmission detection device in the present application, and the device includes:

[0140] The receiving module 801 is used to update the cumulative number of frames received in the first message when receiving the first message sent by the first controller;

[0141] The detection module 802 is used to determine whether the value assigned to the self-test status bit in the first message is a self-test value when the cumulative number of frames is less than or equal to a preset number of frames; if so, one or more signal assignments corresponding to the first message are compared with preset test values, and based on the comparison result, the signal transmission detection result between the first controller and the second controller is obtained; if not, it is confirmed that the signal transmission detection result between the first controller and the second controller is a detection failure.

[0142] Optionally, the detection module 802 is used to:

[0143] If there is a comparison inconsistency in the comparison result, the signal transmission test result is confirmed as failure;

[0144] Otherwise, the signal detection result is confirmed to be detection passed.

[0145] Optionally, the device further comprises:

[0146] When the accumulated number of frames is greater than the preset number of frames, the signals corresponding to the one or more signals are assigned values ​​and transmitted to the corresponding application program.

[0147] Based on the same inventive concept, an electronic device is also provided in the embodiment of the present application. The electronic device can realize the functions of the aforementioned signal transmission detection method and device, referring to Fig. 9 , electronic equipment includes:

[0148] At least one processor 91, and a memory 92 connected to the at least one processor 91. The specific connection medium between the processor 91 and the memory 92 is not limited in the embodiment of the present application. Fig. 9 In the example, the processor 91 and the memory 92 are connected via a bus 90. The bus 90 is Fig. 9 The connection between other components is shown by bold lines, and is not intended to be limiting. The bus 90 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig. 9 Only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus. Alternatively, the processor 91 can also be called a controller, and there is no limitation on the name.

[0149] In the embodiment of the present application, the memory 92 stores instructions that can be executed by at least one processor 91. The at least one processor 91 can execute the signal transmission detection method discussed above by executing the instructions stored in the memory 92. The processor 91 can implement Figure 7 , Figure 8 The functions of each module in the device shown.

[0150] Among them, the processor 91 is the control center of the device, and can use various interfaces and lines to connect the various parts of the entire control device. By running or executing instructions stored in the memory 92 and calling the data stored in the memory 92, the various functions of the device and processing data, the device can be monitored as a whole.

[0151] In one possible design, the processor 91 may include one or more processing units, and the processor 91 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the modem processor may not be integrated into the processor 91. In some embodiments, the processor 91 and the memory 92 may be implemented on the same chip, and in some embodiments, they may also be implemented separately on separate chips.

[0152] The processor 91 may be a general-purpose processor, such as a central processing unit (CPU), a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, and may implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the signal transmission detection method disclosed in the embodiments of the present application may be directly embodied as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.

[0153] The memory 92 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules. The memory 92 may include at least one type of storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory, a random access memory (Random Access Memory, RAM), a static random access memory (Static Random Access Memory, SRAM), a programmable read-only memory (Programmable Read Only Memory, PROM), a read-only memory (Read Only Memory, ROM), an electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), a magnetic memory, a disk, an optical disk, etc. The memory 92 is any other medium that can be used to carry or store the desired program code in the form of an instruction or data structure and can be accessed by a computer, but is not limited thereto. The memory 92 in the embodiment of the present application can also be a circuit or any other device that can realize a storage function, for storing program instructions and / or data.

[0154] By programming the processor 91, the code corresponding to the signal transmission detection method described in the above embodiment can be fixed into the chip, so that the chip can execute the code when running. Figure 2 , Figure 4 The steps of the signal transmission detection method of the embodiment shown are as follows: How to design and program the processor 91 is a technique known to those skilled in the art and will not be described in detail here.

[0155] Based on the same inventive concept, an embodiment of the present application further provides a computer-readable storage medium, which stores computer instructions. When the computer instructions are executed on a computer, the computer executes the signal transmission detection method discussed above.

[0156] In some possible implementations, various aspects of the signal transmission detection method provided in the present application may also be implemented in the form of a program product, which includes a program code. When the program product is run on an apparatus, the program code is used to enable the control device to execute the steps of the signal transmission detection method according to various exemplary implementations of the present application described above in this specification.

[0157] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0158] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0159] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0160] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0161] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A signal transmission detection method, applied to a first controller, characterized in that: The method comprises: In response to obtaining a wake-up instruction, generating a first signal corresponding to the wake-up instruction, where the value carried by the first signal is a test value; Based on the first signal, generating a first message with a preset number of frames, wherein the value carried by the first message is a self-test value, and the self-test value indicates that the signal carried by the first message is in a detection state; The first message is sent to the second controller, so that after receiving the first message, the second controller obtains the signal transmission detection result between the first controller and the second controller according to the comparison results between one or more signal assignments corresponding to the first message and the test values.

2. The method according to claim 1, characterized in that: The step of generating a first signal corresponding to the wake-up instruction in response to obtaining the wake-up instruction includes: In response to acquiring the wake-up instruction, generating a second signal corresponding to the wake-up instruction; The second signal is assigned a value according to the test value, and the second signal after the assignment is used as the first signal.

3. The method according to claim 1, characterized in that: The step of generating a first message with a preset number of frames based on the first signal includes: Based on the first signal, generate a second message with a preset number of frames; In the second message, a self-check status bit is defined; The self-test status bit is assigned a value according to the self-test value to obtain the first message.

4. A signal transmission detection method, applied to a second controller, characterized in that: The method comprises: When receiving a first message sent by a first controller, updating the cumulative number of frames received of the first message; When the accumulated number of frames is less than or equal to the preset number of frames, determining whether the value assigned to the self-test status bit in the first message is a self-test value; If yes, assign one or more signal values ​​corresponding to the first message, compare them with preset test values ​​respectively, and obtain the signal transmission detection result between the first controller and the second controller according to the comparison result; If not, it is confirmed that the signal transmission detection result between the first controller and the second controller is detection failure.

5. The method according to claim 4, characterized in that: The obtaining, according to the comparison result, a signal transmission detection result between the first controller and the second controller, comprises: If there is a comparison inconsistency in the comparison result, confirming that the signal transmission detection result is a detection failure; Otherwise, confirm that the signal detection result is detection passed.

6. The method according to claim 4, characterized in that: The method further comprises: When the accumulated number of frames is greater than the preset number of frames, signal values ​​corresponding to the one or more signals are respectively assigned and transmitted to corresponding applications.

7. A signal transmission detection device, applied to a first controller, characterized in that: The device comprises: A generating module, configured to generate, in response to obtaining a wake-up instruction, a first signal corresponding to the wake-up instruction, wherein the value carried by the first signal is a test value; based on the first signal, generate a first message of a preset number of frames, wherein the value carried by the first message is a self-test value, and the self-test value indicates that the signal carried by the first message is in a detection state; A sending module is used to send the first message to the second controller, so that after receiving the first message, the second controller can obtain the signal transmission detection result between the first controller and the second controller based on the comparison results between one or more signal assignments corresponding to the first message and the test values.

8. A signal transmission detection device, applied to a second controller, characterized in that: The device comprises: A receiving module, configured to update the cumulative number of frames received of the first message when receiving the first message sent by the first controller; A detection module is used to determine whether the value assigned to the self-test status bit in the first message is a self-test value when the cumulative number of frames is less than or equal to a preset number of frames; if so, assign one or more signals corresponding to the first message, compare them with preset test values ​​respectively, and obtain a signal transmission detection result between the first controller and the second controller based on the comparison result; if not, confirm that the signal transmission detection result between the first controller and the second controller is a detection failure.

9. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor, for implementing the method according to any one of claims 1 to 6 when executing a computer program stored in the memory.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.