Method, apparatus and server for dynamically monitoring trajectories
By collecting and integrating location information from mobile terminals with dynamic electronic fence data in real time, and using a rigorous continuous event model for anomaly detection, the problem of real-time monitoring of engineering machinery vehicle transportation and after-sales service has been solved, thereby improving the management efficiency of the construction process.
Patent Information
- Application Number
- CN202210870099.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-22
- Publication Date
- 2026-02-17
- Estimated Expiration
- 2042-07-22
AI Technical Summary
Existing technologies cannot monitor the transportation and after-sales service of construction machinery vehicles in real time, resulting in ineffective supervision of the construction process and low efficiency in transportation or after-sales service of construction vehicles.
By collecting the location information of mobile terminals in real time, dynamic electronic fence data is obtained, and the trajectory information is integrated with the electronic fence information. Anomaly detection is performed using a strict continuous event model, and alarm information is sent to the management terminal.
It enables real-time monitoring of the transportation and after-sales service of construction machinery vehicles, improving the management efficiency of the construction process and enhancing the efficiency of construction vehicle transportation and after-sales service.
Smart Images

Figure CN115344652B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of equipment monitoring, in particular to a method and device for dynamically monitoring a track and a server. BACKGROUND
[0002] In the field of engineering machinery industry, due to the particularity of engineering machinery equipment (large volume, heavy weight, different models), ordinary logistics transportation channels cannot be used, and most of the equipment needs to be directly shipped from the production place by the driver designated by the manufacturer to the customer's location. With a large number of engineering machinery equipment being shipped to various places in the country every day, the transportation scheduling management, shipping management, tracking in transit, abnormal management, and delivery and signature monitoring of engineering vehicles have become key factors affecting the operating cost and product delivery efficiency of enterprises. At present, the entire transportation and delivery process of the vehicle can only rely on the manual information feedback of logistics transportation personnel and the customer feedback mechanism after delivery. The company cannot timely grasp the relevant information whether the equipment is timely delivered, whether the delivery address is abnormal, and whether the transportation is carried out according to the lowest cost route. On the other hand, whether the engineering machinery vehicle is working in a specific working area during construction, the equipment management personnel or the lessor need to know the situation. At present, the main method is to rely on on-site human supervision, which is low in efficiency and high in cost.
[0003] Secondly, after all engineering vehicles are sold, they will enter the maintenance period. Once the vehicle breaks down, the company needs to send after-sales maintenance personnel to the site for maintenance. In order to ensure the quality of after-sales service, timely solve customer problems and reduce customer losses. In most cases, the company requires after-sales maintenance personnel to arrive at the work site in time, and they cannot leave the equipment site without special reasons, and need to solve customer problems and eliminate equipment failures on site to improve the service quality level of the company. In order to effectively supervise service engineers to solve problems in time, we need to effectively manage the service engineers scattered in various places in the country or overseas. Previously, service engineers managed themselves, and reported to the company after solving the problem. The biggest problem with this is low efficiency, and service engineers often leave the customer site, which slows down the problem solving progress.
[0004] Therefore, the existing technology cannot monitor the transportation or after-sales service of engineering machinery vehicles in real time, which leads to ineffective supervision of the construction process, low efficiency of engineering vehicle transportation, or low efficiency of after-sales service. SUMMARY
[0005] The purpose of the embodiments of the present application is to provide a method and device for dynamically monitoring a track and a server, which solves the problem of ineffective supervision of the construction process, low efficiency of engineering vehicle transportation, or low efficiency of after-sales service in the prior art.
[0006] To achieve the above object, the first aspect of the present application provides a method for dynamically monitoring a track, applied to a server, the server being in communication with a mobile terminal and a management terminal respectively, the method comprising:
[0007] collecting position information of the mobile terminal in real time to obtain track information of the mobile terminal;
[0008] obtaining electronic fence data sent by the management terminal to obtain dynamic electronic fence information;
[0009] fusing the track information and the dynamic electronic fence information to obtain a data stream;
[0010] inputting the data stream into a strict continuous event model to obtain an abnormality judgment result, the strict continuous event model comprising a condition for triggering an alarm event;
[0011] in a case where the abnormality judgment result is that the data stream satisfies the condition for triggering the alarm event, sending alarm information to the management terminal.
[0012] In the embodiments of the present application, the position information comprises at least one of the following:
[0013] longitude of the mobile terminal, latitude of the mobile terminal, number of the mobile terminal and time.
[0014] In the embodiments of the present application, obtaining the electronic fence data sent by the management terminal comprises at least one of the following:
[0015] obtaining coordinate range data sent by the management terminal;
[0016] obtaining area selection data sent by the management terminal.
[0017] In the embodiments of the present application, fusing the track information and the dynamic electronic fence information comprises:
[0018] transforming the track information into a first data stream by a distributed real-time computing engine;
[0019] transforming the dynamic electronic fence information into a second data stream by the distributed real-time computing engine;
[0020] performing a fusion operation on the first data stream and the second data stream to obtain the data stream.
[0021] In the embodiments of the present application, fusing the track information and the dynamic electronic fence information further comprises:
[0022] determining a relationship between the mobile terminal and the electronic fence at each moment by a preset algorithm;
[0023] appending the relationship between the mobile terminal and the electronic fence to the data stream.
[0024] In the embodiments of the present application, the strictly continuous event model is established according to a complex event programming model specification of the distributed real-time computing engine.
[0025] In the embodiments of the present application, in the case that the abnormality judgment result is that the data stream satisfies the condition of the trigger alarm event, sending the alarm information to the management terminal comprises:
[0026] obtaining an abnormality judgment result of the mobile terminal;
[0027] In the case that the abnormality judgment result matches the preset alarm event, sending the alarm information to the management terminal.
[0028] In the embodiments of the present application, the alarm information comprises at least one of the following:
[0029] a distance of the mobile terminal entering and exiting the dynamic electronic fence;
[0030] a time length of the mobile terminal entering and exiting the dynamic electronic fence.
[0031] In the embodiments of the present application, in the case that the state information matches the preset alarm event, sending the alarm information to the management terminal comprises:
[0032] classifying and summarizing the alarm information;
[0033] reasoning according to the classified and summarized alarm information, and sending a reasoning result to the management terminal.
[0034] The second aspect of the present application provides a server, comprising:
[0035] a memory configured to store instructions; and
[0036] a processor configured to call the instructions from the memory and capable of implementing the method for dynamically monitoring a trajectory of any one of the above when executing the instructions.
[0037] The third aspect of the present application provides a device for dynamically monitoring a trajectory, comprising:
[0038] the above-mentioned server;
[0039] a mobile terminal in communication with the server and configured to send position information to the server;
[0040] a management terminal in communication with the server and configured to receive input electronic fence data and alarm information sent by the server.
[0041] The fourth aspect of the present application provides a machine readable storage medium having instructions stored thereon, the instructions being used to cause a machine to execute the method for dynamically monitoring a trajectory.
[0042] By the technical solution, the position information of the mobile terminal is collected in real time to obtain the trajectory information of the mobile terminal, the electronic fence data sent by the management terminal is acquired to obtain the dynamic electronic fence information, the trajectory information and the dynamic electronic fence information are fused to obtain the data stream, the data stream is input into the strict continuous event model to obtain the abnormality judgment result, the strict continuous event model includes the condition of triggering the alarm event, and the alarm information is sent to the management terminal in the case that the abnormality judgment result is that the data stream satisfies the condition of triggering the alarm event. In this way, the real-time monitoring of the transportation or after-sales service of the construction machinery vehicle can be performed, and the construction process can be effectively supervised, and the transportation efficiency or the after-sales service efficiency of the engineering vehicle can be improved.
[0043] Other features and advantages of the embodiments of the present application will be described in detail in the following specific implementation part. BRIEF DESCRIPTION OF DRAWINGS
[0044] The accompanying drawings are included to provide a further understanding of the embodiments of the present application, and constitute a part of the specification, and are used to explain the embodiments of the present application together with the following specific implementation, but do not constitute a limitation to the embodiments of the present application. In the drawings:
[0045] Figure 1 A structural diagram of a device for dynamically monitoring a trajectory according to an embodiment of the present application is schematically shown;
[0046] Figure 2 A flowchart of a method for dynamically monitoring a trajectory according to an embodiment of the present application is schematically shown;
[0047] Figure 3 A complex event model diagram according to an embodiment of the present application is schematically shown;
[0048] Figure 4 A logic flowchart of a mobile terminal entering and exiting a dynamic electronic fence according to an embodiment of the present application is schematically shown;
[0049] Figure 5 A structural diagram of a server according to an embodiment of the present application is schematically shown;
[0050] Figure 6 A flowchart of a method for dynamically monitoring a trajectory according to an embodiment of the present application is schematically shown.
[0051] REFERENCE SIGNS
[0052] 101 mobile terminal 102 server
[0053] 103 management terminal 301 enter dynamic electronic fence event
[0054] 302 exit dynamic electronic fence event DETAILED DESCRIPTION
[0055] In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. It should be understood that the specific embodiments described herein are merely used to explain and illustrate the embodiments of the present application, and should not be used to limit the embodiments of the present application. Based on the embodiments of the present application, any other embodiments obtained by a person of ordinary skill in the art without creative effort belong to the scope of protection of the present application.
[0056] It should be noted that if the embodiments of the present application involve directional indications (such as up, down, left, right, front, back, etc.), the directional indications are merely used to explain the relative positional relationship, motion condition, etc. between components in a certain posture (as shown in the drawings), and if the certain posture changes, the directional indications also change accordingly.
[0057] In addition, if the embodiments of the present application involve descriptions such as “first”, “second”, etc., the descriptions of “first”, “second”, etc. are merely for description purposes, and should not be understood as indicating or implying the relative importance of the indicated technical features or implicitly indicating the number of the indicated technical features. Therefore, the features limited by “first”, “second” can explicitly or implicitly include at least one of the features. In addition, the technical solutions of each embodiment can be combined with each other, but it must be based on the fact that a person of ordinary skill in the art can realize the combination, and when the combination of technical solutions contradicts each other or cannot be realized, it should be considered that the combination of technical solutions does not exist, and is also not within the scope of protection claimed by the present application.
[0058] Figure 1 A structural diagram of a device for dynamically monitoring a trajectory according to an embodiment of the present application is schematically shown. As shown in Figure 1 The device for dynamically monitoring a trajectory can include a mobile terminal 101, a server 102 and a management terminal 103. The mobile terminal can include but is not limited to a vehicle device, a service engineer; the management terminal can include but is not limited to a management personnel. The mobile terminal 101 communicates with the server 102, and is configured to send position information to the server 102. The management terminal 103 communicates with the server 102, and is configured to receive input electronic fence data and alarm information sent by the server 102. Through the mutual communication between the mobile terminal 101, the server 102 and the management terminal 103, the dynamic detection of the trajectory of the mobile terminal can be completed, so as to realize effective supervision of the construction process and improve the transportation efficiency of the engineering vehicle or the efficiency of the after-sales service.
[0059] Figure 2A flowchart of a method for dynamically monitoring a trajectory according to an embodiment of the present application is shown schematically. As shown in Figure 2 The method for dynamically monitoring a trajectory according to an embodiment of the present application can include the following steps.
[0060] Step 201: Real-time collection of position information of a mobile terminal to obtain trajectory information of the mobile terminal.
[0061] In an embodiment of the present application, the mobile terminal can include, but is not limited to, a vehicle terminal installed on a vehicle device, and a company maintenance APP pre-installed on a service engineer's mobile phone. The mobile terminal is used to send position information to a server, so that the position of the mobile terminal can be detected in real time. The position information can include, but is not limited to, the longitude of the mobile terminal, the latitude of the mobile terminal, the number of the mobile terminal, and the time. The real-time position information collected is sent to a message queue (kafka) for storage. The trajectory refers to a pattern formed by moving points meeting certain conditions. The trajectory information is obtained by connecting the position information collected in real time within a period of time.
[0062] Step 202: Obtain electronic fence data sent by a management terminal to obtain dynamic electronic fence information.
[0063] In an embodiment of the present application, the electronic fence refers to a preset movable range of the mobile terminal. The dynamic electronic fence refers to an electronic fence that can be updated in real time by a management terminal and takes effect in real time. The electronic fence in the prior art is a fixed electronic fence, i.e., the range cannot be changed according to the setting. However, the dynamic electronic fence according to the present application can be updated according to the actual situation, and the fence can take effect in real time, so as to monitor the movement trajectory of the mobile terminal and improve the transportation and service efficiency. After obtaining the dynamic electronic fence information, the dynamic electronic fence information is stored in a database system (mysql) table in the background in real time. In one example, the server can obtain coordinate range data sent by the management terminal, and determine the range of the dynamic electronic fence according to the coordinate range data. In another example, the server can obtain region selection data sent by the management terminal, and determine the range of the dynamic electronic fence according to the region selection data. By referring to the dynamic electronic fence, the transportation or after-sales service of the construction machinery vehicle can be monitored in real time, so as to effectively supervise the construction process and improve the transportation efficiency of the engineering vehicle or the after-sales service efficiency.
[0064] Step 203: Fusion of the trajectory information and the dynamic electronic fence information to obtain a data stream.
[0065] In the embodiments of the present application, the server can read the track information and the dynamic electronic fence information respectively. The track information is stored in a message queue (kafka), and the server can read the track information in real time through a distributed real-time computing engine (Flink) to obtain a track information stream. The dynamic electronic fence information in the mysql table is accessed through a multi-threaded manner to extract the dynamic electronic fence information. The dynamic electronic fence information is loaded into the Flink in real time through a connector, stored in the memory, and then broadcast in the Flink through the information stream broadcast form, shared and reused to obtain a broadcast information stream, i.e. a dynamic electronic fence information stream. The track information stream and the dynamic electronic fence information stream are fused to form a unified data stream, and the same data stream contains mobile terminal basic information, track information and corresponding dynamic electronic fence information. The server can obtain the relationship between the current mobile terminal and the dynamic electronic fence according to the basic information in the data stream obtained after fusion, and append the relative state of the mobile terminal and the dynamic electronic fence to the above data stream for subsequent special situation or abnormal alarm prompt processing. Because the strict continuous event model can only process one data stream, the track information stream and the dynamic electronic fence information stream are fused for easy abnormal result judgment. In an example, after the track information stream and the dynamic electronic fence information stream are fused, a data stream is obtained, the information in the data stream is calculated, the relationship between the mobile terminal and the dynamic electronic fence at this time is obtained, i.e. the mobile terminal is inside the dynamic electronic fence, the state is in, and the state at this time is appended to the data stream for recording.
[0066] Step 204, inputting the data stream into the strict continuous event model to obtain an abnormal judgment result, the strict continuous event model including a condition of triggering an alarm event.
[0067] In the embodiments of the present application, the strictly continuous event mode is designed according to the complex event programming model (i.e. CEP) specification of Flink, which refers to a model in which one event is followed by another event. The strictly continuous event model includes a condition for triggering an alarm event. The server inputs the fused data stream into the strictly continuous event model to obtain an abnormality judgment result of the mobile terminal. In a case where the abnormality judgment result matches a preset alarm event, alarm information is sent to a management terminal. Through the alarm, the management personnel can learn in real time whether the equipment and service personnel have abnormal conditions, thereby improving work efficiency. In one example, when an event data of exiting a dynamic electronic fence is detected, followed by an event data of entering the dynamic electronic fence, the combination of the two events indicates "arrival", which can include but is not limited to a vehicle equipment arriving at a customer site, a service engineer arriving at a specified area. In another example, when an event data of entering a dynamic electronic fence is detected, followed by an event data of exiting the dynamic electronic fence, the combination of the two events indicates "departure", which can include but is not limited to a vehicle equipment deviating from a normal transportation route or a work area, or a service engineer leaving a specified area. After obtaining the data of the two events, the data is processed to obtain necessary information, which includes but is not limited to mobile terminal information, entering and exiting dynamic electronic fence state, current time, i.e. latitude and longitude. Then the necessary information is assembled into an object, and the data is sent to a message queue through encoding. Because the intention of the next activity of the mobile terminal cannot be determined only by the position relationship of one point, the strictly continuous event model is introduced to determine whether there is an abnormal result. Effective supervision of the construction process can be achieved, and the transportation efficiency of the engineering vehicle or the efficiency of the after-sales service can be improved.
[0068] Step 205: In a case where the abnormality judgment result is that the data stream satisfies the condition for triggering an alarm event, alarm information is sent to a management terminal.
[0069] In the embodiments of the present application, the management terminal includes but is not limited to a manager, and in the case that the abnormality judgment result matches the preset alarm event, the alarm information is sent to the manager, so that the manager can discover the abnormal situation in time and improve work efficiency. The server obtains the state abnormality information of the mobile terminal by inputting the data stream into the strict continuous event model, including time, position of occurrence, and basic information of the mobile terminal. By consuming the data in kafka, the distance and time length of the mobile terminal entering and exiting the dynamic electronic fence can be obtained by further processing and processing. And these information are respectively summarized and reasoned, and the results after summarizing and reasoning are sent to the management terminal. By sending the alarm information to the management terminal, the manager can know in real time whether the equipment has an abnormal situation, and improve work efficiency. In an example, when the abnormality judgment result is that the data stream satisfies the condition of triggering the alarm event, the abnormality result is pushed to the company management APP by the websocket mode or is sent to the equipment operator and the manager in the form of email or short message.
[0070] Through the above technical solution, the position information of the mobile terminal is collected in real time to obtain the trajectory information of the mobile terminal; the electronic fence data sent by the management terminal is obtained to obtain the dynamic electronic fence information; the trajectory information and the dynamic electronic fence information are fused to obtain the data stream; the data stream is input into the strict continuous event model to obtain the abnormality judgment result, and the strict continuous event model includes the condition of triggering the alarm event; in the case that the abnormality judgment result is that the data stream satisfies the condition of triggering the alarm event, the alarm information is sent to the management terminal. In this way, by monitoring the transportation or after-sales service of the construction machinery vehicle in real time, effective supervision of the construction process can be realized, and the transportation efficiency or after-sales service efficiency of the engineering vehicle can be improved.
[0071] In the embodiments of the present application, the position information can include but is not limited to:
[0072] The longitude of the mobile terminal, the latitude of the mobile terminal, the number of the mobile terminal, and the time.
[0073] Specifically, the mobile terminal includes but is not limited to a vehicle-mounted terminal installed on a vehicle and a company maintenance APP pre-installed on a service engineer's mobile phone. The mobile terminal has corresponding position information at different times, which can include but is not limited to longitude, latitude, mobile terminal number and time. The position information of the mobile terminal at this time is determined according to the parameters such as longitude, latitude, mobile terminal number and time. Before the construction machinery equipment leaves the factory, the factory will install a vehicle-mounted terminal on the vehicle. The vehicle-mounted terminal transmits the encrypted working condition information to the Internet of Things platform through a wireless network according to a certain frequency and transmission protocol. On the platform side, we use a real-time processing engine to analyze the working condition information of the vehicle in real time to obtain the position information of the vehicle at different times. Then the processing engine sends the vehicle position information to the message queue. The position information of the personnel is mainly collected through the company maintenance APP pre-installed on the service engineer's mobile phone. The APP collects the position information of the engineer in real time and then transmits it to the APP background service. The background service processes the real-time position information of the service engineer and sends it to the message queue in real time. In this way, the collection of the position information of the mobile terminal is realized. Through the collection of the position information of the mobile terminal, the position of the mobile terminal can be determined in real time, which is convenient for subsequent real-time monitoring of the mobile terminal. In one example, the geographical position of the mobile terminal is determined according to the longitude and latitude; the number of the mobile terminal is determined according to the number of the mobile terminal; the time is determined according to the time; and the geographical position of the mechanical equipment at a certain time, i.e. its position information, is determined according to the above information.
[0074] In the embodiment of the present application, the electronic fence data sent by the management terminal can include but is not limited to:
[0075] The coordinate range data sent by the management terminal is obtained.
[0076] The area selection data sent by the management terminal is obtained.
[0077] Specifically, the electronic fence data refers to the basic information of the electronic fence. The manager can at any time draw a fence for the mobile terminal through the management terminal, first input the electronic fence data, and the system obtains the input electronic fence data to form a corresponding dynamic electronic fence. The dynamic electronic fence refers to an electronic fence that can be updated in real time. The manager can update or add a fence at any time, and the system will read the input electronic fence data at any time to form a new dynamic electronic fence and take effect in real time. At the same time, the app will store the dynamic electronic fence information corresponding to the mobile terminal in the background database system in real time. The electronic fence data sent by the management terminal can include but is not limited to the coordinate range data sent by the management terminal, and the area selection data sent by the management terminal. The coordinate range data refers to the coordinate data input by the management terminal. For example, the management terminal receives the electronic fence data of the A point coordinate set by the manager and the radius of 100 km, and then obtains a circular dynamic electronic fence with A point as the center and the radius of 100 km. The area selection data refers to the area range data input by the management terminal, including but not limited to a map and a zip code. The server determines the area according to the matching preset area range data. For example, through the map or the zip code, a dynamic electronic fence of various shapes such as a province, a city, a district, a street or a local area is determined. In an example, the dynamic electronic fence can include but is not limited to a circle, a polygon, a provincial fence, a city fence and a street fence. The circular and polygon dynamic electronic fence data includes but is not limited to the dynamic electronic fence configured with the vertex longitude and latitude, the radius and the center longitude and latitude, and the provincial, city and district dynamic electronic fence data includes but is not limited to the province, city and district codes. According to different electronic fence data, the preset algorithm is matched, for example, the algorithms of the preset circle, rectangle, polygon and province, city and district dynamic electronic fences. Through these algorithms, the relative relationship between the mobile terminal and the dynamic electronic fence at each moment can be calculated in real time, that is, whether the mobile terminal is inside or outside the dynamic electronic fence at each moment. Through the preset dynamic electronic fence, effective supervision of the construction process can be realized, and the transportation efficiency of the engineering vehicle or the after-sales service efficiency can be improved.
[0078] In the embodiment of the present application, the fusion of the trajectory information and the dynamic electronic fence information includes:
[0079] The trajectory information is converted into a first data stream through a distributed real-time computing engine;
[0080] The dynamic electronic fence information is converted into a second data stream through a distributed real-time computing engine;
[0081] The first data stream and the second data stream are fused to obtain a data stream.
[0082] Specifically, the first data stream refers to a data stream containing trajectory information; the second data stream refers to a data stream containing dynamic electronic fence information; and the data stream refers to a data stream containing both trajectory information and dynamic electronic fence information. The server can read the trajectory information and the dynamic electronic fence information respectively. The trajectory information is stored in a message queue (kafka), and the server can read the trajectory information in real time through a distributed real-time computing engine (Flink) to obtain a trajectory information stream, i.e., the first data stream. The dynamic electronic fence information in the mysql table is accessed in a multi-threaded manner to extract the dynamic electronic fence information. The dynamic electronic fence information is loaded into Flink in real time through a connector, stored in the memory, and then broadcast in Flink in the form of information stream broadcasting, shared and reused to obtain a broadcast information stream, i.e., a dynamic electronic fence information stream, which is also the second data stream. The first data stream and the second data stream are fused to form a data stream, which contains mobile terminal basic information, trajectory information and corresponding dynamic electronic fence information in one data stream. In one data stream, the dynamic electronic fence information and the trajectory information are processed through a ProcessFunction function, and the ProcessFunction function provides more fine-grained operation permissions for the data stream.
[0083] In the embodiments of the present application, the fusion of the trajectory information and the dynamic electronic fence information further includes:
[0084] The relationship between the mobile terminal and the dynamic electronic fence at each moment is determined through a preset algorithm.
[0085] The relationship between the mobile terminal and the dynamic electronic fence is added to the data stream.
[0086] Specifically, because the unique number of the device is contained in both the trajectory information and the dynamic electronic fence information, the two are fused into one data stream containing both position information and dynamic electronic fence information according to the unique number. According to the real-time uploaded position information and the real-time transmitted dynamic electronic fence information, the relative position relationship between the device or the service engineer and the dynamic electronic fence can also be calculated, including in the dynamic electronic fence (in) and outside the dynamic electronic fence (out). The relative position relationship is also added to the above-mentioned data stream, and finally a data stream is formed. Subsequently, complex event judgment can be performed through the data stream, and real-time monitoring of the whole process of abnormal situations can be performed in real time.
[0087] In one example, the circular and polygon dynamic electronic fences can be configured according to the feature data in the dynamic electronic fence, which can include but is not limited to the vertex latitude and longitude, radius, center latitude and longitude, and the relative position relationship between the device and the dynamic electronic fence can be calculated according to certain algorithms combined with real-time location information. For the dynamic electronic fence of provinces, cities and districts, the management personnel generally configures the province, city and district codes, loads the latitude and longitude information of these provinces, cities and districts into the flink in real time, then combines the real-time device location data obtained in real time with the boundary latitude and longitude data of the provinces, cities and districts (provincial, city and district boundary latitude and longitude), and calculates the province, city and district code corresponding to the current device location through the flink plus certain algorithms, and compares it with the province, city and district code configured in the dynamic electronic fence to obtain the relative position relationship.
[0088] Figure 3 An example of a complex event model diagram is shown according to an embodiment of the application. As shown in Figure 3 In the embodiment of the application, the strict continuous event model is established according to the complex event programming model specification of the distributed real-time computing engine.
[0089] Specifically, the strict continuous event model is designed according to the CEP complex event programming model specification of Flink. CEP is a complex event processing, and complex event processing (CEP) is an event processing that combines data from multiple sources to infer events or patterns that indicate more complex situations. The goal of complex event processing is to identify meaningful events (such as opportunities or threats) and respond to them as quickly as possible. CEP aims to discover situations. As Figure 3As shown, A event represents outside the dynamic electronic fence, and B event represents inside the dynamic electronic fence. On a time axis, as time changes, the following event flow A1->A2->B1->B2->B3->B4->B5->B6->A3->A4 appears in turn as shown. 301 represents an event of entering the dynamic electronic fence, and 302 represents an event of exiting the dynamic electronic fence. Not every event needs to be prompted or alarmed. Only when the event of just entering the dynamic electronic fence 301 (A2->B1) or the event of just exiting the dynamic electronic fence 302 (B6->A3) occurs, the alarm mechanism is triggered to remind the manager. For example, when the two consecutive events of 301 and 302 occur, it means that the device has arrived at the destination or the device is in the designated area, the service engineer is at the accident site, the device has left the working area, the device has deviated, the engineer has left the service area, etc. In an example, when an event data of exiting the dynamic electronic fence is detected, followed by an event data of entering the dynamic electronic fence, the combination of the two events indicates that the device has arrived at the customer site or the service engineer has arrived at the designated area. In another example, when an event data of entering the dynamic electronic fence is detected, followed by an event data of exiting the dynamic electronic fence, the combination of the two events indicates that the device has deviated from the normal transportation route or the working area, or the service engineer has left the designated area. The data of the two events in different situations are processed to obtain necessary information, including but not limited to device information or personnel information, the state of entering and exiting the dynamic electronic fence, the current time, the latitude and longitude. Then the information is assembled into an object, and the data is sent to the message queue kafka through coding. Through the strict continuous event model, the abnormal situation of the mobile terminal can be judged, which is conducive to improving the management efficiency.
[0090] Figure 4 A mobile terminal entering and exiting a dynamic electronic fence logic flowchart according to an embodiment of the application is schematically shown. As shown, Figure 4 The logic of the mobile terminal entering and exiting the dynamic electronic fence is a Flink-based program logic design. First, the location data in kafka and the dynamic electronic fence information in mysql are sent to the Flink Processor, i.e. the real-time processing engine system, for processing. Second, the processed data is judged by Flink CEP, i.e. the complex time processing model. Flink CEP is a combination event processing based on trajectory and dynamic electronic fence information. Finally, the judged result is sent to the message queue kafka. The dynamic electronic fence information is input through the APP. The judged result sent to kafka is transmitted to the outside world through the backend microservice.
[0091] In the embodiment of the present application, in the case that the abnormality judgment result is that the data stream meets the condition of triggering the alarm event, sending the alarm information to the management terminal can include:
[0092] Obtaining the abnormality judgment result of the mobile terminal;
[0093] In the case that the abnormality judgment result matches the preset alarm event, sending the alarm information to the management terminal.
[0094] Specifically, after Flink and complex event processing, the state abnormality information of the vehicle or the service personnel entering or exiting the dynamic electronic fence can be obtained, and the abnormality information includes but is not limited to time, location of occurrence, and basic information of the mobile terminal. In the case that the abnormality judgment result matches the preset alarm event, the alarm information is sent to the management terminal. Through the alarm, the management personnel can know in real time whether the equipment and the service personnel have abnormal conditions, and the work efficiency is improved. In one example, the method of sending the alarm information can include but is not limited to pushing to the company management app, sending to the equipment operator and the management personnel in the form of email or short message through websocket. By sending the alarm information to the management terminal, the management personnel can know in real time the transportation situation of the equipment and the working situation of the service engineer, and the management efficiency is improved.
[0095] In the embodiment of the present application, the alarm information can include but is not limited to:
[0096] The distance of the mobile terminal entering or exiting the dynamic electronic fence;
[0097] The time length of the mobile terminal entering or exiting the dynamic electronic fence.
[0098] Specifically, after Flink and complex event processing, the state abnormality information of the vehicle or the service personnel entering or exiting the dynamic electronic fence can be obtained, and the abnormality information includes but is not limited to time, location of occurrence, and basic information of the mobile terminal. The processor consumes the data in kafka, and then processes and processes the data to obtain the distance and time length of the mobile terminal entering or exiting the dynamic electronic fence. By sending the distance and time length of the mobile terminal entering or exiting the dynamic electronic fence, the management terminal can more accurately determine the position and state of the abnormal vehicle or personnel.
[0099] In the embodiment of the present application, in the case that the state information matches the preset alarm event, sending the alarm information to the management terminal includes:
[0100] Classifying and summarizing the alarm information;
[0101] According to the classified and summarized alarm information, reasoning is performed, and the reasoning result is sent to the management terminal. Specifically, by developing a background service, data in the database system is consumed, and the data is processed and handled to obtain the distance and time length of the mobile terminal entering and exiting the dynamic electronic fence. The distance and time length of the mobile terminal entering and exiting the dynamic electronic fence are classified and processed, and data of the same type are divided together. Then, the classified results are reasoned to obtain different types of abnormal reasoning results. Finally, the reasoning result is sent to the management terminal. In an example, the method of sending the reasoning result can include but is not limited to pushing to the company management app, email or short message form to send to the device operator and management personnel through the websocket mode. By sending the alarm information to the management terminal, the management personnel can real-time understand the transportation situation of the device and the working situation of the service engineer, and improve the management efficiency.
[0102] Figure 5 A structural block diagram of a server according to an embodiment of the application is schematically shown. As shown in the figure, Figure 5 The server provided by the embodiment of the application can include:
[0103] The memory 510 is configured to store instructions; and
[0104] The processor 520 is configured to call the instructions from the memory and can implement the method for dynamically monitoring a trajectory according to the above when executing the instructions.
[0105] Specifically, in the embodiment of the application, the processor 520 can be configured to:
[0106] Real-time collection of position information of the mobile terminal to obtain trajectory information of the mobile terminal;
[0107] Obtaining electronic fence data sent by the management terminal to obtain dynamic electronic fence information;
[0108] Fusion of the trajectory information and the dynamic electronic fence information to obtain a data stream;
[0109] Inputting the data stream into a strict continuous event model to obtain an abnormal judgment result, the strict continuous event model including a condition of triggering an alarm event;
[0110] In the case that the abnormal judgment result is that the data stream satisfies the condition of triggering the alarm event, sending alarm information to the management terminal.
[0111] Further, the processor 520 can also be configured to:
[0112] The position information can include but is not limited to longitude of the mobile terminal, latitude of the mobile terminal, number of the mobile terminal and time.
[0113] Further, the processor 520 can be further configured to:
[0114] The electronic fence data sent by the management terminal can include but is not limited to:
[0115] The coordinate range data sent by the management terminal is acquired.
[0116] The area selection data sent by the management terminal is acquired.
[0117] Further, the processor 520 can be further configured to:
[0118] The trajectory information and the dynamic electronic fence information are fused, including:
[0119] The trajectory information is converted into a first data stream by a distributed real-time computing engine;
[0120] The dynamic electronic fence information is converted into a second data stream by the distributed real-time computing engine;
[0121] The first data stream and the second data stream are fused to obtain a data stream.
[0122] Further, the processor 520 can be further configured to:
[0123] The trajectory information and the dynamic electronic fence information are fused, further including:
[0124] The relationship between the mobile terminal and the dynamic electronic fence at each moment is determined by a preset algorithm;
[0125] The relationship between the mobile terminal and the dynamic electronic fence is added to the data stream.
[0126] Further, the processor 520 can be further configured to:
[0127] The strict continuous event model is established according to a complex event programming model specification of the distributed real-time computing engine.
[0128] Further, the processor 520 can be further configured to:
[0129] In a case where the abnormality judgment result is that the data stream satisfies a condition of triggering an alarm event, the alarm information is sent to the management terminal, including:
[0130] The abnormality judgment result of the mobile terminal is acquired;
[0131] In a case where the abnormality judgment result matches a preset alarm event, the alarm information is sent to the management terminal.
[0132] Further, the processor 520 can be further configured to:
[0133] The alarm information can include but is not limited to:
[0134] a distance of the mobile terminal entering or exiting the dynamic electronic fence;
[0135] a time length of the mobile terminal entering or exiting the dynamic electronic fence.
[0136] Further, the processor 520 can be further configured to:
[0137] In a case where the state information matches the preset alarm event, sending alarm information to the management terminal comprises:
[0138] classifying and summarizing the alarm information;
[0139] performing reasoning according to the classified and summarized alarm information, and sending a reasoning result to the management terminal.
[0140] According to the above technical solution, the position information of the mobile terminal is collected in real time to obtain the trajectory information of the mobile terminal, the electronic fence data sent by the management terminal is obtained to obtain the dynamic electronic fence information, the trajectory information and the dynamic electronic fence information are fused to obtain the data stream, the data stream is input into the strict continuous event model to obtain the abnormal judgment result, the strict continuous event model includes the condition of triggering the alarm event, and the alarm information is sent to the management terminal in a case where the abnormal judgment result is that the data stream satisfies the condition of triggering the alarm event. In this way, by monitoring the transportation or after-sales service of the construction machinery vehicle in real time, effective supervision of the construction process can be realized, and the transportation efficiency or after-sales service efficiency of the engineering vehicle can be improved.
[0141] Figure 6 A flowchart of a method for dynamically monitoring a trajectory according to an embodiment of the present application is schematically shown. As shown in Figure 6 in one embodiment, the method can include:
[0142] S1, obtaining working condition information of a construction machinery vehicle and a service engineer;
[0143] S2, uploading the collected working condition information to an Internet of Things platform, and performing real-time analysis on the working condition information to obtain position information;
[0144] S3, sending the position information to a message queue;
[0145] S4, sending the position information in the message queue to a Flink processing program;
[0146] S5, sending dynamic electronic fence information in Mysql to the Flink processing program;
[0147] S6, sending a Flink program processing result to the message queue;
[0148] S7, send the processing result to the backend microservice for processing and handling;
[0149] S8, send the abnormal result to the mobile phone APP through the backend microservice.
[0150] By the above technical solution, the position information of the mobile terminal is collected in real time to obtain the trajectory information of the mobile terminal; the electronic fence data sent by the management terminal is acquired to obtain dynamic electronic fence information; the trajectory information and the dynamic electronic fence information are fused to obtain a data stream; the data stream is input into a strict continuous event model to obtain an abnormal judgment result, the strict continuous event model including a condition of triggering an alarm event; in the case that the abnormal judgment result is that the data stream satisfies the condition of triggering the alarm event, an alarm information is sent to the management terminal. In this way, by monitoring the transportation or after-sales service of the construction machinery vehicle in real time, effective supervision of the construction process can be realized, and the transportation efficiency or the after-sales service efficiency of the engineering vehicle is improved.
[0151] The embodiment of the application also provides a machine readable storage medium, which stores instructions for causing a machine to execute the method for controlling an arm support.
[0152] Those skilled in the art should understand that the embodiments of the application can be provided as a method, a system, or a computer program product. Therefore, the application can adopt a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Moreover, the application can adopt a computer program product in the form of one or more computer usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer usable program codes.
[0153] The application is described with reference to flowcharts and / or block diagrams according to the embodiments of the application. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, and the combination of the flows and / or blocks in the flowcharts and / or block diagrams can be implemented by computer program instructions. These computer program instructions can be provided to a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to produce a machine, so that the instructions executed by the computer or other programmable data processing devices produce a device for implementing the functions specified in the flowcharts and / or block diagrams. Figure 1 The function of one flow or multiple flows and / or blocks Figure 1 The function of one flow or multiple flows and / or blocks
[0154] These computer program instructions can also be stored in a computer- readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instructions which implement the Figure 1 function specified in the flow or flows and / or blocks Figure 1 of the block or blocks.
[0155] These computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the Figure 1 function specified in the flow or flows and / or blocks Figure 1 of the block or blocks.
[0156] In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.
[0157] The memory can include non-persistent memory and / or volatile memory, such as a random access memory (RAM) including a cache area for the temporary storage of data. The memory can also include non-volatile memory, such as read only memory (ROM), electrically programmable read only memory (EPROM), electrically erasable programmable read only memory (EEPROM), flash memory, or a combination of non-volatile memories in different forms. The memory is an example of computer readable storage media.
[0158] Computer readable media includes permanent and non-permanent, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules 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 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 cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information accessible to a computing device. According to the definition herein, computer readable media does not include transitory media, such as modulated data signals and carrier waves.
[0159] It should also be noted that the terms "comprising", "comprises" or other variations thereof are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but can also include other elements not expressly listed or inherent to such process, method, article, or apparatus.
[0160] The above embodiments are only used to illustrate the present application, but not to limit it. Instead of the above, various modifications and changes can be made to the application by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the application shall fall into the scope of the claims of the application.
Claims
1. A method for dynamically monitoring trajectories, characterized in that, The method is applied to a server in communication with a mobile terminal and a management terminal, and comprises: collecting position information of the mobile terminal in real time to obtain trajectory information of the mobile terminal; obtaining electronic fence data sent by the management terminal to obtain dynamic electronic fence information; fusing the trajectory information and the dynamic electronic fence information to obtain a data stream, the data stream being used for complex event judgment; the fusing the trajectory information and the dynamic electronic fence information further comprises: determining a relationship between the mobile terminal and the dynamic electronic fence at each moment through a preset algorithm; appending the relationship between the mobile terminal and the dynamic electronic fence to the data stream, the relationship between the mobile terminal and the dynamic electronic fence including being inside the dynamic electronic fence and being outside the dynamic electronic fence; inputting the data stream into a strict continuous event model to obtain an abnormality judgment result, the strict continuous event model including a condition of triggering an alarm event, the strict continuous event model being established according to a complex event programming model specification of a distributed real-time computing engine and being used for identifying an abnormality in a model in which one event is followed by another event; the alarm event including a just-entering-dynamic-electronic-fence event and a just-exiting-dynamic-electronic-fence event, a condition of the just-entering-dynamic-electronic-fence event being that when an exiting-dynamic-electronic-fence event data is detected, a entering-dynamic-electronic-fence event data is followed, the just-entering-dynamic-electronic-fence event being used to indicate that the mobile terminal reaches a customer site or a service engineer reaches a specified area; a condition of the just-exiting-dynamic-electronic-fence event being that when a entering-dynamic-electronic-fence data is detected, an exiting-dynamic-electronic-fence data is followed, the just-exiting-dynamic-electronic-fence event being used to indicate that the mobile terminal deviates from a normal transportation route or a work area or a service engineer leaves a specified area; in a case where the abnormality judgment result is that the data stream satisfies the condition of triggering the alarm event, sending alarm information to the management terminal.
2. The method of claim 1, wherein, the position information includes at least one of: longitude of the mobile terminal, latitude of the mobile terminal, number of the mobile terminal, and time.
3. The method of claim 1, wherein, the obtaining the electronic fence data sent by the management terminal comprises at least one of: obtaining coordinate range data sent by the management terminal; obtaining area selection data sent by the management terminal.
4. The method of claim 1, wherein, the fusing the trajectory information and the dynamic electronic fence information comprises: transforming the trajectory information into a first data stream through a distributed real-time computing engine; transforming the dynamic electronic fence information into a second data stream through the distributed real-time computing engine; performing a fusion operation on the first data stream and the second data stream to obtain the data stream.
5. The method of claim 1, wherein, the in the case where the abnormality judgment result is that the data stream satisfies the condition of triggering the alarm event, sending alarm information to the management terminal comprises: obtaining the abnormality judgment result of the mobile terminal; in a case where the abnormality judgment result matches a preset alarm event, sending the alarm information to the management terminal.
6. The method of claim 5, wherein, The alarm information comprises at least one of: a distance of the mobile terminal from the dynamic electronic fence; a time length of the mobile terminal from the dynamic electronic fence.
7. The method of claim 5, wherein, The sending of the alarm information to the management terminal in the case that the abnormality judgment result matches the preset alarm event comprises: classifying and summarizing the alarm information; reasoning according to the classified and summarized alarm information, and sending a reasoning result to the management terminal.
8. A server, characterized by comprise: a memory configured to store instructions; and a processor configured to call the instructions from the memory and enable the method for dynamically monitoring a trajectory according to any one of claims 1 to 7 to be implemented when the instructions are executed.
9. An apparatus for dynamically monitoring a trajectory, characterized by, comprise: the server according to claim 8; a mobile terminal in communication with the server, configured to send position information to the server; a management terminal in communication with the server, configured to receive input electronic fence data and alarm information sent by the server.
10. A machine-readable storage medium, characterized in that, The machine readable storage medium has instructions stored thereon for causing a machine to perform the method for dynamically monitoring a trajectory according to any one of claims 1 to 7.
Citation Information
Patent Citations
Method and system for realizing electronic fence
CN106921943A
Video monitoring method and device, electronic equipment and readable storage medium
CN113014876A