CN115914036A - Data verification method, device, storage medium and equipment of automobile internet of things - Google Patents

Data verification method, device, storage medium and equipment of automobile internet of things Download PDF

Info

Publication number
CN115914036A
CN115914036A CN202211371919.2A CN202211371919A CN115914036A CN 115914036 A CN115914036 A CN 115914036A CN 202211371919 A CN202211371919 A CN 202211371919A CN 115914036 A CN115914036 A CN 115914036A
Authority
CN
China
Prior art keywords
data
state data
running state
mentioned
historical
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211371919.2A
Other languages
Chinese (zh)
Inventor
何云廷
王文彬
张维轩
高向飞
郭泽琪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
FAW Group Corp
Original Assignee
FAW Group Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by FAW Group Corp filed Critical FAW Group Corp
Priority to CN202211371919.2A priority Critical patent/CN115914036A/en
Publication of CN115914036A publication Critical patent/CN115914036A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

本发明公开了一种汽车物联网数据校验方法、装置、存储介质及设备。其中,该方法包括:接收目标车辆的当前运行状态数据,以及获取目标车辆的历史运行状态数据;对上述历史运行状态数据进行中值滤波处理,确定样本运行状态数据;将上述当前运行状态数据和上述样本运行状态数据进行比对处理,确定比对结果;基于上述比对结果完成数据校验。本发明解决了现有技术中汽车物联网数据校验方法无法区分由于网络异常、车主人为设置等原因导致的数据混帧的技术问题。

Figure 202211371919

The invention discloses a method, a device, a storage medium and equipment for verifying data of the Internet of Things of an automobile. Wherein, the method includes: receiving the current running state data of the target vehicle, and obtaining the historical running state data of the target vehicle; performing median filtering processing on the above historical running state data to determine sample running state data; combining the above current running state data and The above-mentioned sample running status data is compared and processed to determine the comparison result; data verification is completed based on the above-mentioned comparison result. The invention solves the technical problem that the data verification method of the automobile Internet of things in the prior art cannot distinguish data mixed frames caused by reasons such as network anomalies and manual settings by the car owner.

Figure 202211371919

Description

汽车物联网数据校验方法、装置、存储介质及设备Data verification method, device, storage medium and equipment of automobile internet of things

技术领域technical field

本发明涉及数据处理技术领域,具体而言,涉及一种汽车物联网数据校验方法、装置、存储介质及设备。The present invention relates to the technical field of data processing, in particular, to a data verification method, device, storage medium and equipment of the Internet of Vehicles.

背景技术Background technique

车联网的概念源于物联网,即车辆物联网,是以行驶中的车辆为信息感知对象,借助新一代信息通信技术,实现车与X服务平台之间的网络连接,提升车辆整体的智能驾驶水平,为用户提供安全、舒适、智能、高效的驾驶感受与交通服务,同时提高交通运行效率,提升社会交通服务的智能化水平。通过车联网,上传车辆运行状态数据,服务商可以为用户提供远程车辆控制、驾驶行为分析等一系列功能,这些功能的实现依赖于车辆上传数据的准确性。The concept of the Internet of Vehicles originates from the Internet of Things, that is, the Internet of Vehicles. It takes the moving vehicle as the object of information perception, and uses the new generation of information and communication technology to realize the network connection between the vehicle and the X service platform to improve the overall intelligent driving of the vehicle. To provide users with safe, comfortable, intelligent and efficient driving experience and traffic services, while improving the efficiency of traffic operation and improving the intelligence level of social traffic services. Through the Internet of Vehicles, uploading vehicle operating status data, service providers can provide users with a series of functions such as remote vehicle control and driving behavior analysis. The realization of these functions depends on the accuracy of vehicle uploaded data.

车辆通过物联网与云平台建立连接,以固定周期或设定的条件上传车辆运行状态数据;与云平台建立链接时,每个车辆具备唯一的设备编号,用于区分车辆。由于同时接入的车辆数量可达到10万级或100万级,在某些场景下发生数据混帧。发生混帧原因包括网络压力等,混帧导致两个或多个网联车辆上报的数据混淆,无法通过有效方式进行恢复。针对混帧问题,当前的处理方式为通过相邻两帧数据进行对比,差异较大的数据认为异常数据;这种可以解决部分混帧问题,但是无法区分由于网络异常、车主人为设置等原因导致的混帧,一旦处理错误,会导致额外的质量问题。The vehicle establishes a connection with the cloud platform through the Internet of Things, and uploads the vehicle operating status data at a fixed cycle or set conditions; when establishing a link with the cloud platform, each vehicle has a unique device number to distinguish the vehicle. Since the number of vehicles connected at the same time can reach 100,000 or 1 million, data mix-up occurs in some scenarios. The reasons for mixed frames include network pressure, etc. Mixed frames lead to confusion of data reported by two or more networked vehicles, which cannot be recovered in an effective way. For the mixed frame problem, the current processing method is to compare two adjacent frames of data, and the data with a large difference is regarded as abnormal data; this can solve part of the mixed frame problem, but it cannot be distinguished due to network abnormalities, car owner settings, etc. Mixed frames, once handled incorrectly, will cause additional quality problems.

针对上述的问题,目前尚未提出有效的解决方案。For the above problems, no effective solution has been proposed yet.

发明内容Contents of the invention

本发明实施例提供了一种汽车物联网数据校验方法、装置、存储介质及设备,以至少解决现有技术中汽车物联网数据校验方法无法区分由于网络异常、车主人为设置等原因导致的数据混帧的技术问题。The embodiment of the present invention provides a data verification method, device, storage medium and equipment of the Internet of Vehicles, to at least solve the problem that the verification method of the Internet of Things data in the prior art cannot be distinguished due to network abnormalities, manual settings by the car owner, etc. The technical problem of data mixing frame.

根据本发明实施例的一个方面,提供了一种汽车物联网数据校验方法,包括:接收目标车辆的当前运行状态数据,以及获取目标车辆的历史运行状态数据;对上述历史运行状态数据进行中值滤波处理,确定样本运行状态数据;将上述当前运行状态数据和上述样本运行状态数据进行比对处理,确定比对结果;基于上述比对结果完成数据校验。According to an aspect of the embodiment of the present invention, there is provided a data verification method for the Internet of Vehicles, including: receiving the current running status data of the target vehicle, and acquiring the historical running status data of the target vehicle; Value filtering processing to determine the sample operation status data; compare the above-mentioned current operation status data with the above-mentioned sample operation status data to determine the comparison result; complete data verification based on the above comparison result.

可选的,上述接收目标车辆的当前运行状态数据,以及获取目标车辆的历史运行状态数据,包括:接收第一预设时间段内的初始运行状态数据,并生成第一时间戳,得到上述当前运行状态数据;将上述当前运行状态数据存储至数据库中;从上述数据库获取上述历史运行状态数据,其中,上述历史运行状态数据对应一个第二时间戳,上述历史运行状态数据的时间长度为上述第一预设时间段。Optionally, receiving the current running state data of the target vehicle and acquiring the historical running state data of the target vehicle include: receiving initial running state data within a first preset time period, and generating a first time stamp to obtain the above current Running state data; storing the above-mentioned current running state data in a database; obtaining the above-mentioned historical running state data from the above-mentioned database, wherein the above-mentioned historical running state data corresponds to a second time stamp, and the time length of the above-mentioned historical running state data is the above-mentioned first a preset time period.

