Serial port testing method, device, removable carrier and storage medium

By changing the data receiving mode of the coordinate positioning serial port in the autonomous driving state to receive data from the inertial navigation module, the problem of inaccurate serial port testing in areas with poor satellite signals is solved and the accuracy and safety of the test are improved.

CN113900868BActive Publication Date: 2024-09-17GUANGZHOU WERIDE TECH LTD CO
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202111113598.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-22
Publication Date
2024-09-17
Estimated Expiration
2041-09-22

AI Technical Summary

Technical Problem

In places with poor satellite signals, using satellite positioning data to test the serial port cannot obtain accurate serial port test results, resulting in a waste of system resources and the risk of safety accidents.

Method used

When the movable carrier is in the autonomous driving state, clear the inertial navigation data of the inertial navigation serial port, change the data receiving mode of the coordinate positioning serial port to the target data receiving mode through the inertial navigation serial port, send the preset command, and according to the inertial navigation module Position data for serial port testing.

Benefits of technology

Even in places with poor satellite positioning signals, inertial navigation data can be used to test the serial port, which improves the accuracy and reliability of the serial port test and reduces the waste of system resources and the risk of safety accidents.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113900868B
    Figure CN113900868B
Patent Text Reader

Abstract

The present invention belongs to the field of automatic driving technology, and discloses a serial port testing method, device, removable carrier and storage medium. The method comprises: when the removable carrier is in an automatic driving state, clearing the inertial navigation data of the inertial navigation serial port, and changing the data receiving mode of the coordinate positioning serial port to the target data receiving mode through the inertial navigation serial port; when the data receiving mode of the coordinate positioning serial port is successfully changed, sending a preset instruction to the coordinate positioning serial port; when the coordinate positioning serial port successfully receives the preset instruction, performing a serial port test on the coordinate positioning serial port according to the positioning data of the inertial navigation module. By the above method, the data receiving mode of the coordinate positioning serial port is changed so that it can receive the positioning data of the inertial navigation module, so that the serial port can be tested by the positioning data of the inertial navigation module, and even in places where the satellite positioning signal is poor, the inertial navigation data that will not be affected by the external environment can be used to test the serial port, thereby improving the accuracy of the serial port test.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of autonomous driving technology, and in particular to a serial port testing method, device, removable carrier and storage medium. Background Art

[0002] During autonomous driving, positioning data is crucial for the removable carrier. Therefore, the connectivity of the serial port that transmits the positioning data to the removable carrier host needs to be checked in real time to prevent safety accidents.

[0003] At present, satellite positioning data is usually used to test the connectivity of the serial port. However, when the movable carrier is indoors or in places where high-rise buildings are gathered, the satellite signal will be poor. As a result, the movable carrier cannot obtain the expected test results when using satellite navigation positioning data to detect the serial port, and continues to use this satellite navigation positioning data to repeatedly detect the serial port, thereby wasting system resources and failing to obtain accurate serial port detection results. Summary of the invention

[0004] The main purpose of the present invention is to provide a serial port testing method, device, removable carrier and storage medium, aiming to solve the technical problem in the prior art that an accurate serial port test interface cannot be obtained by testing the serial port using satellite positioning data in a place with poor satellite signals.

[0005] To achieve the above object, the present invention provides a serial port testing method, which comprises the following steps:

[0006] When the movable carrier is in the automatic driving state, the inertial navigation data of the inertial navigation serial port is cleared, and the data receiving mode of the coordinate positioning serial port is changed to the target data receiving mode through the inertial navigation serial port;

[0007] When the data receiving mode of the coordinate positioning serial port is changed successfully, sending a preset instruction to the coordinate positioning serial port;

[0008] When the coordinate positioning serial port successfully receives the preset instruction, a serial port test is performed on the coordinate positioning serial port according to the positioning data of the inertial navigation module.

[0009] Optionally, the step of performing a serial port test on the coordinate positioning serial port according to the positioning data of the inertial navigation module includes:

[0010] Acquire the positioning data fed back by the coordinate positioning serial port to obtain a first feedback result;

[0011] Parsing the first feedback result to obtain a first serial port test result;

[0012] Determine whether the coordinate positioning serial port is connected normally according to the first serial port test result;

[0013] When the coordinate positioning serial port is connected normally, restoring the data receiving mode of the coordinate positioning serial port to the initial data receiving mode;

[0014] When the data receiving mode of the coordinate positioning serial port is restored successfully, it is determined that the serial port test has passed.

[0015] Optionally, before the step of clearing the inertial navigation data of the inertial navigation serial port and changing the data receiving mode of the coordinate positioning serial port to the target data receiving mode through the inertial navigation serial port when the movable carrier is in the automatic driving state, the method further includes:

[0016] Acquiring historical satellite positioning data and historical inertial navigation positioning data, and acquiring current base station positioning data of the movable carrier;

[0017] Determine a first confidence level of satellite module positioning according to the current base station positioning data and the historical satellite positioning data, and determine a second confidence level of inertial navigation module positioning according to the current base station positioning data and the historical inertial navigation positioning data;

[0018] Comparing the first confidence level and the second confidence level with confidence thresholds respectively;

[0019] When the first confidence level is less than the confidence level threshold and the second confidence level is greater than the confidence level threshold, the step of clearing the inertial navigation data of the inertial navigation serial port is performed.

[0020] Optionally, the step of determining a first confidence level of satellite module positioning according to the current base station positioning data and historical satellite positioning data, and determining a second confidence level of inertial navigation module positioning according to the current base station positioning data and historical inertial navigation positioning data includes:

[0021] Determine the current location according to the current base station location data;

