Communication Detection Method and System for In-Vehicle Unit, Storage Medium and Electronic Device
By obtaining the location and road type information of the roadside unit and combining the preset data format, the communication abnormalities between the vehicle-mounted unit and the roadside unit are judged, which solves the problem of timely detection in the prior art, and realizes the real-time detection of communication between the vehicle-mounted unit and the roadside unit and the accuracy of information interaction.
Patent Information
- Application Number
- CN202211736889.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-30
- Publication Date
- 2025-07-18
- Estimated Expiration
- 2042-12-30
AI Technical Summary
In the prior art, communication abnormalities between the on-board unit and the roadside unit cannot be detected in time, resulting in the user receiving error information.
By obtaining the location and road type information of the roadside unit, combining the preset data format, the distance between the vehicle-mounted unit and the roadside unit is determined, and the communication data is used to determine whether there is an abnormality.
Real-time detection of communication between vehicle-mounted units and roadside units is realized, ensuring the accuracy and reliability of information interaction and avoiding the transmission of incorrect information.
Smart Images

Figure CN116132916B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle communication. Specifically, it relates to a communication detection method and system for an on-board unit, a storage medium, and an electronic device. Background Art
[0002] In order to facilitate better interaction between a vehicle and an RSU (Road Side Unit), the OBU (OnBoard Unit) host and the antenna are usually separately arranged. The host is installed inside the vehicle, and the antenna is installed outside the vehicle to ensure the normal transceiver of radio frequency signals. However, for the antenna of a retrofit device (such as a shark fin type antenna), due to factors such as installation location and vehicle structure limitations, the wiring and fixing methods cannot be kept consistent. There are problems such as uneven force on the RF connector, resulting in poor contact and open circuit of the line, thus affecting its actual use effect, and it is impossible to detect in time when the communication between the OBU and the RSU is abnormal. Summary of the Invention
[0003] Embodiments of the present application provide a communication detection method and system for an on-board unit, a storage medium, and an electronic device, so as to at least solve the problem in the related art that the communication abnormality between the OBU and the RSU cannot be discovered in time, resulting in the user possibly receiving incorrect information.
[0004] According to one aspect of the embodiments of the present application, a communication detection method for an on-board unit is provided, including: during the process that a target vehicle equipped with an on-board unit passes through a first area, obtaining first information transmitted by a road side unit in a preset data format in the first area, where the first information includes: a first position corresponding to the road side unit and a road type of the road where the road side unit is located; determining a first distance between the first position and a second position corresponding to the on-board unit; if the first distance is less than or equal to a second distance corresponding to the road type, determining whether there is a communication abnormality between the on-board unit and the road side unit according to communication data corresponding to the first information.
[0005] According to another aspect of the embodiments of the present application, there is also provided a communication detection system for a vehicle-mounted unit, including: a vehicle-mounted unit, disposed on a target vehicle, configured to obtain first information during the process of the target vehicle passing through a first area, where the first information includes: a first position corresponding to a roadside unit and a road type of the road where the roadside unit is located; determining a first distance between a second position corresponding to the vehicle-mounted unit and the first position; if the first distance is less than or equal to a second distance corresponding to the road type, determining whether there is a communication anomaly between the vehicle-mounted unit and the roadside unit according to communication data corresponding to the first information; a roadside unit, oppositely disposed on both sides of a road in the first area, configured to transmit corresponding first information to the vehicle-mounted unit in the first area in a preset data format.
[0006] According to still another aspect of the embodiments of the present application, there is also provided a computer-readable storage medium, in which a computer program is stored, where the computer program is configured to execute the above-mentioned communication detection method for the vehicle-mounted unit when running.
[0007] According to still another aspect of the embodiments of the present application, there is also provided an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the above-mentioned processor executes the above-mentioned communication detection method for the vehicle-mounted unit through the computer program.
[0008] In the embodiments of the present application, a method for detecting communication of a vehicle-mounted unit is adopted by combining a preset data format with an effective communication distance between the vehicle-mounted unit and the roadside unit. During the process of a target vehicle equipped with a vehicle-mounted unit passing through a first area, first information transmitted by the roadside unit in the first area in a preset data format is obtained, where the first information includes: a first position corresponding to the roadside unit and a road type of the road where the roadside unit is located; determining a first distance between the first position and a second position corresponding to the vehicle-mounted unit; if the first distance is less than or equal to a second distance corresponding to the road type, determining whether there is a communication anomaly between the vehicle-mounted unit and the roadside unit according to communication data corresponding to the first information. Since the first information includes the first position corresponding to the roadside unit and the road type of the road where the roadside unit is located, after the vehicle-mounted unit obtains the first information, it can quickly determine the effective communication distance (i.e., the second distance) between the vehicle-mounted unit and the roadside unit under the current road, and then determine whether there is a communication anomaly between the vehicle-mounted unit and the roadside unit by combining the first information transmitted in the preset data format, so as to achieve the purpose of determining whether the vehicle-mounted unit of the vehicle to be tested is communicating normally by using the interaction information between the vehicle-mounted unit and the roadside unit. Description of the Drawings
[0009] The accompanying drawings here are incorporated into the specification and form a part of this specification, showing embodiments consistent with this application and, together with the specification, used to explain the principles of this application.
[0010] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the following will briefly introduce the accompanying drawings required for use in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0011] Figure 1 is a schematic diagram of the hardware environment of an optional communication detection method for an in-vehicle unit according to an embodiment of this application;
[0012] Figure 2 is a schematic flowchart of an optional communication detection method for an in-vehicle unit according to an embodiment of this application;
[0013] Figure 3 is a schematic diagram of the structure of a retrofit OBU device according to an embodiment of this application;
[0014] Figure 4 is a schematic diagram of the installation position of a retrofit OBU device according to an embodiment of this application;
[0015] Figure 5 is a schematic diagram of the installation position of another retrofit OBU device according to an embodiment of this application;
[0016] Figure 6 is a schematic diagram of the self-check process of a retrofit OBU device according to an embodiment of this application;
[0017] Figure 7 is a structural block diagram of an optional electronic device according to an embodiment of this application. Detailed implementation manners
[0018] To enable those skilled in the art of this technology to better understand the solutions of this application, the following will clearly and completely describe the technical solutions in the embodiments of this application with reference to the accompanying drawings in the embodiments of this application. Obviously, the described embodiments are only a part of the embodiments of this application, rather than all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the scope of protection of this application.
[0019] It should be noted that the terms "first", "second", etc. in the description, claims and the above-mentioned drawings of this application are used to distinguish similar objects, and do not necessarily have to be used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of this application described here can be implemented in an order other than those illustrated or described here. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.
[0020] According to one aspect of the embodiments of the present application, a communication detection method for an in-vehicle unit is provided. Optionally, in this embodiment, the above-mentioned communication detection method for the in-vehicle unit can be applied to a hardware environment such as Figure 1 shown in the figure including a detection component 102 and a data processor 104. As Figure 1 shown in the figure, the data processor 104 is connected to the detection component 102 through a network and can be used to identify vehicle information based on the detection data of the detection component 102. Here, both the detection component 102 and the data processor 104 can belong to the vehicle information detection system.
[0021] The above-mentioned network can include but is not limited to at least one of the following: a wired network, a wireless network. The above-mentioned wired network can include but is not limited to at least one of the following: a wide area network, a metropolitan area network, a local area network. The above-mentioned wireless network can include but is not limited to at least one of the following: WIFI (Wireless Fidelity), Bluetooth. In addition to being connected through a network, the detection component 102 and the data processor 104 can also be connected through a network cable or a serial port.
[0022] The communication detection method for the in-vehicle unit in the embodiments of the present application can be executed by the data processor 104, or can be jointly executed by the data processor 104 and the detection component 102. Taking the communication detection method for the in-vehicle unit in this embodiment being executed by the data processor 104 as an example, Figure 2 is a schematic flowchart of an optional communication detection method for an in-vehicle unit according to the embodiments of the present application. As Figure 2 shown in the figure, the process of this method can include the following steps:
[0023] Step S202, during the process that the target vehicle equipped with an on-vehicle unit passes through the first area, obtain the first information transmitted by the roadside unit in the first area in a preset data format, where the first information includes: the first position corresponding to the roadside unit and the road type of the road where the roadside unit is located; The communication detection method of the on-vehicle unit in this embodiment can be applied to the scenario of vehicle communication detection for passing vehicles in a preset area, and the preset area here can be the effective communication area of the roadside unit. In addition, the above road type is used to indicate the communication environment corresponding to the road where the roadside unit is set, for example, scenarios such as intersections, ramps, highways, etc.
[0024] During the process that the target vehicle passes through the first area, the on-vehicle unit can obtain the first information transmitted by the roadside unit in a preset data format. The preset data format can be the V2X communication format. V2X devices can communicate in the form of UDP broadcast, and signal reception does not distinguish the data source, and the device can receive broadcast signals from other devices. There are five types of messages in the V2X communication national standard, namely BSM, RSI, RSM, SPAT, and MAP. Among them, BSM (Basic Safety Message) contains information such as the device position, so as to calculate the distance between devices. V2X can also communicate in the form of unicast.
[0025] Step S204, determine the first distance between the first position and the second position corresponding to the on-vehicle unit.
[0026] Here, the second position can be determined by the positioning system carried by the target vehicle. The first distance can be calculated by the on-vehicle unit instructing the positioning system when the first position is known, which will not be elaborated here.
[0027] Step S206, if the first distance is less than or equal to the second distance corresponding to the road type, determine whether there is a communication anomaly between the on-vehicle unit and the roadside unit according to the communication data corresponding to the first information.
[0028] It should be noted that the communication relationship between the above road type and the second distance is a one-to-one correspondence determined in advance according to historical communication records. That is, when the road type is known, the effective communication distance corresponding to the road type can be determined from the preset distance list in the on-vehicle unit, so as to ensure the real-time detection of the communication between the on-vehicle unit and the roadside unit.
[0029] Through the above steps S202 to S206, a method of performing communication detection on the on-vehicle unit by combining a preset data format with the effective communication distance between the on-vehicle unit and the roadside unit is adopted. During the process of a target vehicle equipped with the on-vehicle unit passing through the first area, the first information transmitted by the roadside unit in the first area through the preset data format is obtained. The first information includes: the first position corresponding to the roadside unit and the road type of the road where the roadside unit is located; determining the first distance between the first position and the second position corresponding to the on-vehicle unit; if the first distance is less than or equal to the second distance corresponding to the road type, determining whether there is a communication anomaly between the on-vehicle unit and the roadside unit according to the communication data corresponding to the first information. Since the first information includes the first position corresponding to the roadside unit and the road type of the road where the roadside unit is located, after the on-vehicle unit obtains the first information, it can quickly determine the effective communication distance (i.e., the second distance) between the on-vehicle unit and the roadside unit on the current road, and then combine the first information transmitted using the preset data format to determine whether there is a communication anomaly between the on-vehicle unit and the roadside unit, and the purpose of determining whether the on-vehicle unit of the vehicle to be tested is communicating normally using the interaction information between the on-vehicle unit and the roadside unit can be achieved.
[0030] In an exemplary embodiment, before determining whether there is a communication anomaly between the on-vehicle unit and the roadside unit according to the communication data corresponding to the first information, the above method further includes:
[0031] S11, obtaining a first timestamp when the roadside unit transmits the first information, and a second timestamp when the on-vehicle unit receives the first information;
[0032] S12, determining the communication delay between the on-vehicle unit and the roadside unit according to the first timestamp and the second timestamp, where the communication data includes: the communication delay.
[0033] In this embodiment, by determining the time difference corresponding to the first timestamp and the second timestamp, the transmission time corresponding to the first information can be determined. And because the first information transmitted by the roadside unit through the preset data format, there is a standard transmission time for the first information transmitted using the preset data format within a certain distance. Thus, combining the standard transmission time and the transmission time can determine the communication delay of transmitting the first information between the on-vehicle unit and the roadside unit, providing a data reference for whether there is abnormal communication between the two.
[0034] Optionally, before determining whether there is a communication anomaly between the on-vehicle unit and the roadside unit according to the communication data corresponding to the first information, the above method further includes: obtaining the standard parameters of the first data packet transmitted by the roadside unit corresponding to the first information, and the data parameters of the second data packet received by the on-vehicle unit for the first information; determining the packet loss rate according to the standard parameters and the data parameters, where the communication data includes: the packet loss rate. The standard parameters are the inherent format parameters of the data packet in the first information transmitted by the roadside unit and include information such as the number of bytes of the data.
[0035] It can be understood that there are byte formats and byte counts when the first information is transmitted. When the number of bytes sent by the roadside unit is greater than the number of bytes received by the on-vehicle unit, it indicates that there is information loss during the transmission of the first information. In addition, the byte difference between the first byte and the second byte can be determined, and the packet loss rate during the transmission of the first information can be obtained by dividing the byte difference by the number of bytes corresponding to the first byte. Based on this packet loss rate, the transmission quality between the on-vehicle unit and the roadside unit can be determined.
[0036] Optionally, determining whether there is a communication anomaly between the on-vehicle unit and the roadside unit according to the communication data corresponding to the first information includes: determining the parameter range corresponding to the road type stored in the database corresponding to the on-vehicle unit, where the parameter range includes: the first numerical range corresponding to the packet loss rate, the second numerical range corresponding to the communication delay; in the case where the communication data exceeds the parameter range, determining that the probability of the on-vehicle unit having a communication anomaly is greater than the first threshold; performing a communication function verification on the on-vehicle unit; determining whether the probability of the on-vehicle unit having a communication anomaly is greater than the second threshold according to the verification result of the communication function verification, where the second threshold is greater than the first threshold.
[0037] It can be understood that different road types also correspond to different parameter ranges, and then the anomaly of the on-vehicle unit can be effectively determined by combining the specific parameter ranges.
[0038] Optionally, performing a communication function verification on the on-vehicle unit includes: the on-vehicle unit obtaining the information sent by other roadside units, and determining whether there is a communication anomaly between the on-vehicle unit and the other roadside units according to the information sent by the other roadside units. That is, in the case where the communication result between the on-vehicle unit and the roadside unit in the first area is a communication anomaly, the communication between the on-vehicle unit and other roadside units (which can be in different road scenarios) is used to further verify whether there is a communication anomaly. It can be understood that the more roadside units participating in the verification, the more accurate the verification result.
[0039] Optionally, perform communication function verification on the in-vehicle unit, including: determining the second information sent by the in-vehicle unit within the second area, where the second area is a communication range centered on the in-vehicle unit with the second distance as the radius; the second information includes the identity information of the in-vehicle unit; when the second information is responded to by other devices, determine whether there is communication anomaly between the in-vehicle unit and the other devices according to the target communication data corresponding to the second information.
[0040] In this embodiment, after obtaining that the communication data corresponding to the first information exceeds the parameter range, it is determined that the current in-vehicle unit is a suspected abnormal unit. To ensure the accuracy of determining the anomaly corresponding to the in-vehicle unit, communication function verification can also be performed to verify the communication data between the in-vehicle unit and other devices. Thus, through repeated verification, the accuracy of the result of determining the abnormal in-vehicle unit is ensured. In addition, through secondary determination, the efficiency and accuracy of determining the in-vehicle unit as an abnormal in-vehicle unit are greatly improved.
[0041] In an exemplary embodiment, determining whether there is communication anomaly between the in-vehicle unit and the other devices according to the target communication data corresponding to the second information includes:
[0042] S21, obtain the reception record of the second information stored by the other device, and determine the third timestamp and the third byte corresponding to the second information recorded in the in-vehicle unit when it is sent;
[0043] S22, parse the reception record to determine the fourth timestamp and the fourth byte corresponding to the second information when it is received by the other device;
[0044] S23, determine whether there is communication anomaly between the in-vehicle unit and the other devices according to the third timestamp, the third byte, the fourth timestamp, and the fourth byte.
[0045] In this embodiment, by determining the communication data between the in-vehicle unit and other devices again and comparing the communication data with the standard parameter range, it can then be determined whether there is anomaly between the in-vehicle unit and other devices. Combining with the anomaly judgment result between the roadside unit and the in-vehicle device, finally, the anomaly situation of the in-vehicle unit is obtained. It should be noted that the above other devices can be other roadside units existing beside the road or vehicles including other in-vehicle units, and these devices have the same preset data format to ensure the effective progress of communication.
[0046] In an exemplary embodiment, determining whether there is communication anomaly between the in-vehicle unit and the other devices according to the third timestamp, the third byte, the fourth timestamp, and the fourth byte includes:
[0047] S31. When the target latency corresponding to the third timestamp and the fourth timestamp is within the second numerical range, and the packet loss rate corresponding to the third byte and the fourth byte is within the first numerical range, it is determined that there is no communication anomaly between the in-vehicle unit and the other device, and a communication normal flag is added to the in-vehicle unit.
[0048] S32. When the target latency corresponding to the third timestamp and the fourth timestamp is not within the second numerical range, and / or the packet loss rate corresponding to the third byte and the fourth byte is not within the first numerical range, it is determined that there is a communication anomaly between the in-vehicle unit and the other device, and a communication anomaly flag is added to the in-vehicle unit.
[0049] In an exemplary embodiment, after determining whether the probability of the in-vehicle unit having a communication anomaly is greater than a second threshold according to the verification result of the communication function verification, the above method further includes:
[0050] S41. When the probability of the in-vehicle unit having a communication anomaly is greater than the second threshold, it is determined that the in-vehicle unit is an abnormal unit.
[0051] S42. When the probability of the in-vehicle unit having a communication anomaly is less than or equal to the second threshold and the probability of the in-vehicle unit having a communication anomaly is greater than a first threshold, it is determined that the roadside unit is an abnormal unit.
[0052] Through this embodiment, according to the magnitude relationship between the probability and the second threshold and the first threshold, the situation where the in-vehicle unit is an abnormal unit can be determined, which can improve the accuracy of determining the corresponding communication status of the in-vehicle unit.
[0053] In an exemplary embodiment, after determining the first distance between the first position and the second position corresponding to the in-vehicle unit, the above method further includes:
[0054] S51. If the first distance is greater than the second distance corresponding to the road type, it is determined that the target vehicle has not entered the effective communication area of the roadside unit in the first area.
[0055] S52. The first prompt message is displayed to the target object in the target vehicle through the in-vehicle unit, where the first prompt message is used to indicate that the in-vehicle unit and the roadside unit have not established a stable communication connection. It should be noted that not establishing a stable communication connection means that stable and effective communication interaction cannot be achieved.
[0056] In this embodiment, the effectiveness of communication between the on-vehicle unit and the roadside unit is verified by determining the magnitude relationship between the first distance and the second distance. When effective communication is not established, a prompt is given to ensure the communication effect between the on-vehicle unit and the roadside unit, which can improve the accuracy of communication detection.
[0057] Obviously, the above-described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. To better understand the adjustment method of the above light-shielding device, the following will describe the above process in conjunction with embodiments, but it is not used to limit the technical solutions of the embodiments of the present invention. Specifically:
[0058] Optionally, Figure 3 is a schematic structural diagram of a retrofit OBU device according to an embodiment of the present application. The OBU (on-vehicle terminal) externally connects an antenna ([ Figure 3 in which is a shark fin antenna) through a FAKRA interface to communicate with other devices. The above antenna type can also be other types of antennas, and the present application does not elaborate on this too much.
[0059] Optionally, Figure 4 is a schematic diagram of the installation position of a retrofit OBU device according to an embodiment of the present application. As Figure 4 shown, the retrofit OBU device can be installed at the front end of the vehicle corresponding to the co-pilot position of the vehicle, or can be installed under the seats on both sides of the vehicle. Then, when the vehicle enters the effective communication area of the corresponding RSU device, information interaction can be carried out between the OBU device and the RSU device; Figure 5 is a schematic diagram of the installation position of another retrofit OBU device according to an embodiment of the present application. As Figure 5 shown, when the vehicle needs to add an OBU device, the retrofit OBU device can also be placed behind the backrest of the seat, which can save installation space while ensuring the normal communication of the OBU device.
[0060] As an optional implementation manner, Figure 6 is a schematic diagram of the self-check process of a retrofit OBU device according to an embodiment of the present application; when the OBU and the RSU are within the effective communication distance of V2X, by screening the communication delay and packet loss rate, it can be judged whether the V2X communication of the OBU device is normal, so as to remind the user to self-check the device. And, the above self-check process can also comprehensively consider various road scenarios and the conclusions of different V2X devices, which can effectively improve the judgment accuracy. Specifically as follows:
[0061] Step 1: The OBU performs positioning through the positioning system GNSS in the vehicle where it is located to determine the position corresponding to the OBU.
[0062] Step 2: OBU and RSU exchange information; when the vehicle equipped with OBU drives into the communication range with RSU, the two exchange information.
[0063] Step 3: RSU sends its own location and road type information to OBU via V2X.
[0064] Step 4, OBU identifies the road type and determines the corresponding effective communication distance according to the road type; it should be noted that the effective communication distances corresponding to the above-mentioned different road types in different scenarios can be the effective communication distances between OBU and RSU determined by testing, or can be the effective communication distances determined by combining the historical communication records between RSU and OBU stored in the vehicle terminal.
[0065] Step 5, first conclusion determination, after RSU and OBU exchange information, OBU calculates the communication distance between the two, screens the communication delay and packet loss rate generated by the communication between OBU and RSU using V2X communication, compares the actual communication delay and packet loss rate with the standard communication delay and standard packet loss rate of the corresponding distance, and determines whether there is any abnormality in the communication of the installed OBU in the communication scenario of information exchange between RSU and OBU.
[0066] Optionally, the above process can be actually applied to the user self-test scenario of the OBU device antenna. When the OBU device receives the V2X information, it parses the message and identifies the V2X communication distance, communication delay, packet loss rate and other indicators, and then determines the communication status between the OBU and the RSU.
[0067] Step 6. When it is determined that the communication of the OBU is in an abnormal state, the OBU communicates with other surrounding devices with V2X communication mode to exchange each other's positioning information; and re-measures the V2X communication delay, packet loss rate, etc., so as to determine that the abnormal communication of the OBU is caused by the OBU itself, avoiding the judgment interference caused by the RSU abnormality. When the re-test determines that the OBU communication is in a normal state, the test log is stored and the information is synchronized to the RSU.
[0068] Step 7: When it is determined that the communication of the OBU is in a normal state, the test log is stored and the information is synchronized to the RSU.
[0069] Step 8: Form conclusions and judgments of the OBU in different road scenarios; and / or conclusions and judgments between the OBU and different V2X devices.
[0070] Step 9: The second conclusion can be determined by calculating the weights based on the OBU's accumulated multiple determination results and making a comprehensive conclusion.
[0071] For example, when the number of determinations of whether the communication between the OBU and the RSU is abnormal is 5 times, among which, 2 times it is determined that the OBU is abnormal through the interaction between the RSU and the OBU (the RSU can be a device in different road scenarios), and 3 times it is determined that the OBU is abnormal through the communication between the OBU and other OBU devices (the other OBU devices can be other vehicle OBU devices in the current scenario). When the abnormal weight corresponding to the RSU is set to 0.7 and the abnormal weight corresponding to the other OBU devices is set to 0.3, the final abnormal probability of the OBU is (2 / 5)*0.7+(3 / 5)*0.3 = 0.46. Then, in combination with the preset threshold corresponding to different road types, finally, it is determined whether the OBU is abnormal. Optionally, when the preset threshold is 0.3, it can be determined that the OBU with a final abnormal probability of 0.46 is an OBU with abnormal communication, and then the target object using the target vehicle is reminded to detect the OBU installed in the vehicle.
[0072] Step 10: When rechecking determines that the OBU communication is in an abnormal state, and / or, the second conclusion determines that the OBU communication is in an abnormal state, the OBU triggers a communication abnormality warning. The second conclusion determines that the OBU communication is in a normal state, and the process ends.
[0073] Optionally, the actions that can be triggered after the warning are: self-check of the device communication module, inspection of the physical connection of the antenna by the device user, and the inspection actions are determined according to the actual situation. In addition, the warning corresponding reminder frequency can also be set so that the target object is reminded before the communication abnormality is resolved. The optional embodiments of the present invention will not be introduced in detail.
[0074] Step 11: Self-check of the device communication module, inspection of the radio frequency link and the connector, etc.
[0075] In summary, through the analysis of the V2X information by the OBU device, the actual communication delay and the actual packet loss rate corresponding to the OBU within the V2X effective communication distance from the RSU are determined, and compared with the range values of the corresponding communication delay and packet loss rate, to determine whether the OBU is abnormal, so as to form the self-check ability of the antenna state of the retrofitted OBU device.
[0076] It should be noted that for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations. However, those skilled in the art should know that the present application is not limited by the described action sequence, because according to the present application, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily essential to the present application.
[0077] Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by means of software plus a necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases, the former is a better implementation method. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art can be embodied in the form of a software product. The computer software product is stored in a storage medium (such as ROM (Read-Only Memory), RAM (Random Access Memory), magnetic disk, optical disc), and includes several instructions to enable a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of various embodiments of the present application.
[0078] According to another aspect of the embodiments of the present application, there is also provided a communication detection system for a vehicle-mounted unit for implementing the communication detection method of the vehicle-mounted unit described above. The communication detection system for the vehicle-mounted unit may include:
[0079] A vehicle-mounted unit, disposed on a target vehicle, configured to obtain first information during the process that the target vehicle passes through a first area, where the first information includes: a first position corresponding to a roadside unit and a road type of the road where the roadside unit is located; determining a first distance between a second position corresponding to the vehicle-mounted unit and the first position; if the first distance is less than or equal to a second distance corresponding to the road type, determining whether there is a communication anomaly between the vehicle-mounted unit and the roadside unit according to communication data corresponding to the first information;
[0080] A roadside unit, configured to transmit corresponding first information to a vehicle-mounted unit in the first area (the effective communication area of the roadside unit) in a preset data format.
[0081] Through the above communication detection system of the on-vehicle unit, a method of detecting the communication of the on-vehicle unit is adopted by combining a preset data format with the effective communication distance between the on-vehicle unit and the roadside unit. During the process of a target vehicle equipped with the on-vehicle unit passing through the first area, the first information transmitted by the roadside unit in the first area in the preset data format is obtained, where the first information includes: the first position corresponding to the roadside unit and the road type of the road where the roadside unit is located; determining the first distance between the first position and the second position corresponding to the on-vehicle unit; if the first distance is less than or equal to the second distance corresponding to the road type, determining whether there is a communication anomaly between the on-vehicle unit and the roadside unit according to the communication data corresponding to the first information. Since the first information includes the first position corresponding to the roadside unit and the road type of the road where the roadside unit is located, after the on-vehicle unit obtains the first information, it can quickly determine the effective communication distance (i.e., the second distance) between the on-vehicle unit and the roadside unit on the current road, and then determine whether the on-vehicle unit and the roadside unit communicate abnormally by combining the first information transmitted in the preset data format, so as to achieve the purpose of determining whether the on-vehicle unit of the vehicle to be tested communicates normally by using the interaction information between the on-vehicle unit and the roadside unit.
[0082] In an exemplary embodiment, the above on-vehicle unit is further configured to obtain the standard parameters of the first data packet corresponding to the first information transmitted by the roadside unit, and determine the data parameters of the second data packet that receives the first information; determining the packet loss rate according to the standard parameters and the data parameters, where the communication data includes: the packet loss rate.
[0083] In an exemplary embodiment, the above on-vehicle unit is further configured to obtain the first timestamp of the first information transmitted by the roadside unit, and determine the second timestamp of receiving the first information; determining the communication delay between the on-vehicle unit and the roadside unit according to the first timestamp and the second timestamp, where the communication data includes: the communication delay.
[0084] In an exemplary embodiment, the above on-vehicle unit is further configured to determine the parameter range corresponding to the road type stored in the database, where the parameter range includes: the first numerical range corresponding to the packet loss rate and the second numerical range corresponding to the communication delay; in the case that the communication data exceeds the parameter range, determining that the probability of the on-vehicle unit having a communication anomaly is greater than the first threshold; performing a communication function verification on the on-vehicle unit; determining whether the probability of the on-vehicle unit having a communication anomaly is greater than the second threshold according to the verification result of the communication function verification, where the second threshold is greater than the first threshold.
[0085] In an exemplary embodiment, the above vehicle-mounted unit is further configured to send the second information within a second area, where the second area is a communication range centered on the vehicle-mounted unit with the second distance as the radius; the second information includes the identity information of the vehicle-mounted unit; in the case where the second information is responded to by other devices, determine whether there is a communication anomaly between the vehicle-mounted unit and the other devices according to the target communication data corresponding to the second information.
[0086] In an exemplary embodiment, the above vehicle-mounted unit is further configured to obtain the reception record of the second information stored by the other device, and determine the third timestamp and the third byte corresponding to the second information recorded in the vehicle-mounted unit when it is sent; parse the reception record to determine the fourth timestamp and the fourth byte corresponding to the second information when it is received by the other device; determine whether there is a communication anomaly between the vehicle-mounted unit and the other devices according to the third timestamp, the third byte, the fourth timestamp, and the fourth byte.
[0087] In an exemplary embodiment, the above vehicle-mounted unit is further configured to determine that there is no communication anomaly between the vehicle-mounted unit and the other device and add a communication normal flag to the vehicle-mounted unit when the target delay corresponding to the third timestamp and the fourth timestamp is within a second numerical range and the packet loss rate corresponding to the third byte and the fourth byte is within a first numerical range; determine that there is a communication anomaly between the vehicle-mounted unit and the other device and add a communication anomaly flag to the vehicle-mounted unit when the target delay corresponding to the third timestamp and the fourth timestamp is not within the second numerical range, and / or the packet loss rate corresponding to the third byte and the fourth byte is not within the first numerical range.
[0088] In an exemplary embodiment, the above vehicle-mounted unit is further configured to determine that the vehicle-mounted unit is an abnormal unit when the probability of communication anomaly of the vehicle-mounted unit is greater than a second threshold; determine that the roadside unit is an abnormal unit when the probability of communication anomaly of the vehicle-mounted unit is less than or equal to the second threshold and the probability of communication anomaly of the vehicle-mounted unit is greater than a first threshold.
[0089] In an exemplary embodiment, the above vehicle-mounted unit is further configured to determine that the target vehicle has not entered the effective communication area of the roadside unit in the first area when the first distance is greater than the second distance corresponding to the road type; display a first prompt message to the target object in the target vehicle through the vehicle-mounted unit, where the first prompt message is used to indicate that the vehicle-mounted unit and the roadside unit have not established a stable communication connection.
[0090] It should be noted here that the examples and application scenarios implemented by the above modules and the corresponding steps are the same, but are not limited to the content disclosed in the above embodiments. It should be noted that the above modules, as part of the device, can run in a hardware environment such as Figure 1 shown, and can be implemented by software or by hardware, where the hardware environment includes a network environment.
[0091] According to another aspect of the embodiments of the present application, a storage medium is also provided. Optionally, in this embodiment, the above storage medium can be used to execute the program code of any one of the above vehicle-mounted unit communication detection methods in the embodiments of the present application.
[0092] Optionally, in this embodiment, the above storage medium can be located on at least one of multiple network devices in the network shown in the above embodiment.
[0093] Optionally, in this embodiment, the storage medium is set to store program code for executing the following steps:
[0094] S1. During the process that the target vehicle equipped with the vehicle-mounted unit passes through the first area, obtain the first information transmitted by the roadside unit in the first area in a preset data format, where the first information includes: the first position corresponding to the roadside unit and the road type of the road where the roadside unit is located;
[0095] S2. Determine the first distance between the first position and the second position corresponding to the vehicle-mounted unit;
[0096] S3. If the first distance is less than or equal to the second distance corresponding to the road type, determine whether there is a communication anomaly between the vehicle-mounted unit and the roadside unit according to the communication data corresponding to the first information.
[0097] Optionally, the specific examples in this embodiment can refer to the examples described in the above embodiments, and will not be elaborated herein.
[0098] Optionally, in this embodiment, the above storage medium may include but is not limited to: various media such as USB flash drives, ROMs, RAMs, mobile hard disks, magnetic disks, or optical discs that can store program code.
[0099] According to another aspect of the embodiments of the present application, an electronic device for implementing the above vehicle-mounted unit communication detection method is also provided, and the electronic device can be a server, a terminal, or a combination thereof.
[0100] Figure 7 is a structural block diagram of an optional electronic device according to the embodiments of the present application, as Figure 7As shown, it includes a processor 1102, a communication interface 1104, a memory 1106, and a communication bus 1108. Among them, the processor 1102, the communication interface 1104, and the memory 1106 complete mutual communication through the communication bus 1108. Among them,
[0101] The memory 1106 is used to store computer programs;
[0102] The processor 1102, when executing the computer program stored on the memory 1106, implements the following steps:
[0103] S1, during the process that a target vehicle equipped with an on-vehicle unit passes through a first area, obtain first information transmitted by a roadside unit in a preset data format in the first area. Among them, the first information includes: a first position corresponding to the roadside unit and a road type of the road where the roadside unit is located;
[0104] S2, determine a first distance between the first position and a second position corresponding to the on-vehicle unit;
[0105] S3, if the first distance is less than or equal to a second distance corresponding to the road type, determine whether there is a communication anomaly between the on-vehicle unit and the roadside unit according to communication data corresponding to the first information.
[0106] Optionally, the communication bus can be a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, etc. This communication bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of convenience of representation, Figure 7 only a thick line is used to represent it in the figure, but it does not mean that there is only one bus or one type of bus. The communication interface is used for communication between the above-mentioned electronic device and other devices.
[0107] The memory can include a RAM, and can also include a non-volatile memory, for example, at least one disk memory. Optionally, the memory can also be at least one storage device located far from the aforementioned processor.
[0108] The above-mentioned processor can be a general-purpose processor, including but not limited to: CPU (Central Processing Unit, central processing unit), NP (Network Processor, network processor), etc.; it can also be a DSP (Digital Signal Processing, digital signal processor), ASIC (Application Specific Integrated Circuit, application-specific integrated circuit), FPGA (Field-Programmable Gate Array, field-programmable gate array) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0109] Optionally, the specific examples in this embodiment can refer to the examples described in the above embodiments, and will not be elaborated here.
[0110] Those of ordinary skill in the art can understand that Figure 7 The structure shown is only illustrative. The device for implementing the communication detection method of the in-vehicle unit can be a terminal device, which can be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a handheld computer, and a mobile internet device (Mobile Internet Devices, MID), a PAD and other terminal devices. Figure 7 It does not limit the structure of the above-mentioned electronic device. For example, the electronic device may further include more or fewer components (such as a network interface, a display device, etc.) than those shown in Figure 7 or have a different configuration from that shown in Figure 7 shown.
[0111] Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the relevant hardware of the terminal device through a program, and the program can be stored in a computer-readable storage medium. The storage medium may include: a flash drive, a ROM, a RAM, a magnetic disk or an optical disc, etc.
[0112] The serial numbers of the embodiments of the present application above are only for description and do not represent the advantages and disadvantages of the embodiments.
[0113] If the integrated units in the above embodiments are implemented in the form of software function units and sold or used as independent products, they can be stored in the above computer-readable storage media. Based on such an understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to enable one or more computer devices (which can be personal computers, servers, or network devices, etc.) to execute all or part of the steps of the methods described in various embodiments of this application.
[0114] In the above embodiments of this application, the descriptions of each embodiment have their own focuses. For the parts not detailed in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0115] In several embodiments provided by this application, it should be understood that the disclosed client can be implemented in other ways. Among them, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there can be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections to each other can be through some interfaces. The indirect couplings or communication connections of units or modules can be in electrical or other forms.
[0116] The units described as separate components may or may not be physically separated. The components displayed as units may or may not be physical units, that is, they can be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution provided in this embodiment.
[0117] In addition, the functional units in each embodiment of this application can be integrated in one processing unit, or each unit can exist physically alone, or at least two units can be integrated in one unit. The above integrated units can be implemented in the form of hardware or in the form of software function units.
[0118] The above are only the preferred embodiments of this application. It should be noted that for those of ordinary skill in the art, without departing from the principle of this application, several improvements and refinements can still be made, and these improvements and refinements should also be regarded as the protection scope of this application.
Claims
1. A communication detection method for an in-vehicle unit, characterized in that, Including: During the process that a target vehicle equipped with an on-vehicle unit passes through a first area, obtain first information transmitted by a roadside unit in the first area in a preset data format, where the first information includes: a first position corresponding to the roadside unit and a road type of the road where the roadside unit is located; Determine a first distance between the first position and a second position corresponding to the on-vehicle unit; If the first distance is less than or equal to a second distance corresponding to the road type, determine whether there is a communication anomaly between the on-vehicle unit and the roadside unit according to communication data corresponding to the first information.
2. The method according to claim 1, wherein Before determining whether there is a communication anomaly between the on-vehicle unit and the roadside unit according to communication data corresponding to the first information, the method further includes: obtaining a first timestamp when the roadside unit transmits the first information, and a second timestamp when the on-vehicle unit receives the first information; Determine a communication delay between the on-vehicle unit and the roadside unit according to the first timestamp and the second timestamp, where the communication data includes: the communication delay.
3. The method according to claim 1, characterized in that Before determining whether there is a communication anomaly between the on-vehicle unit and the roadside unit according to communication data corresponding to the first information, the method further includes: obtaining a standard parameter of a first data packet corresponding to the first information transmitted by the roadside unit, and a data parameter of a second data packet received by the on-vehicle unit; Determine a packet loss rate according to the standard parameter and the data parameter, where the communication data includes: the packet loss rate.
4. The method according to any one of claims 1 to 3, characterized in that, Determining whether there is a communication anomaly between the on-vehicle unit and the roadside unit according to communication data corresponding to the first information includes: Determine a parameter range corresponding to the road type stored in a database corresponding to the on-vehicle unit, where the parameter range includes: a first numerical range corresponding to the packet loss rate, and a second numerical range corresponding to the communication delay; In the case that the communication data exceeds the parameter range, determine that the probability of a communication anomaly of the on-vehicle unit is greater than a first threshold; Perform a communication function verification on the on-vehicle unit; Determine whether the probability of a communication anomaly of the on-vehicle unit is greater than a second threshold according to a verification result of the communication function verification, where the second threshold is greater than the first threshold.
5. The method according to claim 4, wherein Performing a communication function verification on the on-vehicle unit includes: the on-vehicle unit obtains information sent by other roadside units, and determines whether there is a communication anomaly between the on-vehicle unit and the other roadside units according to the information sent by the other roadside units.
6. The method according to claim 4, characterized in that, Performing a communication function verification on the on-vehicle unit includes: Determine second information sent by the on-vehicle unit in a second area, where the second area is a communication range centered on the on-vehicle unit with the second distance as the radius; the second information is identity information including the on-vehicle unit; In the case that the second information is responded to by other devices, determine whether there is a communication anomaly between the on-vehicle unit and the other devices according to target communication data corresponding to the second information.
7. The method according to claim 6, wherein Determining whether there is a communication anomaly between the in-vehicle unit and the other device according to the target communication data corresponding to the second information includes: Obtaining the reception record of the second information stored in the other device, and determining the third timestamp and the third byte corresponding to the second information when it is sent in the in-vehicle unit; Parsing the reception record to determine the fourth timestamp and the fourth byte corresponding to the second information when it is received by the other device; Determining whether there is a communication anomaly between the in-vehicle unit and the other device according to the third timestamp, the third byte, the fourth timestamp, and the fourth byte.
8. The method according to claim 7, characterized in that Determining whether there is a communication anomaly between the in-vehicle unit and the other device according to the third timestamp, the third byte, the fourth timestamp, and the fourth byte includes: When the target delay corresponding to the third timestamp and the fourth timestamp is within the second numerical range, and the packet loss rate corresponding to the third byte and the fourth byte is within the first numerical range, determining that there is no communication anomaly between the in-vehicle unit and the other device, and adding a communication normal flag to the in-vehicle unit; When the target delay corresponding to the third timestamp and the fourth timestamp is not within the second numerical range, and / or the packet loss rate corresponding to the third byte and the fourth byte is not within the first numerical range, determining that there is a communication anomaly between the in-vehicle unit and the other device, and adding a communication anomaly flag to the in-vehicle unit.
9. The method according to claim 4, wherein After determining whether the probability of the in-vehicle unit having a communication anomaly is greater than a second threshold according to the verification result of the communication function verification, the method further includes: When the probability of the in-vehicle unit having a communication anomaly is greater than the second threshold, determining that the in-vehicle unit is an abnormal unit; When the probability of the in-vehicle unit having a communication anomaly is less than or equal to the second threshold and the probability of the in-vehicle unit having a communication anomaly is greater than the first threshold, determining that the roadside unit is an abnormal unit.
10. The method according to claim 1, wherein After determining the first distance between the first position and the second position corresponding to the in-vehicle unit, the method further includes: If the first distance is greater than the second distance corresponding to the road type, determining that the target vehicle has not entered the effective communication area of the roadside unit in the first area; Displaying the first prompt information to the target object in the target vehicle through the in-vehicle unit, where the first prompt information is used to indicate that the in-vehicle unit and the roadside unit have not established a stable communication connection.
11. A communication detection system for a vehicle-mounted unit, characterized in that Including: An in-vehicle unit, disposed on a target vehicle, configured to obtain first information during the process of the target vehicle passing through the first area, where the first information includes: the first position corresponding to the roadside unit and the road type of the road where the roadside unit is located; determining the first distance between the second position corresponding to the in-vehicle unit and the first position; if the first distance is less than or equal to the second distance corresponding to the road type, determining whether there is a communication anomaly between the in-vehicle unit and the roadside unit according to the communication data corresponding to the first information; The roadside unit is oppositely arranged on both sides of the road in the first area and is used to transmit corresponding first information to the in-vehicle unit in the first area in a preset data format.
12. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein the program, when running, executes the method according to any one of claims 1 to 10.
13. An electronic device, comprising a memory and a processor, characterized in that, A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 10 through the computer program.
Citation Information
Patent Citations
Curved road side method and device for road collection
CN102819872A
Internet of Vehicles message interaction method and related device
CN110972108A