可选的,上述对上述历史运行状态数据进行中值滤波处理,确定样本运行状态数据,包括:确定上述历史运行状态数据中的驾驶数据,其中,上述驾驶数据至少包括:里程数据、经纬度数据;计算上述驾驶数据的中位数,确定上述样本运行状态数据。Optionally, performing median filter processing on the above-mentioned historical running state data to determine the sample running state data includes: determining the driving data in the above-mentioned historical running state data, wherein the above-mentioned driving data includes at least: mileage data, longitude and latitude data; Calculate the median of the above-mentioned driving data, and determine the above-mentioned sample running state data.

可选的,在上述将上述当前运行状态数据和上述样本运行状态数据进行比对处理,确定比对结果之前,上述方法还包括:计算上述第一时间戳和上述第二时间戳的时间差值;判断上述时间差值是否大于预设时间阈值;若上述时间差值大于上述预设时间阈值,则将上述当前运行状态数据和上述样本运行状态数据进行比对处理;若上述时间差值小于上述预设时间阈值,则确定上述当前运行状态数据为无效数据。Optionally, before the above-mentioned comparison processing of the above-mentioned current running state data and the above-mentioned sample running state data to determine the comparison result, the above-mentioned method further includes: calculating the time difference between the above-mentioned first time stamp and the above-mentioned second time stamp ;Determine whether the above-mentioned time difference is greater than the preset time threshold; if the above-mentioned time difference is greater than the above-mentioned preset time threshold, compare the above-mentioned current running state data with the above-mentioned sample running state data; if the above-mentioned time difference is less than the above-mentioned If the time threshold is preset, it is determined that the above-mentioned current running state data is invalid data.

可选的,上述将上述当前运行状态数据和上述样本运行状态数据进行比对处理,确定比对结果,包括:计算上述当前运行状态数据和上述样本运行状态数据的数据差值;判断上述数据差值是否大于预设数据阈值;若上述数据差值大于上述预设数据阈值,则确定上述当前运行状态数据异常;若上述数据差值小于上述预设数据阈值,则确定上述当前运行状态数据为目标运行状态数据。Optionally, the above-mentioned comparison processing of the above-mentioned current running state data and the above-mentioned sample running state data, and determining the comparison result include: calculating the data difference between the above-mentioned current running state data and the above-mentioned sample running state data; judging the above-mentioned data difference Whether the value is greater than the preset data threshold; if the above-mentioned data difference is greater than the above-mentioned preset data threshold, it is determined that the above-mentioned current operation status data is abnormal; if the above-mentioned data difference is smaller than the above-mentioned preset data threshold, then it is determined that the above-mentioned current operation status data is the target Operating status data.

可选的,在上述将上述当前运行状态数据和上述样本运行状态数据进行比对处理,确定比对结果之后,上述方法还包括:若确定上述当前运行状态数据异常,则采用上述历史运行状态数据作为上述目标运行状态数据,并将上述历史运行状态数据存储至上述数据库中;若确定上述当前运行状态数据为上述目标运行状态数据,则将上述当前运行状态数据存储至上述数据库中。Optionally, after comparing the above-mentioned current running state data with the above-mentioned sample running state data and determining the comparison result, the above method further includes: if it is determined that the above-mentioned current running state data is abnormal, then using the above-mentioned historical running state data as the above-mentioned target running state data, and store the above-mentioned historical running state data in the above-mentioned database; if it is determined that the above-mentioned current running state data is the above-mentioned target running state data, then store the above-mentioned current running state data in the above-mentioned database.

根据本发明实施例的另一方面,还提供了一种汽车物联网数据校验装置,包括:接收模块,用于接收目标车辆的当前运行状态数据,以及获取目标车辆的历史运行状态数据;处理模块,用于对上述历史运行状态数据进行中值滤波处理,确定样本运行状态数据;比对模块,用于将上述当前运行状态数据和上述样本运行状态数据进行比对处理,确定比对结果;校验模块,用于基于上述比对结果完成数据校验。According to another aspect of the embodiments of the present invention, there is also provided a vehicle Internet of Things data verification device, including: a receiving module, used to receive the current running state data of the target vehicle, and obtain the historical running state data of the target vehicle; A module for performing median filter processing on the above-mentioned historical running state data to determine the sample running state data; a comparison module for comparing the above-mentioned current running state data with the above-mentioned sample running state data to determine the comparison result; A verification module, configured to complete data verification based on the comparison result.

根据本发明实施例的另一方面,还提供了一种非易失性存储介质,上述非易失性存储介质存储有多条指令,上述指令适于由处理器加载并执行任意一项上述的汽车物联网数据校验方法。According to another aspect of the embodiments of the present invention, a non-volatile storage medium is also provided. The above-mentioned non-volatile storage medium stores a plurality of instructions, and the above-mentioned instructions are suitable for being loaded by a processor and executing any one of the above-mentioned Vehicle Internet of Things data verification method.

根据本发明实施例的另一方面,还提供了一种处理器,上述处理器用于运行程序,其中,上述程序被设置为运行时执行任意一项上述的汽车物联网数据校验方法。According to another aspect of the embodiments of the present invention, there is also provided a processor, the above-mentioned processor is used to run a program, wherein the above-mentioned program is configured to execute any one of the above-mentioned automotive Internet of Things data verification methods when running.

根据本发明实施例的另一方面,还提供了一种电子设备,包括存储器和处理器,上述存储器中存储有计算机程序,上述处理器被设置为运行上述计算机程序以执行任意一项上述的汽车物联网数据校验方法。According to another aspect of the embodiments of the present invention, there is also provided an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute any one of the above-mentioned automobile IoT data verification method.

在本发明实施例中,通过接收目标车辆的当前运行状态数据,以及获取目标车辆的历史运行状态数据;对上述历史运行状态数据进行中值滤波处理,确定样本运行状态数据;将上述当前运行状态数据和上述样本运行状态数据进行比对处理,确定比对结果;基于上述比对结果完成数据校验,达到了减少由于混帧导致的数据质量出现问题的目的,从而实现了在不影响数据实时性的前提下,保证持续监测数据的准确性的技术效果,进而解决了现有技术中汽车物联网数据校验方法无法区分由于网络异常、车主人为设置等原因导致的数据混帧的技术问题。In the embodiment of the present invention, by receiving the current running state data of the target vehicle, and obtaining the historical running state data of the target vehicle; performing median filtering processing on the above historical running state data, determining the sample running state data; The data is compared with the above-mentioned sample running status data to determine the comparison result; the data verification is completed based on the above-mentioned comparison results, which achieves the purpose of reducing data quality problems caused by mixed frames, thereby realizing real-time monitoring without affecting data. Under the premise of reliability, the technical effect of ensuring the accuracy of continuous monitoring data, and then solving the technical problem that the automotive Internet of Things data verification method in the prior art cannot distinguish data mixed frames caused by network anomalies, car owner settings, etc.

附图说明Description of drawings

此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The accompanying drawings described here are used to provide a further understanding of the present invention and constitute a part of the application. The schematic embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations to the present invention. In the attached picture:

图1是根据本发明实施例的汽车物联网数据校验方法流程图;Fig. 1 is a flow chart of a method for verifying data of the Internet of Vehicles according to an embodiment of the present invention;

图2是根据本发明实施例的一种可选的数据校验方法流程示意图;Fig. 2 is a schematic flow chart of an optional data verification method according to an embodiment of the present invention;

图3是根据本发明实施例的一种汽车物联网数据校验的装置的结构示意图;Fig. 3 is a schematic structural diagram of a device for verifying data of the Internet of Vehicles according to an embodiment of the present invention;