[0022] Generating a satellite positioning trajectory according to the historical satellite positioning data, and generating an inertial navigation positioning trajectory according to the historical inertial navigation positioning data;

[0023] A first confidence level is determined based on the current positioning and the satellite positioning trajectory, and a second confidence level is determined based on the current positioning and the inertial navigation positioning trajectory.

[0024] Optionally, the step of determining a first confidence level according to the current positioning and the satellite positioning trajectory, and determining a second confidence level according to the current positioning and the inertial navigation positioning trajectory comprises:

[0025] Determine a first offset according to the current positioning and the satellite positioning trajectory, and determine a second offset according to the current positioning and the inertial navigation positioning trajectory;

[0026] A first confidence level is determined based on the first deviation, and a second confidence level is determined based on the second deviation.

[0027] Optionally, after the step of comparing the first confidence level and the second confidence level with confidence level thresholds respectively, the method further includes:

[0028] When the first confidence level is greater than the confidence level threshold, and the second confidence level is less than the confidence level threshold, testing the coordinate positioning serial port based on the positioning data of the satellite module;

[0029] When both the first confidence level and the second confidence level are greater than the confidence level threshold, comparing the first confidence level with the second confidence level;

[0030] When the first confidence level is greater than the second confidence level, testing the coordinate positioning serial port based on the positioning data of the satellite module;

[0031] When the first confidence level is less than the second confidence level, the coordinate positioning serial port is tested based on the positioning data of the inertial navigation module.

[0032] Optionally, the step of testing the coordinate positioning serial port based on the positioning data of the satellite module includes:

[0033] Get the current data receiving mode of the coordinate positioning serial port;

[0034] When the current receiving mode is the initial receiving mode, sending a preset instruction to the coordinate positioning serial port so that the coordinate positioning serial port feeds back the positioning data of the satellite module to obtain a second feedback result;

[0035] Parsing the second feedback result to obtain a second serial port test result;

[0036] Determine whether the coordinate positioning serial port is connected normally according to the second serial port test result.

[0037] In addition, to achieve the above object, the present invention also provides a serial port testing device, the serial port testing device comprising:

[0038] A clearing module, used for clearing the inertial navigation data of the inertial navigation serial port when the movable carrier is in the automatic driving state, and changing the data receiving mode of the coordinate positioning serial port to the target data receiving mode through the inertial navigation serial port;

[0039] A sending module, used for sending a preset instruction to the coordinate positioning serial port when the data receiving mode of the coordinate positioning serial port is changed successfully;

[0040] The test module is used to perform a serial port test on the coordinate positioning serial port according to the positioning data of the inertial navigation module when the coordinate positioning serial port successfully receives the preset instruction.

[0041] In addition, to achieve the above-mentioned purpose, the present invention also proposes a removable carrier, which includes: a memory, a processor, and a serial port test program stored in the memory and executable on the processor, wherein the serial port test program is configured to implement the steps of the serial port test method described above.

[0042] In addition, to achieve the above-mentioned purpose, the present invention further proposes a storage medium, on which a serial port test program is stored, and when the serial port test program is executed by a processor, the steps of the serial port test method described above are implemented.

[0043] When the movable carrier is in the automatic driving state, the present invention clears the inertial navigation data of the inertial navigation serial port, and changes the data receiving mode of the coordinate positioning serial port to the target data receiving mode through the inertial navigation serial port; when the data receiving mode of the coordinate positioning serial port is successfully changed, a preset instruction is sent to the coordinate positioning serial port; when the coordinate positioning serial port successfully receives the preset instruction, a serial port test is performed on the coordinate positioning serial port according to the positioning data of the inertial navigation module. In the above manner, the data receiving mode of the coordinate positioning serial port is changed so that it can receive the positioning data of the inertial navigation module, so that the serial port can be tested through the positioning data of the inertial navigation module, and even in places where the satellite positioning signal is poor, the inertial navigation data that will not be affected by the external environment can be used to test the serial port, thereby improving the accuracy of the serial port test. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 It is a flowchart of a first embodiment of a serial port testing method of the present invention;

[0045] Figure 2 It is a flowchart of a second embodiment of a serial port testing method of the present invention;

[0046] Figure 3 This is a flow chart of step S020 in the third embodiment of the serial port testing method of the present invention;

[0047] Figure 4 A schematic diagram of a trajectory of an embodiment of a serial port testing method of the present invention;

[0048] Figure 5 It is a structural block diagram of a first embodiment of a serial port testing device of the present invention;

[0049] Figure 6 It is a schematic diagram of the structure of a removable carrier of a hardware operating environment involved in an embodiment of the present invention.

[0050] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0051] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0052] The embodiment of the present invention provides a serial port testing method, referring to Figure 1 , Figure 1 The figure is a flow chart of a first embodiment of a serial port testing method of the present invention.

[0053] In this embodiment, the serial port testing method includes the following steps:

[0054] Step S100: when the movable carrier is in the automatic driving state, the inertial navigation data of the inertial navigation serial port is cleared, and the data receiving mode of the coordinate positioning serial port is changed to the target data receiving mode through the inertial navigation serial port.

[0055] It should be noted that the executor of this embodiment may be a control terminal on a removable carrier, and an operating system runs on the control terminal to realize functions customized by the manufacturer or the user. The removable carrier has various forms, such as automobiles, robots, aircraft and other carriers with mobile capabilities. This embodiment does not limit the form of the removable carrier.

