Shared vehicle driving out-of-bound judgment method and system and related equipment
Through the network connection between the vehicle central control and the server, the location and status information of the shared vehicle is collected and comprehensively evaluated in real time, which solves the problem of misjudgment of shared vehicles out of bounds in the existing technology, achieves more accurate and reliable judgment results, and improves User experience.
Patent Information
- Application Number
- CN202410991964.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-23
- Publication Date
- 2024-10-01
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing method of judging whether a shared vehicle has left the operating area mainly relies on positioning position, which is easily affected by positioning accuracy and external environment, leading to misjudgment and poor user experience.
Through the network connection between the vehicle central control and the server, vehicle location and status information is collected in real time, combined with historical data for comprehensive evaluation, to determine whether the vehicle is out of bounds, and to generate voice reminders or control actions.
It reduces the probability of misjudgment, improves user experience, and ensures the accuracy and reliability of shared vehicle out-of-bounds judgment.
Smart Images

Figure CN118736832A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of shared vehicles, and in particular to a method and system for determining whether a shared vehicle has driven out of bounds, and related equipment. Background Art
[0002] With the development of the sharing economy, more and more shared vehicles have appeared on the market. With the promotion of shared vehicles (such as shared bicycles and shared cars), the number of people using shared vehicles has continued to increase. In order to manage shared vehicles in an orderly manner, electronic fences came into being.
[0003] At present, shared vehicles are generally deployed in operating areas, and judging whether shared vehicles have left the operating area has become a management focus. The existing method for judging whether a shared vehicle has left the operating area basically relies only on the current positioning position of the shared bicycle, which is affected by the positioning accuracy of the shared vehicle itself and the external environment. If it only relies on the current positioning position to judge whether it is outside the fence, it will easily cause misjudgment, which is not friendly to riders.
[0004] Therefore, the prior art still needs to be improved and developed. Summary of the invention
[0005] The present invention provides a method, system and related equipment for judging whether a shared vehicle has driven out of bounds. The main purpose of the present invention is to solve the technical problems mentioned in the background technology of the prior art.
[0006] A first aspect of the present invention provides a method for determining whether a shared vehicle has traveled out of bounds, comprising:
[0007] Establish a network connection between the vehicle's central control and the server;
[0008] Collecting information related to the vehicle's location and status in real time through the vehicle's central control;
[0009] Uploading the central control identification of the vehicle central control, the vehicle location related information and the vehicle status related information to the server;
[0010] The server obtains a result of judging that the vehicle is out of bounds based on the central control identification of the vehicle central control, the vehicle position related information, and the vehicle status related information;
[0011] If the current vehicle out-of-bounds judgment result is that the shared vehicle is out-of-bounds, then obtaining several consecutive historical vehicle position information and historical vehicle status information before this time from the cache of the server, and obtaining several historical vehicle out-of-bounds judgment results based on the several historical vehicle position information and the several historical vehicle status information;
[0012] Based on the current vehicle out-of-bounds judgment result and several historical vehicle out-of-bounds judgment results, a comprehensive evaluation is performed to obtain the actual out-of-bounds result of the shared vehicle this time.
[0013] In an optional implementation of the first aspect of the present invention, obtaining the vehicle out-of-bounds judgment result based on the central control identification of the vehicle central control, the vehicle position related information and the vehicle status related information in the server includes:
[0014] In the server, fence area information of the shared vehicle is obtained according to the central control identifier;
[0015] Based on the vehicle location related information and the fence area information, obtain the inside and outside information of the fence where the shared vehicle is currently located;
[0016] If the information about the inside and outside of the fence where the shared vehicle is located this time indicates that it is outside the fence, the driving direction of the shared vehicle is further obtained from the information related to the vehicle status;
[0017] Based on the driving direction, the vehicle position-related information and the fence area information, the distance between the shared vehicle and the fence boundary is calculated.
[0018] In an optional implementation of the first aspect of the present invention, the obtaining, based on the vehicle position-related information and the fence area information, the fence inside and outside information where the shared vehicle is currently located includes:
[0019] Based on the position point set in the fence area information, a general equation set of boundary lines of the fence area is obtained;
[0020] Based on the longitude and latitude in the vehicle position related information, obtaining a target boundary line general equation from the boundary line general equation set;
[0021] Substituting the longitude and the latitude into the function part of the general equation of the target boundary line to obtain a calculated value;
[0022] Based on the positive or negative sign of the calculated value, it is determined whether the shared vehicle is inside or outside the fence this time.
[0023] In an optional implementation of the first aspect of the present invention, the obtaining of the target boundary line general equation from the boundary line general equation set based on the longitude and latitude in the vehicle position related information comprises:
[0024] Obtaining two boundary endpoints corresponding to each boundary line general equation in the boundary line general equation set;
[0025] Obtaining the Y value range of each of the boundary straight line general equations based on the two end points of the boundary;
[0026] Comparing the latitude in the vehicle position related information with the Y value range of each of the boundary line general equations;
[0027] A target boundary line general equation is obtained from the boundary line general equation set based on the comparison result.
[0028] In an optional implementation of the first aspect of the present invention, the comprehensive evaluation based on the current vehicle out-of-bounds judgment result and several historical vehicle out-of-bounds judgment results to obtain the actual out-of-bounds result of the shared vehicle includes:
[0029] If the current vehicle out-of-bounds judgment result is that the shared vehicle is out-of-bounds, and there are multiple historical vehicle out-of-bounds judgment results that show that the shared vehicle is out-of-bounds, then a comprehensive assessment of the actual out-of-bounds result of the shared vehicle this time is that the shared vehicle is out-of-bounds.
[0030] In an optional implementation of the first aspect of the present invention, before obtaining the vehicle out-of-bounds judgment result based on the central control identification of the vehicle central control, the vehicle position related information and the vehicle status related information in the server, the following steps are included:
[0031] In the server, formatting the central control identification of the vehicle central control, the vehicle location related information and the vehicle status related information;
[0032] The formatted central control identification of the vehicle central control, the vehicle location-related information and the vehicle status-related information are routed to the target message queue using the designated switch of the message middleware for subscription and reading by the location information processing service.
[0033] In an optional implementation of the first aspect of the present invention, the comprehensive evaluation based on the current vehicle out-of-bounds judgment result and several historical vehicle out-of-bounds judgment results to obtain the actual out-of-bounds result of the shared vehicle includes:
[0034] In response to the actual out-of-bounds result of the shared vehicle this time, generating a voice reminder and / or a control action;
[0035] The voice reminder information and / or the control action are sent to the vehicle central control for execution.
[0036] A second aspect of the present invention provides a system for judging whether a shared vehicle has driven out of bounds, the system comprising a vehicle central control and a server:
[0037] The vehicle central control comprises:
[0038] A connection module is used to establish a network connection between the vehicle central control and the server;
[0039] A collection module, used to collect information related to the vehicle position and the vehicle status in real time through the vehicle central control;
[0040] An uploading module, used to upload the central control identification of the vehicle central control, the vehicle location related information and the vehicle status related information to the server;
[0041] The server comprises:
[0042] The current result judgment module is used to obtain the current vehicle out-of-bounds judgment result in the server based on the central control identification of the vehicle central control, the vehicle position related information and the vehicle status related information;
[0043] A historical result acquisition module is used to obtain the historical vehicle position-related information and the historical vehicle status-related information of several consecutive times before this time from the cache of the server if the current vehicle out-of-bounds judgment result is that the shared vehicle is out-of-bounds, and obtain several historical vehicle out-of-bounds judgment results based on the several historical vehicle position-related information and the several historical vehicle status-related information;
[0044] The comprehensive evaluation module is used to comprehensively evaluate the actual out-of-bounds result of the shared vehicle based on the current vehicle out-of-bounds judgment result and several historical vehicle out-of-bounds judgment results.
[0045] A third aspect of the present invention provides a server, the server comprising: a memory and at least one processor, the memory storing instructions, the memory and the at least one processor being interconnected via a line;
[0046] The at least one processor calls the instructions in the memory so that the server executes the method for determining whether a shared vehicle has driven out of bounds as described in any one of the first aspects above.
[0047] A fourth aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method for determining whether a shared vehicle has traveled out of bounds as described in any one of the first aspects above is implemented.
[0048] Beneficial effects: The present invention provides a method, system and related equipment for judging whether a shared vehicle has driven out of bounds. The method includes establishing a network connection between the vehicle central control and a server; collecting vehicle position-related information and vehicle status-related information in real time through the vehicle central control; uploading the central control logo, vehicle position-related information and vehicle status-related information of the vehicle central control to the server, and obtaining the result of the vehicle's out-of-bounds judgment; if the vehicle's out-of-bounds judgment result is out of bounds, obtaining the historical vehicle position-related information and historical vehicle status-related information for several consecutive times before this from the server's cache and obtaining several historical vehicle out-of-bounds judgment results; based on the current vehicle out-of-bounds judgment result and several historical vehicle out-of-bounds judgment results, a comprehensive evaluation is performed to obtain the actual out-of-bounds result of the shared vehicle. The judgment method of the present invention will make a comprehensive judgment based on the multiple previous vehicle positions, which reduces the probability of misjudgment and improves the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 A schematic diagram of an embodiment of a method for determining whether a shared vehicle has driven out of bounds according to the present invention;
[0050] Figure 2 A schematic diagram of a system for judging whether a shared vehicle has driven out of bounds according to the present invention;
[0051] Figure 3 A schematic diagram of an embodiment of a server of the present invention. DETAILED DESCRIPTION
[0052] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above drawings are used to distinguish
[0053] Similar objects are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" or "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0054] For ease of understanding, the specific process of the embodiment of the present invention is described below. Figure 1 The first aspect of the present invention provides a method for determining whether a shared vehicle has traveled out of bounds, comprising:
[0055] S100, establishing a network connection between the vehicle central control and the server; in this step of the present invention, the vehicle central control of the managed shared vehicle is connected to the server network. The vehicle central control can specifically be the central control platform of a shared car or the smart lock of a shared bicycle.
[0056] S200. Collecting vehicle position-related information and vehicle status-related information in real time through the vehicle central control; in the present invention, the vehicle position-related information includes the location time and the longitude and latitude of the vehicle location, and the vehicle status-related information includes the vehicle speed, vehicle driving direction, vehicle height and other vehicle statuses.
[0057] S300, upload the central control identification of the vehicle central control, the vehicle location related information and the vehicle status related information to the server; in the present invention, after the central control identification of the vehicle central control, the vehicle location related information and the vehicle status related information are uploaded to the server, the central control identification of the vehicle central control, the vehicle location related information and the vehicle status related information will be formatted in the server; the formatted central control identification of the vehicle central control, the vehicle location related information and the vehicle status related information are routed to the target message queue using the designated switch of the message middleware for the location information processing service to subscribe and read. Specifically, for example, the central control unique ID (i.e., central control identification), location time, location longitude and latitude, speed, altitude, vehicle status and other information are stored using a unified data structure, and then JSON serialized and converted into a string, and then the routing mode of Rabbitmq (i.e., message middleware) is used to push the message to the specific routing key (and target message queue) of the designated switch, so that the location information processing service in the service can subscribe to the location message and obtain the location information for processing.
[0058] S400. In the server, based on the central control identification of the vehicle central control, the vehicle position related information and the vehicle status related information, a result of judging that the vehicle is out of bounds is obtained. In the present invention, the result of judging that the vehicle is out of bounds includes whether the shared vehicle is out of bounds and the out-of-bounds distance of the shared vehicle.
[0059] In an optional implementation of the steps of the present invention, obtaining the vehicle out-of-bounds judgment result based on the central control identification of the vehicle central control, the vehicle position related information and the vehicle status related information in the server includes:
[0060] S401. In the server, the fence area information of the shared vehicle is obtained according to the central control identifier. In the present invention, each vehicle central control will carry a central control unique identifier (i.e., central control identifier). The present invention uses the central control unique identifier as the vehicle identifier to manage the shared vehicle in the server. An operating area (i.e., electronic fence) is configured for each shared vehicle in the server. The fence area information of the shared vehicle can be found in the server through the central control unique identifier. In the present invention, the fence area information can be a point set of the electronic fence boundary.
[0061] S402. Based on the vehicle position related information and the fence area information, obtain the information inside and outside the fence where the shared vehicle is currently located. In this step, it is to determine whether the longitude and latitude in the vehicle position related information falls within the enclosed area of the fence area information. If it is within the enclosed area, it means that the shared vehicle is within the operating area. If it is within the enclosed area, it means that the shared vehicle is outside the operating area.
[0062] In an optional implementation of step S402 of the present invention, the obtaining of the information inside and outside the fence where the shared vehicle is located this time based on the vehicle position-related information and the fence area information includes: obtaining a set of general boundary line equations of the fence area based on the position point set in the fence area information (in this step, each point in the position point set is connected by a straight line, and a general boundary line equation is formed between every two points); obtaining a target boundary line general equation from the set of general boundary line equations based on the longitude and latitude in the vehicle position-related information (this step may specifically include obtaining the two boundary endpoints corresponding to each boundary line general equation in the set of general boundary line equations (for example, the two points forming the straight line Ax+By+C=0 are (a, b) and (c, d) respectively); obtaining a Y value range of b to d for each of the general boundary line equations based on the two boundary endpoints; comparing the latitude in the vehicle position-related information with the Y value range of each of the general boundary line equations (if f in the vehicle position-related information (e, f) belongs to b to d, It means that the vehicle position is in the latitude interval of the straight line Ax+By+C=0); based on the comparison result, the target boundary line general equation is obtained from the boundary line general equation set (generally speaking, there will be two target boundary line general equations corresponding to one vehicle position related information); the longitude and the latitude are substituted into the function part of the target boundary line general equation to obtain a calculated value (in this step, (e, f) is substituted into Ax+By+C of the straight line Ax+By+C=0 to obtain the value of Ax+By+C); Based on the positive or negative value of the calculated value, it is determined whether the shared vehicle is on the inside or outside of the fence (in the present invention, based on the positive or negative value of Ax+By+C, it is possible to determine whether the point (e, f) is on the left or right side of the straight line Ax+By+C=0. If the point (e, f) is between the straight lines corresponding to the general equations of the two target boundary straight lines, it means that the point (e, f) is within the operating range of the shared vehicle. If the point (e, f) is not between the straight lines corresponding to the general equations of the two target boundary straight lines, it means that the point (e, f) is outside the operating range of the shared vehicle).
[0063] S403. If the information about the inside and outside of the fence where the shared vehicle is located this time is that it is outside the fence, the driving direction (vector representation) of the shared vehicle is further obtained from the vehicle status related information; in the present invention, if the shared vehicle is outside the operating area, the present invention will also calculate the distance between the shared vehicle and the boundary of the operating area in the driving direction.
[0064] S404, based on the driving direction, the vehicle position related information and the fence area information, calculate the distance between the shared vehicle and the fence boundary; in the present invention, the distance between the shared vehicle in the driving direction and the operating area boundary can be calculated by first obtaining the connection point between the shared vehicle in the driving direction and the fence area information based on the driving direction, the vehicle position related information and the fence area information, and then calculating the straight-line distance between the connection point and the vehicle position related information to obtain the distance between the shared vehicle and the fence boundary. In the server cache of the present invention, the vehicle position related information and vehicle status related information of the shared vehicle before will be recorded as historical vehicle position related information and historical vehicle status related information, so as to facilitate the judgment of the position and status of the shared vehicle before. In the present invention, due to the data processing capacity of the server, the data collected by the vehicle central control of the present invention will not be processed every time. For example, the frequency of data collection is 60 times / min, but the server will only process data 3 times a minute. The present invention can use the unused historical collection data for comprehensive judgment.
[0065] S500. If the current vehicle out-of-bounds judgment result is that the shared vehicle is out-of-bounds, then obtain the historical vehicle position-related information and the historical vehicle status-related information for several consecutive times before this time from the server's cache, and obtain several historical vehicle out-of-bounds judgment results based on the several times of historical vehicle position-related information and the historical vehicle status-related information; in the present invention, the calculation method of the historical vehicle out-of-bounds judgment result is the same as the calculation method of the current vehicle out-of-bounds judgment result. In another embodiment of the present invention, the server's cache may also simultaneously record the shared vehicle's historical vehicle out-of-bounds judgment results (including whether it is out-of-bounds and the distance from the boundary) to avoid repeated calculations. In this step, the historical vehicle out-of-bounds judgment results of the previous multiple times in the server's cache are directly called for comparison.
[0066] S600. Based on the current vehicle out-of-bounds judgment result and several historical vehicle out-of-bounds judgment results, a comprehensive evaluation is performed to obtain the actual out-of-bounds result of the shared vehicle. In an optional implementation of the first aspect of the present invention, the comprehensive evaluation based on the current vehicle out-of-bounds judgment result and several historical vehicle out-of-bounds judgment results to obtain the actual out-of-bounds result of the shared vehicle includes: if the current vehicle out-of-bounds judgment result is that the shared vehicle is out-of-bounds, and there are multiple historical vehicle out-of-bounds judgment results that are the shared vehicle out-of-bounds among several historical vehicle out-of-bounds judgment results, then the actual out-of-bounds result of the shared vehicle is comprehensively evaluated to be the shared vehicle out-of-bounds. More specifically, in this comparison step, in addition to comparing whether the previous multiple times are also out-of-bounds, the comprehensive evaluation method is to compare with the out-of-bounds distances of the previous multiple times to determine whether the out-of-bounds distance is getting larger and larger. If there are several out-of-bounds in the previous multiple times, and the out-of-bounds distance also tends to increase, then the out-of-bounds result this time is a factual out-of-bounds.
[0067] In an optional implementation of the first aspect of the present invention, the comprehensive evaluation based on the current vehicle out-of-bounds judgment result and several historical vehicle out-of-bounds judgment results to obtain the actual out-of-bounds result of the shared vehicle includes: generating a voice reminder and / or a control action in response to the actual out-of-bounds result of the shared vehicle; sending the voice reminder information and / or the control action to the vehicle central control for execution. In the present invention, if the actual out-of-bounds result is determined to be that the vehicle has ridden out of the operating area, a reminder and control action may be performed on the vehicle, wherein the reminder includes: playing a voice to remind the user; the control action includes powering off the vehicle or configuring the handlebar to be invalid.
[0068] In brief summary, the general idea of the method for judging whether a shared vehicle is out of bounds can be summarized as follows:
[0069] 1. The motorcycle reports its current real-time location to the server through the network.
[0070] 2. After receiving the location information, the server formats the location information (stores the central control unique ID, location time, location latitude and longitude, speed, altitude, vehicle status and other information using a unified data structure, and then serializes JSON into a string), and then uses Rabbitmq's routing mode to push the message to a specific routing key on a specific switch (that is, pushes it to a specified message queue for location processing service subscription reading).
[0071] 3. The location information processing service subscribes to the location message and receives the location information for processing. Step 3 specifically includes the following:
[0072] First, the corresponding vehicle information and operating area fence information are obtained from the cache according to the central control unique ID in the location information;
[0073] Then, the corresponding computing context (a data structure containing the original information of the previous location point, the distance between the previous location point and the fence, the status between the previous location point and the fence, etc.) is obtained from the cache according to the unique ID of the central control.
[0074] Then, based on the location information reported by the device and the fence information of the operating area, the distance between the current location and the fence and the status between the current location and the fence (inside the fence\outside the fence) are calculated.
[0075] Then the distance between the position and the fence is determined. If the distance between the current position and the fence is greater than the distance between the previous position and the fence;
[0076] Then the status of the previous position is determined. If multiple previous position points are outside the fence, it is considered that the vehicle has been ridden out of the operating area, and the vehicle can be reminded and controlled. Reminders include: playing voice reminders to the user; control actions include: powering off the vehicle or configuring the handlebar to be invalid.
[0077] Finally, the calculation context of the current location is updated to the cache. This solution can reduce the probability of misjudgment of riding out of the fence of the operating area and improve the user experience.
[0078] See also Figure 2 The second aspect of the present invention provides a system for judging whether a shared vehicle has traveled out of bounds, the system comprising a vehicle central control 10 and a server 20:
[0079] The vehicle central control comprises:
[0080] A connection module is used to establish a network connection between the vehicle central control and the server;
[0081] A collection module, used to collect information related to the vehicle position and the vehicle status in real time through the vehicle central control;
[0082] An uploading module, used to upload the central control identification of the vehicle central control, the vehicle location related information and the vehicle status related information to the server;
[0083] The server comprises:
[0084] The current result judgment module is used to obtain the current vehicle out-of-bounds judgment result in the server based on the central control identification of the vehicle central control, the vehicle position related information and the vehicle status related information;
[0085] A historical result acquisition module is used to obtain the historical vehicle position-related information and the historical vehicle status-related information of several consecutive times before this time from the cache of the server if the current vehicle out-of-bounds judgment result is that the shared vehicle is out-of-bounds, and obtain several historical vehicle out-of-bounds judgment results based on the several historical vehicle position-related information and the several historical vehicle status-related information;
[0086] The comprehensive evaluation module is used to comprehensively evaluate the actual out-of-bounds result of the shared vehicle based on the current vehicle out-of-bounds judgment result and several historical vehicle out-of-bounds judgment results.
[0087] In an optional implementation of the second aspect of the present invention, the current result judgment module includes:
[0088] An area information acquisition unit, configured to obtain, in the server, fence area information of the shared vehicle according to the central control identifier;
[0089] A fence inside / outside judgment unit, configured to obtain the fence inside / outside information of the shared vehicle based on the vehicle position related information and the fence area information;
[0090] a direction acquisition unit, configured to further acquire the driving direction of the shared vehicle from the vehicle state related information if the information about the inside and outside of the fence where the shared vehicle is currently located indicates that the shared vehicle is outside the fence;
[0091] A distance calculation unit, configured to calculate the distance between the shared vehicle and the fence boundary based on the driving direction, the vehicle position related information and the fence area information;
[0092] The cache unit is used to record the information of the shared vehicle inside and outside the fence and the distance into the cache of the server.
[0093] In an optional implementation manner of the second aspect of the present invention, the fence inside and outside judgment unit includes:
[0094] An equation set acquisition subunit, used for acquiring a general equation set of boundary lines of the fence area based on the position point set in the fence area information;
[0095] A target equation acquisition subunit is used to obtain a target boundary line general equation from the boundary line general equation set based on the longitude and latitude in the vehicle position related information;
[0096] An equation calculation subunit, used for substituting the longitude and the latitude into the function part of the general equation of the target boundary line to obtain a calculated value;
[0097] The determination subunit is used to determine whether the shared vehicle is inside or outside the fence based on the positive or negative value of the calculated value.
[0098] In an optional implementation of the second aspect of the present invention, the target equation acquisition subunit includes:
[0099] The endpoint acquisition secondary unit is used to obtain the boundary endpoints corresponding to each boundary line general equation in the boundary line general equation set;
[0100] A Y value range determining secondary unit is used to obtain the Y value range of each boundary straight line general equation based on the two end points of the boundary;
[0101] A comparison secondary unit, used for comparing the latitude in the vehicle position related information with the Y value range of each of the boundary line general equations;
[0102] The equation determination secondary unit is used to obtain the target boundary line general equation from the boundary line general equation set based on the comparison result.
[0103] In an optional implementation of the second aspect of the present invention, the comprehensive evaluation module includes:
[0104] The first out-of-bounds judgment unit is used to comprehensively evaluate the actual out-of-bounds result of the shared vehicle this time and determine that the shared vehicle is out-of-bounds if the current vehicle out-of-bounds judgment result is that the shared vehicle is out-of-bounds, and there are multiple historical vehicle out-of-bounds judgment results that show that the shared vehicle is out-of-bounds among several historical vehicle out-of-bounds judgment results.
[0105] In an optional implementation manner of the second aspect of the present invention, the server further includes:
[0106] A data formatting module, used for formatting the central control identification of the vehicle central control, the vehicle location related information and the vehicle status related information in the server;
[0107] The routing module is used to route the formatted central control identification of the vehicle central control, the vehicle location related information and the vehicle status related information to the target message queue using the designated switch of the message middleware for subscription and reading by the location information processing service.
[0108] In an optional implementation manner of the second aspect of the present invention, the server includes:
[0109] A response module, used for generating a voice reminder and / or a control action in response to the actual out-of-bounds result of the shared vehicle this time;
[0110] The sending module is used to send the voice reminder information and / or the control action to the vehicle central control for execution.
[0111] Figure 3 : is a structural diagram of a server provided by an embodiment of the present invention. The server may have relatively large differences due to different configurations or performances, and may include one or more processors 30 (central processing units, CPU) (for example, one or more processors) and memories 40, and one or more storage media 50 for storing application programs or data (for example, one or more mass storage devices). Among them, the memories and storage media may be short-term storage or permanent storage. The program stored in the storage medium may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the server. Furthermore, the processor may be configured to communicate with the storage medium and execute a series of instruction operations in the storage medium on the server.
[0112] The server of the present invention may also include one or more power supplies 60, one or more wired or wireless network interfaces 70, one or more input and output interfaces 80, and / or one or more operating systems, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, etc. It will be appreciated by those skilled in the art that Figure 3 The server structure shown does not constitute a limitation on the server, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0113] The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. Instructions are stored in the computer-readable storage medium. When the instructions are executed on a computer, the computer executes the steps of the method for determining whether a shared vehicle has driven out of bounds.
[0114] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system or system or unit described above can refer to the corresponding process in the aforementioned method embodiment and will not be repeated here.
[0115] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program codes.
[0116] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for determining whether a shared vehicle has traveled out of bounds, characterized in that: include: Establish a network connection between the vehicle central control and the server; Collecting information related to the vehicle's location and status in real time through the vehicle's central control; Uploading the central control identification of the vehicle central control, the vehicle location related information and the vehicle status related information to the server; The server obtains a result of judging that the vehicle is out of bounds based on the central control identification of the vehicle central control, the vehicle position related information, and the vehicle status related information; If the current vehicle out-of-bounds judgment result is that the shared vehicle is out-of-bounds, then obtaining several consecutive historical vehicle position information and historical vehicle status information before this time from the cache of the server, and obtaining several historical vehicle out-of-bounds judgment results based on the several historical vehicle position information and the several historical vehicle status information; Based on the current vehicle out-of-bounds judgment result and several historical vehicle out-of-bounds judgment results, a comprehensive evaluation is performed to obtain the actual out-of-bounds result of the shared vehicle this time.
2. The method for determining whether a shared vehicle has driven out of bounds according to claim 1, characterized in that: The obtaining, in the server, a result of judging that the vehicle is out of bounds based on the central control identification of the vehicle central control, the vehicle position related information, and the vehicle status related information includes: In the server, fence area information of the shared vehicle is obtained according to the central control identifier; Based on the vehicle location related information and the fence area information, obtain the inside and outside information of the fence where the shared vehicle is currently located; If the information about the inside and outside of the fence where the shared vehicle is located this time indicates that it is outside the fence, the driving direction of the shared vehicle is further obtained from the information related to the vehicle status; Based on the driving direction, the vehicle position-related information and the fence area information, the distance between the shared vehicle and the fence boundary is calculated.
3. The method for judging whether a shared vehicle has traveled out of bounds according to claim 2, characterized in that: The obtaining of the information about the location of the shared vehicle and the fence area based on the vehicle location information includes: Based on the position point set in the fence area information, a general equation set of boundary lines of the fence area is obtained; Based on the longitude and latitude in the vehicle position related information, obtaining a target boundary line general equation from the boundary line general equation set; Substituting the longitude and the latitude into the function part of the general equation of the target boundary line to obtain a calculated value; Based on the positive or negative sign of the calculated value, it is determined whether the shared vehicle is inside or outside the fence this time.
4. The method for determining whether a shared vehicle has driven out of bounds according to claim 3, characterized in that: The step of obtaining the target boundary line general equation from the boundary line general equation set based on the longitude and latitude in the vehicle position related information includes: Obtaining two boundary endpoints corresponding to each boundary line general equation in the boundary line general equation set; Obtaining the Y value range of each of the boundary straight line general equations based on the two end points of the boundary; Comparing the latitude in the vehicle position related information with the Y value range of each of the boundary line general equations; A target boundary line general equation is obtained from the boundary line general equation set based on the comparison result.
5. The method for determining whether a shared vehicle has traveled out of bounds according to claim 1, characterized in that: The actual out-of-bounds result of the shared vehicle obtained by comprehensive evaluation based on the current vehicle out-of-bounds judgment result and several historical vehicle out-of-bounds judgment results includes: If the current vehicle out-of-bounds judgment result is that the shared vehicle is out-of-bounds, and there are multiple historical vehicle out-of-bounds judgment results that show that the shared vehicle is out-of-bounds, then a comprehensive assessment of the actual out-of-bounds result of the shared vehicle this time is that the shared vehicle is out-of-bounds.
6. The method for determining whether a shared vehicle has traveled out of bounds according to claim 1, characterized in that: The step of obtaining the vehicle out-of-bounds judgment result based on the central control identification of the vehicle central control, the vehicle position related information and the vehicle status related information in the server includes: In the server, formatting the central control identification of the vehicle central control, the vehicle location related information and the vehicle status related information; The formatted central control identification of the vehicle central control, the vehicle location-related information and the vehicle status-related information are routed to the target message queue using the designated switch of the message middleware for subscription and reading by the location information processing service.
7. The method for determining whether a shared vehicle has driven out of bounds according to claim 1, characterized in that: The method of comprehensively evaluating the actual out-of-bounds result of the shared vehicle based on the current vehicle out-of-bounds judgment result and the several historical vehicle out-of-bounds judgment results comprises: In response to the actual out-of-bounds result of the shared vehicle this time, generating a voice reminder and / or a control action; The voice reminder information and / or the control action are sent to the vehicle central control for execution.
8. A system for judging whether a shared vehicle has driven out of bounds, characterized in that: The shared vehicle out-of-bounds judgment system includes a vehicle central control and a server: The vehicle central control comprises: A connection module is used to establish a network connection between the vehicle central control and the server; A collection module, used to collect information related to the vehicle position and the vehicle status in real time through the vehicle central control; An uploading module, used to upload the central control identification of the vehicle central control, the vehicle location related information and the vehicle status related information to the server; The server comprises: The current result judgment module is used to obtain the current vehicle out-of-bounds judgment result in the server based on the central control identification of the vehicle central control, the vehicle position related information and the vehicle status related information; A historical result acquisition module is used to obtain the historical vehicle position-related information and the historical vehicle status-related information of several consecutive times before this time from the cache of the server if the current vehicle out-of-bounds judgment result is that the shared vehicle is out-of-bounds, and obtain several historical vehicle out-of-bounds judgment results based on the several historical vehicle position-related information and the several historical vehicle status-related information; The comprehensive evaluation module is used to comprehensively evaluate the actual out-of-bounds result of the shared vehicle based on the current vehicle out-of-bounds judgment result and several historical vehicle out-of-bounds judgment results.
9. A server, characterized in that: The server comprises: a memory and at least one processor, the memory stores instructions, and the memory and the at least one processor are interconnected via a line; The at least one processor calls the instructions in the memory so that the server executes the method for determining whether a shared vehicle has driven out of bounds as described in any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for determining whether a shared vehicle has driven out of bounds as described in any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Line deviation identification method based on car-mounted terminal position data
CN103712627A
Electronic fence control system and method
CN108898826A
Method for judging entry and exit of bus based on electronic fence of bus stop
CN109859514A
Vehicle control method and device, vehicle, computer equipment and storage medium
CN110723103A
Vehicle control method and system
CN111332403A