图4是根据本发明实施例的一种可选的电子设备的结构示意图。Fig. 4 is a schematic structural diagram of an optional electronic device according to an embodiment of the present invention.

具体实施方式Detailed ways

为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。In order to enable those skilled in the art to better understand the solutions of the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only It is an embodiment of a part of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts shall fall within the protection scope of the present invention.

需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本发明的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first" and "second" in the description and claims of the present invention and the above drawings are used to distinguish similar objects, but not necessarily used to describe a specific sequence or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances such that the embodiments of the invention described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having", as well as any variations thereof, are intended to cover a non-exclusive inclusion, for example, a process, method, system, product or device comprising a sequence of steps or elements is not necessarily limited to the expressly listed instead, may include other steps or elements not explicitly listed or inherent to the process, method, product or apparatus.

实施例1Example 1

根据本发明实施例,提供了一种汽车物联网数据校验方法的实施例,需要说明的是,在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。According to an embodiment of the present invention, an embodiment of a data verification method for the Internet of Vehicles is provided. It should be noted that the steps shown in the flow chart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions , and, although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in an order different from that shown or described herein.

图1是根据本发明实施例的汽车物联网数据校验方法流程图,如图1所示,该方法包括如下步骤:Fig. 1 is a flow chart of a method for verifying data of the Internet of Things in an automobile according to an embodiment of the present invention. As shown in Fig. 1, the method includes the following steps:

步骤S102,接收目标车辆的当前运行状态数据,以及获取目标车辆的历史运行状态数据;Step S102, receiving the current running state data of the target vehicle, and acquiring the historical running state data of the target vehicle;

步骤S104,对上述历史运行状态数据进行中值滤波处理,确定样本运行状态数据;Step S104, performing median filtering processing on the above-mentioned historical operating state data to determine the sample operating state data;

步骤S106,将上述当前运行状态数据和上述样本运行状态数据进行比对处理,确定比对结果;Step S106, comparing the above-mentioned current running state data with the above-mentioned sample running state data, and determining the comparison result;

步骤S108,基于上述比对结果完成数据校验。In step S108, data verification is completed based on the comparison result.

在本发明实施例中,上述步骤S102至S108中提供的汽车物联网数据校验方法的执行主体为汽车物联网数据校验系统,采用上述系统接收目标车辆的当前运行状态数据,同时获取目标车辆的历史运行状态数据;并对上述历史运行状态数据进行中值滤波处理,确定样本运行状态数据;将上述当前运行状态数据和上述样本运行状态数据进行比对处理,确定比对结果;基于上述比对结果完成数据校验。In the embodiment of the present invention, the vehicle Internet of Things data verification method provided in the above steps S102 to S108 is executed by the Vehicle Internet of Things data verification system, which uses the above-mentioned system to receive the current operating status data of the target vehicle and simultaneously obtains the data of the target vehicle and perform median filtering on the above historical operating state data to determine the sample operating state data; compare the above current operating state data with the above sample operating state data to determine the comparison result; based on the above comparison Data validation is done on the results.

作为一种可选的实施例,如图2所示的数据校验方法流程示意图,车辆上电状态,通过车载通信终端与汽车远程服务提供商(TSP)建立连接,可以以特定周期或特定触发事件(点火、熄火)上传车辆运行状态数据;TSP接收到车辆上报的数据时,同时获取目标车辆的历史运行状态数据;计算缓存历史数据的中位数表示车辆状态;并将最新数据与计算得到的车辆状态对比,首先判断当前车况的时间与历史数据的时间偏差是否差超过一定时间阈值,最后进行数据有效性判断,最新数据与计算得到的车辆状态对比,比较数据偏差值,偏差超过阈值,则认为异常数据,丢弃数据不进行下一步应用,使用上一个有效车况替代,否则正常更新车况。As an optional embodiment, as shown in the flow diagram of the data verification method shown in Figure 2, in the power-on state of the vehicle, the connection between the vehicle communication terminal and the vehicle remote service provider (TSP) can be established in a specific cycle or a specific trigger The event (ignition, flameout) uploads the vehicle running status data; when the TSP receives the data reported by the vehicle, it simultaneously obtains the historical running status data of the target vehicle; calculates the median of the cached historical data to indicate the vehicle status; and compares the latest data with the calculated Compared with the vehicle state, first judge whether the time difference between the time of the current vehicle condition and the historical data exceeds a certain time threshold, and finally judge the validity of the data, compare the latest data with the calculated vehicle state, compare the data deviation value, and the deviation exceeds the threshold. It is regarded as abnormal data, the data is discarded and not applied in the next step, and the last valid vehicle condition is used instead, otherwise the vehicle condition is updated normally.

需要说明的是,车辆历史状态可以选择值域大、变化明显的信号,如车辆行驶总里程、车辆经纬度信息等;时间阈值可以为5min,设定时间阈值可以避免由于网络、车辆下电等场景下数据未上报导致处理错误;数据偏差阈值的设定可以根据实际数据情况统计得到,例如:里程阈值可以取100km,经纬度阈值可以为1°。It should be noted that the vehicle historical state can choose signals with a large value range and obvious changes, such as the total mileage of the vehicle, vehicle latitude and longitude information, etc.; the time threshold can be 5 minutes, and setting the time threshold can avoid scenarios such as network, vehicle power-off, etc. Failure to report the following data leads to processing errors; the setting of the data deviation threshold can be calculated according to the actual data situation, for example: the mileage threshold can be 100km, and the latitude and longitude threshold can be 1°.

通过本发明实施例,能够有效的减少由于混帧导致的数据质量问题,处理多种异常场景。并且本发明提供的方法简单,数据校验及修复的所需的计算资源少,在不影响数据实时性的前提下,持续监测数据的准确性,并对错误数据进行修复,算法鲁棒性高。Through the embodiments of the present invention, data quality problems caused by mixed frames can be effectively reduced, and various abnormal scenes can be handled. Moreover, the method provided by the present invention is simple, requires less computing resources for data verification and repair, and continuously monitors the accuracy of data without affecting the real-time performance of data, and repairs erroneous data, and the algorithm has high robustness .

在一种可选的实施例中,上述接收目标车辆的当前运行状态数据,以及获取目标车辆的历史运行状态数据,包括:接收第一预设时间段内的初始运行状态数据,并生成第一时间戳,得到上述当前运行状态数据;将上述当前运行状态数据存储至数据库中;从上述数据库获取上述历史运行状态数据,其中,上述历史运行状态数据对应一个第二时间戳,上述历史运行状态数据的时间长度为上述第一预设时间段。In an optional embodiment, the receiving the current running state data of the target vehicle and acquiring the historical running state data of the target vehicle include: receiving initial running state data within a first preset time period, and generating a first Timestamp, to obtain the above-mentioned current operation state data; store the above-mentioned current operation state data in the database; obtain the above-mentioned historical operation state data from the above-mentioned database, wherein the above-mentioned historical operation state data corresponds to a second time stamp, and the above-mentioned historical operation state data The length of time is the above-mentioned first preset time period.

在本发明实施例中,接收到最新车辆数据时,为数据生成上述第一时间戳,上述最新车辆数据为第一预设时间段内的运行状态数据;历史运行数据可以选择1min或11个数据,也可以选择第一预设时间长度内的历史数据,并记录上报每一条数据的时间戳,缓存数据量可以根据实际数据及计算性能决定。In the embodiment of the present invention, when the latest vehicle data is received, the above-mentioned first time stamp is generated for the data, and the above-mentioned latest vehicle data is the running status data within the first preset time period; historical running data can be selected from 1min or 11 data , you can also select the historical data within the first preset time length, and record and report the time stamp of each piece of data. The amount of cached data can be determined according to the actual data and computing performance.