[0056] It is understandable that when the movable carrier is driving automatically, the control terminal on the movable carrier needs to obtain various sensor data and positioning data in real time, determine its specific position on the high-precision map based on the positioning data, and implement the automatic driving operation based on the sensor data. Various sensors and control terminals are connected through wiring harnesses and serial ports so that data can be transmitted normally. Due to the jitter generated when the movable carrier is driving or the manual splicing during the production line of the movable carrier, the connection between the sensor, device and control terminal is wrong. Therefore, the serial ports connecting various devices to the control terminal need to be tested for connectivity in real time to avoid safety accidents caused by sudden connection errors.

[0057] It should be noted that a satellite module is provided on the movable carrier for realizing satellite positioning of the movable carrier. The satellite positioning system may be a global positioning system (GPS) or a BeiDou Navigation Satellite System (BDS), which is not limited in this embodiment. The inertial navigation module is used to obtain inertial navigation data. The inertial navigation system is an autonomous navigation system that does not rely on external information or radiate energy to the outside. The basic working principle of inertial navigation is based on Newton's laws of mechanics. By measuring the acceleration of the carrier in the inertial reference system, integrating it over time, and transforming it into the navigation coordinate system, information such as speed, yaw angle, and position in the navigation coordinate system can be obtained.

[0058] It should be understood that in order to avoid data coupling, firstly, all the inertial navigation data of the inertial navigation serial port need to be eliminated through the serial port tool, which is software that can operate the serial port. After the data of the inertial navigation serial port is cleared, the data receiving mode of the coordinate positioning port is modified through the inertial navigation serial port. The coordinate positioning serial port is used to send and receive global positioning real-time coordinates. The data receiving mode includes the type of received data. In the initial data receiving mode, the coordinate positioning serial port receives satellite positioning data, while the target data receiving mode receives inertial navigation positioning data.

[0059] It should be noted that when the data receiving mode of the coordinate positioning serial port is not successfully modified, the modification is repeated. When the modification fails for five consecutive times, a prompt message is generated to prompt the engineer that the data mode modification of the coordinate positioning serial port has failed. At the same time, this prompt message is sent to the remote service to prompt the remote engineer to repair it.

[0060] It can be understood that when the data receiving mode of the coordinate positioning serial port is successfully modified, the subsequent test will continue.

[0061] Step S200: When the data receiving mode of the coordinate positioning serial port is changed successfully, a preset instruction is sent to the coordinate positioning serial port.

[0062] In a specific implementation, when the data receiving mode of the coordinate positioning serial port is modified successfully, a preset instruction is sent to the coordinate positioning serial port. When the coordinate positioning serial port feedbacks that the receiving instruction fails, the preset instruction is sent five times repeatedly. When the receiving fails five times, a prompt message is generated to prompt the engineer that the coordinate positioning serial port connection fails. The preset instruction is used to make the coordinate positioning serial port feedback the positioning data circulated on the coordinate positioning serial port.

[0063] Step S300: When the coordinate positioning serial port successfully receives the preset instruction, a serial port test is performed on the coordinate positioning serial port according to the positioning data of the inertial navigation module.

[0064] Further, step S300 includes: obtaining the positioning data fed back by the coordinate positioning serial port to obtain a first feedback result; parsing the first feedback result to obtain a first serial port test result; judging whether the coordinate positioning serial port is connected normally according to the first serial port test result. When the coordinate positioning serial port is connected normally, restoring the data receiving mode of the coordinate positioning serial port to the initial data receiving mode; when the data receiving mode of the coordinate positioning serial port is restored successfully, judging that the serial port test is passed.

[0065] It is understandable that after the preset instruction is successfully received, the coordinate positioning serial port will feedback the positioning data sent by the inertial navigation module, thereby obtaining the first feedback result, parsing the first feedback result, thereby obtaining the transceiver data of the coordinate positioning serial port, and then comparing the positioning data sent by the inertial navigation module with the transceiver data, thereby obtaining the first serial port test result. From the first serial port test result, it can be obtained whether the coordinate positioning serial port has data loss, data transmission delay rate and other data, thereby judging whether the coordinate positioning serial port is connected normally. When the connection is normal, the receiving data mode of the coordinate positioning serial port is restored to the initial receiving data mode. When the recovery is not successful, repeat the recovery five times. When all fail, the engineer is prompted to access the recovery coordinate positioning serial port. When the recovery is successful, it indicates that the coordinate positioning serial port test has passed.

[0066] In this embodiment, when the movable carrier is in the automatic driving state, the inertial navigation data of the inertial navigation serial port is cleared, and the data receiving mode of the coordinate positioning serial port is changed to the target data receiving mode through the inertial navigation serial port; when the data receiving mode of the coordinate positioning serial port is successfully changed, a preset instruction is sent to the coordinate positioning serial port; when the coordinate positioning serial port successfully receives the preset instruction, the coordinate positioning serial port is tested according to the positioning data of the inertial navigation module. In the above manner, the data receiving mode of the coordinate positioning serial port is changed so that it can receive the positioning data of the inertial navigation module, so that the serial port can be tested through the positioning data of the inertial navigation module, and even in places where the satellite positioning signal is poor, the serial port can be tested using inertial navigation data that will not be affected by the external environment, thereby improving the accuracy of the serial port test.

[0067] refer to Figure 2 , Figure 2 The figure is a flow chart of a second embodiment of a serial port testing method of the present invention.

[0068] Based on the first embodiment, the serial port testing method of this embodiment further includes, before step S100:

[0069] Step S010: Acquire historical satellite positioning data and historical inertial navigation positioning data, and acquire current base station positioning data of the movable carrier.

[0070] It is understandable that historical satellite positioning data refers to satellite positioning data from a preset time period to the current time. For example, if the preset time period is 5 minutes and the current time is 12:15, the historical satellite positioning data refers to satellite positioning data between 12:10 and 12:15. Similarly, historical inertial navigation positioning data refers to inertial navigation data from a preset time period to the current time. Inertial navigation data is obtained by the inertial navigation module. The inertial navigation system is an autonomous navigation system that does not rely on external information and does not radiate energy to the outside.

