Positioning data processing method and device, electronic equipment and storage medium
By integrating the positioning data judgment algorithm in the Internet of Vehicles communication terminal box, the validity of positioning data is judged by using monotonic incremental element characteristics, the problem of inconsistency of algorithms at different receiving ends is solved, and data consistency and cost savings are achieved.
Patent Information
- Application Number
- CN202410376546.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-29
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2044-03-29
AI Technical Summary
The positioning data validity judgment algorithm developed by different receivers in the Internet of Vehicles communication terminals is inconsistent, resulting in the inability to ensure the consistency of the data.
The positioning data judgment algorithm is integrated in the Internet of Vehicles communication terminal box. By obtaining the front and back positioning information data within the preset period, using monotonic incremental element characteristics to generate marks, judge the data validity, and send the processed data group to the target application Module.
The unified source of data of the receiving end positioning information is realized, the changes in the module system software are avoided, the data validity judgment is simplified, and the cost is saved.
Smart Images

Figure CN119024374A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of automobile application technology, and in particular to a positioning data processing method, device, electronic device and storage medium. Background Art
[0002] At present, when the Internet of Vehicles communication terminal box is connected to the global navigation satellite system antenna and the satellite signal is good, the application running on the system can obtain positioning information data and broadcast it to other applications as a source. Usually, the broadcast positioning information data is periodic. When the communication signal is abnormal, the broadcast data will always be the data temporarily stored in the transmitter when the antenna is disconnected or the satellite signal becomes weak. This data is actually invalid for the receiving end. Therefore, it is necessary to judge the validity of the positioning data.
[0003] In the related art, in order to judge the validity of data, multiple receiving ends judge the validity of the received data through algorithms implemented by themselves in the program. This method requires each application program of the receiving end to implement the judgment algorithm by itself, which leads to duplication of development work. In addition, the algorithms developed in different receiving ends are different, resulting in the inability to ensure the consistency of the final presented data. Summary of the invention
[0004] The embodiments of the present application provide a positioning data processing method, device, system, electronic device and computer-readable storage medium to solve the problem that different algorithms developed in different receiving ends in the related art are different, resulting in the inability to ensure the consistency of the final presented data.
[0005] In a first aspect, an embodiment of the present application provides a positioning data processing method, which is applied to a vehicle side, and the method includes:
[0006] Obtaining first positioning information data corresponding to a first moment in a preset period;
[0007] Acquire second positioning information data corresponding to a second moment within the preset period, wherein the first moment to the second moment is one preset period;
[0008] Processing the first positioning information data and the second positioning information data according to the positioning data judgment algorithm to obtain a second tag and third positioning information data corresponding to the second positioning information data, wherein the positioning data judgment algorithm is generated based on whether there are monotonically increasing elements in the positioning information data;
[0009] Generate a second positioning data set according to the third positioning information data and the second mark;
[0010] The second positioning data group is sent to a target application module.
[0011] Optionally, the first positioning information data corresponding to the first moment includes a first timestamp element, the second positioning information data corresponding to the second moment includes a second timestamp element, and the processing of the first positioning information data and the second positioning information data according to the positioning data judgment algorithm to obtain the second tag corresponding to the second positioning information data and the third positioning information data includes:
[0012] Obtaining a relationship between the first timestamp element and the second timestamp element;
[0013] If the second timestamp element is greater than the first timestamp element, the second mark is a valid mark, and the third positioning information data is the second positioning information data;
[0014] If the second timestamp element is less than or equal to the first timestamp element, the second mark is an invalid mark, and the third positioning information data is invalid data.
[0015] Optionally, before the step of acquiring first positioning information data corresponding to a first moment within a preset period, the method includes:
[0016] Determine whether the communication connection between the antenna and the vehicle networking communication terminal box is disconnected, or whether the satellite signal between the antenna and the vehicle networking communication terminal box is in an abnormal state.
[0017] Optionally, when it is detected that the communication connection between the antenna and the Internet of Vehicles communication terminal box is disconnected, or the satellite signal between the antenna and the Internet of Vehicles communication terminal box is in an abnormal state, the first moment is the moment before the communication connection between the antenna and the Internet of Vehicles communication terminal box is disconnected; the second moment is the moment after the communication connection between the antenna and the Internet of Vehicles communication terminal box is disconnected;
[0018] The processing of the first positioning information data and the second positioning information data according to the positioning data judgment algorithm to obtain the second mark and the third positioning information data corresponding to the second positioning information data includes:
[0019] The first positioning information data and the second positioning information data are processed according to the positioning data judgment algorithm to obtain that the second mark is an invalid mark and the third positioning information data is invalid data.
[0020] Optionally, after the step of acquiring first positioning information data corresponding to a first moment within a preset period, the method includes:
[0021] Setting a corresponding first mark based on the first positioning information data, wherein the first mark is used to mark that the first positioning information data is in a valid state;
[0022] Generate a first positioning data set according to the first positioning information data and the first mark;
[0023] The first positioning data group is sent to the target application module.
[0024] Optionally, when it is detected that the antenna and the vehicle networking communication terminal box are in communication connection, or when the satellite signal between the antenna and the vehicle networking communication terminal box is in a normal state, the first moment is less than the second moment;
[0025] The processing of the first positioning information data and the second positioning information data according to the positioning data judgment algorithm to obtain the second mark and the third positioning information data corresponding to the second positioning information data includes:
[0026] The first positioning information data and the second positioning information data are processed according to the positioning data judgment algorithm to obtain the second mark as a valid mark and the third positioning information data as the second positioning information data.
[0027] Optionally, after the step of acquiring first positioning information data corresponding to a first moment within a preset period, the method includes:
[0028] Setting a corresponding initial mark based on the first positioning information data, wherein the initial mark is used to mark that the first positioning information data is in an invalid state;
[0029] Generate a first positioning data set according to the first positioning information data and the initial mark;
[0030] The first positioning data group is sent to the target application module.
[0031] Optionally, the acquiring first positioning information data corresponding to a first moment within a preset period includes:
[0032] The first positioning information data corresponding to the first moment in a preset period is obtained from the module system in the vehicle networking communication terminal box through the callback function of the module application program interface in the vehicle networking communication terminal box.
[0033] In a second aspect, an embodiment of the present application provides a positioning data processing device, the device comprising:
[0034] A first acquisition module, used to acquire first positioning information data corresponding to a first moment in a preset period;
[0035] A second acquisition module is used to acquire second positioning information data corresponding to a second moment within a preset period, wherein the first moment to the second moment is a preset period;
[0036] a processing module, configured to process the first positioning information data and the second positioning information data according to the positioning data judgment algorithm to obtain a second tag and third positioning information data corresponding to the second positioning information data, wherein the positioning data judgment algorithm is generated based on whether there are monotonically increasing elements in the positioning information data;
[0037] A generating module, configured to generate a second positioning data set according to the third positioning information data and the second mark;
[0038] A sending module is used to send the second positioning data group to a target application module.
[0039] Optionally, the first positioning information data corresponding to the first moment includes a first timestamp element, and the second positioning information data corresponding to the second moment includes a second timestamp element, and the processing module includes:
[0040] An acquisition submodule, used to acquire the relationship between the first timestamp element and the second timestamp element;
[0041] A first processing submodule, configured to: if the second timestamp element is greater than the first timestamp element, the second mark is a valid mark, and the third positioning information data is the second positioning information data;
[0042] The second processing submodule is used for, if the second timestamp element is less than or equal to the first timestamp element, the second mark is an invalid mark, and the third positioning information data is invalid data.
[0043] Optionally, the device further comprises:
[0044] The determination module is used to determine whether the communication connection between the antenna and the vehicle networking communication terminal box is disconnected, or whether the satellite signal between the antenna and the vehicle networking communication terminal box is in an abnormal state.
[0045] Optionally, when it is detected that the communication connection between the antenna and the Internet of Vehicles communication terminal box is disconnected, or the satellite signal between the antenna and the Internet of Vehicles communication terminal box is in an abnormal state, the first moment is the moment before the communication connection between the antenna and the Internet of Vehicles communication terminal box is disconnected; the second moment is the moment after the communication connection between the antenna and the Internet of Vehicles communication terminal box is disconnected; the processing module includes:
[0046] The third processing submodule is used to process the first positioning information data and the second positioning information data according to the positioning data judgment algorithm to obtain that the second mark is an invalid mark and the third positioning information data is invalid data.
[0047] Optionally, the device further comprises:
[0048] A first setting module, configured to set a corresponding initial mark based on the first positioning information data, wherein the initial mark is used to mark that the first positioning information data is in an invalid state;
[0049] A first data group generating module, used for generating a first positioning data group according to the first positioning information data and the initial mark;
[0050] The first data group sending module is used to send the first positioning data group to the target application module.
[0051] Optionally, when it is detected that the antenna and the Internet of Vehicles communication terminal box are in communication connection, or when the satellite signal between the antenna and the Internet of Vehicles communication terminal box is in a normal state, the first moment is less than the second moment; and the processing module includes:
[0052] The fourth processing submodule is used to process the first positioning information data and the second positioning information data according to the positioning data judgment algorithm to obtain that the second mark is a valid mark and the third positioning information data is the second positioning information data.
[0053] Optionally, the device further comprises:
[0054] A second setting module, configured to set a corresponding first mark based on the first positioning information data, wherein the first mark is used to mark that the first positioning information data is in a valid state;
[0055] A second data group generating module, used for generating a first positioning data group according to the first positioning information data and the first mark;
[0056] The second data group sending module is used to send the first positioning data group to the target application module.
[0057] Optionally, the first acquisition module includes:
[0058] The acquisition submodule is used to acquire the first positioning information data corresponding to the first moment in a preset period from the module system in the vehicle networking communication terminal box through the callback function of the module application program interface in the vehicle networking communication terminal box.
[0059] In a third aspect, an embodiment of the present application further provides an electronic device, comprising: a processor; and a memory for storing instructions executable by the processor, wherein the processor is configured to execute the instructions to implement any of the positioning data processing methods described above.
[0060] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium. When instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute any of the positioning data processing methods described above.
[0061] In the embodiment of the present application, the first application module applied to the vehicle networking communication terminal box, the first application module is integrated with a positioning data judgment algorithm, by obtaining the first positioning information data corresponding to the first moment in a preset period; obtaining the second positioning information data corresponding to the second moment in the preset period, wherein the first moment to the second moment is a preset period; processing the first positioning information data and the second positioning information data according to the positioning data judgment algorithm, obtaining the second mark and the third positioning information data corresponding to the second positioning information data, wherein the positioning data judgment algorithm is generated based on whether there are monotonically increasing elements in the positioning information data; generating a second positioning data group according to the third positioning information data and the second mark; and sending the second positioning data group to the target application module. That is, the embodiment of the present application can realize the unified source of the positioning information data of the receiving end by integrating the algorithm into the first application module in the vehicle networking communication terminal box, without changing the module system, and using the characteristics of the data itself containing monotonic elements, according to the previous and next data generation algorithms, marking the data for validity and then broadcasting it out, which can simply and effectively judge the validity of the positioning information data, without changing the software in the module system, saving costs.
[0062] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present application. Also, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0064] Figure 1 is a flowchart of a method for processing positioning data provided by an embodiment of the present application;
[0065] Figure 2 is a flowchart of another method for processing positioning data provided by an embodiment of the present application;
[0066] Figure 3 This is a data flow diagram of another positioning data processing method provided by the present application;
[0067] Figure 4 It is a logic block diagram of a positioning data processing device provided in an embodiment of the present application;
[0068] Figure 5 is a structural diagram of an electronic device provided in an embodiment of the present application;
[0069] Figure 6 This is a schematic diagram of TBox broadcast positioning information provided by an embodiment of the present application;
[0070] Figure 7 It is a schematic diagram of an algorithm calculation provided in an embodiment of the present application. DETAILED DESCRIPTION
[0071] The exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.
[0072] It should be noted that in the embodiments of the present application, Figure 6 As shown, Figure 6 This is a schematic diagram of TBox broadcast positioning information provided in an embodiment of the present application. The Internet of Vehicles communication terminal box (TBox) includes a first application module which can be an application App1, and a target application module App2. App3 is a target application module of other systems such as an in-vehicle infotainment system (IVI), wherein the target application module can be multiple applications.
[0073] In addition, TBox also includes module API, TBox and Global Navigation Satellite System (GNSS) antenna communication connection to receive satellite signals.
[0074] In the related art, in order to judge the validity of data, the usual method is that the receiving end App2 and App3 use the algorithm implemented in the program to judge the validity of the data received from App1. This method requires each application program on the receiving end to implement the judgment algorithm by itself, which causes duplication of development work. In addition, the algorithms developed in different apps are different, making it difficult to ensure the consistency of the data finally presented to the customer.
[0075] Another way is to implement the algorithm inside the underlying module API. This algorithm is a black box and is unknown. When the antenna is disconnected or the satellite signal is weak, the positioning information data continues to be output to App1 through the callback function. This method requires modifying the module system software, which is costly.
[0076] Figure 1 is a flowchart of a method for processing positioning data provided by an embodiment of the present application, such as Figure 1 As shown, a first application module applied to a vehicle networking communication terminal box, wherein the first application module integrates a positioning data judgment algorithm, the method includes:
[0077] Step 101, obtaining first positioning information data corresponding to a first moment in a preset period;
[0078] Further, the obtaining of first positioning information data corresponding to a first moment within a preset period includes: obtaining first positioning information data corresponding to a first moment within a preset period from a module system in the vehicle networking communication terminal box through a callback function of a module application program interface in the vehicle networking communication terminal box.
[0079] It should be noted that in the embodiment of the present application, the first positioning information data corresponding to the first moment in a preset period is first obtained from the module system in the vehicle networking communication terminal box through the callback function of the module application program interface in the vehicle networking communication terminal box.
[0080] For example, Figure 7 As shown, the application App1 on the first application module periodically broadcasts positioning information data. Taking one cycle (time t0→time t1) as an example, the positioning information data obtained by App1 from the module at time t0 is d0, which is stored inside the App1 program.
[0081] Step 102, obtaining second positioning information data corresponding to a second moment within a preset period, wherein the first moment to the second moment is one preset period;
[0082] It should be noted that, in the embodiment of the present application, after obtaining the first positioning information data at the first moment, the second positioning information data corresponding to the second moment is obtained.
[0083] It should be noted that the period from the first moment to the second moment constitutes a preset period.
[0084] Specifically, the second positioning information data at the time t1 is obtained as d1', which is stored inside the App1 program.
[0085] It should be noted that in the above two steps 101 and 102, after the positioning information data is obtained, an element for marking the validity of the data is set as a flag f.
[0086] Step 103, processing the first positioning information data and the second positioning information data according to the positioning data judgment algorithm to obtain a second tag and third positioning information data corresponding to the second positioning information data, wherein the positioning data judgment algorithm is generated based on whether there is a monotonically increasing element in the positioning information data;
[0087] Further, the first positioning information data corresponding to the first moment includes a first timestamp element, the second positioning information data corresponding to the second moment includes a second timestamp element, and the first positioning information data and the second positioning information data are processed according to the positioning data judgment algorithm to obtain the second tag corresponding to the second positioning information data and the third positioning information data, including:
[0088] Obtaining a relationship between the first timestamp element and the second timestamp element;
[0089] If the second timestamp element is greater than the first timestamp element, the second mark is a valid mark, and the third positioning information data is the second positioning information data;
[0090] If the second timestamp element is less than or equal to the first timestamp element, the second mark is an invalid mark, and the third positioning information data is invalid data.
[0091] It should be noted that, in the embodiment of the present application, the positioning information data itself contains the characteristics of monotonic elements. Therefore, in the present application, the positioning data judgment algorithm can be generated by combining the previous and next data, such as Figure 7 As shown, Figure 7 It is a schematic diagram of the calculation process of the positioning data judgment algorithm in the present application. It can be seen that as time t0 changes to t1, d1 at time t1 can be generated based on the algorithm △d.
[0092] Specifically, algorithm △d is only effective for monotonically increasing elements in data elements d0 to d1', that is, monotonically increasing elements in the first positioning information data to the second positioning information data elements. In one embodiment, the first positioning information data d0 contains a first timestamp element T0, and the second timestamp element in the second positioning information data d1' is T1'. Therefore, the relationship between the first timestamp element and the second timestamp element can be obtained.
[0093] When T1'>T0, the data at time t1 is marked as valid, then the corresponding second mark f1=1, and the third positioning information data d1=the second positioning information data d1';
[0094] When T1′<=T0, the data at time t1 is marked as invalid, the second mark f1=0, and the third positioning information data d1=0.
[0095] Step 104, generating a second positioning data set according to the third positioning information data and the second mark;
[0096] It should be noted that, in the embodiment of the present application, after the third positioning information data is determined, a second positioning data group can be generated according to the third positioning information data and the second mark, for example, it can be expressed as {f1, d1}.
[0097] Step 105: Send the second positioning data group to a target application module.
[0098] It should be noted that in the embodiment of the present application, there is not only one target application module package, but may be multiple.
[0099] Specifically, the application program in the first application module may broadcast the data in the second positioning data group to the pair App2 and App3, and the data combination thereof is {f1, d1}.
[0100] It should be noted that the calculations are performed according to the above 101-105 within a preset cycle, and similarly, the next cycle or multiple cycles are also calculated based on the above method.
[0101] In the embodiment of the present application, the first application module applied to the vehicle networking communication terminal box, the first application module is integrated with a positioning data judgment algorithm, by obtaining the first positioning information data corresponding to the first moment in a preset period; obtaining the second positioning information data corresponding to the second moment in the preset period, wherein the first moment to the second moment is a preset period; processing the first positioning information data and the second positioning information data according to the positioning data judgment algorithm, obtaining the second mark and the third positioning information data corresponding to the second positioning information data, wherein the positioning data judgment algorithm is generated based on whether there are monotonically increasing elements in the positioning information data; generating a second positioning data group according to the third positioning information data and the second mark; and sending the second positioning data group to the target application module. That is, the embodiment of the present application can realize the unified source of the positioning information data of the receiving end by integrating the algorithm into the first application module in the vehicle networking communication terminal box, without changing the module system, and using the characteristics of the data itself containing monotonic elements, according to the previous and next data generation algorithms, marking the data for validity and then broadcasting it out, which can simply and effectively judge the validity of the positioning information data, without changing the software in the module system, saving costs.
[0102] Figure 2 is a flowchart of a method for processing positioning data provided by an embodiment of the present application, such as Figure 2 As shown, the method includes:
[0103] Step 201, determining whether the communication connection between the antenna and the Internet of Vehicles communication terminal box is disconnected, or whether the satellite signal between the antenna and the Internet of Vehicles communication terminal box is in an abnormal state;
[0104] It should be noted that in the embodiments of the present application, reference is made to Figure 7 ,The application scenarios in this application can be divided into when the antenna is connected and the satellite ,signal is good, or when the antenna is disconnected or the satellite ,signal is weak.
[0105] Specifically, in an embodiment of the present application, two different application scenarios can be determined based on whether the communication connection between the antenna and the Internet of Vehicles communication terminal box is disconnected, or whether the satellite signal between the antenna and the Internet of Vehicles communication terminal box is in an abnormal state. The first scenario is that the communication connection between the antenna and the Internet of Vehicles communication terminal box is disconnected, and the Internet of Vehicles communication terminal box can receive the satellite signal normally; the second scenario is that the communication connection between the antenna and the Internet of Vehicles communication terminal box is normal, but due to environmental factors, such as being in a tunnel, an underground garage, or being blocked by tall buildings, the Internet of Vehicles communication terminal box cannot receive the satellite signal, and the satellite signal output of the Internet of Vehicles communication terminal box is abnormal data.
[0106] Therefore, the validity of the positioning information data can be further judged by determining whether the communication connection between the antenna and the vehicle networking communication terminal box is disconnected, or whether the satellite signal between the antenna and the vehicle networking communication terminal box is in an abnormal state.
[0107] Step 202, obtaining first positioning information data corresponding to a first moment in a preset period;
[0108] Further, after the step of acquiring the first positioning information data corresponding to the first moment within a preset period, the method includes:
[0109] Setting a corresponding first mark based on the first positioning information data, wherein the first mark is used to mark that the first positioning information data is in a valid state;
[0110] Generate a first positioning data set according to the first positioning information data and the first mark;
[0111] The first positioning data group is sent to the target application module.
[0112] It should be noted that in an embodiment of the present application, when it is detected that the communication connection between the antenna and the Internet of Vehicles communication terminal box is disconnected, or the satellite signal between the antenna and the Internet of Vehicles communication terminal box is in an abnormal state, the first moment is the moment before the communication connection between the antenna and the Internet of Vehicles communication terminal box is disconnected; the second moment is the moment after the communication connection between the antenna and the Internet of Vehicles communication terminal box is disconnected.
[0113] Specifically, when the antenna is disconnected or the satellite signal is weak, the moment before the disconnection is the first moment t0, and the moment after the disconnection is the second moment t1. At moment t0, the positioning information data obtained by App1 from the module is d0, which is stored inside the App1 program, and an element f0 marking the validity of the data is added. At this time, since t0 is before the disconnection, f0=1 is set at this time, and this group of data is directly broadcast to App2 and App3, and the data combination is {f0, d0}.
[0114] Step 203, obtaining second positioning information data corresponding to a second moment within a preset period, wherein the first moment to the second moment is one preset period;
[0115] Step 204, when it is detected that the communication connection between the antenna and the Internet of Vehicles communication terminal box is disconnected, or the satellite signal between the antenna and the Internet of Vehicles communication terminal box is in an abnormal state, the first moment is the moment before the communication connection between the antenna and the Internet of Vehicles communication terminal box is disconnected; the second moment is the moment after the communication connection between the antenna and the Internet of Vehicles communication terminal box is disconnected; the first positioning information data and the second positioning information data are processed according to the positioning data judgment algorithm, and the second mark is obtained as an invalid mark, and the third positioning information data is invalid data.
[0116] It should be noted that when the communication connection between the antenna and the Internet of Vehicles communication terminal box is disconnected, or the satellite signal between the antenna and the Internet of Vehicles communication terminal box is in an abnormal state, it means that there is no monotonically increasing corresponding element from d0 to d1' data elements, then the data at time t1 is invalid, the second mark f1=0, and the third positioning information data d1=0.
[0117] Step 205, generating a second positioning data set according to the third positioning information data and the second mark;
[0118] Step 206: Send the second positioning data group to a target application module.
[0119] It should be noted that the above steps 205-206 refer to the previous discussion and will not be repeated here.
[0120] The embodiment of the present application integrates the algorithm into the first application module in the vehicle network communication terminal box, so as to unify the source of the positioning information data at the receiving end without changing the module system. It also utilizes the characteristic that the data itself contains monotonic elements, generates an algorithm based on the previous and subsequent data, marks the data for validity, and then broadcasts it out. This makes it possible to simply and effectively judge the validity of the positioning information data without changing the software in the module system, thus saving costs.
[0121] Figure 3 is a flowchart of a method for processing positioning data provided by an embodiment of the present application, such as Figure 3 As shown, the method includes:
[0122] Step 301, determining whether the communication connection between the antenna and the Internet of Vehicles communication terminal box is disconnected, or whether the satellite signal between the antenna and the Internet of Vehicles communication terminal box is in an abnormal state;
[0123] Step 302, obtaining first positioning information data corresponding to a first moment in a preset period;
[0124] Further, after the step of acquiring the first positioning information data corresponding to the first moment within a preset period, the method includes:
[0125] Setting a corresponding initial mark based on the first positioning information data, wherein the initial mark is used to mark that the first positioning information data is in an invalid state;
[0126] Generate a first positioning data set according to the first positioning information data and the initial mark;
[0127] The first positioning data group is sent to the target application module.
[0128] It should be noted that in an embodiment of the present application, when the antenna is connected and the satellite signal is good, the corresponding initial mark will be obtained at the same time as the first positioning information data at the first moment t0 is obtained, and the initial mark and the first positioning information data will be sent to the target application module together.
[0129] Specifically, when the antenna is connected and the satellite signal is good, the positioning information data obtained by App1 from the module at the first moment t0 is the first positioning information data d0, which is stored inside the App1 program, and an element marking the validity of the data is added, the initial mark f0, where the initial value of f0 is set to 0 to indicate that the first frame is invalid, and this group of data is directly broadcast to App2 and App3, and the data combination is {f0, d0}.
[0130] Step 303, obtaining second positioning information data corresponding to a second moment within a preset period, wherein the first moment to the second moment is one preset period;
[0131] Step 304: When it is detected that the antenna and the Internet of Vehicles communication terminal box are in communication connection, or the satellite signal between the antenna and the Internet of Vehicles communication terminal box is in a normal state, the first moment is less than the second moment; the first positioning information data and the second positioning information data are processed according to the positioning data judgment algorithm to obtain the second mark as a valid mark, and the third positioning information data is the second positioning information data.
[0132] It should be noted that in the embodiment of the present application, when the antenna and the vehicle networking communication terminal box are communicatively connected, or when the satellite signal between the antenna and the vehicle networking communication terminal box is in a normal state, it means that the corresponding elements in the data elements from d0 to d1' are monotonically increasing, then the data at time mark t1 is valid, the second mark f1=1, and the third positioning information data d1=the second positioning information data d1'.
[0133] Step 305, generating a second positioning data set according to the third positioning information data and the second mark;
[0134] Step 306: Send the second positioning data group to a target application module.
[0135] It should be noted that the above steps 305-306 refer to the previous discussion and will not be repeated here.
[0136] The embodiment of the present application integrates the algorithm into the first application module in the vehicle network communication terminal box, so as to unify the source of the positioning information data at the receiving end without changing the module system. It also utilizes the characteristic that the data itself contains monotonic elements, generates an algorithm based on the previous and subsequent data, marks the data for validity, and then broadcasts it out. This makes it possible to simply and effectively judge the validity of the positioning information data without changing the software in the module system, thus saving costs.
[0137] Corresponding to the method provided in the above-mentioned positioning data processing method embodiment of the present application, see Figure 4 The present application also provides a logic block diagram of a positioning data processing device. In this embodiment, the device 400 includes:
[0138] The first acquisition module 401 is used to acquire first positioning information data corresponding to a first moment in a preset period;
[0139] The second acquisition module 402 is used to acquire second positioning information data corresponding to a second moment within a preset period, wherein the first moment to the second moment is one preset period;
[0140] The processing module 403 is used to process the first positioning information data and the second positioning information data according to the positioning data judgment algorithm to obtain a second tag and third positioning information data corresponding to the second positioning information data, wherein the positioning data judgment algorithm is generated based on whether there is a monotonically increasing element in the positioning information data;
[0141] A generating module 404, configured to generate a second positioning data set according to the third positioning information data and the second mark;
[0142] The sending module 405 is used to send the second positioning data group to a target application module.
[0143] Optionally, the first positioning information data corresponding to the first moment includes a first timestamp element, and the second positioning information data corresponding to the second moment includes a second timestamp element, and the processing module includes:
[0144] An acquisition submodule, used to acquire the relationship between the first timestamp element and the second timestamp element;
[0145] A first processing submodule, configured to: if the second timestamp element is greater than the first timestamp element, the second mark is a valid mark, and the third positioning information data is the second positioning information data;
[0146] The second processing submodule is used for, if the second timestamp element is less than or equal to the first timestamp element, the second mark is an invalid mark, and the third positioning information data is invalid data.
[0147] Optionally, the device further comprises:
[0148] The determination module is used to determine whether the communication connection between the antenna and the vehicle networking communication terminal box is disconnected, or whether the satellite signal between the antenna and the vehicle networking communication terminal box is in an abnormal state.
[0149] Optionally, when it is detected that the communication connection between the antenna and the Internet of Vehicles communication terminal box is disconnected, or the satellite signal between the antenna and the Internet of Vehicles communication terminal box is in an abnormal state, the first moment is the moment before the communication connection between the antenna and the Internet of Vehicles communication terminal box is disconnected; the second moment is the moment after the communication connection between the antenna and the Internet of Vehicles communication terminal box is disconnected; the processing module includes:
[0150] The third processing submodule is used to process the first positioning information data and the second positioning information data according to the positioning data judgment algorithm to obtain that the second mark is an invalid mark and the third positioning information data is invalid data.
[0151] Optionally, the device further comprises:
[0152] A first setting module, configured to set a corresponding initial mark based on the first positioning information data, wherein the initial mark is used to mark that the first positioning information data is in an invalid state;
[0153] A first data group generating module, used for generating a first positioning data group according to the first positioning information data and the initial mark;
[0154] The first data group sending module is used to send the first positioning data group to the target application module.
[0155] Optionally, when it is detected that the antenna and the Internet of Vehicles communication terminal box are in communication connection, or when the satellite signal between the antenna and the Internet of Vehicles communication terminal box is in a normal state, the first moment is less than the second moment; and the processing module includes:
[0156] The fourth processing submodule is used to process the first positioning information data and the second positioning information data according to the positioning data judgment algorithm to obtain that the second mark is a valid mark and the third positioning information data is the second positioning information data.
[0157] Optionally, the device further comprises:
[0158] A second setting module, configured to set a corresponding first mark based on the first positioning information data, wherein the first mark is used to mark that the first positioning information data is in a valid state;
[0159] A second data group generating module, used for generating a first positioning data group according to the first positioning information data and the first mark;
[0160] The second data group sending module is used to send the first positioning data group to the target application module.
[0161] Optionally, the first acquisition module includes:
[0162] The acquisition submodule is used to acquire the first positioning information data corresponding to the first moment in a preset period from the module system in the vehicle networking communication terminal box through the callback function of the module application program interface in the vehicle networking communication terminal box.
[0163] In summary, a positioning data processing device provided by an embodiment of the present application integrates an algorithm into the first application module in the vehicle network communication terminal box, so that the positioning information data source of the receiving end can be unified without changing the module system. In addition, by utilizing the characteristic that the data itself contains monotonic elements, an algorithm is generated according to the previous and next data, and the data is marked for validity before being broadcast and sent out. This can simply and effectively judge the validity of the positioning information data without changing the software in the module system, thereby saving costs.
[0164] Figure 5 This is a structural diagram of an electronic device M00 provided in an embodiment of the present application. In the figure, the electronic device M00 includes a processor M01 and a memory M02. The memory M02 stores a program or instruction that can be run on the processor M01. When the program or instruction is executed by the processor M01, the various steps of the above-mentioned positioning data processing method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0165] In an embodiment of the present application, the memory M02 can be used to store software programs and various data. The memory M02 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory M02 may include a volatile memory or a non-volatile memory, or the memory x09 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory M02 in the embodiment of the present application includes but is not limited to these and any other suitable types of memories.
[0166] The processor M01 may include one or more processing units; optionally, the processor M01 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor M01.
[0167] The embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned positioning data processing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0168] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
[0169] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned positioning data processing method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0170] It should be understood that the chip involved in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0171] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned positioning data processing method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0172] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0173] 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 application, or the part that contributes to the relevant technology, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (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 application.
[0174] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A positioning data processing method, characterized in that: A first application module applied to a vehicle networking communication terminal box, wherein the first application module integrates a positioning data judgment algorithm, and the method includes: Obtaining first positioning information data corresponding to a first moment in a preset period; Acquire second positioning information data corresponding to a second moment within the preset period, wherein the first moment to the second moment is one preset period; Processing the first positioning information data and the second positioning information data according to the positioning data judgment algorithm to obtain a second tag and third positioning information data corresponding to the second positioning information data, wherein the positioning data judgment algorithm is generated based on whether there are monotonically increasing elements in the positioning information data; Generate a second positioning data set according to the third positioning information data and the second mark; The second positioning data group is sent to a target application module.
2. The method according to claim 1, characterized in that The first positioning information data corresponding to the first moment includes a first timestamp element, the second positioning information data corresponding to the second moment includes a second timestamp element, and the first positioning information data and the second positioning information data are processed according to the positioning data judgment algorithm to obtain a second tag corresponding to the second positioning information data and third positioning information data including: Obtaining a relationship between the first timestamp element and the second timestamp element; If the second timestamp element is greater than the first timestamp element, the second mark is a valid mark, and the third positioning information data is the second positioning information data; If the second timestamp element is less than or equal to the first timestamp element, the second mark is an invalid mark, and the third positioning information data is invalid data.
3. The method according to claim 1, characterized in that: Before the step of acquiring first positioning information data corresponding to a first moment within a preset period, the method includes: Determine whether the communication connection between the antenna and the vehicle networking communication terminal box is disconnected, or whether the satellite signal between the antenna and the vehicle networking communication terminal box is in an abnormal state.
4. The method according to claim 3, characterized in that When it is detected that the communication connection between the antenna and the vehicle networking communication terminal box is disconnected, or the satellite signal between the antenna and the vehicle networking communication terminal box is in an abnormal state, the first moment is the moment before the communication connection between the antenna and the vehicle networking communication terminal box is disconnected; The second moment is the moment after the communication connection between the antenna and the Internet of Vehicles communication terminal box is disconnected; The processing of the first positioning information data and the second positioning information data according to the positioning data judgment algorithm to obtain the second mark and the third positioning information data corresponding to the second positioning information data includes: The first positioning information data and the second positioning information data are processed according to the positioning data judgment algorithm to obtain that the second mark is an invalid mark and the third positioning information data is invalid data.
5. The method according to claim 4, characterized in that After the step of acquiring the first positioning information data corresponding to the first moment within a preset period, the method includes: Setting a corresponding first mark based on the first positioning information data, wherein the first mark is used to mark that the first positioning information data is in a valid state; Generate a first positioning data set according to the first positioning information data and the first mark; The first positioning data group is sent to the target application module.
6. The method according to claim 3, characterized in that: When it is detected that the antenna and the vehicle networking communication terminal box are in communication connection, or when the satellite signal between the antenna and the vehicle networking communication terminal box is in a normal state, the first moment is less than the second moment; The processing of the first positioning information data and the second positioning information data according to the positioning data judgment algorithm to obtain the second mark and the third positioning information data corresponding to the second positioning information data includes: The first positioning information data and the second positioning information data are processed according to the positioning data judgment algorithm to obtain the second mark as a valid mark and the third positioning information data as the second positioning information data.
7. The method according to claim 6, characterized in that After the step of acquiring the first positioning information data corresponding to the first moment within a preset period, the method includes: Setting a corresponding initial mark based on the first positioning information data, wherein the initial mark is used to mark that the first positioning information data is in an invalid state; Generate a first positioning data set according to the first positioning information data and the initial mark; The first positioning data group is sent to the target application module.
8. The method according to claim 1, characterized in that The step of obtaining first positioning information data corresponding to a first moment within a preset period includes: The first positioning information data corresponding to the first moment in a preset period is obtained from the module system in the vehicle networking communication terminal box through the callback function of the module application program interface in the vehicle networking communication terminal box.
9. A positioning data processing device, characterized in that: A first application module applied to a vehicle networking communication terminal box, wherein the first application module integrates a positioning data judgment algorithm, and the device comprises: A first acquisition module, used to acquire first positioning information data corresponding to a first moment in a preset period; A second acquisition module is used to acquire second positioning information data corresponding to a second moment within a preset period, wherein the first moment to the second moment is a preset period; a processing module, configured to process the first positioning information data and the second positioning information data according to the positioning data judgment algorithm to obtain a second tag and third positioning information data corresponding to the second positioning information data, wherein the positioning data judgment algorithm is generated based on whether there are monotonically increasing elements in the positioning information data; A generating module, configured to generate a second positioning data set according to the third positioning information data and the second mark; A sending module is used to send the second positioning data group to a target application module.
10. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the positioning data processing method according to any one of claims 1 to 8.
11. A storage medium, characterized in that: When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the positioning data processing method as described in any one of claims 1 to 8.
Citation Information
Patent Citations
Wireless positioning method and system
CN110049502A
User active data processing method and device
CN110535944A
Data processing method, device and system, electronic equipment and storage medium
CN116152950A
Data processing method and device, electronic equipment and computer readable storage medium
CN116953760A
Error data determination method and device, equipment, medium and product
CN117312753A