在一种可选的实施例中,上述对上述历史运行状态数据进行中值滤波处理,确定样本运行状态数据,包括:确定上述历史运行状态数据中的驾驶数据,其中,上述驾驶数据至少包括:里程数据、经纬度数据;计算上述驾驶数据的中位数,确定上述样本运行状态数据。In an optional embodiment, performing median filter processing on the above-mentioned historical running state data to determine the sample running state data includes: determining the driving data in the above-mentioned historical running state data, wherein the above-mentioned driving data includes at least: Mileage data, latitude and longitude data; calculate the median of the above-mentioned driving data, and determine the above-mentioned sample running status data.

在本发明实施例中,计算车辆历史状态时选择值域大、变化明显的信号,如车辆行驶总里程、车辆经纬度信息,计算缓存历史数据的中位数以表示车辆状态。In the embodiment of the present invention, when calculating the historical state of the vehicle, a signal with a large value range and obvious changes is selected, such as the total mileage of the vehicle and the latitude and longitude information of the vehicle, and the median of the cached historical data is calculated to represent the vehicle state.

需要说明的是。中位数为数据的50%分位值;选择信号行驶总里程等信号的原因为:发生混帧时,车辆的里程信息差异较大,相对于正常信号存在明显变化,可以通过中值滤波得到稳定的数据。It should be noted. The median is the 50% quantile value of the data; the reason for selecting signals such as the total mileage of the signal is that when mixed frames occur, the mileage information of the vehicle is quite different, and there is a significant change compared with the normal signal, which can be obtained by median filtering stable data.

在一种可选的实施例中,在上述将上述当前运行状态数据和上述样本运行状态数据进行比对处理,确定比对结果之前,上述方法还包括:计算上述第一时间戳和上述第二时间戳的时间差值;判断上述时间差值是否大于预设时间阈值;若上述时间差值大于上述预设时间阈值,则将上述当前运行状态数据和上述样本运行状态数据进行比对处理;若上述时间差值小于上述预设时间阈值,则确定上述当前运行状态数据为无效数据。In an optional embodiment, before the above-mentioned comparison processing of the above-mentioned current running state data and the above-mentioned sample running state data and determining the comparison result, the above-mentioned method further includes: calculating the above-mentioned first time stamp and the above-mentioned second time stamp The time difference value of the timestamp; determine whether the above-mentioned time difference is greater than the preset time threshold; if the above-mentioned time difference is greater than the above-mentioned preset time threshold, compare the above-mentioned current operation status data with the above-mentioned sample operation status data; if If the above-mentioned time difference is smaller than the above-mentioned preset time threshold, it is determined that the above-mentioned current running state data is invalid data.

在本发明实施例中,4、最新数据与计算得到的车辆状态对比时,首先判断当前车况的时间与历史数据的时间偏差是否差超过一定时间阈值,超过预设时间阈值,则认为是有效车况,否则为无效车况;时间阈值可以设定为5min。判断时间阈值的意义在于,避免由于网络、车辆下电等场景下数据未上报导致处理错误。In the embodiment of the present invention, 4. When the latest data is compared with the calculated vehicle state, it is first judged whether the difference between the time of the current vehicle condition and the time deviation of the historical data exceeds a certain time threshold, and if it exceeds a preset time threshold, it is considered to be a valid vehicle condition , otherwise it is an invalid vehicle condition; the time threshold can be set to 5 minutes. The significance of judging the time threshold is to avoid processing errors caused by unreported data in scenarios such as network and vehicle power-off.

在一种可选的实施例中,上述将上述当前运行状态数据和上述样本运行状态数据进行比对处理,确定比对结果,包括:计算上述当前运行状态数据和上述样本运行状态数据的数据差值;判断上述数据差值是否大于预设数据阈值;若上述数据差值大于上述预设数据阈值,则确定上述当前运行状态数据异常;若上述数据差值小于上述预设数据阈值,则确定上述当前运行状态数据为目标运行状态数据。In an optional embodiment, the above-mentioned comparison processing of the above-mentioned current running state data and the above-mentioned sample running state data, and determining the comparison result include: calculating the data difference between the above-mentioned current running state data and the above-mentioned sample running state data value; determine whether the above-mentioned data difference is greater than the preset data threshold; if the above-mentioned data difference is greater than the above-mentioned preset data threshold, it is determined that the above-mentioned current operating state data is abnormal; if the above-mentioned data difference is smaller than the above-mentioned preset data threshold, then determine the above-mentioned The current running state data is the target running state data.

在本发明实施例中,进行数据有效性判断时,采用最新数据与计算得到的车辆状态对比,比较数据偏差值,偏差超过阈值,则认为异常数据,丢弃数据不进行下一步应用,使用上一个有效车况替代,否则正常更新车况。In the embodiment of the present invention, when judging the validity of the data, the latest data is compared with the calculated vehicle state to compare the data deviation value. If the deviation exceeds the threshold, it is regarded as abnormal data, and the data is discarded without further application, and the previous one is used. Effective vehicle status is replaced, otherwise the vehicle status is updated normally.

需要说明的是,阈值设定根据实际数据情况统计得到,一般里程阈值可以取100km,经纬度阈值可以为1°。It should be noted that the threshold is set based on actual data statistics. Generally, the mileage threshold can be 100km, and the latitude and longitude threshold can be 1°.

在一种可选的实施例中,在上述将上述当前运行状态数据和上述样本运行状态数据进行比对处理,确定比对结果之后,上述方法还包括:若确定上述当前运行状态数据异常,则采用上述历史运行状态数据作为上述目标运行状态数据,并将上述历史运行状态数据存储至上述数据库中;若确定上述当前运行状态数据为上述目标运行状态数据,则将上述当前运行状态数据存储至上述数据库中。In an optional embodiment, after comparing the above-mentioned current running state data with the above-mentioned sample running state data and determining the comparison result, the above method further includes: if it is determined that the above-mentioned current running state data is abnormal, then The above-mentioned historical operation state data is used as the above-mentioned target operation state data, and the above-mentioned historical operation state data is stored in the above-mentioned database; if the above-mentioned current operation state data is determined to be the above-mentioned target operation state data, the above-mentioned current operation state data is stored in the above-mentioned in the database.

在本发明实施例中,通过接收目标车辆的当前运行状态数据,以及获取目标车辆的历史运行状态数据;对上述历史运行状态数据进行中值滤波处理,确定样本运行状态数据;将上述当前运行状态数据和上述样本运行状态数据进行比对处理,确定比对结果;基于上述比对结果完成数据校验,达到了减少由于混帧导致的数据质量出现问题的目的,从而实现了在不影响数据实时性的前提下,保证持续监测数据的准确性的技术效果,进而解决了现有技术中汽车物联网数据校验方法无法区分由于网络异常、车主人为设置等原因导致的数据混帧的技术问题。In the embodiment of the present invention, by receiving the current running state data of the target vehicle, and obtaining the historical running state data of the target vehicle; performing median filtering processing on the above historical running state data, determining the sample running state data; The data is compared with the above-mentioned sample running status data to determine the comparison result; the data verification is completed based on the above-mentioned comparison results, which achieves the purpose of reducing data quality problems caused by mixed frames, thereby realizing real-time monitoring without affecting data. Under the premise of reliability, the technical effect of ensuring the accuracy of continuous monitoring data, and then solving the technical problem that the automotive Internet of Things data verification method in the prior art cannot distinguish data mixed frames caused by network anomalies, car owner settings, etc.