[0071] In the specific implementation, due to the characteristics of inertial navigation, it will not be affected by the external environment. Therefore, inertial navigation positioning data is a good data source for testing serial port connectivity. However, inertial navigation usually increases over time and the positioning accuracy decreases. Therefore, it is not suitable for being the main positioning data source for a long time for a movable carrier. Satellite positioning in indoor areas and areas with concentrated obstructions will lead to poor positioning signals, data transmission interruptions and other problems. It cannot be used as the only data source for serial port connectivity testing. Therefore, it is necessary to select one of the positioning data as the data source for detecting the serial port according to the current state of the movable carrier.

[0072] It should be noted that mobile signals are usually better in cities, and there are many base stations distributed. The current positioning position, that is, the current base station positioning data, can be determined by the communication time difference between the movable carrier and the base station. However, in areas with densely populated high-rise buildings in cities, satellite positioning is less accurate than base station positioning. Therefore, the movable carrier uses base station positioning as a benchmark.

[0073] It is understandable that in more remote areas, such as suburbs, there are fewer base stations, resulting in poor mobile signals. Compared with satellite positioning data and inertial navigation positioning data, base station positioning data cannot be used as a stable data source for testing serial ports.

[0074] In the specific implementation, before obtaining the current base station positioning data of the movable carrier, it is necessary to detect the signal strength and bandwidth of the mobile data. Only when the signal strength and bandwidth meet certain conditions can the base station positioning be used as the reference positioning. For example: the current mobile signal strength is -67 (dBm), the preset strength is -90 (dBm), the current bandwidth is 1Mb / s, and the preset bandwidth is 0.5Mb / s. At this time, the current signal strength is greater than the preset signal strength, and the current bandwidth is greater than the preset bandwidth, indicating that the mobile signal meets the conditions and can be used as a positioning reference.

[0075] Step S020: determining a first confidence level of satellite module positioning according to the current base station positioning data and the historical satellite positioning data, and determining a second confidence level of inertial navigation module positioning according to the current base station positioning data and the historical inertial navigation positioning data.

[0076] It should be noted that confidence refers to the degree of credibility of the results obtained when using this data source to perform serial port testing. Generally, the more unstable the data interaction process is, the higher the probability of packet loss, data delay and other phenomena occurring, and the lower the corresponding confidence.

[0077] In a specific implementation, the current mobile signal strength is determined according to the current base station positioning data, and the satellite positioning signal strength within a period of time can be determined according to the historical satellite positioning data, thereby obtaining the average value of the satellite positioning signal strength. The average value of the satellite signal strength is compared with the mobile signal strength to obtain the first confidence level. For example: the current mobile signal strength is -80 (dBm), and the satellite positioning signal strength within a period of time is sampled, and the satellite positioning signal strength is collected once every 5 seconds. The multiple satellite positioning signal strengths are -88 (dBm), -90 (dBm), and -92 (dBm), respectively. The average value of the satellite positioning signal strength is -90 (dBm), and the first confidence level is (-80) / (-90) = 0.89. The above is only a description of the distance, and this embodiment is not limited.

[0078] Furthermore, due to the serious zero drift of the gyroscope and the vibration of the vehicle, the inertial navigation positioning cannot obtain high-precision information such as azimuth and speed by directly integrating the acceleration. Therefore, it is difficult for the inertial navigation system to work independently for a long time. As the inertial navigation working time is longer, the confidence of its data is lower. The current time point is determined according to the current base station positioning data, the initial working time point of the inertial navigation positioning is determined according to the historical inertial navigation positioning data, and the working time of the inertial navigation can be determined according to the initial working time point and the current time point. The working time is compared with the working time threshold, and the second confidence can be obtained. For example: the current time point is 10:30, the initial working time point is 9:40, the working time is 50 minutes, the working time threshold is 40 minutes, and the second confidence is 40 / 50=0.8. The above is only for example, and this embodiment is not limited.

[0079] Step S030: Compare the first confidence level and the second confidence level with confidence level thresholds respectively.

[0080] It should be noted that the confidence threshold is the basic condition to ensure the credibility of the serial port test results. Therefore, it is necessary to compare the first confidence and the second confidence with the confidence threshold respectively to determine whether to use the positioning data of the satellite module as the test data source or the positioning data of the inertial navigation module as the test data source.

[0081] Step S040: When the first confidence level is less than the confidence level threshold and the second confidence level is greater than the confidence level threshold, executing the step of clearing the inertial navigation data of the inertial navigation serial port.

[0082] Furthermore, after the step of comparing the first confidence level and the second confidence level with the confidence threshold respectively, it also includes: when the first confidence level is greater than the confidence threshold and the second confidence level is less than the confidence threshold, testing the coordinate positioning serial port based on the positioning data of the satellite module; when the first confidence level and the second confidence level are both greater than the confidence threshold, comparing the first confidence level with the second confidence level; when the first confidence level is greater than the second confidence level, testing the coordinate positioning serial port based on the positioning data of the satellite module; when the first confidence level is less than the second confidence level, executing the step of clearing the inertial navigation data of the inertial navigation serial port.

