Echo signal simulation device, echo signal simulation method and semi-physical simulation test system
Through the echo signal simulation device and method, the echo signal of the ultrasonic sensor is simulated, which solves the problems of low efficiency and safety risks of existing testing methods, and realizes efficient simulation testing of the new generation of ultrasonic sensors.
Patent Information
- Application Number
- CN202411106801.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-13
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2044-08-13
AI Technical Summary
The existing semi-physical simulation testing methods cannot meet the testing needs of the new generation of ultrasonic sensors, and are inefficient and have safety risks.
It provides an echo signal simulation device and an echo signal simulation method. By input processing unit, control unit and output processing unit, simulate the echo signal of the ultrasonic sensor, generate a characteristic matching modulation current to simulate the echo signal of the ultrasonic sensor. Realize semi-physical simulation test of vehicle controllers.
The echo signal simulation of the new generation of ultrasonic sensors is realized, the testing efficiency and safety are improved, and the environment perception simulation test of the controller under test can be completed.
Smart Images

Figure CN118625698B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of signal simulation, and in particular to an echo signal simulation device, an echo signal simulation method and a semi-physical simulation test system. Background Art
[0002] In automatic parking and assisted driving, ultrasonic sensors are usually used to sense the surrounding environment so that the vehicle can park automatically and accurately. With the development of ultrasonic technology, the new generation of ultrasonic sensors not only have a longer range, but also have a smaller blind spot, and can more accurately sense close obstacles, so they are increasingly used in vehicles. The vehicle controller uses a communication chip corresponding to the sensor, which can process data more efficiently and shorten the refresh cycle of the perception system.
[0003] In the development and testing process of vehicle controllers, real-car real-scene testing is a common testing method. Testers drive the vehicle to collect obstacle information during driving to verify the function of the controller. Compared with real-car testing, which is inefficient and has safety risks, semi-physical simulation is more convenient and safer. The simulation equipment used to simulate sensor functions is the core part of semi-physical simulation testing. However, with the iteration of ultrasonic technology, the existing simulation testing methods have not been perfected and cannot meet the increasing testing needs. Summary of the invention
[0004] In view of the above problems, the present disclosure provides an echo signal simulation device, an echo signal simulation method and a semi-physical simulation test system to solve or improve the problem of low efficiency of existing real-car real-scene testing methods.
[0005] On the one hand, an echo signal simulation device is provided, which includes: an input processing unit, a control unit, and an output processing unit. The input processing unit is used to convert the received instructions into voltage to obtain valid instructions that can be received by the control unit; the control unit is used to process the valid instructions to obtain instruction information of the instructions, and generate response information based on the instruction information and the configured response parameters; the output processing unit is used to generate a modulation current with characteristic matching based on the response information as a response to the instructions.
[0006] In a possible implementation, the input processing unit includes: a first conversion module, which is used to convert the voltage of a received instruction into a first voltage to obtain a valid instruction.
[0007] In a possible implementation, the input processing unit may further include: a first judgment module, the first judgment module is used to judge whether the received instruction is valid, and if the instruction is valid, the control unit processes the valid instruction.
[0008] In this implementation, the echo signal simulation device receives instructions sent by the controller under test and receives power through the bus. The first judgment module is used to determine whether the power supply voltage to the echo signal simulation device on the bus meets the working voltage of the echo signal simulation device and / or to determine whether the voltage of the instruction on the bus meets the working voltage of the control unit. When the power supply voltage meets the working voltage of the echo signal simulation device and / or the voltage of the instruction meets the working voltage of the control unit, the instruction received by the echo signal simulation device is valid.
[0009] The above-mentioned power supply voltage complies with the working voltage of the echo signal simulation device, which means that the power supply voltage to the echo signal simulation device on the bus is within the voltage range that enables the echo signal simulation device to receive and process instructions; the voltage of the instruction complies with the working voltage of the control unit, which means that the voltage of the instruction is within the voltage range covering all instruction types of the controller under test.
[0010] In a possible implementation, the control unit includes: a decoding module, a response module, and an encoding module. The decoding module is used to decode valid instructions to obtain instruction information of the instructions, and the instruction information includes: the type of instruction; the response module is used to determine the response mode based on the instruction information, and receive the response parameters configured by the host computer, and then generate the response content according to the instruction information, the response mode, and the response parameters; the encoding module is used to encode based on the response content to obtain the response information, and the response information includes a check code calculated based on the response content by a preset algorithm, and the check code is used by the controller under test to verify whether the received echo signal is correct based on the same preset algorithm, wherein the echo signal refers to the modulation current with characteristic matching generated based on the response information.
[0011] In a possible implementation, the response module includes: a configuration submodule, a generation submodule, and a selection submodule. Among them, the configuration submodule is used to receive the response parameters configured by the host computer according to the instruction information, and the response parameters include: the echo data that the echo signal simulation device needs to respond to; the generation submodule is used to identify and record the type of instruction based on the instruction information, and determine whether it is necessary to respond to the instruction. If it is necessary to respond to the instruction, the response content is generated according to the response parameters; the selection submodule is used to determine the response mode according to the type of instruction, and send the response content to the encoding module in the selected response mode.
[0012] In one possible implementation, the response module also includes: a verification submodule, which is used to verify whether the instruction information is correct. When the instruction information is correct, the generation submodule receives the instruction information, identifies and records the type of instruction based on the instruction information, and determines whether a response to the instruction is required.
[0013] In a possible implementation, the output processing unit includes: a second conversion module and a third conversion module. The second conversion module is used to convert the response information into a voltage signal; the third conversion module is used to convert the voltage signal into a modulated current whose characteristics match the response information, and use the modulated current as an echo signal to respond to the instruction received by the echo signal simulation device.
[0014] On the other hand, an echo signal simulation method is provided. The echo signal simulation method is applied to a control unit of an echo signal simulation device as described in any of the above embodiments, and the echo signal simulation device further includes: an input processing unit and an output processing unit.
[0015] When the input processing unit converts the received instruction into a valid instruction with a voltage of the first voltage, and determines that the instruction is valid, the echo signal simulation method of the embodiment of the present disclosure includes: processing the valid instruction to obtain instruction information of the instruction, and generating response information based on the instruction information and the configured response parameters, so that the output processing unit converts the response information into a voltage signal, and generates a modulated current whose characteristics match the response information based on the voltage signal, and responds to the instruction received by the echo signal simulation device with the modulated current as an echo signal.
[0016] Specifically, the echo signal simulation device receives instructions sent by the controller under test and receives power through the bus. In this case, the situation where the instruction is judged to be valid includes: the input processing unit judges whether the power supply voltage of the echo signal simulation device on the bus meets the working voltage of the echo signal simulation device and / or judges whether the voltage of the instruction on the bus meets the working voltage of the control unit. When the power supply voltage meets the working voltage of the echo signal simulation device and / or the voltage of the instruction meets the working voltage of the control unit, the instruction received by the echo signal simulation device is valid. Among them, the power supply voltage meets the working voltage of the echo signal simulation device means that the power supply voltage of the echo signal simulation device on the bus is within the voltage range that enables the echo signal simulation device to receive and process the instruction; the voltage of the instruction meets the working voltage of the control unit means that the voltage of the instruction is within the voltage range covering all instruction types of the controller under test.
[0017] In one possible implementation, the steps of processing a valid instruction to obtain instruction information of the instruction, and generating response information based on the instruction information and the configured response parameters include: decoding the valid instruction to obtain the instruction information of the instruction, the instruction information including: the type of instruction; determining the response mode based on the instruction information, and receiving the response parameters configured by the host computer, and then generating the response content according to the instruction information, the response mode, and the response parameters; encoding based on the response content to obtain the response information, the response information including a verification code calculated based on the response content using a preset algorithm, and the verification code is used by the controller under test to verify whether the received echo signal is correct based on the same preset algorithm.
[0018] In one possible implementation, the steps of determining a response mode based on instruction information, receiving response parameters configured by a host computer, and then generating response content based on the instruction information, response mode, and response parameters include: verifying whether the instruction information is correct; if the instruction information is correct, receiving response parameters configured by the host computer according to the instruction information, the response parameters including: echo data that the echo signal simulation device needs to respond to; identifying and recording the type of instruction based on the instruction information, and determining whether a response to the instruction is required, and if a response to the instruction is required, generating response content based on the response parameters; determining a response mode based on the type of instruction, and responding to the above response content with the selected response mode.
[0019] On the other hand, a semi-physical simulation test system is provided, which includes: a controller under test, a host computer, and an echo signal simulation device as described in any of the above embodiments. Specifically, at least one echo signal simulation device is connected to the bus of the controller under test and is connected to the host computer, and is used to receive instructions issued by the controller under test and response parameters containing echo data configured by the host computer according to the instructions, and convert response information generated based on the instructions and the response parameters into a modulated current whose characteristics match the response information, and then respond to the controller under test with the modulated current as an echo signal.
[0020] The beneficial effects brought about by the technical solution provided by the present disclosure include at least: the echo signal simulation device and the echo signal simulation method of the embodiments of the present disclosure realize the simulation of the echo signal of the real ultrasonic sensor, so that the controller under test can treat the received current signal as the echo signal returned by the ultrasonic sensor for processing, thereby completing the semi-physical simulation test of the environmental perception of the controller under test.
[0021] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the detailed implementation section of this specification. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0023] Figure 1 The structural diagram of the semi-physical simulation test system of the embodiment of the present disclosure is exemplarily shown.
[0024] Figure 2 The structural diagram of the echo signal simulation device according to the embodiment of the present disclosure is exemplarily shown.
[0025] Figure 3 The structural diagram of the input processing unit of the embodiment of the present disclosure is exemplarily shown.
[0026] Figure 4 Another structural diagram of the input processing unit of an embodiment of the present disclosure is exemplarily shown.
[0027] Figure 5 The structural diagram of the control unit of the embodiment of the present disclosure is exemplarily shown.
[0028] Figure 6 The structural diagram of the response module of the embodiment of the present disclosure is exemplarily shown.
[0029] Figure 7 Another structural schematic diagram of the response module of the embodiment of the present disclosure is exemplarily shown.
[0030] Figure 8 The schematic diagram of the structure of the output processing unit of the embodiment of the present disclosure is exemplarily shown. DETAILED DESCRIPTION
[0031] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.
[0032] As used herein, the term "including" and its variations mean open inclusion, i.e., "including but not limited to". Unless otherwise stated, the term "or" means "and / or". The term "based on" means "based at least in part on". The terms "an example embodiment" and "an embodiment" mean "at least one example embodiment". The term "another embodiment" means "at least one additional embodiment". The terms "first", "second", etc. may refer to different or the same objects. Other explicit and implicit definitions may also be included below.
[0033] As mentioned above, with the update and iteration of ultrasonic sensor technology, more and more vehicles are beginning to use a new generation of sensors to improve the accuracy of the vehicle's perception of the surrounding environment, thereby shortening the refresh cycle of the vehicle's perception system. To this end, the vehicle's controller uses a communication chip corresponding to the sensor. In order to verify the function of these controllers, they need to be fully tested. Semi-physical simulation testing is one of the commonly used methods, among which the simulation equipment used to simulate the sensor function is the core of the test system. However, the existing simulation equipment is not suitable for the new generation of sensors.
[0034] Based on this, the embodiments of the present disclosure provide an echo signal simulation device, an echo signal simulation method and a semi-physical simulation test system, which can complete the semi-physical simulation test of a vehicle controller that uses a chip corresponding to a new generation of ultrasonic sensors.
[0035] Please see attached Figure 1 The embodiment of the present disclosure exemplarily shows a structural diagram of a semi-physical simulation test system. As shown in the figure, the test system includes: a controller under test 100, an echo signal simulation device 200, and a host computer 300 connected in sequence.
[0036] In the test system, the echo signal simulation device 200 is connected to the controller under test 100 through a bus, and is used to simulate the echo signal generated when the real ultrasonic sensor senses the environment. When there are multiple ultrasonic sensors that need to be simulated, there can also be multiple echo signal simulation devices 200 connected to the bus of the controller under test 100. These simulation devices 200 can be connected in parallel or in series on the bus, and these simulation devices 200 can be connected to the host computer 300 for communication. In an embodiment of the present disclosure, the echo signal simulation device 200 can receive the instruction issued by the controller under test 100, and the response parameter containing the echo data configured by the host computer 300 according to the instruction, and then generate response information according to the received instruction and the corresponding response parameter, and then convert the response information into a modulation current matching the characteristic and feedback it to the controller under test 100, as a response to the received instruction.
[0037] The following will be combined with the attached Figure 2 To Attachment Figure 8The echo signal simulation device 200 according to the embodiment of the present disclosure is exemplarily described.
[0038] Please refer to the attached Figure 2 The embodiment of the present disclosure exemplarily shows a schematic diagram of the structure of an echo signal simulation device 200, which is connected to the controller under test 100 and receives instructions issued by the controller under test 100. As shown in the figure, the echo signal simulation device 200 includes: an input processing unit 210, a control unit 220, and an output processing unit 230 connected in sequence.
[0039] Among them, the input processing unit 210 is used to perform voltage conversion on the received instructions to obtain valid instructions that can be received by the control unit 220. The control unit 220 receives the valid instructions and processes them to obtain the instruction information contained in the instructions issued by the controller under test 100. The control unit 220 is also used to generate response information based on the instruction information and the configured response parameters. The output processing unit 230 is used to generate a modulated current whose characteristics match the response information based on the above response information. The echo signal simulation device 200 of the embodiment of the present disclosure uses the current signal as an echo signal to respond to the instruction issued by the controller under test 100.
[0040] In practical applications, the ultrasonic sensor is connected to the controller through a bus, receives the measurement instructions of the controller and starts a new measurement sequence, and analyzes the measurement data to determine the echo information of the obstacle, and then feeds back the relevant information to the controller. The echo signal simulation device 200 of the embodiment of the present disclosure is intended to simulate the function of the ultrasonic sensor. It can communicate with the controller under test 100 based on the communication protocol between the real ultrasonic sensor and the controller, such as parsing the instructions issued by the controller under test 100 and responding to the corresponding data. The control unit 220 in the echo signal simulation device 200 of the embodiment of the present disclosure can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices. The instructions of the controller under test 100 are issued in the form of voltage, and usually the voltage signal cannot be directly processed by the control unit 220 with signal processing capabilities. Therefore, the echo signal simulation device 200 of the embodiment of the present disclosure is provided with an input processing unit 210, which is used to pre-process the instructions output by the controller under test 100, and the specific processing method is voltage conversion, so as to obtain effective instructions that can be received and processed by the control unit 220. Correspondingly, the response information generated by the control unit 220 also needs to be processed by the output processing unit 230 before being output to the controller under test 100. In this way, the echo signal simulation device 200 of the embodiment of the present disclosure realizes the simulation of the process of the ultrasonic sensor detecting obstacles and feeding back obstacle-related information to the controller under test 100, that is, the echo signal simulation device 200 of the embodiment of the present disclosure can realize the semi-physical simulation test of the controller under test 100.
[0041] Please see attached Figure 3 , the embodiment of the present disclosure exemplarily shows a schematic diagram of the structure of the input processing unit 210. As shown in the figure, the input processing unit 210 includes: a first conversion module 211, whose input end is connected to the controller under test 100, and whose output end is connected to the input end of the control unit 220.
[0042] The first conversion module 211 is used to convert the voltage of the instruction received by the echo signal simulation device 200 into a first voltage to obtain a valid instruction. For example, considering the stability and reliability of bus communication, the vehicle controller is usually designed to output a voltage signal of 5V. However, taking the control unit 220 as an example, the FPGA device is usually capable of processing a 3.3V voltage signal. Therefore, the instruction issued by the controller 100 under test needs to be converted from 5V to 3.3V through the first conversion module 211.
[0043] Please refer to the attached Figure 4 , the embodiment of the present disclosure exemplarily shows another structural schematic diagram of the input processing unit 210. As shown in the figure, the input processing unit 210 also includes: a first judgment module 212, whose input end is connected to the bus between the echo signal simulation device 200 and the controller under test 100, and whose output end is connected to the input end of the control unit 220.
[0044] The first judgment module 212 is used to judge whether the instruction received by the echo signal simulation device 200 is valid. If it is judged that the received instruction is valid, the input processing unit 210 can send an indication signal to the control unit 220 so that the control unit 220 can process the valid instruction after voltage conversion.
[0045] As mentioned above, the echo signal simulation device 200 receives instructions sent by the controller under test 100 and receives power through the bus. In one possible implementation, multiple echo signal simulation devices 200 can be simultaneously set on the bus connected to the controller under test 100, and these echo signal simulation devices 200 can be connected to the bus in parallel or serially.
[0046] Then, the first determination module 212 can determine whether the instruction received by the echo signal simulation device 200 is valid in the following three situations.
[0047] When the power supply voltage for the target echo signal simulation device 200 collected by the first judgment module 212 on the bus meets the working voltage of the target echo signal simulation device 200, the instruction received by the target echo signal simulation device 200 is valid. It can be understood that the power supply voltage meets the working voltage of the echo signal simulation device 200 means that the power supply voltage collected by the first judgment module 212 is within the voltage range that enables the echo signal simulation device 200 to receive and process instructions.
[0048] Alternatively, when the voltage of the instruction for the target echo signal simulation device 200 collected by the first judgment module 212 on the bus meets the working voltage of the control unit 220 of the target echo signal simulation device 200, the instruction received by the target echo signal simulation device 200 is valid. The voltage of the instruction meets the working voltage of the control unit 220, which means that the voltage of the instruction collected by the first judgment module 212 is within the voltage range covering all instruction types of the controller 100 under test.
[0049] Alternatively, when the power supply voltage for the target echo signal simulation device 200 collected by the first judgment module 212 on the bus meets the operating voltage of the target echo signal simulation device 200, and the voltage of the collected instruction meets the operating voltage of the control unit 220 of the target echo signal simulation device 200, the instruction received by the target echo signal simulation device 200 is valid.
[0050] In some embodiments of the present disclosure, if it is determined that the received instruction is invalid, the first determination module 212 may also send an indication signal to the control unit 220 so that the control unit 220 does not process the valid instruction after voltage conversion. If it is determined that the received instruction is valid, the control unit 220 may assume that the instruction is valid and process the valid instruction, or wait for the indication signal and temporarily not process the valid instruction.
[0051] Please refer to the attached Figure 5 , the embodiment of the present disclosure exemplarily shows a schematic diagram of the structure of the control unit 220. As shown in the figure, the control unit 220 includes: a decoding module 221, a response module 222, and an encoding module 223. Among them, the input end of the decoding module 221 is connected to the output end of the input processing unit 210, the input end of the response module 222 is connected to the output end of the decoding module 221, and the output end is connected to the input end of the encoding module 223, and the output end of the encoding module 223 is connected to the input end of the output processing unit 230.
[0052] Specifically, the voltage of the effective instruction obtained by the voltage conversion of the input processing unit 210 meets the processing capacity of the control unit 220. After the control unit 220 receives the voltage signal, its decoding module 221 decodes the effective instruction to obtain the instruction information that the original instruction wants to transmit, and then transmits the instruction information to the next-level response module 222. Among them, the instruction information may include: the type of instruction. In some embodiments of the present disclosure, the type of instruction may include starting measurement, stopping measurement, writing and reading measurement configuration data, reading bus status, etc. Taking the start measurement command as an example, in actual application, the ultrasonic sensor starts the ultrasonic measurement cycle after detecting the start measurement command. In a measurement cycle, the sensor transmits data to the controller 100 under test through the bus. Therefore, the response module 222 of the embodiment of the present disclosure will determine the response mode based on the instruction information on the one hand, and on the other hand, it will receive the response parameters configured by the external host computer 300 to the response module 222, and then generate the response content corresponding to the instruction in combination with the instruction information and the response parameters.
[0053] Please refer to the attached Figure 6 In some embodiments of the present disclosure, the response module 222 may include: a configuration submodule 2221, a generation submodule 2222, and a selection submodule 2223. The input end of the generation submodule 2222 is respectively connected to the output end of the decoding module 221 and the output end of the configuration submodule 2221, the input end of the configuration submodule 2221 is connected to the host computer 300, the output end of the generation submodule 2222 is connected to the input end of the selection submodule 2223, and the output end of the selection submodule 2223 is connected to the input end of the encoding module 223.
[0054] In some embodiments of the present disclosure, the generation submodule 2222 can be used to identify the instruction information generated by the decoding module 221, so as to obtain and record the type of instruction issued by the controller under test 100. The configuration submodule 2221 is used to receive the response parameters configured by the host computer 300 according to the instruction information, wherein the response parameters refer to the echo data that the echo signal simulation device 200 needs to respond to the controller under test 100, which can include the basic configuration parameters of the simulated sensor, and the parameters selected and configured according to the type of instruction sent by the controller under test 100.
[0055] On the other hand, the generation submodule 2222 is also used to determine whether a response to the instruction is required based on the type of instruction. In some embodiments of the present disclosure, some types of instructions issued by the measured controller 100 require the echo signal simulation device 200 to execute and respond to data, such as the start measurement command. Therefore, for the echo signal simulation device 200 of the embodiment of the present disclosure, if the generation submodule 2222 recognizes that the instruction is of a type that requires a response, the response content will be generated according to the response parameters configured by the host computer 300 to the configuration submodule 2221. Exemplarily, the response content may include obstacle information, such as the position of the obstacle relative to the detection point, the size of the obstacle, the temperature conditions of the environment in which the obstacle is located, and other information.
[0056] The selection submodule 2223 is used to determine the response mode according to the type of instruction, and send the response content to the encoding module 223 in the selected response mode. In some embodiments of the present disclosure, the response mode may include a single response and a periodic response. Exemplarily, for an instruction of the type of start measurement, the echo signal simulation device 200 usually responds to the controller under test 100 in a response mode of periodic response.
[0057] It should be noted that the above response content needs to be encoded by the encoding module 223 and then transmitted to the output processing unit 230. Exemplarily, the encoding module 223 generates a set of binary numbers according to the response content, which can be converted into current codes, and each current code can have a corresponding current value. Further, the encoding module 223 converts these current values into digital quantities to obtain response information. The control unit 220 transmits the response information to the output processing unit 230, and the output processing unit 230 generates a current signal based on the response information of the above digital quantity as a response to the instruction issued by the controller under test 100. It should be noted that since the data may be wrong during the transmission process, in order to prevent the controller under test 100 from failing to work normally due to receiving erroneous data, the response information in the embodiment of the present disclosure includes a verification code, which is calculated by the decoding module 223 based on the above response content using a preset algorithm. When the controller under test 100 receives the echo signal, the same preset algorithm will be used to verify the signal to avoid receiving erroneous data.
[0058] Please see attached Figure 7 Based on the above embodiments, in some embodiments of the present disclosure, the response module 222 may further include: a check submodule 2224, whose input end is connected to the output end of the decoding module 221, and whose output end is connected to the input end of the generation submodule 2222.
[0059] The verification submodule 2224 is used to verify whether the instruction information is correct. The instruction information transmitted from the input processing unit 210 to the control unit 220 can be verified by the verification submodule 2224 to avoid data transmission errors. If the instruction information is correct, the generation submodule 2222 will receive the instruction information and identify and record the type of the instruction based on the instruction information.
[0060] Please refer to the attached Figure 8 , the embodiment of the present disclosure exemplarily shows a schematic diagram of the structure of the output processing unit 230. As shown in the figure, the output processing unit 230 includes: a second conversion module 231 and a third conversion module 232, wherein the input end of the second conversion module 231 is connected to the output end of the control unit 220, and the output end is connected to the input end of the third conversion module 232, and the output end of the third conversion module 232 is connected to the controller under test 100.
[0061] The second conversion module 231 is used to convert the digital quantity in the response information into a specific voltage value, and then obtain the corresponding voltage signal. Exemplarily, the second conversion module 231 can be a digital-to-analog conversion device, and the third conversion module 232 can be a controllable current source device, which is used to generate a modulated current whose characteristics match the response information according to the aforementioned voltage signal, and respond to the controller under test 100 with the modulated current as an echo signal, so as to serve as a response of the echo signal simulation device 200 to the instruction issued by the controller under test 100. Among them, the modulated current can transmit the information to be transmitted to the circuit, which can combine the basic signal with the carrier signal, and can achieve the purpose of transmitting different information by changing the characteristics of the signal, such as changing the frequency, amplitude or phase of the signal.
[0062] In summary, it can be seen that the echo signal simulation device 200 of the embodiment of the present disclosure can simulate the echo signal of a real ultrasonic sensor, so that the controller under test 100 can process the received current signal as an echo signal returned by the ultrasonic sensor, thereby completing the semi-physical simulation test related to environmental perception of the controller under test 100.
[0063] The following will exemplarily introduce the echo signal simulation method based on the echo signal simulation device 200 through embodiments.
[0064] It should be noted that the description of the echo signal simulation method in the embodiment of the present disclosure is similar to the description of the above-mentioned device embodiment, and has similar beneficial effects as the device embodiment. For technical details not disclosed in the method embodiment, please refer to the description of the device embodiment of the present disclosure for understanding.
[0065] The embodiment of the present disclosure shows an echo signal simulation method, which is implemented by the control unit 220 of the echo signal simulation device 200 described in any of the above embodiments. The echo simulation receives instructions sent by the controller under test 100 and receives power through the bus. When the input processing unit 210 converts the received instructions into valid instructions with a voltage of the first voltage and determines that the instructions are valid, the echo signal simulation method includes the following steps.
[0066] Step 1: Process the valid instruction to obtain the instruction information of the instruction, and generate response information based on the instruction information and the configured response parameters, so that the output processing unit 230 converts the response information into a voltage signal, and generates a modulated current whose characteristics match the response information based on the voltage signal, and uses the modulated current as an echo signal to respond to the instruction received by the echo signal simulation device 200.
[0067] As mentioned above, the received instruction can be judged to be valid in the following cases.
[0068] When the power supply voltage for the target echo signal simulation device 200 collected by the first judgment module 212 on the bus meets the working voltage of the target echo signal simulation device 200, the instruction received by the target echo signal simulation device 200 is valid; or, when the voltage of the instruction for the target echo signal simulation device 200 collected by the first judgment module 212 on the bus meets the working voltage of the control unit 220 of the target echo signal simulation device 200, the instruction received by the target echo signal simulation device 200 is valid; or, when the power supply voltage for the target echo signal simulation device 200 collected by the first judgment module 212 on the bus meets the working voltage of the target echo signal simulation device 200, and the voltage of the collected instruction meets the working voltage of the control unit 220 of the target echo signal simulation device 200, the instruction received by the target echo signal simulation device 200 is valid.
[0069] Among them, the power supply voltage on the bus conforms to the working voltage of the echo signal simulation device 200, which means that the power supply voltage on the bus is within a voltage range that enables the echo signal simulation device 200 to receive and process instructions; the voltage of the instruction conforms to the working voltage of the control unit 220, which means that the voltage of the instruction is within a voltage range that covers all instruction types of the controller 100 under test.
[0070] In some embodiments of the present disclosure, the above step 1 may include.
[0071] Step 11: Decode the valid instruction to obtain instruction information of the instruction, where the instruction information includes: the type of instruction.
[0072] Step 12: Determine the response mode based on the instruction information, receive the response parameters configured by the host computer 300, and then generate the response content according to the instruction information, the response mode, and the response parameters.
[0073] Step 13: Encode based on the response content to obtain response information.
[0074] Specifically, the response information includes a verification code calculated based on the response content using a preset algorithm, and the verification code is used by the controller under test 100 to verify the echo signal it receives. It should be noted that since data may be erroneous during transmission, in order to prevent the controller under test 100 from failing to work normally due to receiving erroneous data, the response information in the embodiment of the present disclosure includes a verification code, which is calculated by the decoding module 223 based on the aforementioned response content using a preset algorithm. When the controller under test 100 receives the echo signal, the same preset algorithm will be used to verify the signal to avoid receiving erroneous data.
[0075] In some embodiments of the present disclosure, the above step 12 may include.
[0076] Step 121: Verify whether the instruction information is correct.
[0077] Step 122: When the instruction information is correct, the response parameters configured by the host computer 300 according to the instruction information are received, and the response parameters include: the echo data that the echo signal simulation device 200 needs to respond to.
[0078] Step 123: Identify and record the type of instruction based on the instruction information, and determine whether a response to the instruction is required. If a response to the instruction is required, generate response content based on the echo data.
[0079] Step 124: Determine a response mode according to the type of the instruction, and respond to the above response content with the selected response mode.
[0080] As mentioned above, the above method can be implemented by the control unit 220 in the echo signal simulation device 200 of the embodiment of the present disclosure. The control unit 220 can be an integrated circuit chip that has the ability to process signals, such as a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices. It should be understood that in the implementation process, the steps of the above method embodiment can be completed by the hardware integrated logic circuit or software instructions in the control unit 220. The steps of the method disclosed in the embodiment of the present disclosure can be directly executed by the hardware decoding processor, or by the combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
[0081] The memory in the embodiments of the present disclosure may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus random access memory (DR RAM). It should be noted that the memory of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0082] Various embodiments of the present disclosure have been described above, but it should be understood that the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Without departing from the scope and spirit of the described embodiments, any modifications, equivalent substitutions, improvements, etc. made by ordinary technicians in this technical field should be included in the scope of protection of this disclosure. The selection of terms used in this article is intended to best explain the principles, practical applications or technical improvements in the market of each embodiment, or to enable other ordinary technicians in this technical field to understand the various embodiments disclosed herein.
Claims
1. An echo signal simulation device, It is characterized in that The echo signal simulation device comprises: an input processing unit, a control unit, and an output processing unit; The input processing unit is used to perform voltage conversion on the received instructions to obtain valid instructions that can be received by the control unit; The control unit is used to process the valid instruction to obtain instruction information of the instruction, and generate response information based on the instruction information and the configured response parameters; The output processing unit is used to generate a modulation current with matching characteristics based on the response information as a response to the instruction; wherein, The input processing unit includes: a first conversion module and a first judgment module; The first judging module is used to judge whether the received instruction is valid; The first conversion module is used to convert the voltage of the received instruction into a first voltage to obtain the valid instruction; If the first judgment module determines that the instruction is invalid, an instruction indicating not to process the valid instruction is sent to the control unit, so that the control unit does not process the valid instruction; If the first judgment module determines that the instruction is valid, the control unit is caused to process the valid instruction, wherein the process of causing the control unit to process the valid instruction includes: the first judgment module sends an instruction indicating processing the valid instruction to the control unit, so that the control unit processes the valid instruction, or the control unit processes the valid instruction by default when not receiving the instruction sent by the first judgment module; The echo signal simulation device receives the instruction sent by the tested controller and receives power through the bus, and the first judgment module is used to judge whether the power supply voltage of the echo signal simulation device on the bus meets the working voltage of the echo signal simulation device and / or judge whether the voltage of the instruction on the bus meets the working voltage of the control unit, when the power supply voltage meets the working voltage of the echo signal simulation device and / or the voltage of the instruction meets the working voltage of the control unit, the instruction received by the echo signal simulation device is valid; The power supply voltage conforms to the working voltage of the echo signal simulation device, which means that the power supply voltage to the echo signal simulation device on the bus is within a voltage range that enables the echo signal simulation device to receive and process the instruction; the voltage of the instruction conforms to the working voltage of the control unit, which means that the voltage of the instruction is within a voltage range that covers all instruction types of the controller under test.
2. The echo signal simulation device according to claim 1, It is characterized in that The control unit includes: a decoding module, a response module, and an encoding module; The decoding module is used to decode the valid instruction to obtain instruction information of the instruction, and the instruction information includes: the type of the instruction; The response module is used to determine the response mode based on the instruction information, and receive the response parameters configured by the host computer, and then generate the response content according to the instruction information, the response mode, and the response parameters; The encoding module is used to encode based on the response content to obtain the response information, and the response information includes a verification code calculated based on the response content using a preset algorithm. The verification code is used by the controller under test to verify whether the received echo signal is correct based on the preset algorithm, wherein the echo signal refers to a modulation current with characteristic matching generated based on the response information.
3. The echo signal simulation device according to claim 2, It is characterized in that The response module includes: a configuration submodule, a generation submodule, and a selection submodule; The configuration submodule is used to receive the response parameters configured by the host computer according to the instruction information, and the response parameters include: the echo data that the echo signal simulation device needs to respond to; The generating submodule is used to identify and record the type of the instruction based on the instruction information, and determine whether it is necessary to respond to the instruction. If it is necessary to respond to the instruction, the response content is generated according to the response parameter; The selection submodule is used to determine the response mode according to the type of the instruction, and send the response content to the encoding module in the selected response mode.
4. The echo signal simulation device according to claim 3, It is characterized in that The response module also includes: a check submodule; The verification submodule is used to verify whether the instruction information is correct. When the instruction information is correct, the generation submodule receives the instruction information, identifies and records the type of the instruction based on the instruction information, and determines whether a response to the instruction is required.
5. The echo signal simulation device according to claim 1, It is characterized in that The output processing unit includes: a second conversion module and a third conversion module; The second conversion module is used to convert the response information into a voltage signal; The third conversion module is used to convert the voltage signal into a modulated current whose characteristics match the response information, and use the modulated current as an echo signal to respond to the instruction received by the echo signal simulation device.
6. A method for simulating an echo signal, It is characterized in that The echo signal simulation method is applied to the control unit of the echo signal simulation device according to any one of claims 1 to 5, wherein the echo signal simulation device further comprises: an input processing unit and an output processing unit; In the case where the input processing unit converts the received instruction into a valid instruction whose voltage is a first voltage, and determines that the instruction is valid, the method includes: The valid instruction is processed to obtain instruction information of the instruction, and response information is generated based on the instruction information and the configured response parameters, so that the output processing unit converts the response information into a voltage signal, and generates a modulated current whose characteristics match the response information based on the voltage signal, and responds to the instruction received by the echo signal simulation device with the modulated current as an echo signal; the echo signal simulation device receives the instruction sent by the controller under test through a bus and receives power supply, and the situation in which the instruction is judged to be valid includes: The input processing unit determines whether the power supply voltage of the echo signal simulation device on the bus meets the working voltage of the echo signal simulation device and / or determines whether the voltage of the instruction on the bus meets the working voltage of the control unit. When the power supply voltage meets the working voltage of the echo signal simulation device and / or the voltage of the instruction meets the working voltage of the control unit, the instruction received by the echo signal simulation device is valid; wherein, The power supply voltage conforms to the working voltage of the echo signal simulation device, which means that the power supply voltage to the echo signal simulation device on the bus is within a voltage range that enables the echo signal simulation device to receive and process the instruction; the voltage of the instruction conforms to the working voltage of the control unit, which means that the voltage of the instruction is within a voltage range that covers all instruction types of the controller under test.
7. The echo signal simulation method according to claim 6, It is characterized in that The steps of processing the valid instruction to obtain instruction information of the instruction, and generating response information based on the instruction information and the configured response parameters include: Decoding the valid instruction to obtain instruction information of the instruction, the instruction information including: the type of the instruction; Determine a response mode based on the instruction information, receive the response parameters configured by the host computer, and then generate response content according to the instruction information, the response mode, and the response parameters; Encoding is performed based on the response content to obtain the response information, wherein the response information includes a verification code calculated based on the response content using a preset algorithm, and the verification code is used by the controller under test to verify whether the received echo signal is correct based on the preset algorithm.
8. The echo signal simulation method according to claim 7, It is characterized in that The step of determining a response mode based on the instruction information, receiving a response parameter configured by a host computer, and then generating a response content according to the instruction information, the response mode, and the response parameter comprises: Verify whether the instruction information is correct; In the case where the instruction information is correct, receiving the response parameters configured by the host computer according to the instruction information, the response parameters including: echo data that the echo signal simulation device needs to respond to; Identify and record the type of the instruction based on the instruction information, and determine whether a response to the instruction is required, and if a response to the instruction is required, generate the response content according to the response parameter; The response mode is determined according to the type of the instruction, and the response content is responded to in the selected response mode.
9. A semi-physical simulation test system, It is characterized in that The semi-physical simulation test system comprises: a controller under test, a host computer, and at least one echo signal simulation device according to any one of claims 1 to 5; At least one of the echo signal simulation devices is connected to the bus of the controller under test and to the host computer, and is used to receive instructions issued by the controller under test and response parameters containing echo data configured by the host computer according to the instructions, and convert response information generated based on the instructions and the response parameters into a modulated current having characteristics matching the response information, and then respond to the controller under test with the modulated current as an echo signal.
Citation Information
Patent Citations
FPGA-based expressway vehicle multi-array-element radar echo simulator and implementation method
CN111123222A
Ultrasonic ranging method and device
CN111624609A
Ultrasonic simulation board card for simulation test and signal processing method
CN116360293A
Domain controller parking function test system based on DSI3 protocol
CN118466469A
Flow simulator of ultrasonic flowmeter
CN209131799U