实施例2Example 2

根据本发明实施例,还提供了一种用于实施上述汽车物联网数据校验的方法的装置实施例,图3是根据本发明实施例的一种汽车物联网数据校验的装置的结构示意图,如图3所示,上述汽车物联网数据校验的装置,包括:接收模块30、处理模块32、比对模块34和校验模块36,其中:According to an embodiment of the present invention, an embodiment of a device for implementing the above-mentioned method for verifying data of the Internet of Vehicles is also provided. FIG. 3 is a schematic structural diagram of a device for verifying data of the Internet of Vehicles according to an embodiment of the present invention. , as shown in FIG. 3 , the above-mentioned device for vehicle Internet of Things data verification includes: a receiving module 30, a processing module 32, a comparison module 34 and a verification module 36, wherein:

接收模块30,用于接收目标车辆的当前运行状态数据,以及获取目标车辆的历史运行状态数据;The receiving module 30 is used to receive the current running state data of the target vehicle, and obtain the historical running state data of the target vehicle;

处理模块32,用于对上述历史运行状态数据进行中值滤波处理,确定样本运行状态数据;A processing module 32, configured to perform median filtering processing on the above-mentioned historical operating state data to determine sample operating state data;

比对模块34,用于将上述当前运行状态数据和上述样本运行状态数据进行比对处理,确定比对结果;A comparison module 34, configured to compare the above-mentioned current running state data with the above-mentioned sample running state data, and determine the comparison result;

校验模块36,用于基于上述比对结果完成数据校验。需要说明的是,上述各个模块是可以通过软件或硬件来实现的,例如,对于后者,可以通过以下方式实现:上述各个模块可以位于同一处理器中;或者,上述各个模块以任意组合的方式位于不同的处理器中。A verification module 36, configured to complete data verification based on the comparison result. It should be noted that each of the above-mentioned modules can be realized by software or hardware. For example, for the latter, it can be realized in the following manner: each of the above-mentioned modules can be located in the same processor; or, each of the above-mentioned modules can be implemented in any combination on a different processor.

此处需要说明的是,上述汽车物联网数据校验的方法对应于实施例1中的步骤S102至步骤S108,上述模块与对应的步骤所实现的实例和应用场景相同,但不限于上述实施例1所公开的内容。需要说明的是,上述模块作为装置的一部分可以运行在计算机终端中。What needs to be explained here is that the above-mentioned method of automotive Internet of Things data verification corresponds to Step S102 to Step S108 in Embodiment 1, and the examples and application scenarios realized by the above-mentioned modules and corresponding steps are the same, but are not limited to the above-mentioned embodiment 1 What is published. It should be noted that, as a part of the device, the above modules can run in the computer terminal.

需要说明的是,本实施例的可选或优选实施方式可以参见实施例1中的相关描述,此处不再赘述。It should be noted that, for optional or preferred implementation manners of this embodiment, reference may be made to relevant descriptions in Embodiment 1, and details are not repeated here.

上述的汽车物联网数据校验的装置还可以包括处理器和存储器,上述汽车物联网数据校验的装置等均作为程序单元存储在存储器中,由处理器执行存储在存储器中的上述程序单元来实现相应的功能。The above-mentioned device for verifying the data of the Internet of Vehicles can also include a processor and a memory, and the devices for verifying the data of the Internet of Things for the above-mentioned automobiles are all stored in the memory as program elements, and the processor executes the above-mentioned program elements stored in the memory to achieve realize the corresponding function.

处理器中包含内核,由内核去存储器中调取相应的程序单元,上述内核可以设置一个或以上。存储器可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM),存储器包括至少一个存储芯片。The processor includes a kernel, and the kernel fetches corresponding program units from the memory, and one or more kernels can be provided. Memory may include non-permanent memory in computer-readable media, in the form of random access memory (RAM) and/or non-volatile memory, such as read-only memory (ROM) or flash memory (flash RAM), memory including at least one memory chip.

根据本申请实施例,还提供了一种计算机可读存储介质的实施例。可选地,在本实施例中,上述计算机可读存储介质包括存储的程序,其中,在上述程序运行时控制上述计算机可读存储介质所在设备执行上述任意一种汽车物联网数据校验的方法。According to an embodiment of the present application, an embodiment of a computer-readable storage medium is also provided. Optionally, in this embodiment, the above-mentioned computer-readable storage medium includes a stored program, wherein, when the above-mentioned program is running, the device where the above-mentioned computer-readable storage medium is located is controlled to perform any one of the above-mentioned methods for verifying data of the Internet of Things in vehicles .

可选地,在本实施例中,上述计算机可读存储介质可以位于计算机网络中计算机终端群中的任意一个计算机终端中,或者位于移动终端群中的任意一个移动终端中,上述计算机可读存储介质包括存储的程序。Optionally, in this embodiment, the above-mentioned computer-readable storage medium may be located in any computer terminal in the computer terminal group in the computer network, or in any mobile terminal in the mobile terminal group, and the above-mentioned computer-readable storage medium The media includes stored programs.

可选地,在程序运行时控制计算机可读存储介质所在设备执行以下功能:接收目标车辆的当前运行状态数据,以及获取目标车辆的历史运行状态数据;对上述历史运行状态数据进行中值滤波处理,确定样本运行状态数据;将上述当前运行状态数据和上述样本运行状态数据进行比对处理,确定比对结果;基于上述比对结果完成数据校验。Optionally, when the program is running, the device where the computer-readable storage medium is located is controlled to perform the following functions: receive the current running state data of the target vehicle, and obtain the historical running state data of the target vehicle; perform median filtering processing on the above historical running state data , determine the sample running status data; compare the above-mentioned current running status data with the above-mentioned sample running status data, and determine the comparison result; complete the data verification based on the above comparison result.

可选地,在程序运行时控制计算机可读存储介质所在设备执行以下功能:接收第一预设时间段内的初始运行状态数据,并生成第一时间戳,得到上述当前运行状态数据;将上述当前运行状态数据存储至数据库中;从上述数据库获取上述历史运行状态数据,其中,上述历史运行状态数据对应一个第二时间戳,上述历史运行状态数据的时间长度为上述第一预设时间段。Optionally, when the program is running, the device where the computer-readable storage medium is located is controlled to perform the following functions: receive initial running state data within a first preset time period, and generate a first time stamp to obtain the above-mentioned current running state data; The current running state data is stored in a database; the historical running state data is obtained from the database, wherein the historical running state data corresponds to a second time stamp, and the time length of the historical running state data is the first preset time period.

可选地,在程序运行时控制计算机可读存储介质所在设备执行以下功能:确定上述历史运行状态数据中的驾驶数据,其中,上述驾驶数据至少包括:里程数据、经纬度数据;计算上述驾驶数据的中位数,确定上述样本运行状态数据。Optionally, when the program is running, the device where the computer-readable storage medium is located is controlled to perform the following functions: determine the driving data in the above-mentioned historical running state data, wherein the above-mentioned driving data at least includes: mileage data, latitude and longitude data; Median, to determine the above sample run state data.