[0083] In a specific implementation, the test method is determined according to the results obtained by comparing the first confidence level and the second confidence level with the confidence threshold respectively. For example, if the first confidence level is 0.85, the second confidence level is 0.78, and the confidence threshold is 0.8, then the first confidence level is greater than the confidence threshold, and the second confidence level is less than the confidence threshold, indicating that the data source of the positioning module corresponding to the first confidence level can meet the basic conditions for the serial port test. At this time, the positioning data of the satellite module is selected as the data source for the test serial port. If the first confidence level is 0.78, the second confidence level is 0.83, and the confidence threshold is 0.8, then the first confidence level is less than the confidence threshold, and the second confidence level is greater than the confidence threshold. At this time, the positioning data of the inertial navigation module is used as the data source. If the first confidence is 0.81, the second confidence is 0.88, the confidence threshold is 0.8, and both the first confidence and the second confidence are greater than the confidence threshold, then the first confidence needs to be compared with the confidence. At this time, if the first confidence is greater than the second confidence, the positioning data of the satellite module corresponding to the first confidence is used as the test data source.

[0084] Furthermore, the step of testing the coordinate positioning serial port based on the positioning data of the satellite module includes: obtaining the current data receiving mode of the coordinate positioning serial port; when the current receiving mode is the initial receiving mode, sending a preset instruction to the coordinate positioning serial port so that the coordinate positioning serial port feeds back the positioning data of the satellite module to obtain a second feedback result; parsing the second feedback result to obtain a second serial port test result; and judging whether the coordinate positioning serial port is connected normally according to the second serial port test result.

[0085] In the specific implementation, if the positioning data received by the satellite module is used for serial port testing, first determine whether the coordinate positioning serial port is in the initial data receiving mode. If it is not in the initial data receiving mode, the data of the satellite serial port needs to be cleared and the data receiving mode of the coordinate positioning serial port needs to be changed to the initial data receiving mode. If the current data receiving mode of the coordinate positioning serial port is the initial data receiving mode, the coordinate positioning serial port is operated directly without the need to operate the satellite serial port.

[0086] It can be understood that a preset instruction is sent to the coordinate positioning serial port. After the coordinate positioning serial port successfully receives the instruction, the positioning data sent by the satellite module is fed back to obtain a second feedback result, the second feedback result is parsed to obtain the transceiver data, and the transceiver data is compared with the data received by the satellite module to obtain the second serial port test result. According to the second serial port test result, it can be determined whether the coordinate positioning serial port can work normally.

[0087] Furthermore, if both the first confidence level and the second confidence level are less than the confidence threshold, it indicates that the positioning data generated by the two positioning modules are not highly reliable data. At this time, the serial port connectivity test is stopped, and the positioning data generated by the satellite module and the inertial navigation module are continuously obtained and the confidence level is calculated until the confidence level meets the above conditions. If within the preset time, the confidence levels corresponding to the positioning data generated by the satellite module and the inertial navigation module cannot be greater than the confidence threshold, it indicates that the positioning module of the movable carrier may have errors and needs to be repaired.

[0088] This embodiment obtains historical satellite positioning data and historical inertial navigation positioning data, and obtains the current base station positioning data of the movable carrier; determines the first confidence of satellite module positioning according to the current base station positioning data and historical satellite positioning data, and determines the second confidence of inertial navigation module positioning according to the current base station positioning data and historical inertial navigation positioning data; compares the first confidence and the second confidence with the confidence threshold respectively; when the first confidence is less than the confidence threshold, and the second confidence is greater than the confidence threshold, executes the step of clearing the inertial navigation data of the inertial navigation serial port. Through the above method, based on the base station positioning as a reference, the corresponding confidence is determined based on the satellite positioning data and the inertial navigation positioning data under the current site conditions, and the test method is determined according to the confidence, so that a more reliable serial port test method can be selected based on the current site conditions, which improves the efficiency of troubleshooting serial port connection errors and reduces the waste of system resources.

[0089] refer to Figure 3 , Figure 3 The figure is a flow chart of a third embodiment of a serial port testing method of the present invention.

[0090] Based on the third embodiment, the serial port testing method of this embodiment further includes, in step S020:

[0091] Step S021: Determine the current location according to the current base station location data.

[0092] It should be noted that when in areas with good mobile signals, such as urban roads with dense high-rise buildings, the satellite positioning signal will be blocked by high-rise buildings, which will cause satellite positioning data transmission to be stuck and packet loss, thereby affecting the test results of real-time serial port connectivity and reducing the credibility of the test.

[0093] In a specific implementation, an IoT card is also provided on the movable carrier, and the IoT card can exchange data with the base station. When the movable carrier exchanges data with the base station, the corresponding base station identification number can be determined. Since each base station has a certain coverage range (i.e., a base station cell), the current base station cell can be determined, thereby determining whether the movable carrier has entered an area with poor satellite signals. Since satellite positioning is prone to offset between high-rise buildings, it is not reliable to use satellite positioning to determine the current area of ​​the movable carrier.

[0094] Step S022: Generate a satellite positioning trajectory according to the historical satellite positioning data, and generate an inertial navigation positioning trajectory according to the historical inertial navigation positioning data.

[0095] It can be understood that the historical satellite positioning data refers to the satellite positioning data from before the preset time period to the present. A continuous positioning trajectory is generated based on the continuous positioning data within the preset time period. Similarly, the inertial navigation positioning trajectory is also a continuous positioning trajectory generated based on the historical inertial navigation positioning data.

[0096] Step S023: determining a first confidence level according to the current positioning and the satellite positioning trajectory, and determining a second confidence level according to the current positioning and the inertial navigation positioning trajectory.

