Positioning data processing method and device, electronic equipment and storage medium
By integrating a positioning data judgment algorithm into the vehicle-to-everything (V2X) communication terminal box and using monotonically increasing elements to generate markers, the problem of inconsistent algorithms at different receiving ends is solved, enabling unified validity judgment and transmission of positioning data, thus saving costs.
Patent Information
- Application Number
- CN202410376546.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-29
- Publication Date
- 2026-01-02
- Estimated Expiration
- 2044-03-29
AI Technical Summary
Inconsistent algorithm development across different receivers makes it impossible to ensure the consistency of location data presentation.
A positioning data judgment algorithm is integrated into the vehicle-to-everything (V2X) communication terminal box. By acquiring positioning information data within a preset period, generating markers using monotonically increasing elements, judging the validity of the data, and generating positioning data groups to send to the target application module.
This unified the source of location information data for the receiving end, simplified the data validity judgment, avoided changes to the module system software, and saved costs.
Smart Images

Figure CN119024374B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] Embodiments of the present application relate to the technical field of automobile application, and in particular, to a positioning data processing method and device, electronic equipment and storage medium. BACKGROUND
[0002] At present, when the Internet of Vehicles communication terminal box is connected with a global navigation satellite system antenna and satellite signals are good, an application program running on the system can obtain positioning information data, which is broadcast to other application programs as a source. Generally, the broadcast positioning information data is periodic. When the communication signal is abnormal, the broadcast data will be the data temporarily stored in the sending end at the moment when the antenna is disconnected or the moment when the satellite signal is weak. This data is actually invalid for the receiving end. Therefore, it is necessary to judge the validity of the positioning data.
[0003] In related technologies, in order to judge the validity of the data, multiple receiving ends judge the validity of the received data through algorithms implemented in the programs themselves. This method requires each application program in the receiving end to implement a judgment algorithm itself, which is repetitive in development work, and the algorithms developed in different receiving ends are not the same, which leads to inconsistency in the final presented data. SUMMARY
[0004] Embodiments of the present application provide a positioning data processing method, device, system, electronic equipment and computer readable storage medium to solve the problem that the algorithms developed in different receiving ends in related technologies are not the same, which leads to inconsistency in the final presented data.
[0005] In a first aspect, embodiments of the present application provide a positioning data processing method applied to a vehicle end, which includes:
[0006] Obtaining first positioning information data corresponding to a first time in a preset period;
[0007] Obtaining second positioning information data corresponding to a second time in the preset period, wherein the first time to the second time is a preset period;
[0008] Processing the first positioning information data and the second positioning information data according to the positioning data judgment algorithm to obtain second marking corresponding to the second positioning information data and third positioning information data, wherein the positioning data judgment algorithm is generated based on whether there is a monotonic increasing element in the positioning information data;
[0009] Generating a second positioning data group according to the third positioning information data and the second marking;
[0010] Sending the second positioning data group to a target application module.
[0011] Optionally, the first positioning information data corresponding to the first time point comprises a first time stamp element, the second positioning information data corresponding to the second time point comprises a second time stamp 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 mark corresponding to the second positioning information data and the third positioning information data, and the second mark comprises:
[0012] obtaining a relationship between the first time stamp element and the second time stamp element;
[0013] if the second time stamp element is greater than the first time stamp element, the second mark is a valid mark, and the third positioning information data is the second positioning information data;
[0014] if the second time stamp element is less than or equal to the first time stamp element, the second mark is an invalid mark, and the third positioning information data is invalid data.
[0015] Optionally, before the step of obtaining the first positioning information data corresponding to the first time point in a preset period, the method comprises:
[0016] 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.
[0017] Optionally, in the case 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 time point is a time point before the communication connection between the antenna and the vehicle networking communication terminal box is disconnected, and the second time point is a time point after the communication connection between the antenna and the vehicle networking communication terminal box is disconnected.
[0018] 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 corresponding to the second positioning information data and the third positioning information data, and the second mark comprises:
[0019] 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 an invalid mark and the third positioning information data as invalid data.
[0020] Optionally, after the step of obtaining the first positioning information data corresponding to the first time point in a preset period, the method comprises:
[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] generating a first positioning data group according to the first positioning information data and the first mark;
[0023] sending the first positioning data group to the target application module.
[0024] Optionally, the first time is less than the second time in a case that the antenna and the vehicle networking communication terminal box are communicatively connected, or a case that a satellite signal between the antenna and the vehicle networking communication terminal box is in a normal state.
[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 corresponding to the second positioning information data and the third positioning information data includes:
[0026] 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 corresponding to the second positioning information data and the third positioning information data includes:
[0027] Optionally, after the step of obtaining the first positioning information data corresponding to the first time in 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] generating a first positioning data group according to the first positioning information data and the initial mark;
[0030] sending the first positioning data group to the target application module.
[0031] Optionally, the obtaining of the first positioning information data corresponding to the first time in a preset period includes:
[0032] obtaining the first positioning information data corresponding to the first time in 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.
[0033] In a second aspect, an embodiment of the present application provides a positioning data processing apparatus, and the apparatus includes:
[0034] a first obtaining module configured to obtain first positioning information data corresponding to a first time in a preset period;
[0035] a second acquisition module, configured to acquire second positioning information data corresponding to a second time in a preset period, wherein the first time to the second time is a preset period;
[0036] a processing module, configured to process the first positioning information data and the second positioning information data according to a positioning data judgment algorithm to obtain second marks corresponding to the second positioning information data and third 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;
[0037] a generation module, configured to generate a second positioning data group according to the third positioning information data and the second marks;
[0038] a sending module, configured to send the second positioning data group to a target application module.
[0039] Optionally, the first positioning information data corresponding to the first time includes a first timestamp element, and the second positioning information data corresponding to the second time includes a second timestamp element, and the processing module includes:
[0040] an acquisition submodule, configured to acquire a 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] a second processing submodule, configured to 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 apparatus further includes:
[0044] a determination module, configured to determine whether communication connection between an antenna and a vehicle networking communication terminal box is disconnected, or whether satellite signals between the antenna and the vehicle networking communication terminal box are in an abnormal state.
[0045] Optionally, in a case where it is detected that the communication connection between the antenna and the vehicle networking communication terminal box is disconnected, or the satellite signals between the antenna and the vehicle networking communication terminal box are in the abnormal state, the first time is a time before the communication connection between the antenna and the vehicle networking communication terminal box is disconnected, the second time is a time after the communication connection between the antenna and the vehicle networking communication terminal box is disconnected, and the processing module includes:
[0046] The third processing submodule is configured to process the first positioning information data and the second positioning information data according to the positioning data judgment algorithm, so that the second mark is invalid and the third positioning information data is invalid data.
[0047] Optionally, the apparatus further comprises:
[0048] The first setting module is configured to set an 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] The first data group generation module is configured to generate a first positioning data group according to the first positioning information data and the initial mark.
[0050] The first data group sending module is configured to send the first positioning data group to the target application module.
[0051] Optionally, in a case where it is detected that the antenna and the vehicle networking communication terminal box are in communication connection, or a case where satellite signals between the antenna and the vehicle networking communication terminal box are in a normal state, the first time point is less than the second time point; and the processing module comprises:
[0052] The fourth processing submodule is configured to process the first positioning information data and the second positioning information data according to the positioning data judgment algorithm, so that the second mark is valid and the third positioning information data is the second positioning information data.
[0053] Optionally, the apparatus further comprises:
[0054] The second setting module is configured to set a 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] The second data group generation module is configured to generate a first positioning data group according to the first positioning information data and the first mark.
[0056] The second data group sending module is configured to send the first positioning data group to the target application module.
[0057] Optionally, the first acquisition module comprises:
[0058] The acquisition submodule is configured to acquire, from a module system in the vehicle networking communication terminal box, first positioning information data corresponding to a first time point in a preset period through a callback function of a module application program interface in the vehicle networking communication terminal box.
[0059] In a third aspect, the embodiments of the present application also provide an electronic device, comprising: a processor; a memory for storing instructions executable by the processor, wherein the processor is configured to execute the instructions to implement the positioning data processing method according to any one of the preceding aspects.
[0060] In a fourth aspect, the embodiments of the present application also provide 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 perform the positioning data processing method according to any one of the preceding aspects.
[0061] In the embodiments of the present application, the first application module applied to the Internet of Vehicles communication terminal box is integrated with a positioning data judgment algorithm, the first positioning information data corresponding to a first time in a preset period is obtained, the second positioning information data corresponding to a second time in the preset period is obtained, the first time to the second time is a preset period, the first positioning information data and the second positioning information data are processed according to the positioning data judgment algorithm, the second marker corresponding to the second positioning information data and the third positioning information data are obtained, the positioning data judgment algorithm is generated based on whether there is a monotonic increasing element in the positioning information data, the second positioning data group is generated according to the third positioning information data and the second marker, and the second positioning data group is sent to a target application module. That is, the embodiments of the present application integrate the algorithm into the first application module of the Internet of Vehicles communication terminal box, can realize the unity of the source of the positioning information data of the receiving end, do not need to change the module system, and use the characteristics that the data itself contains monotonic elements, generate the algorithm according to the front and rear data, mark the data after the effectiveness, and then broadcast and send out, can simply and effectively judge the effectiveness of the positioning information data, do not need to change the software in the module system, and save the cost.
[0062] The above description is only a summary of the technical solutions of the present application, in order to more clearly understand the technical means of the present application, the specific embodiments of the present application can be implemented according to the content of the description, and in order to make the above and other purposes, characteristics and advantages of the present application more obvious and easy to understand, the following specific embodiments of the present application are described. BRIEF DESCRIPTION OF DRAWINGS
[0063] Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The accompanying drawings are intended to only illustrate preferred embodiments and are not considered limiting of the present application. Moreover, like reference numerals denote like parts throughout the several views in the drawings. In the drawings:
[0064] Figure 1 is a step flow chart of a positioning data processing method provided by the embodiments of the present application;
[0065] Figure 2 is a step flow chart of another positioning data processing method provided by the embodiment of the present application;
[0066] Figure 3 is a data flow conversion schematic diagram of another positioning data processing method provided by the embodiment of the present application;
[0067] Figure 4 is a logic block diagram of a positioning data processing device provided by the embodiment of the present application;
[0068] Figure 5 is a structure diagram of an electronic device provided by the embodiment of the present application;
[0069] Figure 6 is a TBox broadcast positioning information schematic diagram provided by the embodiment of the present application;
[0070] Figure 7 is an algorithm calculation schematic diagram provided by the embodiment of the present application. DETAILED DESCRIPTION
[0071] Exemplary embodiments of the present application will be described herein below with reference to the accompanying drawings. Although exemplary embodiments of the present application are shown in the 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. Rather, these embodiments are provided so that the present application can be more thoroughly understood and so that the scope of the present application can be accurately conveyed to those skilled in the art.
[0072] It should be noted that, in the embodiments of the present application, as shown in Figure 6 , Figure 6 is a TBox broadcast positioning information schematic diagram provided by the embodiment of the present application, and the first application module in the Internet of Vehicles communication terminal box (TBox) can be an application program App1, and the target application module App2 and App3 are target application modules of other systems such as the in-vehicle infotainment system (IVI), wherein the target application module can be multiple application programs.
[0073] In addition, the TBox further includes a module API, and the TBox and the global navigation satellite system (GNSS) antenna are in communication connection, so as to receive satellite signals.
[0074] In the related art, in order to judge the data validity, the general way is that the receiving end App2 and App3 judge the data validity of the data received from App1 through the algorithm realized by themselves in the program. This way needs the receiving end each application program to realize the judgment algorithm by itself, the development work is repeated, and the algorithms developed in different Apps are not the same, and it is 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, which is a black box and unknown. When the antenna is disconnected or the satellite signal is weak, continue to output the positioning information data to App1 through the callback function. This way needs to modify the module system software, which is costly.
[0076] Figure 1 is a step flow chart of a positioning data processing method provided by an embodiment of the present application, as shown in Figure 1 a first application module in a vehicle networking communication terminal box, the first application module integrated with a positioning data judgment algorithm, the method comprising:
[0077] Step 101, obtaining first positioning information data corresponding to a first time in a preset period;
[0078] Further, the obtaining of the first positioning information data corresponding to the first time in the preset period comprises: obtaining the first positioning information data corresponding to the first time in the 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 time in the 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, as shown in Figure 7 the application program App1 on the first application module periodically broadcasts the positioning information data. Taking a period (time t0→time t1) as an example, the positioning information data d0 obtained by App1 from the module at time t0 is stored in the program inside App1.
[0081] Step 102, obtaining second positioning information data corresponding to a second time in the preset period, wherein the first time to the second time is a 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 time, the second positioning information data corresponding to the second time is further obtained.
[0083] It should be noted that the first time to the second time constitutes a preset period.
[0084] Specifically, the second positioning information data d1' at time t1 is obtained and stored in the program inside App1.
[0085] It should be noted that in steps 101 and 102 above, after obtaining the location information data, an element to mark the validity of the data will be added as a marker f.
[0086] Step 103: Process the first positioning information data and the second positioning information data according to the positioning data judgment algorithm to obtain the second marker and the third positioning information data corresponding to the second positioning information data. The positioning data judgment algorithm is generated based on whether there are monotonically increasing elements in the positioning information data.
[0087] Further, the first location information data corresponding to the first time point includes a first timestamp element, and the second location information data corresponding to the second time point includes a second timestamp element. The step of processing the first location information data and the second location information data according to the location data judgment algorithm to obtain the second marker and the third location information data corresponding to the second location information data includes:
[0088] Obtain the 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 marker is a valid marker, and the third location information data is the second location information data;
[0090] If the second timestamp element is less than or equal to the first timestamp element, the second marker is an invalid marker, and the third location information data is invalid data.
[0091] It should be noted that, in the embodiments of this application, the location information data itself contains the characteristic of monotonicity. Therefore, in this application, a location data judgment algorithm can be generated by combining preceding and following data, such as... Figure 7 As shown, Figure 7 This is a schematic diagram of the location data judgment algorithm in this application. It can be seen that as time t0 to t1, d1 at time t1 can be generated based on the algorithm △d.
[0092] Specifically, the algorithm △d is only effective for elements that are monotonically increasing in the data elements from d0 to d1', that is, elements that are monotonically increasing in the data elements from the first location information data to the second location information data. In one embodiment, the first location information data d0 contains a first timestamp element T0, and the second timestamp element in the second location 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, and the corresponding second flag 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, and the second flag f1 = 0, and the third positioning information data d1 = 0.
[0095] In step 104, a second positioning data group is generated according to the third positioning information data and the second flag.
[0096] It should be noted that in the embodiments of the present application, after the third positioning information data is determined, the second positioning data group can be generated according to the third positioning information data and the second flag, for example, which can be represented as {f1, d1}.
[0097] In step 105, the second positioning data group is sent to a target application module.
[0098] It should be noted that in the embodiments of the present application, the target application module can not only have one, but also can have multiple.
[0099] Specifically, the application program in the first application module can broadcast the data in the second positioning data group to App2 and App3, and the data combination is {f1, d1}.
[0100] It should be noted that in a preset period, the calculation is performed according to the above 101-105, and similarly, the next period or multiple periods are also calculated based on the above method.
[0101] In the embodiment of the present application, the first application module applied to the Internet of Vehicles communication terminal box is integrated with a positioning data judgment algorithm, the first positioning information data corresponding to a first time in a preset period is obtained, the second positioning information data corresponding to a second time in the preset period is obtained, the first time to the second time is a preset period, the first positioning information data and the second positioning information data are processed according to the positioning data judgment algorithm to obtain the second marker corresponding to the second positioning information data and the third positioning information data, the positioning data judgment algorithm is generated based on whether there is a monotonic increasing element in the positioning information data, the second positioning data group is generated according to the third positioning information data and the second marker, and the second positioning data group is sent to the target application module. That is, the algorithm is integrated into the first application module of the Internet of Vehicles communication terminal box in the embodiment of the present application, the source of the positioning information data of the receiving end can be unified, the module system does not need to be changed, and the characteristics that the data itself contains monotonic elements are used, the data is marked after being processed by the algorithm of the front and rear data, and then broadcasted, the positioning information data validity can be simply and effectively judged without changing the software in the module system, and the cost is saved.
[0102] Figure 2 is a step flow chart of a positioning data processing method provided by the embodiment of the present application, as shown in Figure 2 , the method comprises:
[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 embodiment of the present application, referring to Figure 7 , the application scenarios in the present application can be divided into the following two scenarios: the antenna is connected and the satellite signal is good, or the antenna is disconnected or the satellite signal is weak.
[0105] Specifically, in the embodiment of the present application, two different application scenarios can be determined according to 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 normally receive the satellite signal. The second scenario is that the communication connection between the antenna and the Internet of Vehicles communication terminal box is normal, but the Internet of Vehicles communication terminal box cannot receive the satellite signal due to environmental factors, such as being in a tunnel, an underground garage, or being blocked by a high building, 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 determined by determining whether the antenna and the vehicle networking communication terminal box communication connection is disconnected, or whether the satellite signal between the antenna and the vehicle networking communication terminal box is in an abnormal state.
[0107] In step 202, first positioning information data corresponding to a first time in a preset period is obtained.
[0108] Further, after the step of obtaining the first positioning information data corresponding to the first time in the preset period, the method comprises:
[0109] Based on the first positioning information data, a corresponding first mark is set, wherein the first mark is used to mark that the first positioning information data is in a valid state.
[0110] According to the first positioning information data and the first mark, a first positioning data group is generated.
[0111] The first positioning data group is sent to the target application module.
[0112] It should be noted that in the embodiments of the present application, in the case of detecting that the antenna and the vehicle networking communication terminal box communication connection is disconnected, or the satellite signal between the antenna and the vehicle networking communication terminal box is in an abnormal state, the first time is the time before the antenna and the vehicle networking communication terminal box communication connection is disconnected, and the second time is the time after the antenna and the vehicle networking communication terminal box communication connection is disconnected.
[0113] Specifically, when the antenna is disconnected or the satellite signal is weak, the time before disconnection is the first time t0, and the time after disconnection is the second time t1. The positioning information data obtained by App1 from the module at t0 is d0, which is stored in the App1 program and an element f0 of the mark data validity is added. At this time, since t0 is before disconnection, f0=1 is set at this time, and this group of data is directly broadcasted to App2 and App3, and the data combination is {f0, d0}.
[0114] In step 203, second positioning information data corresponding to a second time in the preset period is obtained, wherein the first time to the second time is a preset period.
[0115] Step 204, in the case of detecting that the antenna and the vehicle networking communication terminal box communication connection is disconnected, or the satellite signal between the antenna and the vehicle networking communication terminal box is in an abnormal state, the first time is the time before the antenna and the vehicle networking communication terminal box communication connection is disconnected; the second time is the time after the antenna and the vehicle networking communication terminal box communication connection is disconnected; the first positioning information data and the second positioning information data are processed according to the positioning data judgment algorithm, the second mark is invalid mark, and the third positioning information data is invalid data.
[0116] It should be noted that when the antenna and the vehicle networking communication terminal box communication connection is disconnected, or the satellite signal between the antenna and the vehicle networking communication terminal box is in an abnormal state, then at this time, it is indicated that the corresponding element in the d0 to d1' data element does not exist monotone increasing, so that the data at the t1 time 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, sending the second positioning data set to a target application module.
[0119] It should be noted that the steps 205-206 are described above, and will not be repeated here.
[0120] The embodiment of the application can realize the uniformity of the 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 that the data itself contains monotonic elements, generating the algorithm according to the front and rear data, marking the data validity and then broadcasting, which can simply and effectively judge the validity of the positioning information data without changing the software in the module system, saving the cost.
[0121] Figure 3 is a step flow chart of a positioning data processing method provided by the embodiment of the application, as shown in Figure 3 The method comprises:
[0122] Step 301, determining whether the antenna and the vehicle networking communication terminal box communication connection is disconnected, or the satellite signal between the antenna and the vehicle networking communication terminal box is in an abnormal state;
[0123] Step 302, obtaining first positioning information data corresponding to a first time in a preset period;
[0124] Further, after the step of acquiring the first positioning information data corresponding to the first time in a preset period, the method comprises:
[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] generating a first positioning data group according to the first positioning information data and the initial mark;
[0127] sending the first positioning data group to the target application module.
[0128] It should be noted that in the embodiments of the present application, when the antenna is connected and the satellite signal is good, the first positioning information data of the first time t0 is acquired at the same time as the corresponding initial mark, and the initial mark and the first positioning information data are 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 time t0 is the first positioning information data d0, which is stored in the App1 program internally, and an element of data validity is added, that is, the initial mark f0, wherein the initial value is 0, indicating that the first frame is invalid, and this group of data is directly broadcasted to App2 and App3, and the data combination is {f0, d0}.
[0130] Step 303, acquiring second positioning information data corresponding to a second time in a preset period, wherein the first time to the second time is a preset period;
[0131] Step 304, in the case that the antenna and the vehicle networking communication terminal box are in communication connection, or the satellite signal between the antenna and the vehicle networking communication terminal box is in a normal state, the first time is less than the second time; the first positioning information data and the second positioning information data are processed according to the positioning data judgment algorithm, the second mark is an effective mark, and the third positioning information data is the second positioning information data.
[0132] It should be noted that in the embodiments of the present application, when the antenna and the vehicle networking communication terminal box are in communication connection, or the satellite signal between the antenna and the vehicle networking communication terminal box is in a normal state, then it is indicated that the corresponding elements in the data elements from d0 to d1' are monotonically increasing, and the data of the mark t1 time is effective, 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, sending the second positioning data set to a target application module.
[0135] It should be noted that the steps 305-306 are discussed in the foregoing and will not be repeated here.
[0136] The embodiment of the application can realize the unification of the source of the positioning information data of the receiving end by integrating the algorithm into the first application module of the Internet of Vehicles communication terminal box, without changing the module system, and using the characteristic that the data itself contains monotonic elements, generating the algorithm according to the front and rear data, marking the data for effectiveness and then broadcasting and sending out, which can simply and effectively judge the effectiveness of the positioning information data without changing the software in the module system, saving the cost.
[0137] Corresponding to the method provided by the positioning data processing method embodiment of the application, referring to Figure 4 The application also provides a positioning data processing device logical block diagram, in the embodiment, the device 400 includes:
[0138] A first acquisition module 401 is configured to acquire first positioning information data corresponding to a first time in a preset period;
[0139] A second acquisition module 402 is configured to acquire second positioning information data corresponding to a second time in the preset period, wherein the first time to the second time is a preset period;
[0140] A processing module 403 is 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 mark corresponding to the second positioning information data and third positioning information data, wherein the positioning data judgment algorithm is generated based on whether there is a monotonic increasing element in the positioning information data;
[0141] A generating module 404 is configured to generate a second positioning data set according to the third positioning information data and the second mark;
[0142] A sending module 405 is configured to send the second positioning data set to a target application module.
[0143] Optionally, the first positioning information data corresponding to the first time includes a first timestamp element, the second positioning information data corresponding to the second time includes a second timestamp element, and the processing module includes:
[0144] acquire a 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 third positioning information data is the second positioning information data;
[0146] a second processing submodule, configured to, 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 apparatus further includes:
[0148] a determining module, configured to determine whether communication connection between an antenna and a vehicle networking communication terminal box is disconnected, or whether satellite signals between the antenna and the vehicle networking communication terminal box are in an abnormal state.
[0149] Optionally, in a case where it is detected that the communication connection between the antenna and the vehicle networking communication terminal box is disconnected, or the satellite signals between the antenna and the vehicle networking communication terminal box are in the abnormal state, the first time point is a time point before the communication connection between the antenna and the vehicle networking communication terminal box is disconnected, and the second time point is a time point after the communication connection between the antenna and the vehicle networking communication terminal box is disconnected; the processing module includes:
[0150] a third processing submodule, configured 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 apparatus further includes:
[0152] a first setting module, configured to set a corresponding initial mark based on the first positioning information data, where the initial mark is used to mark that the first positioning information data is in an invalid state;
[0153] a first data group generation module, configured to generate a first positioning data group according to the first positioning information data and the initial mark;
[0154] a first data group sending module, configured to send the first positioning data group to the target application module.
[0155] Optionally, in a case where it is detected that the communication connection between the antenna and the vehicle networking communication terminal box is connected, or the satellite signals between the antenna and the vehicle networking communication terminal box are in a normal state, the first time point is less than the second time point; the processing module includes:
[0156] The fourth processing sub-module is configured to process the first positioning information data and the second positioning information data according to the positioning data judgment algorithm, and obtain the second mark as a valid mark and the third positioning information data as the second positioning information data.
[0157] Optionally, the apparatus further comprises:
[0158] The second setting module is 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 an effective state.
[0159] The second data group generation module is configured to generate a first positioning data group according to the first positioning information data and the first mark.
[0160] The second data group sending module is configured to send the first positioning data group to the target application module.
[0161] Optionally, the first obtaining module comprises:
[0162] The obtaining sub-module is configured to obtain the first positioning information data corresponding to a first time in a preset period from a module system in the vehicle Internet communication terminal box through a callback function of a module application program interface in the vehicle Internet communication terminal box.
[0163] In summary, the positioning data processing apparatus provided by the embodiment of the present application can realize the unification of the source of the positioning information data of the receiving end by integrating the algorithm into the first application module in the vehicle Internet communication terminal box, without changing the module system, and can simply and effectively judge the validity of the positioning information data by marking the data for validity according to the data generation algorithm before broadcasting the data, without changing the software in the module system and saving the cost.
[0164] Figure 5 FIG. 1 is a structural diagram of an electronic device M00 provided by the embodiment of the present application, in which the electronic device M00 comprises a processor M01 and a memory M02, and the memory M02 stores a program or instruction that can run on the processor M01, which realizes each step of the positioning data processing method embodiment when executed by the processor M01 and achieves the same technical effect. To avoid repetition, no further description is given here.
[0165] In the embodiments of the present application, the memory M02 can be used to store software programs and various data. The memory M02 can mainly include a first storage area storing programs or instructions and a second storage area storing data, wherein the first storage area can store an operating system, application programs or instructions required by at least one function (such as a sound playing function, an image playing function, etc.), and the like. In addition, the memory M02 can include a volatile memory or a non-volatile memory, or the memory x09 can include both volatile and non-volatile memories. The non-volatile memory can be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically EPROM (EEPROM), or a flash memory. The volatile memory can be a Random Access Memory (RAM), a Static RAM (SRAM), a Dynamic RAM (DRAM), a Synchronous DRAM (SDRAM), a Double Data Rate SDRAM (DDR SDRAM), an Enhanced SDRAM (ESDRAM), a Synch link DRAM (SLDRAM), and a Direct Rambus RAM (DRRAM). The memory M02 in the embodiments of the present application includes but is not limited to these and any other suitable types of memories.
[0166] The processor M01 can 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 an application program, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It can be understood that the above-mentioned modem processor can also not be integrated into the processor M01.
[0167] The embodiments of the present application also provide a readable storage medium, and the readable storage medium stores programs or instructions, which are executed by a processor to realize various processes of the above-mentioned positioning data processing method embodiments and achieve the same technical effects. To avoid repetition, details are not described herein.
[0168] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes a computer readable storage medium, such as a computer readable only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0169] The embodiment of the present application further provides a chip, which comprises a processor and a communication interface, the communication interface is coupled with the processor, the processor is used for running programs or instructions to realize the processes of the positioning data processing method embodiments and achieve the same technical effects. To avoid repetition, details are not described here.
[0170] It should be understood that the chip involved in the embodiment of the present application can also be referred to as a system chip, a system chip, a chip system or a system on chip, etc.
[0171] The embodiment of the present application provides a computer program product, which is stored in a storage medium, and the program product is executed by at least one processor to realize the processes of the positioning data processing method embodiments and achieve the same technical effects. To avoid repetition, details are not described here.
[0172] It should be noted that in this paper, the term "includes", "contains" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed or inherent to such process, method, article or device. Without more limitations, the element defined by the statement "includes a" does 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 method and device in the present application is not limited to the order of the functions shown or discussed, but can also include the functions performed in a substantially simultaneous manner or in the opposite order according to the functions involved, for example, the described method can be performed in an order different from that described, and various steps can also be added, omitted or combined. In addition, the features described with reference to some examples can be combined in other examples.
[0173] Those skilled in the art can clearly understand the above-mentioned embodiment method can be realized by means of software and necessary general hardware platform, of course, also can be through hardware, but in many cases the former is the better embodiment. Based on such understanding, the technical solutions of the present application essentially or say the part of the related art to make contributions can be embodied in the form of computer software product, the computer software product is stored in a storage medium (such as ROM / RAM, disk, optical disc), including a number of instructions to make a terminal (may be a mobile phone, computer, server, or network equipment, etc.) executes the method described in various embodiments of the present application.
[0174] The embodiments of the present application are described above in combination with the drawings, but the present application is not limited to the above-mentioned specific embodiments, the above-mentioned specific embodiments are only illustrative, but not limited, those skilled in the art can make many forms without departing from the purpose of the present application and the scope protected by the claims under the inspiration of the present application, all belong to the protection of the present application.
Claims
1. A positioning data processing method, characterized by, The first application module applied to a vehicle Internet communication terminal box is integrated with a positioning data judgment algorithm, and the method comprises the following steps: acquiring first positioning information data corresponding to a first time in a preset period; acquiring second positioning information data corresponding to a second time in the preset period, wherein the first time to the second time is a preset period; processing the first positioning information data and the second positioning information data according to the positioning data judgment algorithm to obtain second marking corresponding to the second positioning information data and third 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; generating a second positioning data group according to the third positioning information data and the second marking; sending the second positioning data group to a target application module; the step of acquiring first positioning information data corresponding to a first time in a preset period comprises: acquiring first positioning information data corresponding to a first time in a preset period from a module system in the vehicle Internet communication terminal box through a callback function of a module application program interface in the vehicle Internet communication terminal box.
2. The method of claim 1, wherein, The first positioning information data corresponding to the first time includes a first timestamp element, and the second positioning information data corresponding to the second time includes a second timestamp element, and the step of processing the first positioning information data and the second positioning information data according to the positioning data judgment algorithm to obtain second marking corresponding to the second positioning information data and third positioning information data comprises: acquiring the 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 marking is a valid marking, 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 marking is an invalid marking, and the third positioning information data is invalid data.
3. The method of claim 1, wherein, Before the step of acquiring first positioning information data corresponding to a first time in a preset period, the method comprises the following steps: determining whether the antenna and the vehicle Internet communication terminal box communication connection is disconnected, or whether the satellite signal between the antenna and the vehicle Internet communication terminal box is in an abnormal state.
4. The method of claim 3, wherein, In the case of detecting that the antenna and the vehicle Internet communication terminal box communication connection is disconnected, or the satellite signal between the antenna and the vehicle Internet communication terminal box is in an abnormal state, the first time is the time before the antenna and the vehicle Internet communication terminal box communication connection is disconnected; the second time is the time after the antenna and the vehicle Internet communication terminal box communication connection is disconnected; the step of processing the first positioning information data and the second positioning information data according to the positioning data judgment algorithm to obtain second marking corresponding to the second positioning information data and third positioning information data comprises: According to the positioning data judgment algorithm, the first positioning information data and the second positioning information data are processed to obtain the second mark as an invalid mark and the third positioning information data as invalid data.
5. The method of claim 4, wherein, After the step of obtaining the first positioning information data corresponding to the first time in a preset period, the method comprises: Based on the first positioning information data, a corresponding first mark is set, wherein the first mark is used to mark that the first positioning information data is in an effective state; According to the first positioning information data and the first mark, a first positioning data group is generated; The first positioning data group is sent to the target application module.
6. The method of claim 3, wherein, In the case of detecting that the antenna and the vehicle networking communication terminal box are in communication connection, or the satellite signal between the antenna and the vehicle networking communication terminal box is in a normal state, the first time is less than the second time; According to the positioning data judgment algorithm, the first positioning information data and the second positioning information data are processed to obtain the second mark as an invalid mark and the third positioning information data as invalid data. According to the positioning data judgment algorithm, the first positioning information data and the second positioning information data are processed to obtain the second mark as an invalid mark and the third positioning information data as invalid data.
7. The method of claim 6, wherein, After the step of obtaining the first positioning information data corresponding to the first time in a preset period, the method comprises: Based on the first positioning information data, a corresponding first mark is set, wherein the first mark is used to mark that the first positioning information data is in an effective state; According to the first positioning information data and the first mark, a first positioning data group is generated; The first positioning data group is sent to the target application module.
8. A positioning data processing device, characterized by The first application module applied to the vehicle networking communication terminal box is integrated with a positioning data judgment algorithm, and the device comprises: A first acquisition module is configured to acquire first positioning information data corresponding to a first time in a preset period; A second acquisition module is configured to acquire second positioning information data corresponding to a second time in the preset period, wherein the first time to the second time is a preset period; A processing module is 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 mark corresponding to the second positioning information data and third 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; A generation module is configured to generate a second positioning data group according to the third positioning information data and the second mark; A sending module is configured to send the second positioning data group to a target application module; The first acquisition module comprises: An acquisition submodule is configured to acquire first positioning information data corresponding to a first time in a preset period from a module system in the vehicle networking communication terminal box through a callback function of a module application programming interface in the vehicle networking communication terminal box.
9. An electronic device, comprising: It comprises: A processor; a memory for storing the processor-executable instructions; wherein the processor is configured to execute the instructions to implement the positioning data processing method according to any one of claims 1-7.
10. A storage medium, characterized by When the instructions in the storage medium are executed by the processor of the electronic device, the electronic device is enabled to perform the positioning data processing method according to any one of claims 1-7.
Citation Information
Patent Citations
Error data determination method and device, equipment, medium and product
CN117312753A
Vehicle positioning method and device, electronic equipment and readable storage medium
CN117516556A