可选地,在程序运行时控制计算机可读存储介质所在设备执行以下功能:计算上述第一时间戳和上述第二时间戳的时间差值;判断上述时间差值是否大于预设时间阈值;若上述时间差值大于上述预设时间阈值,则将上述当前运行状态数据和上述样本运行状态数据进行比对处理;若上述时间差值小于上述预设时间阈值,则确定上述当前运行状态数据为无效数据。Optionally, when the program is running, the device where the computer-readable storage medium is located is controlled to perform the following functions: calculate the time difference between the above-mentioned first time stamp and the above-mentioned second time stamp; determine whether the above-mentioned time difference is greater than a preset time threshold; if If the above-mentioned time difference is greater than the above-mentioned preset time threshold, then compare the above-mentioned current running state data with the above-mentioned sample running state data; if the above-mentioned time difference is smaller than the above-mentioned preset time threshold, then determine that the above-mentioned current running state data is invalid data.

可选地,在程序运行时控制计算机可读存储介质所在设备执行以下功能:计算上述当前运行状态数据和上述样本运行状态数据的数据差值;判断上述数据差值是否大于预设数据阈值;若上述数据差值大于上述预设数据阈值,则确定上述当前运行状态数据异常;若上述数据差值小于上述预设数据阈值,则确定上述当前运行状态数据为目标运行状态数据。Optionally, when the program is running, the device where the computer-readable storage medium is located is controlled to perform the following functions: calculate the data difference between the above-mentioned current running state data and the above-mentioned sample running state data; determine whether the above-mentioned data difference is greater than a preset data threshold; if If the data difference is greater than the preset data threshold, it is determined that the current operating state data is abnormal; if the data difference is smaller than the preset data threshold, it is determined that the current operating state data is the target operating state data.

可选地,在程序运行时控制计算机可读存储介质所在设备执行以下功能:若确定上述当前运行状态数据异常,则采用上述历史运行状态数据作为上述目标运行状态数据,并将上述历史运行状态数据存储至上述数据库中;若确定上述当前运行状态数据为上述目标运行状态数据,则将上述当前运行状态数据存储至上述数据库中。Optionally, when the program is running, the device where the computer-readable storage medium is located is controlled to perform the following functions: if it is determined that the above-mentioned current running state data is abnormal, the above-mentioned historical running state data is used as the above-mentioned target running state data, and the above-mentioned historical running state data is storing in the above database; if it is determined that the above-mentioned current running state data is the above-mentioned target running state data, then storing the above-mentioned current running state data in the above-mentioned database.

根据本申请实施例,还提供了一种处理器的实施例。可选地,在本实施例中,上述处理器用于运行程序,其中,上述程序运行时执行上述任意一种汽车物联网数据校验的方法。According to an embodiment of the present application, an embodiment of a processor is also provided. Optionally, in this embodiment, the above-mentioned processor is configured to run a program, wherein, when the above-mentioned program is running, any one of the above-mentioned methods for verifying the data of the Internet of Things in the vehicle is executed.

可选地,在程序运行时控制处理器所在设备执行以下功能:接收目标车辆的当前运行状态数据,以及获取目标车辆的历史运行状态数据;对上述历史运行状态数据进行中值滤波处理,确定样本运行状态数据;将上述当前运行状态数据和上述样本运行状态数据进行比对处理,确定比对结果;基于上述比对结果完成数据校验。Optionally, when the program is running, the device where the processor is located is controlled to perform the following functions: receive the current running state data of the target vehicle, and obtain the historical running state data of the target vehicle; perform median filtering processing on the above historical running state data, and determine the sample Operation status data; compare the above-mentioned current operation status data with the above-mentioned sample operation status data, and determine the comparison result; complete data verification based on the above comparison result.

可选地,在程序运行时控制处理器所在设备执行以下功能:接收第一预设时间段内的初始运行状态数据,并生成第一时间戳,得到上述当前运行状态数据;将上述当前运行状态数据存储至数据库中;从上述数据库获取上述历史运行状态数据,其中,上述历史运行状态数据对应一个第二时间戳,上述历史运行状态数据的时间长度为上述第一预设时间段。Optionally, when the program is running, the device where the processor is located is controlled to perform the following functions: receive initial running state data within a first preset time period, and generate a first time stamp to obtain the above-mentioned current running state data; convert the above-mentioned current running state data to The data is stored in a database; the historical operating state data is obtained from the database, wherein the historical operating state data corresponds to a second time stamp, and the time length of the historical operating state data is the first preset time period.

可选地,在程序运行时控制处理器所在设备执行以下功能:确定上述历史运行状态数据中的驾驶数据,其中,上述驾驶数据至少包括:里程数据、经纬度数据;计算上述驾驶数据的中位数,确定上述样本运行状态数据。Optionally, when the program is running, the device where the processor is located is controlled to perform the following functions: determine the driving data in the above-mentioned historical running state data, wherein the above-mentioned driving data includes at least: mileage data, latitude and longitude data; calculate the median of the above-mentioned driving data , to determine the above sample running status data.

可选地,在程序运行时控制处理器所在设备执行以下功能:计算上述第一时间戳和上述第二时间戳的时间差值;判断上述时间差值是否大于预设时间阈值;若上述时间差值大于上述预设时间阈值,则将上述当前运行状态数据和上述样本运行状态数据进行比对处理;若上述时间差值小于上述预设时间阈值,则确定上述当前运行状态数据为无效数据。Optionally, the device where the processor is located is controlled to perform the following functions when the program is running: calculating the time difference between the above-mentioned first time stamp and the above-mentioned second time stamp; judging whether the above-mentioned time difference is greater than a preset time threshold; if the above-mentioned time difference If the value is greater than the preset time threshold, compare the current running status data with the sample running status data; if the time difference is smaller than the preset time threshold, determine that the current running status data is invalid data.

可选地,在程序运行时控制处理器所在设备执行以下功能:计算上述当前运行状态数据和上述样本运行状态数据的数据差值;判断上述数据差值是否大于预设数据阈值;若上述数据差值大于上述预设数据阈值,则确定上述当前运行状态数据异常;若上述数据差值小于上述预设数据阈值,则确定上述当前运行状态数据为目标运行状态数据。Optionally, when the program is running, the device where the processor is located is controlled to perform the following functions: calculate the data difference between the above-mentioned current running state data and the above-mentioned sample running state data; judge whether the above-mentioned data difference is greater than a preset data threshold; if the above-mentioned data difference If the value is greater than the preset data threshold, it is determined that the current running state data is abnormal; if the above data difference is smaller than the preset data threshold, then it is determined that the current running state data is the target running state data.

可选地,在程序运行时控制处理器所在设备执行以下功能:若确定上述当前运行状态数据异常,则采用上述历史运行状态数据作为上述目标运行状态数据,并将上述历史运行状态数据存储至上述数据库中;若确定上述当前运行状态数据为上述目标运行状态数据,则将上述当前运行状态数据存储至上述数据库中。Optionally, when the program is running, the device where the processor is located is controlled to perform the following functions: if it is determined that the above-mentioned current running state data is abnormal, the above-mentioned historical running state data is used as the above-mentioned target running state data, and the above-mentioned historical running state data is stored in the above-mentioned In the database; if it is determined that the above-mentioned current running state data is the above-mentioned target running state data, then storing the above-mentioned current running state data in the above-mentioned database.

根据本申请实施例,还提供了一种电子设备的实施例,包括存储器和处理器,上述存储器中存储有计算机程序,上述处理器被设置为运行上述计算机程序以执行上述任意一种的汽车物联网数据校验方法。According to an embodiment of the present application, an embodiment of an electronic device is also provided, including a memory and a processor, the memory stores a computer program, and the processor is configured to run the computer program to execute any one of the above-mentioned vehicle objects. Network data verification method.