[0097] It should be noted that the satellite positioning trajectory is a route fitted based on multiple satellite positioning coordinates. By searching for the corresponding route on the autonomous driving planned route based on the initial coordinates of the satellite positioning trajectory and the coordinates of the current positioning of the mobile signal positioning, and comparing the planned route with the satellite positioning trajectory, the deviation value between the satellite positioning trajectory and the planned route can be determined, and a first confidence level can be obtained based on the deviation value. Similarly, by searching for the corresponding route on the autonomous driving planned route based on the initial coordinates of the inertial navigation positioning trajectory and the coordinates of the current positioning of the mobile signal positioning, and comparing the planned route with the inertial navigation positioning trajectory, the deviation value between the inertial navigation positioning trajectory and the planned route can be determined, and a second confidence level can be obtained based on the deviation value.

[0098] Furthermore, in order to obtain a more accurate confidence level, step S023 includes: determining a first offset based on the current positioning and the satellite positioning trajectory, and determining a second offset based on the current positioning and the inertial navigation positioning trajectory; determining a first confidence level based on the first offset level, and determining a second confidence level based on the second offset level.

[0099] In the specific implementation, first determine the first intersection of the two trajectories based on the satellite positioning trajectory and the inertial navigation positioning trajectory, and use the first intersection as the initial point. If there is no intersection, use the midpoint of the two starting positions as the initial point. Determine the planned trajectory on the planned route based on the initial point and the current positioning of the mobile signal positioning. Compare the planned trajectory with the satellite positioning trajectory to obtain the first offset. Compare the planned trajectory with the inertial navigation positioning trajectory to obtain the second offset, and obtain the corresponding confidence based on the offset. Figure 4 As shown, L1 is the satellite positioning trajectory, L2 is the inertial navigation positioning trajectory, L3 is the planned trajectory, A is the current position, and B is the first intersection point.

[0100] This embodiment determines the current positioning according to the current base station positioning data; generates a satellite positioning trajectory according to the historical satellite positioning data, and generates an inertial navigation positioning trajectory according to the historical inertial navigation positioning data; determines a first confidence level according to the current positioning and the satellite positioning trajectory, and determines a second confidence level according to the current positioning and the inertial navigation positioning trajectory. In the above manner, the corresponding confidence level can be determined based on the satellite positioning trajectory generated by the historical satellite positioning data and the inertial navigation positioning trajectory generated by the historical inertial navigation positioning data, so that the target mode of the test serial port can be selected more accurately.

[0101] In addition, an embodiment of the present invention further provides a storage medium, on which a serial port test program is stored. When the serial port test program is executed by a processor, the steps of the serial port test method described above are implemented.

[0102] Since the storage medium adopts all the technical solutions of all the above embodiments, it has at least all the beneficial effects brought by the technical solutions of the above embodiments, which will not be described one by one here.

[0103] Reference Figure 5 , Figure 5 It is a structural block diagram of the first embodiment of the serial port testing device of the present invention.

[0104] like Figure 5 As shown, the serial port testing device proposed in the embodiment of the present invention includes:

[0105] A clearing module 10 is used to clear the inertial navigation data of the inertial navigation serial port when the movable carrier is in the automatic driving state, and change the data receiving mode of the coordinate positioning serial port to the target data receiving mode through the inertial navigation serial port;

[0106] A sending module 20, configured to send a preset instruction to the coordinate positioning serial port when the data receiving mode of the coordinate positioning serial port is changed successfully;

[0107] The test module 30 is used to perform a serial port test on the coordinate positioning serial port according to the positioning data of the inertial navigation module when the coordinate positioning serial port successfully receives the preset instruction.

[0108] It should be understood that the above is only an example and does not constitute any limitation on the technical solution of the present invention. In specific applications, technicians in this field can make settings as needed, and the present invention does not limit this.

[0109] In this embodiment, when the movable carrier is in the automatic driving state, the inertial navigation data of the inertial navigation serial port is cleared, and the data receiving mode of the coordinate positioning serial port is changed to the target data receiving mode through the inertial navigation serial port; when the data receiving mode of the coordinate positioning serial port is successfully changed, a preset instruction is sent to the coordinate positioning serial port; when the coordinate positioning serial port successfully receives the preset instruction, the coordinate positioning serial port is tested according to the positioning data of the inertial navigation module. In the above manner, the data receiving mode of the coordinate positioning serial port is changed so that it can receive the positioning data of the inertial navigation module, so that the serial port can be tested through the positioning data of the inertial navigation module, and even in places where the satellite positioning signal is poor, the serial port can be tested using inertial navigation data that will not be affected by the external environment, thereby improving the accuracy of the serial port test.

[0110] It should be noted that the workflow described above is merely illustrative and does not limit the scope of protection of the present invention. In practical applications, technicians in this field can select part or all of them according to actual needs to achieve the purpose of the present embodiment, and no limitation is made here.

[0111] In addition, for technical details not fully described in this embodiment, reference may be made to the serial port testing method provided in any embodiment of the present invention, and will not be repeated here.

[0112] Reference Figure 6 , Figure 6 A schematic diagram of the structure of a removable carrier of a hardware operating environment involved in an embodiment of the present invention.

[0113] like Figure 6As shown, the removable carrier may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (Wireless-Fidelity, Wi-Fi) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM) memory, or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0114] Those skilled in the art will understand that Figure 6 The structure shown in the figure does not constitute a limitation on the movable carrier, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0115] like Figure 6 As shown, the memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module, and a serial port test program.

[0116] exist Figure 6 In the removable carrier shown, the network interface 1004 is mainly used for data communication with the network server; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the removable carrier of the present invention can be set in the removable carrier, and the removable carrier calls the serial port test program stored in the memory 1005 through the processor 1001, and performs the following operations:

[0117] When the movable carrier is in the automatic driving state, the inertial navigation data of the inertial navigation serial port is cleared, and the data receiving mode of the coordinate positioning serial port is changed to the target data receiving mode through the inertial navigation serial port;

