A method, device, storage medium and terminal for detecting abnormality of a freight vehicle terminal
By collecting and analyzing real-time location data in the vehicle positioning terminal, and calculating the trajectory continuity rate to determine the status of the vehicle positioning terminal, the problem of vehicle positioning terminal disconnection is solved, the timely detection and repair of the vehicle status is realized, and the legalization of freight vehicles is ensured. operations and reduce the risk of violations in operating units.
Patent Information
- Application Number
- CN202111257406.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-27
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2041-10-27
AI Technical Summary
Existing vehicle positioning terminals ignore the detection of their own working status when monitoring the position of the car, resulting in a high frequency of disconnections. Users are unable to understand and deal with the problem in a timely manner, resulting in fines for violations by operating units.
By collecting the real-time location data of the vehicle, the trajectory continuity rate is calculated, and based on the current system time and trajectory continuity rate, it is judged whether the vehicle-mounted positioning terminal is abnormal, and the vehicle owner is prompted for maintenance.
Effectively detect abnormal status of vehicle positioning terminals, reduce disconnection situations, ensure the legal operation of freight vehicles, and reduce the risk of violation fines for operating units.
Smart Images

Figure CN114166241B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data mining technology, and more specifically, to a method, device, storage medium and terminal for detecting abnormalities in a freight vehicle-mounted terminal. Background Art
[0002] With the rapid development of the automobile industry, various in-vehicle devices have made cars more and more functional. For example, the in-vehicle positioning terminal has become an indispensable device in the car.
[0003] At present, the Ministry of Transport stipulates that all heavy-duty trucks and semi-trailer tractors entering the market nationwide must be equipped with and use satellite positioning devices. However, most of the vehicle-mounted positioning terminals in the prior art only focus on how to monitor the location of the vehicle, while ignoring the detection of the working status of the vehicle-mounted positioning terminal itself. The vehicle-mounted positioning terminals used in the prior art are prone to disconnection, and the sampling pass rate of the vehicle-mounted positioning terminals is only about 70%. When the vehicle-mounted positioning terminal cannot work normally due to its own abnormal state, the user cannot know the working status of the vehicle-mounted positioning terminal and cannot respond to the problems of the vehicle-mounted positioning terminal in a timely manner.
[0004] The present application provides a method, device, storage medium and terminal for detecting abnormalities in a freight vehicle terminal, which are used to determine the state of the vehicle-mounted positioning terminal according to the real-time position data of the vehicle, and to prompt the vehicle owner to perform maintenance when the vehicle-mounted positioning terminal is in an abnormal state; thereby, by detecting the vehicle-mounted positioning terminal, the purpose of legalizing the operation of freight vehicles and reducing fines for violations by operating units can be achieved. Summary of the invention
[0005] The embodiments of the present application provide a method, device, storage medium and terminal for detecting abnormalities in a freight vehicle terminal. In order to have a basic understanding of some aspects of the disclosed embodiments, a simple summary is given below. This summary is not a general review, nor is it intended to identify key / important components or describe the scope of protection of these embodiments. Its only purpose is to present some concepts in a simple form as a preface to the detailed description that follows.
[0006] In a first aspect, an embodiment of the present application provides a method for detecting anomalies in a freight vehicle terminal, the method comprising:
[0007] Collect the real-time location data of the vehicle through the vehicle positioning terminal and store the real-time location data of the vehicle;
[0008] Acquire the latest location data of the vehicle from the stored real-time location data of the vehicle;
[0009] Acquire historical running track data of the vehicle from the stored real-time position data of the vehicle;
[0010] Calculate the trajectory continuity rate of the vehicle based on historical running trajectory data;
[0011] The vehicle's onboard positioning terminal is judged whether it is in an abnormal condition based on the current system time, the vehicle's latest location data, and the trajectory continuity rate.
[0012] Optionally, storing the real-time location data of the vehicle includes: storing the real-time location data of the vehicle in a data center via a vehicle identifier.
[0013] Optionally, obtaining the latest location data of the vehicle from the stored real-time location data of the vehicle includes: filtering the latest location data of the vehicle from the real-time location data of the vehicle stored in the data center according to the vehicle identification.
[0014] Optionally, historical running trajectory data of the vehicle is obtained from the stored real-time location data of the vehicle, including:
[0015] Acquire historical running track data of the vehicle within a preset period from the stored real-time position data of the vehicle;
[0016] The vehicle's trajectory continuity rate is calculated based on historical running trajectory data, including:
[0017] Calculate the total continuous driving mileage of the vehicle based on historical running trajectory data;
[0018] Calculate the total mileage corresponding to the historical running track data based on the historical running track data;
[0019] The ratio of the total mileage of continuous driving to the total mileage corresponding to the historical running trajectory data is determined as the trajectory continuity rate of the vehicle.
[0020] Optionally, the position data includes: coordinates, time, speed and / or direction.
[0021] Optionally, judging whether the vehicle's onboard positioning terminal is in an abnormal state based on the current system time and the vehicle's latest location data and the trajectory continuity rate includes:
[0022] When the difference between the current system time and the time in the latest position data of the vehicle is greater than a first preset time difference, the speed in the latest position data of the vehicle is greater than a first preset speed, and the trajectory continuity rate is less than a first preset threshold, it is determined that the vehicle-mounted positioning terminal of the vehicle is in an abnormal state;
[0023] When the difference between the current system time and the time in the latest position data of the vehicle is greater than a first preset time difference, the speed in the latest position data of the vehicle is greater than a first preset speed, and the trajectory continuity rate is greater than or equal to a first preset threshold, it is determined that the vehicle-mounted positioning terminal of the vehicle is in a normal state;
[0024] When the difference between the current system time and the time in the latest position data of the vehicle is greater than a second preset time difference, the speed in the latest position data of the vehicle is greater than the second preset speed, and the vehicle-mounted positioning terminal of the vehicle is offline for more than a preset time, it is determined that the vehicle-mounted positioning terminal of the vehicle is in an abnormal state; wherein the second preset time difference is greater than the first preset time difference; and the first preset speed is greater than the second preset speed.
[0025] Optionally, further including:
[0026] Enter the vehicle number through the smart terminal, and the smart terminal will display the normal identification of the vehicle's on-board positioning terminal or the abnormal identification of the vehicle's on-board positioning terminal;
[0027] The vehicle number of the vehicle that is in abnormal condition is sent to the vehicle owner through the smart terminal to prompt the owner to repair it.
[0028] In a second aspect, an embodiment of the present application provides a freight vehicle terminal abnormality detection device, the device comprising:
[0029] The location data collection module is used to collect the real-time location data of the vehicle through the vehicle positioning terminal and store the real-time location data of the vehicle;
[0030] The latest position acquisition module is used to obtain the latest position data of the vehicle from the stored real-time position data of the vehicle;
[0031] A historical trajectory acquisition module is used to acquire the historical running trajectory data of the vehicle from the stored real-time position data of the vehicle;
[0032] A trajectory continuity rate calculation module is used to calculate the trajectory continuity rate of the vehicle based on historical running trajectory data;
[0033] The abnormality determination module is used to determine whether the vehicle's on-board positioning terminal is in an abnormal state based on the current system time and the vehicle's latest location data and trajectory continuity rate.
[0034] In a third aspect, an embodiment of the present application provides a computer storage medium, which stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the above-mentioned method steps.
[0035] In a fourth aspect, an embodiment of the present application provides a terminal, which may include: a processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the above-mentioned method steps.
[0036] The technical solution provided by the embodiments of the present application may have the following beneficial effects:
[0037] In the embodiment of the present application, the abnormality detection method of the freight vehicle terminal first collects the real-time position data of the vehicle through the vehicle positioning terminal, and stores the real-time position data of the vehicle, then obtains the latest position data of the vehicle from the stored real-time position data of the vehicle, obtains the historical running trajectory data of the vehicle from the stored real-time position data of the vehicle, and then calculates the trajectory continuity rate of the vehicle according to the historical running trajectory data, and finally determines whether the vehicle-mounted positioning terminal of the vehicle is in an abnormal state according to the current system time and the latest position data of the vehicle, and the trajectory continuity rate. Since the present application obtains the latest position data and historical running trajectory data of the vehicle through the real-time position data of the vehicle, and calculates the trajectory continuity rate of the vehicle from the historical running trajectory data, and finally determines whether the vehicle-mounted positioning terminal of the vehicle is in an abnormal state according to the trajectory continuity rate, the latest position data and the current system time, it can prompt the owner to perform maintenance when the vehicle-mounted positioning terminal of the vehicle is in an abnormal state, so as to solve the disconnection of the vehicle-mounted positioning terminal of the vehicle, so as to achieve the purpose of legal operation of freight vehicles and reduce fines for violations by operating units.
[0038] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0040] Figure 1 It is a flow chart of a method for detecting abnormality of a freight vehicle terminal provided in an embodiment of the present application;
[0041] Figure 2 It is a flowchart of another method for detecting abnormality of a freight vehicle terminal provided in an embodiment of the present application;
[0042] Figure 3 It is a schematic diagram of a device for detecting abnormalities of a freight vehicle terminal provided in an embodiment of the present application;
[0043] Figure 4 This is a terminal schematic diagram provided in an embodiment of the present application. DETAILED DESCRIPTION
[0044] The following description and the drawings sufficiently illustrate specific embodiments of the invention to enable those skilled in the art to practice them.
[0045] It should be clear that the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0046] When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are only examples of systems and methods consistent with some aspects of the present invention as detailed in the attached claims.
[0047] In the description of the present invention, it should be understood that the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances. In addition, in the description of the present invention, unless otherwise specified, "plurality" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated before and after are in an "or" relationship.
[0048] Nowadays, the vehicle-mounted positioning terminal has become a standard feature of automobiles. Generally speaking, in order to ensure good signal transmission and reception, the GPS antenna of the vehicle-mounted positioning terminal must face upwards, and the vehicle-mounted positioning terminal is required to be fixedly installed on the vehicle and cannot be disassembled, fallen off or powered off. At present, the vehicle trajectory can be queried through the national road freight vehicle public supervision and service platform, and the last positioning time of the vehicle can be used to determine whether the communication of the vehicle-mounted positioning terminal is normal, whether the GPS positioning device on the vehicle uploads the collected GPS trajectory point data to the data center in real time, and then determine whether there is a situation where the vehicle-mounted positioning terminal is disconnected. The present application discloses a method, device, storage medium and terminal for abnormal detection of a freight vehicle-mounted terminal, which obtains the latest location data of the vehicle and the historical running trajectory of the vehicle through the real-time location data of the vehicle uploaded by the vehicle-mounted positioning terminal, thereby determining the trajectory continuity rate of the vehicle through the historical running trajectory of the vehicle, and realizing the determination of whether the vehicle-mounted positioning terminal is abnormal by the current system time, the latest location data of the vehicle and the trajectory continuity rate, and notifying the owner of the abnormal vehicle-mounted positioning terminal for repair, so as to solve the situation where the vehicle-mounted positioning terminal of the vehicle is disconnected.
[0049] The following will be combined with the attached Figure 1 and attached Figure 2 A method for detecting anomalies in a freight vehicle terminal provided in an embodiment of the present application is described in detail. The method can be implemented by a computer program and can be run on an anomaly detection device for a freight vehicle terminal. The computer program can be integrated into an application or run as an independent tool application.
[0050] See also Figure 1, which is a flow chart of a method for detecting abnormalities in a freight vehicle terminal according to an embodiment of the present application. Figure 1 As shown, the method of the embodiment of the present application may include the following steps:
[0051] S100, collect the real-time location data of the vehicle through the vehicle positioning terminal, and store the real-time location data of the vehicle. The location data of the vehicle is GPS track point data; the vehicle positioning device can be a GPS positioning device, Beidou positioning device, etc. The real-time location data of the vehicle can be stored in a storage medium included in the data center; the storage medium has a storage function.
[0052] In S100, storing the real-time location data of the vehicle includes: storing the real-time location data of the vehicle in the data center through the vehicle identification. In the embodiment of the present application, the real-time collected GPS track point data of the vehicle is reported to the data center through the communication service analysis protocol by the GPS positioning device on the vehicle for storage.
[0053] S200, obtaining the latest location data of the vehicle from the stored real-time location data of the vehicle. S200 includes: filtering the latest location data of the vehicle from the real-time location data of the vehicle stored in the data center by the vehicle identification. Each vehicle has a unique vehicle identification, and the vehicle stores and filters the vehicle location data by the vehicle identification.
[0054] S300, obtaining historical running track data of the vehicle from the stored real-time vehicle position data. The historical running track data may include data such as vehicle ID, latitude and longitude of continuous track points, and reporting time of vehicle track points.
[0055] The continuous trajectory points can be a trajectory sequence with timestamps, which can represent the motion characteristics of the vehicle.
[0056] Normally, the vehicle's speed and acceleration can be calculated based on the trajectory sequence with timestamps to detect the vehicle; at the same time, the longitude and latitude of continuous trajectory points can be used to calculate whether the vehicle's actual running distance matches the speed, and ultimately determine whether the vehicle's historical running trajectory data is available.
[0057] Among them, S300 includes: obtaining historical running track data of the vehicle within a preset period from the stored real-time vehicle position data. Obtaining historical running track data of the vehicle within a preset period from an offline stored data center; the preset period may be a sampling period set in advance by the user, and the sampling period may be 7 days.
[0058] In an embodiment of the present application, when performing an availability analysis of the trajectory continuity rate of a vehicle through the historical operation trajectory data of the vehicle, the vehicle ID and the set sampling period can be input through the user terminal, and the user terminal filters out the historical operation trajectory data of the vehicle within several days based on the input vehicle ID and the preset period.
[0059] S400, calculating the trajectory continuity rate of the vehicle according to the historical running trajectory data. Wherein, S400 includes:
[0060] S410, calculating the total continuous driving mileage of the vehicle based on the historical running trajectory data.
[0061] In an embodiment of the present application, S410 includes:
[0062] The spherical distance between each track point in the track sequence in the historical running track data is calculated to generate a spherical distance set of a continuous time period; the set of spherical distances is a plurality of spherical distance sequences;
[0063] Traverse from the starting position of the spherical distance set of the continuous time period to obtain spherical distances less than or equal to 2 kilometers; when the traversed spherical distance is greater than 2 kilometers, stop traversing, and when it is determined that the driving time corresponding to at least one spherical distance less than or equal to 2 kilometers obtained by traversal is less than or equal to 60 seconds, determine at least one spherical distance less than or equal to 2 kilometers as continuous mileage;
[0064] From the spherical distance traversed to the spherical distance greater than 2 kilometers, traverse again to obtain the spherical distance greater than or equal to 2 kilometers and less than or equal to 10 kilometers; when the traversed spherical distance is greater than or equal to 10 kilometers or the number of traversed spherical distances exceeds the preset traversal number, determine whether the driving time corresponding to at least one spherical distance greater than or equal to 2 kilometers and less than or equal to 10 kilometers obtained by traversal is greater than or equal to 60 seconds and less than or equal to 300 seconds, and if so, determine at least one spherical distance greater than or equal to 2 kilometers and less than or equal to 10 kilometers obtained by traversal as continuous mileage;
[0065] Finally, all the traversed continuous mileage are added up to obtain the total continuous mileage of the vehicle.
[0066] S420, calculating the total mileage corresponding to the historical running track data based on the historical running track data. After calculating all spherical distances between the vehicle historical track points, all calculated spherical distances can be added to obtain the total mileage of the historical running track data.
[0067] S430: The ratio of the total mileage of continuous driving to the total mileage corresponding to the historical running trajectory data is determined as the trajectory continuity rate of the vehicle. The trajectory continuity rate is the decimal obtained by dividing the total mileage of continuous driving by the total mileage corresponding to the historical running trajectory data, and the decimal is converted into a percentage. The trajectory continuity rate reflects the confidence level of the quality of the vehicle's driving trajectory data and can measure the availability of the vehicle's trajectory data.
[0068] S500: Determine whether the vehicle-mounted positioning terminal of the vehicle is in an abnormal state according to the current system time and the latest location data of the vehicle, and the trajectory continuity rate. The location data includes: coordinates, time, speed and / or direction. The location data may also include the current altitude, etc.
[0069] Specifically, S500 includes:
[0070] S510, when the difference between the current system time and the time in the latest position data of the vehicle is greater than a first preset time difference, the speed in the latest position data of the vehicle is greater than a first preset speed, and the trajectory continuity rate is less than a first preset threshold, it is determined that the vehicle-mounted positioning terminal of the vehicle is in an abnormal state;
[0071] S520: When the difference between the current system time and the time in the latest position data of the vehicle is greater than a first preset time difference, the speed in the latest position data of the vehicle is greater than a first preset speed, and the trajectory continuity rate is greater than or equal to a first preset threshold, it is determined that the vehicle-mounted positioning terminal of the vehicle is in a normal state.
[0072] In the embodiment of the present application, the first preset time difference is set to 20 minutes, the first preset speed is set to 30 km / h, and the first preset threshold is set to 70%; the vehicle's trajectory continuity rate is 70% as the critical value. When the difference between the current system time and the time in the vehicle's latest location data is greater than 20 minutes, and the speed in the vehicle's latest location data is greater than 30 km / h, the vehicle's trajectory continuity rate is less than 70%, and it is determined that the vehicle's trajectory continuity rate availability is relatively low, and the vehicle-mounted positioning terminal is abnormal; when the vehicle's trajectory continuity rate is greater than or equal to 70%, it is determined that the vehicle's trajectory continuity rate availability is relatively high, and the vehicle-mounted positioning terminal is normal.
[0073] S530, when the difference between the current system time and the time in the latest position data of the vehicle is greater than a second preset time difference, the speed in the latest position data of the vehicle is greater than a second preset speed, and the vehicle-mounted positioning terminal of the vehicle is offline for more than a preset time, it is determined that the vehicle-mounted positioning terminal of the vehicle is in an abnormal state; wherein the second preset time difference is greater than the first preset time difference; and the first preset speed is greater than the second preset speed.
[0074] In the embodiment of the present application, the second preset time difference can be set to 24h, the second preset speed can be set to 0Km / h, and the preset duration can be set to one day. When the difference between the current system time and the time in the latest location data of the vehicle is greater than 24h, the speed in the latest location data of the vehicle is greater than 0Km / h, and the vehicle-mounted positioning terminal of the vehicle is offline for more than one day, it is determined that the vehicle-mounted positioning terminal of the vehicle is in an abnormal state.
[0075] Similarly, the difference between the current system time and the time in any position data in the historical operation trajectory data can be calculated to determine whether it is greater than the first preset time difference or the second preset time difference; whether the speed in any position data is greater than the first preset speed or the second preset speed; and whether the vehicle's trajectory continuity rate and the vehicle's on-board positioning terminal are offline for more than a preset time, thereby determining the status of the vehicle's on-board positioning terminal at any time.
[0076] The method described in the embodiment of the present application further includes:
[0077] The vehicle number is input through the smart terminal, and the smart terminal displays the normal identification of the vehicle's on-board positioning terminal or the abnormal identification of the vehicle's on-board positioning terminal; the vehicle number of the vehicle with an abnormal on-board positioning terminal is prompted to the owner for maintenance through the smart terminal. The smart terminal can be a mobile terminal device, a smart phone, a robot, etc.
[0078] In the embodiment of the present application, the vehicle license plate number can be dynamically input through the mobile terminal device to intelligently identify the status of the vehicle-mounted positioning terminal. For the vehicle-mounted positioning terminal in an abnormal state, that is, the vehicle number of the vehicle-mounted positioning terminal of the vehicle is displayed abnormally on the intelligent terminal, and the owner is notified through a smart phone or robot to perform maintenance. By real-time detection of abnormal conditions of the vehicle-mounted positioning terminal and timely notification of the owner to perform maintenance when an abnormality of the vehicle-mounted positioning terminal is detected, illegal operation caused by abnormal offline of the vehicle-mounted positioning terminal can be avoided.
[0079] In the embodiment of the present application, the abnormality detection method of the freight vehicle terminal first collects the real-time position data of the vehicle through the vehicle positioning terminal, and stores the real-time position data of the vehicle, then obtains the latest position data of the vehicle from the stored real-time position data of the vehicle, obtains the historical running track data of the vehicle from the stored real-time position data of the vehicle, and then calculates the track continuity rate of the vehicle according to the historical running track data, and finally determines whether the vehicle-mounted positioning terminal of the vehicle is in an abnormal state according to the current system time and the latest position data of the vehicle, and the track continuity rate. Since the present application obtains the latest position data and historical running track data of the vehicle through the real-time position data of the vehicle, and calculates the track continuity rate of the vehicle from the historical running track data, and finally determines whether the vehicle-mounted positioning terminal of the vehicle is in an abnormal state according to the track continuity rate, the latest position data and the current system time, the vehicle-mounted positioning terminal of the vehicle is in an abnormal state, so that when the vehicle-mounted positioning terminal of the vehicle is in an abnormal state, the owner is prompted to perform maintenance to solve the disconnection of the vehicle-mounted positioning terminal of the vehicle, so as to achieve the purpose of legal operation of freight vehicles and reduce fines for violations by operating units.
[0080] See also Figure 2 , which is a flow chart of a method for detecting abnormalities in a freight vehicle terminal according to an embodiment of the present application. Figure 2 As shown, the method of the embodiment of the present application may include the following steps:
[0081] S201, collecting the real-time location data of the vehicle through the vehicle positioning terminal, and storing the real-time location data of the vehicle;
[0082] S202, obtaining the latest location data of the vehicle from the stored real-time location data of the vehicle;
[0083] S203, acquiring historical running track data of the vehicle within a preset period from the stored real-time position data of the vehicle;
[0084] S204, calculating the total continuous driving mileage of the vehicle based on the historical running trajectory data;
[0085] S205, calculating the total mileage corresponding to the historical running track data based on the historical running track data;
[0086] S206, determining the ratio of the total mileage of continuous driving to the total mileage corresponding to the historical running trajectory data as the trajectory continuity rate of the vehicle;
[0087] S207, when the difference between the current system time and the time in the latest position data of the vehicle is greater than a first preset time difference, the speed in the latest position data of the vehicle is greater than a first preset speed, and the trajectory continuity rate is less than a first preset threshold, it is determined that the vehicle-mounted positioning terminal of the vehicle is in an abnormal state;
[0088] S208, when the difference between the current system time and the time in the latest position data of the vehicle is greater than a first preset time difference, the speed in the latest position data of the vehicle is greater than a first preset speed, and the trajectory continuity rate is greater than or equal to a first preset threshold, it is determined that the vehicle-mounted positioning terminal of the vehicle is in a normal state;
[0089] S209, when the difference between the current system time and the time in the latest location data of the vehicle is greater than a second preset time difference, the speed in the latest location data of the vehicle is greater than the second preset speed, and the vehicle-mounted positioning terminal of the vehicle is offline for more than a preset time, it is determined that the vehicle-mounted positioning terminal of the vehicle is in an abnormal state; wherein the second preset time difference is greater than the first preset time difference; and the first preset speed is greater than the second preset speed;
[0090] S210, inputting the vehicle number through the smart terminal, and the smart terminal displays the normal identification of the vehicle's onboard positioning terminal or the abnormal identification of the vehicle's onboard positioning terminal;
[0091] S211, the vehicle number of the vehicle positioning terminal that is in an abnormal condition is notified to the owner through the smart terminal for repair.
[0092] In the embodiment of the present application, the abnormality detection method of the freight vehicle terminal first collects the real-time position data of the vehicle through the vehicle positioning terminal, and stores the real-time position data of the vehicle, then obtains the latest position data of the vehicle from the stored real-time position data of the vehicle, obtains the historical running track data of the vehicle from the stored real-time position data of the vehicle, and then calculates the track continuity rate of the vehicle according to the historical running track data, and finally determines whether the vehicle-mounted positioning terminal of the vehicle is in an abnormal state according to the current system time and the latest position data of the vehicle, and the track continuity rate. Since the present application obtains the latest position data and historical running track data of the vehicle through the real-time position data of the vehicle, and calculates the track continuity rate of the vehicle from the historical running track data, and finally determines whether the vehicle-mounted positioning terminal of the vehicle is in an abnormal state according to the track continuity rate, the latest position data and the current system time, the vehicle-mounted positioning terminal of the vehicle is in an abnormal state, so that when the vehicle-mounted positioning terminal of the vehicle is in an abnormal state, the owner is prompted to perform maintenance to solve the disconnection of the vehicle-mounted positioning terminal of the vehicle, so as to achieve the purpose of legal operation of freight vehicles and reduce fines for violations by operating units.
[0093] The following are embodiments of the device of the present invention, which can be used to implement the method embodiments of the present invention. For details not disclosed in the device embodiments of the present invention, please refer to the method embodiments of the present invention.
[0094] See also Figure 3, which shows a schematic diagram of the structure of a freight vehicle terminal abnormality detection device provided by an exemplary embodiment of the present invention. The device 1 includes a position data acquisition module 10, a latest position acquisition module 20, a historical trajectory acquisition module 30, a trajectory continuity rate calculation module 40 and an abnormality determination module 50.
[0095] The position data collection module 10 is used to collect the real-time position data of the vehicle through the vehicle positioning terminal and store the real-time position data of the vehicle;
[0096] The latest position acquisition module 20 is used to acquire the latest position data of the vehicle from the stored real-time position data of the vehicle;
[0097] The historical track acquisition module 30 is used to acquire the historical running track data of the vehicle from the stored real-time position data of the vehicle;
[0098] A trajectory continuity rate calculation module 40 is used to calculate the trajectory continuity rate of the vehicle according to the historical running trajectory data;
[0099] The abnormality determination module 50 is used to determine whether the vehicle-mounted positioning terminal of the vehicle is in an abnormal state according to the current system time and the latest location data of the vehicle, as well as the trajectory continuity rate.
[0100] It should be noted that the freight vehicle terminal anomaly detection device provided in the above embodiment only uses the division of the above functional modules as an example when executing the freight vehicle terminal anomaly detection method. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the freight vehicle terminal anomaly detection device provided in the above embodiment and the freight vehicle terminal anomaly detection method embodiment belong to the same concept. The implementation process is detailed in the method embodiment, which will not be repeated here.
[0101] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0102] In the embodiment of the present application, the abnormality detection device for the freight vehicle terminal first collects the real-time position data of the vehicle through the vehicle positioning terminal, and stores the real-time position data of the vehicle, then obtains the latest position data of the vehicle from the stored real-time position data of the vehicle, obtains the historical running track data of the vehicle from the stored real-time position data of the vehicle, and then calculates the track continuity rate of the vehicle according to the historical running track data, and finally determines whether the vehicle-mounted positioning terminal of the vehicle is in an abnormal state according to the current system time and the latest position data of the vehicle, and the track continuity rate. Since the present application obtains the latest position data and historical running track data of the vehicle through the real-time position data of the vehicle, and calculates the track continuity rate of the vehicle from the historical running track data, and finally determines whether the vehicle-mounted positioning terminal of the vehicle is in an abnormal state according to the track continuity rate, the latest position data and the current system time, the vehicle owner is prompted to perform maintenance when the vehicle-mounted positioning terminal of the vehicle is in an abnormal state, so as to solve the disconnection of the vehicle-mounted positioning terminal of the vehicle, etc., so as to achieve the purpose of legal operation of freight vehicles and reduce fines for violations by operating units.
[0103] The present invention also provides a computer-readable medium having program instructions stored thereon, which, when executed by a processor, implement the freight vehicle terminal anomaly detection method provided by the above-mentioned various method embodiments.
[0104] The present invention also provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute a method for detecting abnormalities in a freight vehicle terminal in accordance with the above-mentioned method embodiments.
[0105] See also Figure 4 , which is a schematic diagram of the structure of a terminal provided in an embodiment of the present application. Figure 4 As shown, the terminal 1000 may include: at least one processor 1001 , at least one network interface 1004 , a user interface 1003 , a memory 1005 , and at least one communication bus 1002 .
[0106] The communication bus 1002 is used to realize the connection and communication between these components.
[0107] The user interface 1003 may include a display screen (Display) and a camera (Camera), and the optional user interface 1003 may also include a standard wired interface and a wireless interface.
[0108] The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).
[0109] Among them, the processor 1001 may include one or more processing cores. The processor 1001 uses various interfaces and lines to connect various parts of the entire electronic device 1000, and executes various functions and processes data of the electronic device 1000 by running or executing instructions, programs, code sets or instruction sets stored in the memory 1005, and calling data stored in the memory 1005. Optionally, the processor 1001 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 1001 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 1001, and it can be implemented separately through a chip.
[0110] Among them, the memory 1005 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 1005 includes a non-transitory computer-readable storage medium. The memory 1005 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 1005 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 1005 may optionally be at least one storage device located away from the aforementioned processor 1001. As Figure 4 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and an availability analysis application for vehicle running trajectory data.
[0111] exist Figure 4In the terminal 1000 shown, the user interface 1003 is mainly used to provide an input interface for the user and obtain the data input by the user; and the processor 1001 can be used to call the application program for abnormal detection of the freight vehicle terminal stored in the memory 1005, and specifically perform the following operations:
[0112] Collect the real-time location data of the vehicle through the vehicle positioning terminal and store the real-time location data of the vehicle;
[0113] Acquire the latest location data of the vehicle from the stored real-time location data of the vehicle;
[0114] Acquire historical running track data of the vehicle from the stored real-time position data of the vehicle;
[0115] Calculate the trajectory continuity rate of the vehicle based on historical running trajectory data;
[0116] Determine whether the vehicle's onboard positioning terminal is in an abnormal state based on the current system time, the vehicle's latest location data, and the trajectory continuity rate;
[0117] Enter the vehicle number through the smart terminal, and the smart terminal will display the normal identification of the vehicle's on-board positioning terminal or the abnormal identification of the vehicle's on-board positioning terminal;
[0118] The vehicle number of the vehicle whose onboard positioning terminal is in an abnormal condition is sent to the owner of the vehicle through the intelligent terminal to prompt the owner to carry out maintenance.
[0119] In one embodiment, when the processor 1001 acquires the historical running track data of the vehicle from the stored real-time position data of the vehicle, the processor 1001 specifically performs the following operations:
[0120] Acquire historical running track data of the vehicle within a preset period from the stored real-time position data of the vehicle;
[0121] In one embodiment, when the processor 1001 calculates the trajectory continuity rate of the vehicle according to the historical running trajectory data, the processor 1001 specifically performs the following operations:
[0122] Calculate the total continuous driving mileage of the vehicle based on historical running trajectory data;
[0123] Calculate the total mileage corresponding to the historical running track data based on the historical running track data;
[0124] The ratio of the total mileage of continuous driving to the total mileage corresponding to the historical running trajectory data is determined as the trajectory continuity rate of the vehicle.
[0125] In one embodiment, when the processor 1001 determines whether the vehicle-mounted positioning terminal of the vehicle is in an abnormal state according to the current system time, the latest location data of the vehicle, and the trajectory continuity rate, the processor 1001 specifically performs the following operations:
[0126] When the difference between the current system time and the time in the latest position data of the vehicle is greater than a first preset time difference, the speed in the latest position data of the vehicle is greater than a first preset speed, and the trajectory continuity rate is less than a first preset threshold, it is determined that the vehicle-mounted positioning terminal of the vehicle is in an abnormal state;
[0127] When the difference between the current system time and the time in the latest position data of the vehicle is greater than a first preset time difference, the speed in the latest position data of the vehicle is greater than a first preset speed, and the trajectory continuity rate is greater than or equal to a first preset threshold, it is determined that the vehicle-mounted positioning terminal of the vehicle is in a normal state;
[0128] When the difference between the current system time and the time in the latest position data of the vehicle is greater than a second preset time difference, the speed in the latest position data of the vehicle is greater than the second preset speed, and the vehicle-mounted positioning terminal of the vehicle is offline for more than a preset time, it is determined that the vehicle-mounted positioning terminal of the vehicle is in an abnormal state; wherein the second preset time difference is greater than the first preset time difference; and the first preset speed is greater than the second preset speed.
[0129] In the embodiment of the present application, the abnormality detection device for the freight vehicle terminal first collects the real-time position data of the vehicle through the vehicle positioning terminal, and stores the real-time position data of the vehicle, then obtains the latest position data of the vehicle from the stored real-time position data of the vehicle, obtains the historical running track data of the vehicle from the stored real-time position data of the vehicle, and then calculates the track continuity rate of the vehicle according to the historical running track data, and finally determines whether the vehicle-mounted positioning terminal of the vehicle is in an abnormal state according to the current system time and the latest position data of the vehicle, and the track continuity rate. Since the present application obtains the latest position data and historical running track data of the vehicle through the real-time position data of the vehicle, and calculates the track continuity rate of the vehicle from the historical running track data, and finally determines whether the vehicle-mounted positioning terminal of the vehicle is in an abnormal state according to the track continuity rate, the latest position data and the current system time, the vehicle owner is prompted to perform maintenance when the vehicle-mounted positioning terminal of the vehicle is in an abnormal state, so as to solve the problem of the vehicle-mounted positioning terminal of the vehicle being disconnected, so as to achieve the purpose of legal operation of freight vehicles and reduce fines for violations by operating units.
[0130] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware through a computer program. The program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only storage memory, or a random access memory, etc.
[0131] The above disclosure is only the preferred embodiment of the present application, which certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.
Claims
1. A method for detecting abnormality of a freight vehicle terminal, characterized in that: The following steps are involved: Collecting the real-time location data of the vehicle through the vehicle positioning terminal and storing the real-time location data of the vehicle; Acquiring the latest position data of the vehicle from the stored real-time position data of the vehicle; Acquiring historical running track data of the vehicle from the stored real-time position data of the vehicle; Calculating the trajectory continuity rate of the vehicle according to the historical running trajectory data; Determining whether the vehicle-mounted positioning terminal of the vehicle is in an abnormal state according to the current system time and the latest location data of the vehicle and the trajectory continuity rate, wherein the location data includes time; The determining whether the vehicle-mounted positioning terminal of the vehicle is in an abnormal state according to the current system time, the latest position data of the vehicle, and the trajectory continuity rate includes: When the difference between the current system time and the time in the latest position data of the vehicle is greater than a first preset time difference, the speed in the latest position data of the vehicle is greater than a first preset speed, and the trajectory continuity rate is less than a first preset threshold, it is determined that the vehicle-mounted positioning terminal of the vehicle is in an abnormal state; When the difference between the current system time and the time in the latest position data of the vehicle is greater than a first preset time difference, the speed in the latest position data of the vehicle is greater than a first preset speed, and the trajectory continuity rate is greater than or equal to a first preset threshold, it is determined that the vehicle-mounted positioning terminal of the vehicle is in a normal state; When the difference between the current system time and the time in the latest position data of the vehicle is greater than a second preset time difference, the speed in the latest position data of the vehicle is greater than a second preset speed, and the vehicle-mounted positioning terminal of the vehicle is offline for more than a preset time, it is determined that the vehicle-mounted positioning terminal of the vehicle is in an abnormal state; wherein the second preset time difference is greater than the first preset time difference; and the first preset speed is greater than the second preset speed.
2. The method for detecting abnormality of a freight vehicle terminal according to claim 1, characterized in that: The storing the real-time location data of the vehicle includes: storing the real-time location data of the vehicle in a data center through a vehicle identifier.
3. The method for detecting abnormality of a freight vehicle terminal according to claim 2, characterized in that: The acquiring the latest position data of the vehicle from the stored real-time position data of the vehicle comprises: filtering the latest position data of the vehicle from the real-time position data of the vehicle stored in the data center according to the vehicle identification.
4. The method for detecting abnormality of a freight vehicle terminal according to claim 1, characterized in that: The step of acquiring the historical running track data of the vehicle from the stored real-time position data of the vehicle comprises: Acquiring historical running track data of the vehicle within a preset period from the stored real-time position data of the vehicle; The calculating the trajectory continuity rate of the vehicle according to the historical running trajectory data includes: Calculate the total continuous driving mileage of the vehicle based on the historical running trajectory data; Calculate the total mileage corresponding to the historical running track data based on the historical running track data; The ratio of the total continuous driving mileage to the total mileage corresponding to the historical running trajectory data is determined as the trajectory continuity rate of the vehicle.
5. The method for detecting abnormality of a freight vehicle terminal according to claim 1, characterized in that: The position data also includes: coordinates, speed and / or direction.
6. The method for detecting abnormality of a freight vehicle terminal according to claim 1, characterized in that: Further including: Input the vehicle number through the smart terminal, and the smart terminal displays the normal identification of the vehicle-mounted positioning terminal or the abnormal identification of the vehicle-mounted positioning terminal; The vehicle number of the vehicle positioning terminal that is in an abnormal state is used to prompt the owner of the vehicle to carry out maintenance through the smart terminal.
7. A freight vehicle terminal abnormality detection device, characterized in that: include: A position data collection module is used to collect the real-time position data of the vehicle through the vehicle positioning terminal and store the real-time position data of the vehicle; A latest position acquisition module, used to acquire the latest position data of the vehicle from the stored real-time position data of the vehicle; A historical trajectory acquisition module, used to acquire the historical running trajectory data of the vehicle from the stored real-time position data of the vehicle; A trajectory continuity rate calculation module, used to calculate the trajectory continuity rate of the vehicle according to the historical running trajectory data; An abnormality determination module, used to determine whether the vehicle-mounted positioning terminal of the vehicle is in an abnormal state according to the current system time and the latest position data of the vehicle and the trajectory continuity rate, wherein the position data includes time; The abnormality determination module is further configured to determine that the vehicle-mounted positioning terminal of the vehicle is in an abnormal state when the difference between the current system time and the time in the latest position data of the vehicle is greater than a first preset time difference, the speed in the latest position data of the vehicle is greater than a first preset speed, and the trajectory continuity rate is less than a first preset threshold; When the difference between the current system time and the time in the latest position data of the vehicle is greater than a first preset time difference, the speed in the latest position data of the vehicle is greater than a first preset speed, and the trajectory continuity rate is greater than or equal to a first preset threshold, it is determined that the vehicle-mounted positioning terminal of the vehicle is in a normal state; When the difference between the current system time and the time in the latest position data of the vehicle is greater than a second preset time difference, the speed in the latest position data of the vehicle is greater than a second preset speed, and the vehicle-mounted positioning terminal of the vehicle is offline for more than a preset time, it is determined that the vehicle-mounted positioning terminal of the vehicle is in an abnormal state; wherein the second preset time difference is greater than the first preset time difference; and the first preset speed is greater than the second preset speed.
8. A computer storage medium, characterized in that: The computer storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the method steps according to any one of claims 1 to 6.
9. A terminal, characterized in that: include: A processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the method steps as claimed in any one of claims 1 to 6.
