Vehicle positioning method, system and equipment based on interconnection of automobile and mobile phone, and medium
By combining data from mobile phones and vehicles, and using inertial measurement units and mileage data, the problem of reduced navigation and positioning accuracy in complex environments is solved, and high-precision navigation of vehicles under different signal conditions is achieved.
Patent Information
- Application Number
- CN202410878011.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-02
- Publication Date
- 2024-10-15
AI Technical Summary
Existing vehicle navigation systems and mobile phone navigation applications are difficult to achieve continuous and high-precision navigation and positioning in complex environments. Vehicle navigation systems are slow to update maps and are costly, while mobile phone navigation applications have reduced positioning accuracy due to sensor limitations when satellite signals are weak.
By combining the inertial measurement unit data in the mobile phone with the vehicle sensor data, the real-time dynamic differential positioning and mileage data of the mobile phone navigation chip are used for fusion calculation, and Kalman filtering technology is used to achieve high-precision navigation of the vehicle under different signal conditions. position.
It ensures that vehicles can achieve continuous high-precision navigation and positioning in complex environments, improves navigation accuracy and reliability, and reduces system complexity and cost.
Smart Images

Figure CN118776553A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of automobile positioning technology, and in particular to a vehicle positioning method, system, device and medium based on the interconnection between a car and a mobile phone. Background Art
[0002] With the continuous development of science and technology, smart travel has become an important part of modern life. In the field of smart travel, both in-vehicle navigation systems and mobile navigation applications play a vital role. However, although both have greatly improved the navigation experience of drivers, the performance of a single navigation system is often limited in complex environments (such as urban canyons, underground parking lots, long tunnels, etc.), and it is unable to provide continuous and high-precision navigation and positioning services. At present, in-vehicle navigation systems mainly rely on built-in sensors (such as GPS receivers, IMUs, etc.) and pre-installed map data to achieve navigation and positioning. However, in-vehicle navigation systems have limitations when facing the following challenges: First, the update of the car map is not timely, which increases the time and money costs of users; second, the realization of high-precision indoor positioning requires the installation of expensive sensors such as laser radar, which is not realistic for ordinary vehicles; third, the realization of the Internet of Vehicles function requires the installation of additional traffic cards, which increases the complexity of the system. At the same time, mobile navigation applications have occupied a place in the navigation market with their advantages such as portability, real-time map updates, and the ability to use mobile networks for positioning. However, mobile navigation applications also face some challenges: first, due to the size of mobile phones, large sensors such as lidar and odometers cannot be installed, so the positioning accuracy will be affected when the satellite signal is weak or there is no satellite signal; second, mobile navigation applications cannot fully utilize the rich sensor data on the vehicle, which to a certain extent limits the improvement of its positioning accuracy. Therefore, how to achieve continuous high-precision lane-level navigation in complex environments is a problem to be solved. Summary of the invention
[0003] The main purpose of this application is to overcome the shortcomings and deficiencies of the prior art and to provide a vehicle positioning method, system, device and medium based on the interconnection between a car and a mobile phone. By combining and processing the vehicle sensor data and the positioning data on the mobile phone, continuous high-precision lane-level navigation positioning can be achieved in complex environments.
[0004] In order to achieve the above objectives, this application adopts the following technical solutions:
[0005] In a first aspect, the present application provides a vehicle positioning method based on the interconnection between a car and a mobile phone, comprising the following steps:
[0006] Performing dead reckoning using gyroscope data and accelerometer data of an inertial measurement unit in the mobile phone to obtain a dead reckoning result; the dead reckoning result includes a first position, a first speed, and a first attitude of the vehicle at a current moment;
[0007] According to the configuration of the mobile phone navigation chip, the position of the real-time dynamic differential positioning or the position of the single point positioning in the mobile phone is first fused with the dead reckoning result to obtain a combined navigation positioning result; the combined navigation positioning result includes the second position, the second speed and the second posture of the vehicle at the current moment;
[0008] Calculating the mileage data of the vehicle, the mileage data including: the vehicle's travel distance and travel speed;
[0009] According to the satellite signal conditions of the vehicle, the dead reckoning result or the combined navigation positioning result is subjected to a second fusion positioning solution with the mileage data to obtain a third position, a third speed, and a third posture of the vehicle at the current moment.
[0010] As a preferred technical solution, the real-time dynamic differential positioning position includes:
[0011] Establish data transmission channels between base station and mobile station;
[0012] Based on the data transmission channel, the mobile station receives the base station data and extracts the data information related to the satellite;
[0013] Performing ambiguity calculation on the satellite-related data information;
[0014] Using the known reference station position and the ambiguity, the current position coordinates of the mobile station are calculated;
[0015] The current position coordinates are corrected to obtain a real-time dynamic differential positioning position.
[0016] As a preferred technical solution, the calculation of vehicle mileage data includes:
[0017] Calculate the difference in the number of pulses of the vehicle from the previous moment to the current moment;
[0018] Calculating the travel distance of the vehicle within the sampling interval based on the difference in the number of pulses;
[0019] Determine the driving direction according to the gear information of the vehicle;
[0020] Obtaining the steering wheel angle difference of the vehicle from the previous moment to the current moment, and converting the steering wheel angle difference into a wheel rotation angle according to a coefficient corresponding to the vehicle model to obtain the rotation angle of the vehicle;
[0021] According to the driving direction and the rotation angle of the vehicle, the driving distance is decomposed into two directions, x and y, to obtain the driving distance of the vehicle in the x and y directions;
[0022] The time difference between the previous moment and the current moment is obtained, and the driving speed of the vehicle in the x and y directions is obtained according to the time difference and the driving distance of the vehicle in the x and y directions.
[0023] As a preferred technical solution, the driving distance of the vehicle within the sampling interval is calculated based on the difference in the number of pulses, specifically:
[0024] According to the vehicle CAN protocol, the vehicle wheel diameter parameter is read, and according to the wheel diameter parameter, the distance represented by each pulse is calculated;
[0025] The travel distance of the vehicle is calculated based on the difference in the number of pulses and the distance represented by each pulse.
[0026] As a preferred technical solution, the driving direction is determined according to the gear information of the vehicle, specifically:
[0027] If the vehicle is in forward gear, the travel distance is positive, indicating that the vehicle is moving forward;
[0028] If the vehicle is in reverse gear, the travel distance is negative, indicating that the vehicle is moving backward.
[0029] As a preferred technical solution, the second fusion positioning solution of the dead reckoning result or the combined navigation positioning result and the mileage data is performed according to the satellite signal condition of the vehicle, including:
[0030] If there is no satellite signal, the vehicle is indoors, and the dead reckoning result is combined with the mileage data for a second fusion positioning solution;
[0031] If there is a satellite signal, the vehicle is outdoors, and the combined navigation positioning result and the mileage data are subjected to a second fusion positioning solution.
[0032] As a preferred technical solution, the first fusion positioning solution and the second fusion positioning solution adopt Kalman filter fusion technology.
[0033] In a second aspect, the present application provides a vehicle positioning system based on the interconnection between a car and a mobile phone, which is applied to the vehicle positioning method based on the interconnection between a car and a mobile phone, including a dead reckoning module, a combined navigation positioning module, a mileage data calculation module and a final positioning module;
[0034] The dead reckoning module is used to perform dead reckoning through the gyroscope data and accelerometer data of the inertial measurement unit in the mobile phone to obtain a dead reckoning result; the dead reckoning result includes a first position, a first speed and a first attitude of the vehicle at a current moment;
[0035] The combined navigation positioning module is used to perform a first fusion positioning solution on the position of the real-time dynamic differential positioning or the single-point positioning in the mobile phone and the dead reckoning result according to the configuration of the mobile phone navigation chip, so as to obtain a combined navigation positioning result; the combined navigation positioning result includes the second position, the second speed and the second posture of the vehicle at the current moment;
[0036] The mileage data calculation module is used to calculate the mileage data of the vehicle, and the mileage data includes: the vehicle's travel distance and travel speed;
[0037] The final positioning module is used to perform a second fusion positioning solution on the dead reckoning result or the combined navigation positioning result and the mileage data according to the satellite signal situation of the vehicle, so as to obtain a third position, a third speed, and a third posture of the vehicle at the current moment.
[0038] In a third aspect, the present application provides an electronic device, the electronic device comprising:
[0039] at least one processor; and,
[0040] a memory communicatively connected to the at least one processor; wherein,
[0041] The memory stores computer program instructions that can be executed by the at least one processor, and the computer program instructions are executed by the at least one processor so that the at least one processor can execute the vehicle positioning method based on the interconnection between the car and the mobile phone.
[0042] In a fourth aspect, the present application provides a computer-readable storage medium storing a program, which, when executed by a processor, implements the vehicle positioning method based on the interconnection between a car and a mobile phone.
[0043] In summary, compared with the prior art, the effective effects brought about by the technical solution provided by this application include at least:
[0044] This application proposes a vehicle positioning method based on the interconnection between a car and a mobile phone. The dead reckoning is performed through the gyroscope data and accelerometer data of the inertial measurement unit in the mobile phone to obtain the dead reckoning result; according to the configuration of the mobile phone navigation chip, the position of the real-time dynamic differential positioning or the position of the single-point positioning in the mobile phone is first fused with the dead reckoning result to obtain a combined navigation positioning result; the mileage data of the vehicle is calculated; according to the satellite signal of the vehicle, the dead reckoning result or the combined navigation positioning result is second fused with the mileage data to obtain the final navigation positioning result of the vehicle. This application ensures that the vehicle can achieve continuous navigation positioning even in complex environments, such as areas where satellite signals are limited or cannot be received, by sharing and integrating the data of the mobile phone and the vehicle and combining the respective advantages of the mobile phone and the vehicle. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0046] Figure 1 A flow chart of a vehicle positioning method based on the interconnection between a car and a mobile phone provided in one embodiment of the present application;
[0047] Figure 2 A schematic diagram of decomposing the driving distance into two directions, x and y, provided in one embodiment of the present application;
[0048] Figure 3 A block diagram of a vehicle positioning system based on the interconnection between a car and a mobile phone provided in accordance with an embodiment of the present application. DETAILED DESCRIPTION
[0049] In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present application.
[0050] Reference to "embodiments" in this application means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described in this application may be combined with other embodiments.
[0051] Example:
[0052] This application shares the car's sensor data and mobile phone positioning data, performs combined navigation positioning in the mobile phone or car, combines the advantages of mobile phone positioning and car positioning, and complements the disadvantages, solving the following problems that drivers currently use navigation positioning while driving: if the car's central control navigation is used, the car's built-in navigation map is outdated and cannot be updated in real time, resulting in inaccurate positioning; if an external mobile phone navigation is used, the positioning accuracy is limited due to the size of the mobile phone and the small number of sensors. If the data of the two are combined, the navigation positioning accuracy can be greatly improved, and real-time lane-level navigation can be achieved on the mobile phone.
[0053] See also Figure 1 In one embodiment of the present application, a vehicle positioning method based on the interconnection between a car and a mobile phone is provided, comprising the following steps:
[0054] S1. Performing IMU dead reckoning using gyroscope data and accelerometer data of an inertial measurement unit (IMU) in a mobile phone to obtain a dead reckoning result; the dead reckoning result includes a first position, a first speed, and a first posture of the vehicle at a current moment.
[0055] Before proceeding to step S1, include:
[0056] After getting in the car, the user connects the mobile phone to the car and chooses one of the following two connection methods, with wired connection being preferred.
[0057] (1) Wired connection: Connect the phone and the car via a wire, with one end connected to the car's data transmission interface and the other end connected to the phone's data transmission interface. The car's data transmission interface can be a CAN interface or an expansion interface of an after-installed autonomous driving development board in the car. If there is an after-installed autonomous driving development board in the car, this interface should be used first because it can transmit more types of data and has better scalability.
[0058] At this stage, all cars have CAN interfaces, which can transmit CAN data on the vehicle, including the odometer data required in this application, as well as steering wheel data, gear data, etc. At present, with the development of self-driving cars, many cars will be equipped with an automatic driving development board. This automatic driving board integrates the data of all sensors on the vehicle (such as all CAN data, lidar, camera, etc.), and the board is also equipped with a CPU to complete the algorithms related to automatic driving. All data on the vehicle will be input into this development board, and after centralized processing on the board, there is an interface to output the desired data, such as CAN data, other sensor data, etc., so the board has good scalability. If sensors are installed in the future, the interface can be directly expanded.
[0059] In addition, there are three types of data transmission interfaces for mobile phones: the lighting interface of Apple phones, the Type-C interface of Android phones, and the Micro USB interface of old Android phones; therefore, this section of the cable is a one-to-three form.
[0060] (2) Wireless connection: If the vehicle cannot meet the above wired connection conditions, or the user is not currently able to use a wired connection, select one of the following wireless connection methods based on the actual situation; 5G is the first choice among the following wireless connection methods, followed by WiFi. If neither of the above two wireless connection methods is available, Bluetooth is selected.
[0061] 5G transmission: The mobile phone and the car are connected to the same 5G network. The CAN data and other sensor data mentioned above are transmitted through the 5G network. Since 5G transmission is fast and has almost no delay, it is the preferred choice.
[0062] Wi-Fi transmission: The phone and car are connected to the same Wi-Fi network.
[0063] Bluetooth transmission: mobile phone and car Bluetooth connection.
[0064] Furthermore, current smartphones are equipped with IMU, including a three-axis gyroscope and a three-axis accelerometer. By mechanically arranging the measurement data of the gyroscope and accelerometer in the mobile phone, the three-dimensional position, speed and attitude at the current moment can be solved. The specific process is as follows:
[0065] S11. Correct the IMU zero bias and scale factor: the zero bias includes the offset of the gyroscope in three directions and the offset of the accelerometer in three directions. The scale factor includes the scale factors of the gyroscope in three directions and the accelerometer in three directions.
[0066] S12, calculating the speed update, the formula is as follows:
[0067]
[0068] in, and are the current time t k and the previous time t k-1 The speed of k is the current time t k With the previous moment t k-1 The velocity change is the acceleration measured by the IMU accelerometer multiplied by the time difference (t k -t k-1 ) is calculated; similarly, Δv k-1 is the previous time t k-1 and the previous time t k-2 The speed change value; Δθ k is the current time t k With the previous moment t k-1 The vehicle’s turning angle changes, which is the angular velocity measured by the IMU’s gyroscope multiplied by the time difference (t k -t k-1 ) is calculated; similarly, Δθ k-1 is the previous time t k-1 and the previous time t k-2 The angle change value; g is the local gravity value; is the previous time t k-1 The direction cosine matrix is obtained from the roll angle roll, pitch angle pitch, and heading angle of the previous moment, and is recorded as cr = cos (roll); cp = cos (pitch); ch = cos (heading); sr = sin (roll); sp = sin (pitch); sh = sin (heading); The calculation formula is as follows:
[0069]
[0070] S13, calculate the update of the position, the formula is as follows:
[0071]
[0072] in, and are the current time t k and the previous time t k-1 The position (latitude, longitude, altitude); N and M are the radius of the earth's meridian and meridian respectively. is the latitude, h is the altitude; and are the current time t k and the previous time t k-1The speed in three directions; Δt is the current time t k With the previous moment t k-1 The speed difference (t k -t k-1 ).
[0073] S14. Calculate the update of the posture, the formula is as follows:
[0074]
[0075] Among them, q(t k ) and q(t k-1 ) are the current time t k and the previous time t k-1 The attitude quaternion of ; I is the identity matrix; where Δθ x , Δθ y , Δθ z They are the angular velocities ω in the three directions output by the gyroscope x ,ω y ,ω z The time difference (t k -t k-1 ) are multiplied together; the calculation formula for ΔΘ is:
[0076]
[0077] The IMU in this embodiment is an inertial measurement unit: a device for measuring the three-axis attitude angle (or angular rate) and acceleration of an object. Generally, an IMU includes three single-axis accelerometers and three single-axis gyroscopes. The accelerometers detect the acceleration signals of the object in the independent three axes of the carrier coordinate system, while the gyroscopes detect the angular velocity signals of the carrier relative to the navigation coordinate system, measure the angular velocity and acceleration of the object in three-dimensional space, and use them to calculate the attitude of the object.
[0078] S2. According to the configuration of the mobile phone navigation chip, a first fusion positioning solution is performed on the position of the real-time dynamic differential positioning or the single-point positioning in the mobile phone and the dead reckoning result to obtain a combined navigation positioning result; the combined navigation positioning result includes a second position, a second speed and a second posture of the vehicle at the current moment.
[0079] Furthermore, the first fusion positioning solution of the real-time dynamic differential positioning position and the dead reckoning result refers to the high-precision combined navigation positioning solution of RTK and INS in the mobile phone, that is, the global satellite navigation system and the inertial navigation system are combined. Generally, there are loose combination, tight combination, super tight combination and other schemes. The satellite data and the data of the inertial measurement unit are input into the combined navigation system for calculation together, and the position, speed and attitude information of the carrier are output in real time. If the mobile phone does not have the RTK solution conditions, the GNSS single-point positioning position result in the mobile phone is combined with INS. Through the GNSS / INS combination, INS can be used for auxiliary positioning when there is no GNSS satellite signal or the GNSS satellite signal is weak; and when the navigation error of INS is too large for a long time, GNSS can be corrected in time. Therefore, GNSS and INS complement each other, improve positioning accuracy, and ensure the continuity of positioning.
[0080] The INS in this embodiment refers to an inertial navigation system, which is an autonomous navigation system that does not rely on external information and does not radiate energy to the outside.
[0081] RTK in this embodiment generally refers to real-time kinematic carrier phase differential technology; RTK (Real-time kinematic) carrier phase differential technology is a differential method for processing carrier phase observations of two measuring stations in real time.
[0082] GNSS: Global Navigation Satellite System, a global satellite navigation system, is an air-based radio navigation and positioning system that can provide users with all-weather three-dimensional coordinates, speed and time information at any location on the Earth's surface or in near-Earth space.
[0083] The acquisition of the position of the real-time dynamic differential positioning includes:
[0084] S21, establishing a data transmission channel between the base station and the mobile station;
[0085] Furthermore, it is necessary to obtain data from GNSS base stations deployed across the country; then, obtain observation data from mobile stations. The GNSS chip in a mobile phone or car is a mobile station. The GNSS antenna of the mobile phone or car receives satellite signals in real time and stores the original observation data in the mobile phone or car; secondly, a data transmission channel needs to be established between the base station and the mobile station to achieve real-time differential calculation; use the SIM cards of the three major operators, connect to the Internet in the form of data traffic, log in to the service account, and you can obtain the observation data of the base station at the mobile station.
[0086] S22, based on the data transmission channel, the mobile station receives the reference station data and extracts data information related to the satellite;
[0087] Furthermore, after the mobile station receives the observation data from the base station, it needs to process the phase observation value. First, the satellite-related information is extracted from the received data. The satellite-related information includes the satellite number, carrier phase, etc.
[0088] S23, performing ambiguity calculation on the satellite-related data information;
[0089] Furthermore, the carrier phase is ambiguity resolved. Ambiguity refers to the integer multiple uncertainty generated when the carrier phase is differentially calculated. By combining the carrier phases of multiple satellites, the ambiguity can be resolved and used as input for subsequent differential calculations.
[0090] S24, performing precise positioning calculation on the carrier phase, and using the known reference station position and the ambiguity, calculating the current position coordinates of the mobile station.
[0091] S25, correcting the current position coordinates to obtain a real-time dynamic differential positioning position;
[0092] Furthermore, the position coordinates of the mobile station are obtained, but the coordinates still have a certain error; in order to further improve the positioning accuracy, it is necessary to calculate the differential correction. The differential correction is the relative position error between the base station and the mobile station. By comparing the observation data of the base station and the mobile station, the phase difference between the two is calculated and converted into a distance error. Then, the distance error is applied to the position coordinates of the mobile station to obtain the corrected position. After the differential correction is obtained, it can be applied to the position coordinates of the mobile station, thereby realizing real-time dynamic differential positioning. At this point, the position of the mobile station has high accuracy and high reliability.
[0093] In this embodiment, it also includes determining whether the subsequent step is to perform positioning and solving in the car or in the mobile phone;
[0094] (1) If there is no after-installed autonomous driving development board in the car, the following data is transmitted to the mobile phone in real time via wired or wireless means, and the subsequent steps are completed in the mobile phone chip. The data to be transmitted is as follows:
[0095] Car CAN data: including the current vehicle's steering wheel angle, odometer data, and vehicle gear position.
[0096] The car's GNSS and INS combined navigation and positioning results: Currently, cars are generally equipped with the most basic GNSS and INS combined navigation system. This is a complete system that has integrated the combined results of GNSS satellite navigation and IMU inertial navigation system. This module can directly output the current position, speed and attitude of the car; however, due to its general accuracy and low credibility of the results indoors or in tunnels, it must be used in combination with other data.
[0097] Other car sensor data (if any): such as lidar positioning results and camera positioning results.
[0098] (2) If there is an aftermarket autonomous driving development board in the car, the following data is transmitted to the car autonomous driving development board in real time via wired or wireless means, and the subsequent steps are completed in the car. The data to be transmitted is the above-mentioned IMU dead reckoning results, including:
[0099] The dead reckoning results of the mobile phone, namely, the first position, the first speed, and the first attitude.
[0100] The high-precision combined navigation and positioning solution results of RTK and INS in the mobile phone include the second position, second speed and second attitude.
[0101] S3, calculating the mileage data of the vehicle, the mileage data including: the vehicle's travel distance and travel speed, the steps comprising:
[0102] S31, calculating the difference between the number of pulses of the vehicle from the last moment to the current moment;
[0103] Furthermore, the difference ΔN of the number of pulses from the previous moment to the current moment is calculated, specifically:
[0104] The vehicle encoder measures speed by counting. The vehicle encoder accumulates counts continuously. According to the encoder sampling frequency, the encoder will output counts at certain time intervals. For example, if the encoder frequency is 10Hz, the encoder will output counts every 0.1 seconds. If the number of pulses output at the previous moment is N1, and the number of pulses output at this moment is N2, then the difference between the number of pulses at the previous moment and the current moment ΔN=N2-N1; this means that within this sampling interval (such as 10Hz, that is, within 0.1 seconds), the encoder has gone through ΔN counts.
[0105] S32, calculating the travel distance of the vehicle within the sampling interval based on the pulse number difference;
[0106] Furthermore, the distance ΔS traveled by the vehicle within this sampling interval is calculated based on the pulse count difference ΔN. The calculation steps are as follows:
[0107] According to the car CAN protocol, read the car wheel diameter parameters and calculate the distance S0 represented by each mileage encoder pulse;
[0108] The distance ΔS=S0*ΔN traveled by the vehicle in each sampling interval is calculated.
[0109] Specifically, the distance S0 represented by each mileage encoder pulse is determined according to the diameter of the car wheel. However, in actual application, due to the change of tire pressure, the diameter of each wheel changes, so S0 needs to be corrected. The steps are as follows:
[0110] In an open outdoor environment, the precise coordinates of each point of the vehicle can be obtained in real time based on the combined navigation positioning results, and the coordinate accuracy can reach the centimeter level. Therefore, through a certain point A and point B on any road, the distance S_ref between the two points AB can be obtained. Due to its extremely high accuracy, the distance S_ref can be used as a reference true value distance; at the same time, the distance between the two points AB can also be measured by the car odometer, recorded as ΔS AB ; Therefore, the correction value of S0 The correction value of the distance traveled by the vehicle in each sampling interval is: ΔS = S0 修正 *ΔN. The correction here is similar to calibration. For example, a very precise ruler is used to measure the length of AB to be 1.2m. The actual ruler used has errors, and the measured length of AB may be 1m. This means that when you use your own ruler to measure later, no matter what the length is, you should multiply it by 1.2 to get the actual length.
[0111] S33, determining the driving direction according to the gear information of the vehicle, the specific steps include:
[0112] The above driving distance ΔS is given a sign according to the gear position; if the gear position is forward gear, the driving distance is positive, indicating that the vehicle is moving forward; if the gear position is reverse gear, the driving distance is negative, indicating that the vehicle is moving backward. Since the vehicle odometer pulse counts, whether forward or backward, it is always accumulated, so it is necessary to make a judgment based on the gear position.
[0113] S34, obtaining a steering wheel angle difference between the vehicle at the previous moment and the current moment, and converting the steering wheel angle difference into a wheel rotation angle according to a coefficient corresponding to the vehicle model to obtain a rotation angle of the vehicle, wherein the steps include:
[0114] According to the car CAN protocol, the steering wheel angle is converted into the angle of wheel rotation; the steps to convert the steering wheel angle into the wheel angle are as follows:
[0115] Determine the steering wheel angle difference between the previous moment and the current moment: For example, at the previous moment, the steering wheel made a half turn (180 degrees); at the current moment, the steering wheel made a full turn (360 degrees), which means that the steering wheel angle difference between the two moments is 360-180 = 180 degrees. In addition, if the steering wheel is turned to the right, the angle is positive; if it is turned to the left, the angle is negative.
[0116] Calculate how many degrees the wheel rotated between the last moment and the current moment. Different models have different coefficients. This coefficient represents the relationship between the steering wheel angle and the wheel rotation angle. This coefficient can be found in the factory vehicle manual. For example, if the coefficient of a certain model is 19, it means that when the steering wheel angle is turned a circle (that is, 360 degrees), the wheel will rotate 360 / 19 = 18.95 degrees. Therefore, if the steering wheel angle difference between the two moments is 180 degrees in the previous step A, the wheel rotation angle is 180 / 19 = 9.47 degrees.
[0117] S35, according to the driving direction and the rotation angle of the vehicle, decompose the driving distance into two directions, x and y, to obtain the driving distance of the vehicle in the x and y directions. The decomposition method can be found in Figure 2 (The forward direction of the vehicle's centerline is the positive direction of y, and the right direction perpendicular to the vehicle's centerline is the positive direction of x);
[0118] S36, obtaining the time difference Δt between the previous moment and the current moment, and calculating the time difference Δt according to the time difference and the travel distance ΔS of the vehicle in the x and y directions. x and ΔS y , get the vehicle's speed in the x and y directions, the formula is:
[0119]
[0120] S4. According to the satellite signal situation of the vehicle, the dead reckoning result or the combined navigation positioning result is subjected to a second fusion positioning solution with the mileage data to obtain a third position, a third speed, and a third posture of the vehicle at the current moment.
[0121] Furthermore, if there is no satellite signal, the vehicle is indoors, and the dead reckoning result is combined with the mileage data for a second fusion positioning solution;
[0122] If there is a satellite signal, the vehicle is outdoors, and the combined navigation positioning result and the mileage data are subjected to a second fusion positioning solution.
[0123] The third position, third speed, and third posture are output and can be used by other modules, such as navigation, path planning, vehicle control, etc.
[0124] In this embodiment, the first fusion positioning solution and the second fusion positioning solution adopt Kalman filter fusion technology, that is, the positioning result of the fusion of mobile phone and vehicle data can be output. Here, the observation equation constructed by Kalman filter is as follows:
[0125] z=Hx+δn
[0126] in, is the observation vector, where It is the vehicle speed obtained by IMU dead reckoning results or RTK and INS combined navigation positioning results. is the odometer speed after the coordinate system is converted; H is the design matrix, the unit matrix; δn is the observation noise, which is determined according to the noise of the vehicle encoder equipment.
[0127] The sensor interface in this embodiment is expandable. If the car has more sensors, such as laser radar, depth camera, etc., then these data can be expanded on the basis of existing data. This can further improve the positioning accuracy for high-configuration vehicles on the market; if the cost of laser radar sensors decreases in the future, and more high-precision positioning sensors are continuously installed in cars, this embodiment can also support it.
[0128] In summary, this application can combine the advantages of mobile phones (convenient networking, real-time map updates) and the positioning advantages of cars (rich sensors, sensors can be added as needed) through data sharing between mobile phones and cars, ensuring continuous navigation and positioning in complex environments. In addition, the high-precision centimeter-level GNSS RTK positioning data of mobile phones can be integrated with the rich sensor data of cars to ensure continuous positioning longitude in complex urban environments, long tunnels, underground parking lots and other conditions with poor satellite signals; therefore, it ensures that even in complex environments, such as areas where satellite signals are limited or cannot be received, vehicles can still achieve continuous navigation and positioning.
[0129] It should be noted that, for the sake of convenience of description, the aforementioned method embodiments are all expressed as a series of action combinations, but those skilled in the art should know that the present application is not limited to the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously.
[0130] Based on the same idea as the vehicle positioning method based on the interconnection between a car and a mobile phone in the above-mentioned embodiment, the present application also provides a vehicle positioning system based on the interconnection between a car and a mobile phone, which can be used to execute the above-mentioned vehicle positioning method based on the interconnection between a car and a mobile phone. For ease of explanation, the structural schematic diagram of the embodiment of the vehicle positioning system based on the interconnection between a car and a mobile phone only shows the parts related to the embodiment of the present application. Those skilled in the art can understand that the illustrated structure does not constitute a limitation on the device, and may include more or fewer components than shown in the diagram, or combine certain components, or arrange the components differently.
[0131] See also Figure 3 In another embodiment of the present application, a vehicle positioning system based on the interconnection between a car and a mobile phone is provided, the system comprising a dead reckoning module 101, a combined navigation positioning module 102, a mileage data calculation module 103 and a final positioning module 104;
[0132] The dead reckoning module 101 is used to perform dead reckoning based on the gyroscope data and accelerometer data of the inertial measurement unit in the mobile phone to obtain a dead reckoning result; the dead reckoning result includes a first position, a first speed and a first attitude of the vehicle at a current moment;
[0133] The combined navigation positioning module 102 is used to perform a first fusion positioning solution on the position of the real-time dynamic differential positioning or the single-point positioning in the mobile phone and the dead reckoning result according to the configuration of the mobile phone navigation chip, so as to obtain a combined navigation positioning result; the combined navigation positioning result includes the second position, the second speed and the second posture of the vehicle at the current moment;
[0134] The mileage data calculation module 103 is used to calculate the mileage data of the vehicle, and the mileage data includes: the vehicle's travel distance and travel speed;
[0135] The final positioning module 104 is used to perform a second fusion positioning solution on the dead reckoning result or the combined navigation positioning result and the mileage data according to the satellite signal conditions of the vehicle, so as to obtain a third position, a third speed, and a third posture of the vehicle at the current moment.
[0136] It should be noted that the vehicle positioning system based on the interconnection between a car and a mobile phone of the present application corresponds one to one with the vehicle positioning method based on the interconnection between a car and a mobile phone of the present application. The technical features and beneficial effects described in the embodiment of the vehicle positioning method based on the interconnection between a car and a mobile phone are applicable to the embodiment of the vehicle positioning system based on the interconnection between a car and a mobile phone. For specific contents, please refer to the description in the embodiment of the method of the present application, which will not be repeated here. This is hereby declared.
[0137] In addition, in the implementation of the vehicle positioning system based on the interconnection between a car and a mobile phone in the above-mentioned embodiment, the logical division of each program module is only an example. In actual applications, the above-mentioned functions can be assigned to different program modules as needed, for example, for the convenience of corresponding hardware configuration requirements or software implementation. That is, the internal structure of the vehicle positioning system based on the interconnection between a car and a mobile phone is divided into different program modules to complete all or part of the functions described above.
[0138] In another embodiment, an electronic device for implementing a vehicle positioning method based on the interconnection between a car and a mobile phone is provided, comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor; when the processor executes the computer program, the vehicle positioning method based on the interconnection between a car and a mobile phone of any embodiment of the present application is implemented.
[0139] Exemplarily, in this embodiment, the computer program may be divided into one or more modules, and the one or more modules are stored in the memory and executed by the processor to complete the present application. The one or more module elements may be a series of computer program instruction segments that can complete specific functions, and the instruction segments are used to describe the execution process of the computer program in the device;
[0140] The device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The device may include, but is not limited to, a processor, a memory;
[0141] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the device, and uses various interfaces and lines to connect various parts of the entire device;
[0142] The memory can be used to store the computer program and / or module, and the processor realizes various functions of the device by running or executing the computer program and / or module stored in the memory, and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function, etc.; in addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0143] Accordingly, the present application also provides a computer-readable storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the vehicle positioning method based on the interconnection between a car and a mobile phone as described in any of the above embodiments.
[0144] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0145] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0146] The above embodiments are preferred implementation modes of the present application, but the implementation modes of the present application are not limited to the above embodiments. Any other changes, modifications, substitutions, combinations, and simplifications that do not deviate from the spirit and principles of the present application should be equivalent replacement methods and are included in the protection scope of the present application.
Claims
1. A vehicle positioning method based on the interconnection between a car and a mobile phone, characterized in that: The steps include: Performing dead reckoning using gyroscope data and accelerometer data of an inertial measurement unit in the mobile phone to obtain a dead reckoning result; the dead reckoning result includes a first position, a first speed, and a first attitude of the vehicle at a current moment; According to the configuration of the mobile phone navigation chip, the position of the real-time dynamic differential positioning or the position of the single point positioning in the mobile phone is first fused with the dead reckoning result to obtain a combined navigation positioning result; the combined navigation positioning result includes the second position, the second speed and the second posture of the vehicle at the current moment; Calculating the mileage data of the vehicle, the mileage data including: the vehicle's travel distance and travel speed; According to the satellite signal conditions of the vehicle, the dead reckoning result or the combined navigation positioning result is subjected to a second fusion positioning solution with the mileage data to obtain a third position, a third speed, and a third posture of the vehicle at the current moment.
2. The vehicle positioning method based on the interconnection between a car and a mobile phone according to claim 1 is characterized in that: The real-time dynamic differential positioning position includes: Establish data transmission channels between base station and mobile station; Based on the data transmission channel, the mobile station receives the base station data and extracts the data information related to the satellite; Performing ambiguity calculation on the satellite-related data information; Using the known reference station position and the ambiguity, the current position coordinates of the mobile station are calculated; The current position coordinates are corrected to obtain a real-time dynamic differential positioning position.
3. The vehicle positioning method based on the interconnection between a car and a mobile phone according to claim 1 is characterized in that: The calculating of the mileage data of the vehicle includes: Calculate the difference in the number of pulses of the vehicle from the previous moment to the current moment; Calculating the travel distance of the vehicle within the sampling interval based on the difference in the number of pulses; Determine the driving direction according to the gear information of the vehicle; Obtaining the steering wheel angle difference of the vehicle from the previous moment to the current moment, and converting the steering wheel angle difference into a wheel rotation angle according to a coefficient corresponding to the vehicle model to obtain the rotation angle of the vehicle; According to the driving direction and the rotation angle of the vehicle, the driving distance is decomposed into two directions, x and y, to obtain the driving distance of the vehicle in the x and y directions; The time difference between the previous moment and the current moment is obtained, and the driving speed of the vehicle in the x and y directions is obtained according to the time difference and the driving distance of the vehicle in the x and y directions.
4. The vehicle positioning method based on the interconnection between a car and a mobile phone according to claim 3 is characterized in that: The driving distance of the vehicle within the sampling interval is calculated based on the difference in the number of pulses, specifically: According to the vehicle CAN protocol, the vehicle wheel diameter parameter is read, and according to the wheel diameter parameter, the distance represented by each pulse is calculated; The travel distance of the vehicle is calculated based on the difference in the number of pulses and the distance represented by each pulse.
5. The vehicle positioning method based on the interconnection between a car and a mobile phone according to claim 3 is characterized in that: The driving direction is determined according to the gear information of the vehicle, specifically: If the vehicle is in forward gear, the travel distance is positive, indicating that the vehicle is moving forward; If the vehicle is in reverse gear, the travel distance is negative, indicating that the vehicle is moving backward.
6. The vehicle positioning method based on the interconnection between a car and a mobile phone according to claim 1, characterized in that: The performing a second fusion positioning solution on the dead reckoning result or the combined navigation positioning result and the mileage data according to the satellite signal condition of the vehicle includes: If there is no satellite signal, the vehicle is indoors, and the dead reckoning result is combined with the mileage data for a second fusion positioning solution; If there is a satellite signal, the vehicle is outdoors, and the combined navigation positioning result and the mileage data are subjected to a second fusion positioning solution.
7. The vehicle positioning method based on the interconnection between a car and a mobile phone according to claim 1, characterized in that: The first fusion positioning solution and the second fusion positioning solution adopt Kalman filter fusion technology.
8. The vehicle positioning system based on the interconnection between the car and the mobile phone is characterized in that: A vehicle positioning method based on the interconnection between a car and a mobile phone, applied to any one of claims 1 to 7, comprising a dead reckoning module, a combined navigation positioning module, a mileage data calculation module and a final positioning module; The dead reckoning module is used to perform dead reckoning through the gyroscope data and accelerometer data of the inertial measurement unit in the mobile phone to obtain a dead reckoning result; the dead reckoning result includes a first position, a first speed and a first attitude of the vehicle at a current moment; The combined navigation positioning module is used to perform a first fusion positioning solution on the position of the real-time dynamic differential positioning or the single-point positioning in the mobile phone and the dead reckoning result according to the configuration of the mobile phone navigation chip, so as to obtain a combined navigation positioning result; the combined navigation positioning result includes the second position, the second speed and the second posture of the vehicle at the current moment; The mileage data calculation module is used to calculate the mileage data of the vehicle, and the mileage data includes: the vehicle's travel distance and travel speed; The final positioning module is used to perform a second fusion positioning solution on the dead reckoning result or the combined navigation positioning result and the mileage data according to the satellite signal situation of the vehicle, so as to obtain a third position, a third speed, and a third posture of the vehicle at the current moment.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores computer program instructions that can be executed by the at least one processor, and the computer program instructions are executed by the at least one processor so that the at least one processor can execute the vehicle positioning method based on the interconnection between a car and a mobile phone as described in any one of claims 1-7.
10. A computer-readable storage medium storing a program, characterized in that: When the program is executed by the processor, the vehicle positioning method based on the interconnection between the car and the mobile phone as described in any one of claims 1 to 7 is implemented.