[0118] When the data receiving mode of the coordinate positioning serial port is changed successfully, sending a preset instruction to the coordinate positioning serial port;

[0119] When the coordinate positioning serial port successfully receives the preset instruction, a serial port test is performed on the coordinate positioning serial port according to the positioning data of the inertial navigation module.

[0120] Further, the processor 1001 may call the serial port test program stored in the memory 1005, and further perform the following operations:

[0121] Acquire the positioning data fed back by the coordinate positioning serial port to obtain a first feedback result;

[0122] Parsing the first feedback result to obtain a first serial port test result;

[0123] Determine whether the coordinate positioning serial port is connected normally according to the first serial port test result.

[0124] When the coordinate positioning serial port is connected normally, restoring the data receiving mode of the coordinate positioning serial port to the initial data receiving mode;

[0125] When the data receiving mode of the coordinate positioning serial port is restored successfully, it is determined that the serial port test has passed.

[0126] Further, the processor 1001 may call the serial port test program stored in the memory 1005, and further perform the following operations:

[0127] Acquiring historical satellite positioning data and historical inertial navigation positioning data, and acquiring current base station positioning data of the movable carrier;

[0128] Determine a first confidence level of satellite module positioning according to the current base station positioning data and the historical satellite positioning data, and determine a second confidence level of inertial navigation module positioning according to the current base station positioning data and the historical inertial navigation positioning data;

[0129] Comparing the first confidence level and the second confidence level with confidence thresholds respectively;

[0130] When the first confidence level is less than the confidence level threshold and the second confidence level is greater than the confidence level threshold, the step of clearing the inertial navigation data of the inertial navigation serial port is performed.

[0131] Further, the processor 1001 may call the serial port test program stored in the memory 1005, and further perform the following operations:

[0132] Determine the current location according to the current base station location data;

[0133] Generating a satellite positioning trajectory according to the historical satellite positioning data, and generating an inertial navigation positioning trajectory according to the historical inertial navigation positioning data;

[0134] A first confidence level is determined based on the current positioning and the satellite positioning trajectory, and a second confidence level is determined based on the current positioning and the inertial navigation positioning trajectory.

[0135] Further, the processor 1001 may call the serial port test program stored in the memory 1005, and further perform the following operations:

[0136] Determine a first offset according to the current positioning and the satellite positioning trajectory, and determine a second offset according to the current positioning and the inertial navigation positioning trajectory;

[0137] A first confidence level is determined based on the first deviation, and a second confidence level is determined based on the second deviation.

[0138] Further, the processor 1001 may call the serial port test program stored in the memory 1005, and further perform the following operations:

[0139] When the first confidence level is greater than the confidence level threshold, and the second confidence level is less than the confidence level threshold, testing the coordinate positioning serial port based on the positioning data of the satellite module;

[0140] When both the first confidence level and the second confidence level are greater than the confidence level threshold, comparing the first confidence level with the second confidence level;

[0141] When the first confidence level is greater than the second confidence level, testing the coordinate positioning serial port based on the positioning data of the satellite module;

[0142] When the first confidence level is less than the second confidence level, the coordinate positioning serial port is tested based on the positioning data of the inertial navigation module.

[0143] Further, the processor 1001 may call the serial port test program stored in the memory 1005, and further perform the following operations:

[0144] Get the current data receiving mode of the coordinate positioning serial port;

[0145] When the current receiving mode is the initial receiving mode, sending a preset instruction to the coordinate positioning serial port so that the coordinate positioning serial port feeds back the positioning data of the satellite module to obtain a second feedback result;

[0146] Parsing the second feedback result to obtain a second serial port test result;

[0147] Determine whether the coordinate positioning serial port is connected normally according to the second serial port test result.

[0148] In this embodiment, when the movable carrier is in the automatic driving state, the inertial navigation data of the inertial navigation serial port is cleared, and the data receiving mode of the coordinate positioning serial port is changed to the target data receiving mode through the inertial navigation serial port; when the data receiving mode of the coordinate positioning serial port is successfully changed, a preset instruction is sent to the coordinate positioning serial port; when the coordinate positioning serial port successfully receives the preset instruction, the coordinate positioning serial port is tested according to the positioning data of the inertial navigation module. In the above manner, the data receiving mode of the coordinate positioning serial port is changed so that it can receive the positioning data of the inertial navigation module, so that the serial port can be tested through the positioning data of the inertial navigation module, and even in places where the satellite positioning signal is poor, the serial port can be tested using inertial navigation data that will not be affected by the external environment, thereby improving the accuracy of the serial port test.

[0149] In addition, it should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0150] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0151] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory (ROM) / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0152] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A serial port testing method, It is characterized in that The serial port testing method comprises: When the movable carrier is in the automatic driving state, the inertial navigation data of the inertial navigation serial port is cleared, and the data receiving mode of the coordinate positioning serial port is changed to the target data receiving mode through the inertial navigation serial port. In the target data receiving mode, the coordinate positioning serial port receives the inertial navigation positioning data; When the data receiving mode of the coordinate positioning serial port is changed successfully, sending a preset instruction to the coordinate positioning serial port; When the coordinate positioning serial port successfully receives the preset instruction, a serial port test is performed on the coordinate positioning serial port according to the positioning data of the inertial navigation module; The step of performing a serial port test on the coordinate positioning serial port according to the positioning data of the inertial navigation module comprises: Acquire the positioning data fed back by the coordinate positioning serial port to obtain a first feedback result; Parsing the first feedback result to obtain a first serial port test result; Determine whether the coordinate positioning serial port is connected normally according to the first serial port test result; When the coordinate positioning serial port is connected normally, the data receiving mode of the coordinate positioning serial port is restored to the initial data receiving mode. In the initial data receiving mode, the coordinate positioning serial port receives satellite positioning data. When the data receiving mode of the coordinate positioning serial port is restored successfully, it is determined that the serial port test has passed; Before the step of clearing the inertial navigation data of the inertial navigation serial port and changing the data receiving mode of the coordinate positioning serial port to the target data receiving mode through the inertial navigation serial port when the movable carrier is in the automatic driving state, the method further includes: Acquiring historical satellite positioning data and historical inertial navigation positioning data, and acquiring current base station positioning data of the movable carrier; Determine a first confidence level of satellite module positioning according to the current base station positioning data and the historical satellite positioning data, and determine a second confidence level of inertial navigation module positioning according to the current base station positioning data and the historical inertial navigation positioning data; Comparing the first confidence level and the second confidence level with confidence thresholds respectively; When the first confidence level is less than the confidence level threshold and the second confidence level is greater than the confidence level threshold, the step of clearing the inertial navigation data of the inertial navigation serial port is performed.