如图4所示,本申请实施例提供了一种电子设备,电子设备10包括处理器、存储器及存储在存储器上并可在处理器上运行的程序,处理器执行程序时实现以下步骤:接收目标车辆的当前运行状态数据,以及获取目标车辆的历史运行状态数据;对上述历史运行状态数据进行中值滤波处理,确定样本运行状态数据;将上述当前运行状态数据和上述样本运行状态数据进行比对处理,确定比对结果;基于上述比对结果完成数据校验。As shown in FIG. 4 , an embodiment of the present application provides an electronic device. The electronic device 10 includes a processor, a memory, and a program stored on the memory and operable on the processor. When the processor executes the program, the following steps are implemented: receiving The current operating state data of the target vehicle, and the acquisition of historical operating state data of the target vehicle; performing median filter processing on the above historical operating state data to determine the sample operating state data; comparing the above current operating state data with the above sample operating state data For processing, determine the comparison result; complete data verification based on the above comparison result.

本申请还提供了一种计算机程序产品,当在汽车物联网数据校验设备上执行时,适于执行初始化有如下方法步骤的程序:接收目标车辆的当前运行状态数据,以及获取目标车辆的历史运行状态数据;对上述历史运行状态数据进行中值滤波处理,确定样本运行状态数据;将上述当前运行状态数据和上述样本运行状态数据进行比对处理,确定比对结果;基于上述比对结果完成数据校验。The present application also provides a computer program product, which, when executed on the vehicle Internet of Things data verification device, is suitable for executing a program initialized with the following method steps: receiving the current operating status data of the target vehicle, and obtaining the history of the target vehicle Running status data; perform median filter processing on the above historical running status data to determine the sample running status data; compare the above current running status data with the above sample running status data to determine the comparison result; complete the comparison based on the above comparison results Data validation.

本申请还提供了一种计算机程序产品,当在汽车物联网数据校验设备上执行时,适于执行初始化有如下方法步骤的程序:接收第一预设时间段内的初始运行状态数据,并生成第一时间戳,得到上述当前运行状态数据;将上述当前运行状态数据存储至数据库中;从上述数据库获取上述历史运行状态数据,其中,上述历史运行状态数据对应一个第二时间戳,上述历史运行状态数据的时间长度为上述第一预设时间段。The present application also provides a computer program product, which, when executed on the vehicle Internet of Things data verification device, is suitable for executing a program that is initialized with the following method steps: receiving initial operating state data within a first preset time period, and generating the first time stamp to obtain the above-mentioned current running state data; storing the above-mentioned current running state data in a database; obtaining the above-mentioned historical running state data from the above-mentioned database, wherein the above-mentioned historical running state data corresponds to a second time stamp, and the above-mentioned historical The time length of the running state data is the above-mentioned first preset time period.

本申请还提供了一种计算机程序产品,当在汽车物联网数据校验设备上执行时,适于执行初始化有如下方法步骤的程序:确定上述历史运行状态数据中的驾驶数据,其中,上述驾驶数据至少包括:里程数据、经纬度数据;计算上述驾驶数据的中位数,确定上述样本运行状态数据。The present application also provides a computer program product, which, when executed on the vehicle Internet of Things data verification device, is suitable for executing a program with the following method steps for initialization: determining the driving data in the above-mentioned historical running state data, wherein the above-mentioned driving The data at least includes: mileage data, latitude and longitude data; calculating the median of the above driving data, and determining the above sample running status data.

本申请还提供了一种计算机程序产品,当在汽车物联网数据校验设备上执行时,适于执行初始化有如下方法步骤的程序:计算上述第一时间戳和上述第二时间戳的时间差值;判断上述时间差值是否大于预设时间阈值;若上述时间差值大于上述预设时间阈值,则将上述当前运行状态数据和上述样本运行状态数据进行比对处理;若上述时间差值小于上述预设时间阈值,则确定上述当前运行状态数据为无效数据。The present application also provides a computer program product, which, when executed on the vehicle Internet of Things data verification device, is suitable for executing a program initialized with the following method steps: calculating the time difference between the above-mentioned first time stamp and the above-mentioned second time stamp value; determine whether the above-mentioned time difference is greater than the preset time threshold; if the above-mentioned time difference is greater than the above-mentioned preset time threshold, compare the above-mentioned current running status data with the above-mentioned sample running status data; if the above-mentioned time difference is less than If the above-mentioned preset time threshold is used, it is determined that the above-mentioned current running state data is invalid data.

本申请还提供了一种计算机程序产品,当在汽车物联网数据校验设备上执行时,适于执行初始化有如下方法步骤的程序:计算上述当前运行状态数据和上述样本运行状态数据的数据差值;判断上述数据差值是否大于预设数据阈值;若上述数据差值大于上述预设数据阈值,则确定上述当前运行状态数据异常;若上述数据差值小于上述预设数据阈值,则确定上述当前运行状态数据为目标运行状态数据。The present application also provides a computer program product, which, when executed on the vehicle Internet of Things data verification device, is suitable for executing a program that is initialized with the following method steps: calculating the data difference between the above-mentioned current running state data and the above-mentioned sample running state data value; determine whether the above-mentioned data difference is greater than the preset data threshold; if the above-mentioned data difference is greater than the above-mentioned preset data threshold, it is determined that the above-mentioned current operating state data is abnormal; if the above-mentioned data difference is smaller than the above-mentioned preset data threshold, then determine the above-mentioned The current running state data is the target running state data.

本申请还提供了一种计算机程序产品,当在汽车物联网数据校验设备上执行时,适于执行初始化有如下方法步骤的程序:若确定上述当前运行状态数据异常,则采用上述历史运行状态数据作为上述目标运行状态数据,并将上述历史运行状态数据存储至上述数据库中;若确定上述当前运行状态数据为上述目标运行状态数据,则将上述当前运行状态数据存储至上述数据库中。The present application also provides a computer program product, which, when executed on the vehicle Internet of Things data verification device, is suitable for executing a program whose initialization has the following method steps: if it is determined that the above-mentioned current running state data is abnormal, then adopt the above-mentioned historical running state data as the target operating state data, and store the historical operating state data in the database; if the current operating state data is determined to be the target operating state data, store the current operating state data in the database.

本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present application may be provided as methods, systems, or computer program products. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.

本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程汽车物联网数据校验设备的处理器以产生一个机器,使得通过计算机或其他可编程汽车物联网数据校验设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowcharts and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the present application. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a processor of a general-purpose computer, a special purpose computer, an embedded processor, or other programmable automotive IoT data verification device to produce a machine such that the computer or other programmable automotive Internet of Things data verification device The instructions executed by the processor generate means for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程汽车物联网数据校验设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable automotive IoT data verification device to operate in a specific manner, such that the instructions stored in the computer-readable memory produce a manufacturing process comprising instruction means. product, the instruction device realizes the functions specified in one or more procedures of the flow chart and/or one or more blocks of the block diagram.

这些计算机程序指令也可装载到计算机或其他可编程汽车物联网数据校验设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions may also be loaded onto a computer or other programmable automotive IoT data verification device, so that a series of operational steps are performed on the computer or other programmable device to produce a computer-implemented process, whereby the computer or other programmable The instructions executed on the device provide steps for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.

存储器可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。存储器是计算机可读介质的示例。Memory may include non-permanent storage in computer readable media, in the form of random access memory (RAM) and/or nonvolatile memory such as read only memory (ROM) or flash RAM. The memory is an example of a computer readable medium.

计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media, including both permanent and non-permanent, removable and non-removable media, can be implemented by any method or technology for storage of information. Information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Flash memory or other memory technology, Compact Disc Read-Only Memory (CD-ROM), Digital Versatile Disc (DVD) or other optical storage, Magnetic tape cartridge, tape magnetic disk storage or other magnetic storage device or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media excludes transitory computer-readable media, such as modulated data signals and carrier waves.

