Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to" determining "or" in response to detecting ". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
The vehicle detection method provided by the embodiment of the application can be applied to terminal devices such as RSU (road Side Unit), and the like, and the embodiment of the application does not limit the specific types of the terminal devices.
In recent years, although vehicle detection technologies are widely popularized and developed to a certain extent, the existing vehicle detection technologies still mainly detect various running states of vehicles by holding vehicle detection equipment by workers, so that a large amount of manpower and material resources are consumed, and the problems of high detection cost and low efficiency are caused to a certain extent. In order to solve the problem, the application provides a vehicle detection method, a vehicle detection device, a terminal device and a computer readable storage medium, when a vehicle is detected to reach a preset detection area, the OBU is subjected to function self-detection and performance detection based on communication between the RSU and the OBU, the vehicle detection efficiency and precision are improved, and normal operation of the vehicle is guaranteed.
To implement the technical solution proposed in the present application, a vehicle detection system 100 may be constructed first. Referring to fig. 1, the vehicle detection system is composed of more than one RSU101 (only 1 is shown in fig. 1), a position detection device 102, a vehicle (the vehicle is equipped with an OBU), a display device 103 and a detection device 104, and the RSUs are respectively connected with the position detection device 102, the OBU, the display device 103 and the detection device 104 in a communication manner.
The position detecting device 102 is a sensing device for detecting a position of the vehicle and determining whether the vehicle reaches a predetermined detection area, and is generally set in front of the predetermined detection area. The RSU is a terminal device for transmitting a detection command to the OBU and receiving detection data and a detection result returned from the OBU, and is generally set in a preset detection area. An OBU (On board Unit) is a microwave device that communicates with an RSU using dsrc (dedicated Short Range communication) technology. The display device 103 is used for displaying the detection result and/or prompt information. The detection device 104 is configured to store the detection data and the detection result, and generate corresponding prompt information when the detection result does not meet a preset requirement.
During the driving of the vehicle, when detecting that the vehicle reaches the preset detection area, the position detection device 102 sends notification information that the vehicle reaches the preset detection area to the RSU 101; when determining that the vehicle reaches a preset detection area, the RSU101 sends a detection instruction to the OBU and receives corresponding detection data and a detection result; when the OBU receives the detection instruction, the OBU executes a corresponding detection program based on the detection instruction, and sends corresponding detection data to the RSU101, and the RSU101 sends the detection data and the detection result to the detection device 104, and sends the detection result to the display device 103 for display.
In order to explain the technical solution proposed in the present application, the following description will be given by way of specific examples.
Example one
Fig. 2 shows a schematic flow chart of a vehicle detection method provided by the present application, which may be applied to the RSU described above by way of example and not limitation, the RSU being in communication with the OBU.
S101, when the vehicle is detected to reach a preset detection area, sending a function self-checking instruction to the OBU, and receiving a function self-checking result returned by the OBU.
Specifically, the RSU may include, but is not limited to, a controller and an antenna box (the RSU antenna box is configured to be installed in front of the vehicle to be tested, specifically, side-mounted or top-mounted), the antenna box is in communication connection with the controller, and the antenna box is used for communication with the OBU; the controller is in communication connection with the position detection device 102 and the detection equipment 104, and is configured to generate a functional self-test command and a performance detection command.
Specifically, when the vehicle sent by the position detection device (the position detection device 102 is installed in front of the preset detection area and can be set as side-mounted or top-mounted) in communication connection with the RSU reaches the prompt message of the preset detection area, a function self-check instruction is generated and sent to the OBU, so that the OBU performs function detection according to the function self-check instruction, and receives a function self-check result returned by the OBU. The function self-checking instruction is a control instruction for controlling the OBU to execute a corresponding function detection program. The position detection device includes, but is not limited to, a positioning radar, a camera, a magnetic induction coil detection device or an infrared detection device, and can acquire position information of a vehicle near a preset detection area in real time and trigger communication between the RSU and an OBU in the vehicle when the vehicle is detected to reach the preset detection area.
Specifically, a function self-test instruction sent to the OBU is set, or a function self-test result returned by the OBU is specifically in a frame form.
Table 1 exemplarily provides a functional self-test instruction and contents included in a functional self-test result.
TABLE 1 content of function self-check and content of function self-check
S102, when detecting that the function self-checking result is successful, sending a performance detection instruction to the OBU, receiving performance detection data returned by the OBU, and determining a performance detection result based on the performance detection data.
Specifically, when detecting that the function self-checking result returned by the OBU is successful, determining that the working state of the OBU is a normal state, generating a performance detection instruction and sending the performance detection instruction to the OBU, so that the OBU performs corresponding performance detection based on the performance detection instruction, receiving performance detection data returned by the OBU, and determining a corresponding performance detection result based on the performance detection data. The performance detection instruction is a control instruction for controlling the OBU to execute corresponding performance detection and radio frequency parameter calibration.
And S103, generating a vehicle detection result based on the function self-detection result and the performance detection result.
Specifically, when the functional self-test result is detected to be successful and the performance detection result is in a normal state, a detection result that the vehicle is in a normal working state is generated and displayed through the display device. Otherwise, when the function self-checking result is detected to be a detection failure, the detection program of the OBU is terminated, prompt information of the function failure of the OBU is generated and displayed through the display device, and therefore a user is prompted to carry out detection and maintenance on the OBU. Or when the performance detection result is detected to be detection failure, the performance fault of the OBU is judged, the detection result is sent to the detection equipment, and the detection equipment generates performance fault prompt information and displays the performance fault prompt information through the display device so as to prompt a user to further detect and calibrate the performance parameters of the OBU.
As shown in figure 3, in one embodiment, the RSU and OBU communicate based on a DSRC extension protocol;
the communication process between the RSU and the OBU comprises the following steps:
sending a test frame to the OBU, and receiving a response frame which is returned by the OBU and corresponds to the test frame;
sending a test instruction to the OBU, and receiving a test result corresponding to the test instruction and returned by the OBU;
and sending a transmission request to the OBU, and receiving a transmission response corresponding to the transmission request returned by the OBU.
Specifically, when the RSU communicates with the OBU in the vehicle mainly based on the DSRC extension protocol, the corresponding communication procedure includes: the RSU sends a test frame BST to the OBU in a broadcasting mode and receives a response frame VST which is returned by the OBU and corresponds to the test frame; then the RSU sends a test instruction to the OBU, and receives a test result corresponding to the test instruction and returned by the OBU; finally, the RSU sends a transfer request (transfer channel.rq) to the OBU and receives a transfer response (transfer channel.rs) corresponding to the transfer request from the OBU.
In one embodiment, the performance detection instructions comprise radio frequency performance detection instructions;
the sending of the performance detection instruction to the OBU, the receiving of the performance detection data returned by the OBU, and the determining of the performance detection result based on the performance detection data include:
sending a radio frequency performance detection instruction to the OBU, and acquiring radio frequency performance detection data returned by the OBU;
determining a sensitivity and a transmit power of the OBU based on the radio frequency performance detection data;
comparing the sensitivity with a preset sensitivity range, and comparing the transmitting power with a preset transmitting power range;
when the sensitivity is detected not to be in the preset sensitivity range, adjusting the sensitivity based on the preset sensitivity range until the sensitivity is in the preset sensitivity range;
when the transmitting power is detected not to be in the preset transmitting power range, adjusting the transmitting power based on the preset transmitting power range until the transmitting power is in the preset transmitting power range, and generating a corresponding radio frequency performance detection result based on the sensitivity and the transmitting power.
Specifically, the radio frequency performance detection instruction comprises a plurality of power wake-up data frames, a sleep frame and a power test frame. And when the function self-checking result is detected to be successful, sending an awakening data frame under the first power to the OBU in a preset time length, receiving a test response frame returned by the OBU when the OBU is awakened, if the test response frame is not received, enhancing the first power, sending the awakening data frame under the enhanced first power to the OBU in the preset time length, continuously enhancing the transmitting power of the awakening data frame until the test response frame is received, and recording the transmitting power at the moment as a first target power B1. The preset time length can be specifically set according to actual requirements, for example, the preset time length is set to be 5 s.
Specifically, when a test response frame is received, a sleep frame is sent to the OBU, so that the OBU enters a sleep state, the sequence of wakeup data frames at a first target power, wakeup data frames at a second power and wakeup data frames at a third power is set to be sent to the OBU one by one (the third power is greater than the second power, and the second power is greater than the first target power) at intervals of a preset duration until the test response frame is received, the transmission power at the moment is recorded as a second target power B2, and the operation of transmitting the wakeup data frames at different powers to the OBU is returned to be executed, so that a plurality of target powers B1, B2, B3. And determining an average value of the target powers, and obtaining sensitivity corresponding to the average value as a sensitivity value of the OBU based on a corresponding table of the transmitting power and the receiving sensitivity. When the sensitivity value is detected to be smaller than the minimum value of a preset sensitivity range, sending a sensitivity enhancement instruction to enhance the sensitivity until the sensitivity is larger than or equal to the minimum value of the preset sensitivity range; and when detecting that the sensitivity value is larger than the maximum value of the preset sensitivity range, sending a sensitivity reduction instruction, reducing the sensitivity until the sensitivity is smaller than the maximum value of the preset sensitivity range, and sending a wakeup data frame again when receiving a wakeup calibration completion frame returned by the OBU to confirm that the sensitivity of the OBU is in the preset sensitivity range.
Specifically, after confirming that the sensitivity of the OBU is within the preset sensitivity range, a power test frame is sent to the OBU for a preset time length, a response signal (including but not limited to a single-peak signal, an all-0 signal, an all-1 signal and/or a PN9 signal) periodically returned by the OBU is received, the RSSI of the response signal is detected, and the transmission power D corresponding to the response signal is determined by averaging or based on a comparison table of the preset response signal and the transmission frequency. When the transmitting power value is detected to be smaller than the minimum value of a preset transmitting power range, transmitting a transmitting power enhancing instruction, and enhancing the transmitting power until the transmitting power is larger than or equal to the minimum value of the preset transmitting power range; when the transmission power value is detected to be larger than the maximum value of a preset transmission power range, a transmission power reduction instruction is sent, the transmission power is reduced until the transmission power is smaller than the maximum value of the preset transmission power range, when a transmission power modification confirmation instruction returned by the OBU is received, a power test frame is sent again, after the transmission power of the OBU is confirmed to be in the preset transmission power range, the radio frequency parameter is judged to meet the corresponding preset parameter range, and a corresponding radio frequency performance detection result is generated to be successful detection. Otherwise, generating a corresponding radio frequency performance detection result as a detection failure.
Table 2 exemplarily provides a radio frequency performance test instruction and contents included in the radio frequency performance test result.
Table 2 contents of the rf performance test command and contents of the rf performance test result
In one embodiment, the performance detection instructions comprise bluetooth performance detection instructions;
the sending of the performance detection instruction to the OBU, and the receiving of the performance detection result returned by the OBU, include:
sending a Bluetooth performance detection instruction to the OBU;
when detecting that the Bluetooth equipment of the OBU is started, establishing pairing connection with the Bluetooth equipment, and receiving Bluetooth test data sent by the Bluetooth equipment;
and generating a corresponding Bluetooth performance detection result based on the Bluetooth test data.
Specifically, when the function self-checking result is detected to be successful, a bluetooth performance detection instruction is sent to the OBU, after the OBU is detected to be started and initialize the bluetooth device, a pairing connection relation between the bluetooth device and the OBU is established, bluetooth test data sent by the bluetooth device is received, when the bluetooth test data is detected to be the same as preset test data, a corresponding bluetooth performance detection result is generated to be successful, otherwise, when the test data is detected to be different from the preset test data, the corresponding bluetooth performance detection result is generated to be failed.
It can be understood that, when it is detected that the pairing connection relationship cannot be established with the bluetooth device, a corresponding bluetooth performance detection result is also generated as a detection failure. The preset detection data can be specifically set according to actual requirements.
Specifically, the bluetooth performance detection instruction sent to the OBU, or the bluetooth test response data (such as bluetooth test data) returned by the OBU is set to be specifically in the form of a frame.
Table 3 exemplarily provides a bluetooth performance test command and contents included in the bluetooth test response data.
TABLE 3 Bluetooth test instruction content sent by RSU and Bluetooth test response data content returned by OBU
In one embodiment, after sending a self-function test instruction to the OBU and receiving a self-function test result returned by the OBU when the vehicle is detected to reach the preset detection area, the method includes:
and when the functional self-checking result is detected to comprise normal working voltage, normal chip circuit and normal communication interface, judging that the functional self-checking result is successful.
Specifically, the function self-checking operation of the OBU includes detecting whether the working voltage is within a preset working voltage range, detecting whether a chip circuit state is in a normal state, and detecting whether a working state of the communication interface is in a normal working state. Correspondingly, when the functional self-checking result is detected to include that the working voltage, the chip circuit state and the communication interface are normal, judging that the functional self-checking result is successful; otherwise, judging the function self-checking result as the detection failure.
According to the embodiment, through communication between the RSU and the OBU, function self-checking and performance detection based on the OBU are achieved, and a corresponding vehicle detection result is obtained, so that the detection cost and the detection time are reduced, and the detection efficiency and the detection precision are improved.
Example two
Fig. 4 shows a schematic flow diagram of a vehicle detection method provided herein, which may be applied, by way of example and not limitation, to the OBU described above, which is communicatively connected to the RSU.
S201, when a function self-checking instruction is received, checking is carried out based on the function self-checking instruction, and a corresponding function self-checking result is obtained and sent to the RSU.
Specifically, when a function self-test instruction sent by the RSU is received, a function self-test operation is executed based on the function self-test instruction, and a corresponding function self-test result is obtained and sent to the RSU. The function self-checking operation comprises detecting whether the working voltage is within a preset working voltage range, detecting whether the circuit state of the chip is in a normal state, and detecting whether the working state of the communication interface is in a normal working state.
S202, when a performance detection instruction is received, detecting based on the performance detection instruction to obtain corresponding performance detection data and sending the performance detection data to the RSU, so that the RSU generates a performance detection result based on the performance detection data.
Specifically, when a performance detection instruction sent by the RSU is received, a performance detection operation is performed based on the performance detection instruction to obtain corresponding performance detection data and send the corresponding performance detection data to the RSU, so that the RSU generates a corresponding performance detection result based on the performance detection data. The performance detection command includes, but is not limited to, a radio frequency performance detection command and a bluetooth performance detection command. The radio frequency performance detection instruction is an instruction which is sent by the RSU and used for controlling the OBU to detect radio frequency parameters and calibrate the radio frequency parameters; the Bluetooth performance detection instruction is an instruction which is sent by the RSU and used for controlling the OBU to detect the Bluetooth function.
In one embodiment, when receiving a functional self-test instruction, the detecting based on the functional self-test instruction to obtain a corresponding functional self-test result and send the result to the RSU includes:
acquiring a working voltage, and detecting whether the working voltage is within a preset working voltage range;
when the working voltage is detected to be within a preset working voltage range, acquiring the circuit state of a chip;
when the chip circuit state is detected to be a normal state, detecting the working state of a communication interface;
and generating a corresponding function self-checking result when the working state of the communication interface is detected to be in a normal working state.
Specifically, the working voltage at the current moment is obtained, and the working voltage is compared with a preset working voltage range (including a maximum working voltage and a minimum working voltage) to determine whether the working voltage is within the preset working voltage range; when the working voltage is detected to be greater than or equal to the minimum working voltage and less than the maximum working voltage, judging that the working voltage is in a preset working voltage range and acquiring the state of a chip circuit; when the circuit state of the chip is detected to be that the circuit is intact and not damaged and the voltage and current work is stable, the circuit state of the chip is judged to be a normal state and the working state of the communication interface is detected; when detecting that the data transmission of the communication interface is normal, judging that the working state of the communication interface is in a normal working state, and generating a corresponding function self-checking result as successful detection; otherwise, when the working voltage is detected not to be within the preset working voltage range, the chip circuit state is that the circuit is damaged, the chip circuit voltage and current work is unstable, and one or more of data transmission abnormity of the communication interface is detected, a corresponding function self-checking result is generated to be detection failure.
In one embodiment, the performance detection instructions comprise radio frequency performance detection instructions;
when receiving a performance detection instruction, performing detection based on the performance detection instruction to obtain corresponding performance detection data and sending the performance detection data to the RSU, so that the RSU generates a performance detection result based on the performance detection data, including:
when the radio frequency performance detection instruction is received, determining sensitivity and transmission power based on the performance detection instruction and sending the sensitivity and the transmission power to the RSU;
adjusting the sensitivity based on a sensitivity adjustment instruction sent by the RSU, and sending the sensitivity to the RSU when the sensitivity is within a preset sensitivity range;
and adjusting the transmitting power based on a transmitting power adjusting instruction sent by the RSU until the transmitting power is within a preset transmitting power range, and sending the transmitting power to the RSU so that the RSU generates a corresponding radio frequency performance detection result based on the sensitivity and the transmitting power.
Specifically, the performance detection instructions include, but are not limited to, radio frequency performance detection instructions; the radio frequency performance detection instructions include, but are not limited to, a wake up data frame, a sleep frame, and a power test frame for a plurality of powers. The sensitivity adjustment instruction comprises but is not limited to a sensitivity enhancement instruction and a sensitivity reduction instruction, and the transmission power adjustment instruction comprises but is not limited to a transmission power enhancement instruction and a transmission power reduction instruction; when a radio frequency performance detection instruction sent by the RSU is received, determining the sensitivity and the transmitting power of the current moment based on data frames such as a wake-up data frame and a power test frame included in the radio frequency performance detection instruction, and sending the data frames to the RSU; when a sensitivity enhancement instruction sent by the RSU is received and the sensitivity is enhanced until the sensitivity is within a preset sensitivity range, sending the adjusted sensitivity to the RSU; or when the sensitivity is reduced until the sensitivity is within the preset sensitivity range when receiving the sensitivity reduction instruction sent by the RSU, sending the adjusted sensitivity to the RSU.
Specifically, when a transmission power enhancement instruction sent by the RSU is received, the adjusted transmission power is sent to the RSU when the transmission power is enhanced until the transmission power is within a preset transmission power range, or when a transmission power reduction instruction sent by the RSU is received, the adjusted transmission power is sent to the RSU when the transmission power is reduced until the transmission power is within the preset transmission power range. It can be understood that, for a specific process of performing performance detection based on the radio frequency performance detection instruction, reference may be made to the related description of the first embodiment, and details are not described herein again.
By way of example and not limitation, the performance detection data sent to the RSU includes, but is not limited to, an adjusted sensitivity and an adjusted transmit power.
In one embodiment, the performance detection instructions comprise bluetooth performance detection instructions;
when receiving a performance detection instruction, performing detection based on the performance detection instruction to obtain corresponding performance detection data and sending the performance detection data to the RSU, so that the RSU generates a performance detection result based on the performance detection data, including:
starting the Bluetooth equipment and initializing when the Bluetooth performance detection instruction is received;
and establishing pairing connection with the RSU, and sending Bluetooth test data to enable the RSU to generate a corresponding Bluetooth performance detection result based on the Bluetooth test data.
Specifically, the performance detection instructions include, but are not limited to, bluetooth performance detection instructions; starting the Bluetooth equipment and initializing when receiving a Bluetooth performance detection instruction sent by the RSU; and establishing pairing connection with the RSU, and sending the Bluetooth test data to enable the RSU to generate a corresponding Bluetooth performance detection result based on the Bluetooth test data.
In one embodiment, the OBU communicates with the RSU based on a DSRC extension protocol;
the communication process between the OBU and the RSU comprises the following steps:
when receiving a test frame sent by the RSU, returning a response frame corresponding to the test frame;
when a test instruction sent by the RSU is received, returning a test result corresponding to the test instruction;
and when receiving the transmission request sent by the RSU, returning a transmission response corresponding to the transmission request.
Specifically, the specific communication process between the OBU and the RSU may refer to the description related to the first embodiment, and is not described herein again.
According to the embodiment, through communication between the RSU and the OBU, function self-checking and performance detection based on the OBU are achieved, and a corresponding vehicle detection result is obtained, so that the detection cost and the detection time are reduced, and the detection efficiency and the detection precision are improved.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
EXAMPLE III
Fig. 5 shows a block diagram of a vehicle detection device provided in the embodiment of the present application, which is applied to an RSU, corresponding to the vehicle detection method described in the first embodiment.
Referring to fig. 5, the vehicle detection device 200 includes:
the first detection module is used for sending a function self-checking instruction to the OBU and receiving a function self-checking result returned by the OBU when the vehicle is detected to reach a preset detection area;
the sending module is used for sending a performance detection instruction to the OBU when the function self-checking result is detected to be successful, receiving performance detection data returned by the OBU, and determining a performance detection result based on the performance detection data;
a generating module 203, configured to generate a vehicle detection result based on the functional self-test result and the performance detection result.
In one embodiment, the performance detection instructions comprise radio frequency performance detection instructions;
the sending module comprises:
the first sending unit is used for sending a radio frequency performance detection instruction to the OBU and acquiring radio frequency performance detection data returned by the OBU;
a first determining unit for determining the sensitivity and the transmitting power of the OBU based on the radio frequency performance detection data;
the comparison unit is used for comparing the sensitivity with a preset sensitivity range and the transmitting power with a preset transmitting power range;
the first detection unit is used for adjusting the sensitivity based on the preset sensitivity range when the fact that the sensitivity is not in the preset sensitivity range is detected, until the sensitivity is in the preset sensitivity range;
and the second detection unit is used for adjusting the transmitting power based on the preset transmitting power range when detecting that the transmitting power is not in the preset transmitting power range until the transmitting power is in the preset transmitting power range, and generating a corresponding radio frequency performance detection result based on the sensitivity and the transmitting power.
In one embodiment, the performance detection instructions comprise bluetooth performance detection instructions;
the sending module comprises:
the second sending unit is used for sending a Bluetooth performance detection instruction to the OBU;
the establishing unit is used for establishing pairing connection with the Bluetooth equipment and receiving Bluetooth test data sent by the Bluetooth equipment when the Bluetooth equipment of the OBU is detected to be started;
and the generating unit is used for generating a corresponding Bluetooth performance detection result based on the Bluetooth test data.
In one embodiment, the RSU and OBU communicate based on a DSRC extension protocol;
the communication process between the RSU and the OBU comprises the following steps:
sending a test frame to the OBU, and receiving a response frame which is returned by the OBU and corresponds to the test frame;
sending a test instruction to the OBU, and receiving a test result corresponding to the test instruction and returned by the OBU;
and sending a transmission request to the OBU, and receiving a transmission response corresponding to the transmission request returned by the OBU.
In one embodiment, the vehicle detection apparatus further includes:
and the third detection module is used for judging that the function self-detection result is successful when the function self-detection result is detected to comprise normal working voltage, normal chip circuit and normal communication interface.
According to the embodiment, through communication between the RSU and the OBU, function self-checking and performance detection based on the OBU are achieved, and a corresponding vehicle detection result is obtained, so that the detection cost and the detection time are reduced, and the detection efficiency and the detection precision are improved.
Example four
Corresponding to the vehicle detection method described in the second embodiment, fig. 6 shows a block diagram of a vehicle detection device provided in the embodiment of the present application, which is applied to an OBU, and only the relevant portions of the embodiment of the present application are shown for convenience of description.
Referring to fig. 6, the vehicle detection device 300 includes:
the second detection module 301 is configured to, when receiving a functional self-test instruction, perform detection based on the functional self-test instruction to obtain a corresponding functional self-test result and send the corresponding functional self-test result to the RSU;
a third detecting module 302, configured to, when receiving a performance detecting instruction, perform detection based on the performance detecting instruction to obtain corresponding performance detecting data, and send the performance detecting data to the RSU, so that the RSU generates a performance detecting result based on the performance detecting data.
In one embodiment, the performance detection instructions comprise radio frequency performance detection instructions;
the second detection module includes:
the second determining unit is used for determining sensitivity and transmitting power based on the performance detection instruction and sending the sensitivity and the transmitting power to the RSU when the radio frequency performance detection instruction is received;
the first adjusting unit is used for adjusting the sensitivity based on a sensitivity adjusting instruction sent by the RSU, and sending the sensitivity to the RSU when the sensitivity is within a preset sensitivity range;
and the second adjusting unit is used for adjusting the transmitting power based on a transmitting power adjusting instruction sent by the RSU until the transmitting power is within a preset transmitting power range, and sending the transmitting power to the RSU so that the RSU generates a corresponding radio frequency performance detection result based on the sensitivity and the transmitting power.
In one embodiment, the performance detection instructions comprise bluetooth performance detection instructions;
the second detection module includes:
the starting unit is used for starting the Bluetooth equipment and initializing the Bluetooth equipment when receiving the Bluetooth performance detection instruction;
and the Bluetooth detection unit is used for establishing pairing connection with the RSU and sending Bluetooth test data so that the RSU generates a corresponding Bluetooth performance detection result based on the Bluetooth test data.
In one embodiment, the first detection module includes:
the acquisition unit is used for acquiring working voltage and detecting whether the working voltage is within a preset working voltage range;
the third detection unit is used for acquiring the circuit state of the chip when the working voltage is detected to be within a preset working voltage range;
the fourth detection unit is used for detecting the working state of the communication interface when the chip circuit state is detected to be a normal state;
and the fifth detection unit is used for generating a corresponding function self-checking result when the working state of the communication interface is detected to be in a normal working state.
In one embodiment, the OBU communicates with the RSU based on a DSRC extension protocol;
the communication process between the OBU and the RSU comprises the following steps:
when receiving a test frame sent by the RSU, returning a response frame corresponding to the test frame;
when a test instruction sent by the RSU is received, returning a test result corresponding to the test instruction;
and when receiving the transmission request sent by the RSU, returning a transmission response corresponding to the transmission request.
According to the embodiment, through communication between the RSU and the OBU, function self-checking and performance detection based on the OBU are achieved, and a corresponding vehicle detection result is obtained, so that the detection cost and the detection time are reduced, and the detection efficiency and the detection precision are improved.
It should be noted that, for the information interaction, execution process, and other contents between the above-mentioned devices/units, the specific functions and technical effects thereof are based on the same concept as those of the embodiment of the method of the present application, and specific reference may be made to the part of the embodiment of the method, which is not described herein again.
EXAMPLE five
Fig. 7 is a schematic structural diagram of the terminal device provided in this embodiment. As shown in fig. 7, the terminal device 7 of this embodiment includes: at least one processor 70 (only one shown in fig. 7), a memory 71, and a computer program 72 stored in the memory 71 and executable on the at least one processor 70, the processor 70 implementing the steps in any of the various vehicle detection method embodiments described above when executing the computer program 72.
The terminal device 7 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The terminal device may include, but is not limited to, a processor 70, a memory 71. Those skilled in the art will appreciate that fig. 7 is only an example of the terminal device 7, and does not constitute a limitation to the terminal device 7, and may include more or less components than those shown, or combine some components, or different components, for example, and may further include input/output devices, network access devices, and the like.
The Processor 70 may be a Central Processing Unit (CPU), and the Processor 70 may be other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 71 may in some embodiments be an internal storage unit of the terminal device 7, such as a hard disk or a memory of the terminal device 7. In other embodiments, the memory 71 may also be an external storage device of the terminal device 7, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital Card (SD), a Flash memory Card (Flash Card), and the like, which are provided on the terminal device 7. Further, the memory 71 may also include both an internal storage unit and an external storage device of the terminal device 7. The memory 71 is used for storing an operating system, an application program, a BootLoader (BootLoader), data, and other programs, such as program codes of the computer program. The memory 71 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps in the above-mentioned method embodiments.
The embodiments of the present application provide a computer program product, which when running on a mobile terminal, enables the mobile terminal to implement the steps in the above method embodiments when executed.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium and can implement the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to a photographing apparatus/terminal apparatus, a recording medium, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), an electrical carrier signal, a telecommunications signal, and a software distribution medium. Such as a usb-disk, a removable hard disk, a magnetic or optical disk, etc. In certain jurisdictions, computer-readable media may not be an electrical carrier signal or a telecommunications signal in accordance with legislative and patent practice.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/network device and method may be implemented in other ways. For example, the above-described apparatus/network device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.