2. The method according to claim 1, It is characterized in that The step of determining a first confidence level of satellite module positioning according to the current base station positioning data and the historical satellite positioning data, and determining a second confidence level of inertial navigation module positioning according to the current base station positioning data and the historical inertial navigation positioning data, comprises: Determine the current location according to the current base station location data; Generating a satellite positioning trajectory according to the historical satellite positioning data, and generating an inertial navigation positioning trajectory according to the historical inertial navigation positioning data; A first confidence level is determined based on the current positioning and the satellite positioning trajectory, and a second confidence level is determined based on the current positioning and the inertial navigation positioning trajectory.

3. The method according to claim 2, It is characterized in that The step of determining a first confidence level according to the current positioning and the satellite positioning trajectory, and determining a second confidence level according to the current positioning and the inertial navigation positioning trajectory comprises: Determine a first offset according to the current positioning and the satellite positioning trajectory, and determine a second offset according to the current positioning and the inertial navigation positioning trajectory; A first confidence level is determined based on the first deviation, and a second confidence level is determined based on the second deviation.

4. The method according to claim 1, It is characterized in that After the step of comparing the first confidence level and the second confidence level with confidence level thresholds respectively, the method further includes: When the first confidence level is greater than the confidence level threshold, and the second confidence level is less than the confidence level threshold, testing the coordinate positioning serial port based on the positioning data of the satellite module; When both the first confidence level and the second confidence level are greater than the confidence level threshold, comparing the first confidence level with the second confidence level; When the first confidence level is greater than the second confidence level, testing the coordinate positioning serial port based on the positioning data of the satellite module; When the first confidence level is less than the second confidence level, the step of clearing the inertial navigation data of the inertial navigation serial port is performed.

5. The method according to claim 4, It is characterized in that The step of testing the coordinate positioning serial port based on the positioning data of the satellite module includes: Get the current data receiving mode of the coordinate positioning serial port; When the current data receiving mode is the initial data receiving mode, sending a preset instruction to the coordinate positioning serial port so that the coordinate positioning serial port feeds back the positioning data of the satellite module to obtain a second feedback result; Parsing the second feedback result to obtain a second serial port test result; Determine whether the coordinate positioning serial port is connected normally according to the second serial port test result.

6. A serial port testing device, It is characterized in that The serial port testing device is used to implement the steps of the serial port testing method according to any one of claims 1 to 5, and the serial port testing device includes: A clearing module, used for clearing the inertial navigation data of the inertial navigation serial port when the movable carrier is in the automatic driving state, and changing the data receiving mode of the coordinate positioning serial port to the target data receiving mode through the inertial navigation serial port. In the target data receiving mode, the coordinate positioning serial port receives the inertial navigation positioning data; A sending module, used for sending a preset instruction to the coordinate positioning serial port when the data receiving mode of the coordinate positioning serial port is changed successfully; A test module, used for performing a serial port test on the coordinate positioning serial port according to the positioning data of the inertial navigation module when the coordinate positioning serial port successfully receives the preset instruction; The test module is further used to obtain the positioning data fed back by the coordinate positioning serial port to obtain a first feedback result; parse the first feedback result to obtain a first serial port test result; determine whether the coordinate positioning serial port is connected normally according to the first serial port test result; when the coordinate positioning serial port is connected normally, restore the data receiving mode of the coordinate positioning serial port to an initial data receiving mode, in which the coordinate positioning serial port receives satellite positioning data; when the data receiving mode of the coordinate positioning serial port is restored successfully, determine that the serial port test has passed; The clearing module is also used to obtain historical satellite positioning data and historical inertial navigation positioning data, and obtain current base station positioning data of the movable carrier; determine a first confidence level of satellite module positioning according to the current base station positioning data and historical satellite positioning data, and determine a second confidence level of inertial navigation module positioning according to the current base station positioning data and historical inertial navigation positioning data; compare the first confidence level and the second confidence level with a confidence threshold respectively; when the first confidence level is less than the confidence threshold and the second confidence level is greater than the confidence threshold, execute the step of clearing the inertial navigation data of the inertial navigation serial port.

7. A removable carrier, It is characterized in that The removable carrier comprises: a memory, a processor, and a serial port test program stored in the memory and executable on the processor, wherein the serial port test program is configured to implement the serial port test method according to any one of claims 1 to 5.

8. A storage medium, It is characterized in that The storage medium stores a serial port test program, and when the serial port test program is executed by the processor, the serial port test method according to any one of claims 1 to 5 is implemented.

Citation Information

Cited By

  • A method and system for serial interface status analysis based on differential synchronization measurement

    CN123114878A