还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes Other elements not expressly listed, or elements inherent in the process, method, commodity, or apparatus are also included. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus that includes the element.

本领域技术人员应明白,本申请的实施例可提供为方法、系统或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present application may be provided as methods, systems or computer program products. Accordingly, the present application can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.

以上仅为本申请的实施例而已,并不用于限制本申请。对于本领域技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本申请的权利要求范围之内。The above are only examples of the present application, and are not intended to limit the present application. For those skilled in the art, various modifications and changes may occur in this application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included within the scope of the claims of the present application.

Claims (10)

1. A data verification method for an automobile Internet of things is characterized by comprising the following steps:
receiving current running state data of a target vehicle and acquiring historical running state data of the target vehicle;
performing median filtering processing on the historical running state data to determine sample running state data;
comparing the current running state data with the sample running state data to determine a comparison result;
and finishing data verification based on the comparison result.
2. The method of claim 1, wherein the receiving current operating state data of the target vehicle and obtaining historical operating state data of the target vehicle comprises:
receiving initial running state data in a first preset time period, and generating a first timestamp to obtain the current running state data;
storing the current operating state data into a database;
and acquiring the historical running state data from the database, wherein the historical running state data corresponds to a second timestamp, and the time length of the historical running state data is the first preset time period.
3. The method of claim 1, wherein the median filtering the historical operating condition data to determine sample operating condition data comprises:
determining driving data in the historical operating state data, wherein the driving data includes at least: mileage data, latitude and longitude data;
and calculating the median of the driving data and determining the sample running state data.
4. The method according to claim 2, wherein before the comparing the current operating status data with the sample operating status data to determine a comparison result, the method further comprises:
calculating a time difference between the first time stamp and the second time stamp;
judging whether the time difference is larger than a preset time threshold value or not;
if the time difference is larger than the preset time threshold, comparing the current running state data with the sample running state data;
and if the time difference is smaller than the preset time threshold, determining that the current operation state data is invalid data.
5. The method according to claim 2, wherein the comparing the current operating status data with the sample operating status data to determine a comparison result comprises:
calculating a data difference value between the current running state data and the sample running state data;
judging whether the data difference value is larger than a preset data threshold value or not;
if the data difference value is larger than the preset data threshold value, determining that the current operation state data is abnormal;
and if the data difference value is smaller than the preset data threshold value, determining that the current running state data is target running state data.
6. The method according to claim 5, wherein after the comparing the current operating status data with the sample operating status data and determining a comparison result, the method further comprises:
if the current running state data is determined to be abnormal, adopting the historical running state data as the target running state data, and storing the historical running state data into the database;
and if the current operation state data is determined to be the target operation state data, storing the current operation state data into the database.
7. The utility model provides a car thing networking data calibration equipment which characterized in that includes:
the receiving module is used for receiving the current running state data of the target vehicle and acquiring the historical running state data of the target vehicle;
the processing module is used for carrying out median filtering processing on the historical running state data and determining sample running state data;
the comparison module is used for comparing the current running state data with the sample running state data to determine a comparison result;
and the checking module is used for finishing data checking based on the comparison result.
8. A non-volatile storage medium, wherein the non-volatile storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the data verification method for the internet of things of automobiles according to any one of claims 1 to 6.
9. A processor, characterized in that the processor is configured to run a program, wherein the program is configured to execute the data verification method of the internet of things of the automobile according to any one of claims 1 to 6 when running.
10. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to perform the method for verifying data of the internet of things of a vehicle as claimed in any one of claims 1 to 6.
CN202211371919.2A 2022-11-03 2022-11-03 Data verification method, device, storage medium and equipment of automobile internet of things Pending CN115914036A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211371919.2A CN115914036A (en) 2022-11-03 2022-11-03 Data verification method, device, storage medium and equipment of automobile internet of things

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211371919.2A CN115914036A (en) 2022-11-03 2022-11-03 Data verification method, device, storage medium and equipment of automobile internet of things

Publications (1)

Publication Number Publication Date
CN115914036A true CN115914036A (en) 2023-04-04

Family

ID=86492643

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211371919.2A Pending CN115914036A (en) 2022-11-03 2022-11-03 Data verification method, device, storage medium and equipment of automobile internet of things

Country Status (1)

Country Link
CN (1) CN115914036A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104331947A (en) * 2014-10-14 2015-02-04 深圳创维数字技术有限公司 Vehicle monitoring method and related equipment and system
CN109634979A (en) * 2019-01-04 2019-04-16 北京互金新融科技有限公司 Data-updating method and device
CN112702219A (en) * 2019-10-22 2021-04-23 中国移动通信有限公司研究院 Internet of things network monitoring method, device, equipment and storage medium
CN114771599A (en) * 2022-04-27 2022-07-22 上海申浙数智轨道科技有限公司 Method and system for positioning rail fault, storage medium and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104331947A (en) * 2014-10-14 2015-02-04 深圳创维数字技术有限公司 Vehicle monitoring method and related equipment and system
CN109634979A (en) * 2019-01-04 2019-04-16 北京互金新融科技有限公司 Data-updating method and device
CN112702219A (en) * 2019-10-22 2021-04-23 中国移动通信有限公司研究院 Internet of things network monitoring method, device, equipment and storage medium
CN114771599A (en) * 2022-04-27 2022-07-22 上海申浙数智轨道科技有限公司 Method and system for positioning rail fault, storage medium and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
倪治中: "网络与滤波", 30 September 1994, pages: 12 *

Similar Documents

Publication Publication Date Title
CN113586239B (en) Engine fault diagnosis method, engine fault diagnosis device, controller and storage medium
CN104811344A (en) Network dynamic service monitoring method and apparatus
CN112311611B (en) Data anomaly monitoring method and device and electronic equipment
WO2021120975A1 (en) Monitoring method and apparatus
CN108995614B (en) Information transmission method and information transmission device
CN115294771A (en) Monitoring method and device for road side equipment, electronic equipment and storage medium
CN114199274A (en) Vehicle travel determining method, device and equipment and readable storage medium
CN115275286A (en) Fault detection method and device for fuel cell
CN114170705A (en) Vehicle data uploading method, device and equipment
CN116560889A (en) Data link management method, device, computer equipment and storage medium
CN113409488A (en) Data processing method and device, vehicle-mounted terminal and automobile
CN115914036A (en) Data verification method, device, storage medium and equipment of automobile internet of things
CN111539029B (en) Industrial internet-based big data storage rate optimization method and cloud computing center
CN117041305B (en) Offline data management method, device and medium for gas flowmeter based on Internet of things
CN109284275B (en) Cloud platform virtual machine file system monitoring method and device
CN117707112A (en) Fault diagnosis method, system, equipment and storage medium
CN111680293A (en) Information monitoring management method and device based on Internet and server
CN116451878A (en) Fault prediction method, device, equipment and medium based on digital twin technology
CN113595808B (en) Work order quality inspection method, system and server
CN114312617A (en) Vehicle total mileage value management method, device, storage medium and device
CN113891386A (en) Recessive fault determination method, apparatus, device and readable storage medium of base station
CN110808894B (en) Data transmission method and device based on CAN bus
CN116567719B (en) Data transmission method, vehicle-mounted system, device and storage medium
CN117719440B (en) Automobile signal detection method, system and readable storage medium
CN117885538B (en) New energy vehicle power battery early warning method, system, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20230404