Early warning method, device and system and storage medium

By separating service groups by geographical area in the shared cache in the field of autonomous driving, the problems of waste and low processing efficiency of traditional early warning service resources are solved, and more efficient resource utilization and processing efficiency are achieved.

CN119893471APending Publication Date: 2025-04-25TUS CLOUD CONTROL (BEIJING) TECH LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411944984.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-26
Publication Date
2025-04-25

AI Technical Summary

Technical Problem

In the field of autonomous driving, traditional early warning services have low resource utilization and processing efficiency due to the problems of waste of resources and low processing efficiency.

Method used

By separating geographical areas in the shared cache, each service group is responsible for storing and managing map data for specific areas, enabling quick query and accurate push of early warning information.

Benefits of technology

It improves the resource utilization and processing efficiency of early warning services, reduces invalid data processing, and enhances the scalability and response speed of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119893471A_ABST
    Figure CN119893471A_ABST
Patent Text Reader

Abstract

The invention discloses an early warning method, device and system and a storage medium, which are used for improving the processing efficiency of an early warning service. The method comprises the steps that when it is detected that a traffic event of a preset type occurs at a target position, a target early warning service matched with the traffic event type is determined; according to the target early warning service, a target service group where the target position is located in a shared cache is judged, the shared cache is composed of a plurality of service groups, and each service group is used for storing part of map data in a preset area; accessing the target service group, and obtaining a network connection vehicle list in a preset range with a target position as a center from the target service group; and sending an early warning service to a network connection vehicle corresponding to the network connection vehicle list to inform the network connection vehicle corresponding to the network connection vehicle list that a preset type of traffic event occurs at the target position. By adopting the scheme, the resource utilization rate and the processing efficiency of the early warning service can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of intelligent early warning technology, and in particular to an early warning method, device, system and storage medium. Background Art

[0002] In the field of autonomous driving, the "event perception and warning service" in the cloud control basic platform is based on roadside perception target data for traffic event recognition and calculation. After the event is generated, the event is issued based on the connected vehicles within the center point and radius query range as target vehicles. In order to improve the query performance of roadside perception target data, it is often necessary to cache it in real time. Traditional solutions such as built-in cache in service processes can obtain the latest perception data, but because multiple event perception and warning services need to load a copy of map data and repeatedly consume perception target data, it causes a waste of resources. In addition, a single process handles high-load data streams, limiting query speed and system scalability.

[0003] Therefore, how to provide an early warning method to improve the resource utilization and processing efficiency of early warning services. Summary of the invention

[0004] The present application provides an early warning method, device, system and storage medium for improving resource utilization and processing efficiency of early warning services.

[0005] The present application provides an early warning method, comprising:

[0006] When a traffic event of a preset type is detected at a target location, a target warning service matching the traffic event type is determined;

[0007] Determine the target service group where the target location is located in the shared cache according to the target warning service, wherein the shared cache is composed of a plurality of service groups, each service group being used to store part of the map data in a preset area;

[0008] Access the target service group, and obtain a list of connected vehicles within a preset range centered on the target location from the target service group;

[0009] Send an early warning service to the connected vehicles corresponding to the connected vehicle list to inform the connected vehicles corresponding to the connected vehicle list that a traffic event of a preset type has occurred at the target location.

[0010] The beneficial effects of the present application are: when a traffic event of a preset type is detected at the target location, a target warning service matching the traffic event type is determined to start the corresponding warning service; and then the target service group where the target location is located in the shared cache is determined according to the target warning service to locate the target service group. The target service group is accessed, and a quick query is performed within the located target service group to obtain a list of connected vehicles within a preset range centered on the target location from the target service group; a warning service is sent to the connected vehicle corresponding to the connected vehicle list to inform the connected vehicle corresponding to the connected vehicle list that a traffic event of a preset type has occurred at the target location, thereby accurately pushing warning information. In the present application, since the shared cache is composed of multiple service groups, each service group is used to store part of the map data in a preset area, so that the shared cache is separated by geographical area, ensuring that each group is only responsible for the management and update of map data in a certain area, and optimizing resource allocation by subdividing service groups, reducing invalid data processing, and greatly improving system operation efficiency.

[0011] In one embodiment, determining the target service group where the target location in the shared cache is located according to the target warning service includes:

[0012] According to the Dubbo service, taking the target location as a search condition, custom routing is performed in the shared cache;

[0013] Determine that the service group in the routing result of the custom route is the target service group.

[0014] In one embodiment, performing custom routing in the shared cache includes:

[0015] Determine an intersection corresponding to the target location according to the target location;

[0016] Determine the geographical partition corresponding to the target location according to the intersection;

[0017] Determine the Kafka partition corresponding to the target location according to the geographic partition;

[0018] Determine the service group ID corresponding to the target location according to the kafka partition.

[0019] In one embodiment, the method further comprises:

[0020] Obtain the service port corresponding to the target service group from ZK according to the target warning service;

[0021] A connection between the target warning service and the target service group is established according to the service port corresponding to the target service group.

[0022] In one embodiment, the method further comprises:

[0023] When receiving a task to establish a shared cache of a preset area, obtaining intersection data of the preset area;

[0024] Geographically partitioning the intersection data, wherein one geographical partition includes a plurality of intersections;

[0025] Merge a preset number of adjacent geographic partitions to form multiple Kafka partitions;

[0026] The multiple Kafka partitions are merged to form at least one service group.

[0027] In one embodiment, the method further comprises:

[0028] After at least one service group is formed, a service port corresponding to the service group is generated, wherein each service group corresponds to one service port;

[0029] Register all generated service ports in ZK.

[0030] In one embodiment, each service group includes multiple service instances, and accessing the target service group includes:

[0031] Performing random access to multiple service instances in the target service group;

[0032] When the accessed service instance does not respond, it is routed to other service instances in the target service group for access.

[0033] The present application also provides an early warning device, comprising:

[0034] A determination module, for determining a target warning service matching the traffic event type when a traffic event of a preset type is detected at a target location;

[0035] A determination module, configured to determine the target service group where the target location is located in the shared cache according to the target warning service, wherein the shared cache is composed of a plurality of service groups, each service group being used to store part of the map data in a preset area;

[0036] An access module, used to access the target service group and obtain a list of connected vehicles within a preset range centered on a target location from the target service group;

[0037] The sending module is used to send an early warning service to the connected vehicle corresponding to the connected vehicle list to inform the connected vehicle corresponding to the connected vehicle list that a traffic event of a preset type occurs at the target location.

[0038] In one embodiment, the judgment module includes:

[0039] A first routing submodule, configured to perform custom routing in the shared cache based on the Dubbo service with the target location as a search condition;

[0040] The determination submodule is used to determine that the service group in the routing result of the custom route is the target service group.

[0041] In one embodiment, the routing submodule is further used to:

[0042] Determine an intersection corresponding to the target location according to the target location;

[0043] Determine the geographical partition corresponding to the target location according to the intersection;

[0044] Determine the Kafka partition corresponding to the target location according to the geographic partition;

[0045] Determine the service group ID corresponding to the target location according to the kafka partition.

[0046] In one embodiment, the apparatus further comprises:

[0047] A first acquisition module, configured to acquire a service port corresponding to a target service group from ZK according to the target warning service;

[0048] The connection module is used to establish a connection between the target warning service and the target service group according to the service port corresponding to the target service group.

[0049] In one embodiment, the apparatus further comprises:

[0050] A second acquisition module, configured to acquire the intersection data of the preset area when receiving a task of establishing a shared cache of the preset area;

[0051] A partitioning module, used for geographically partitioning the intersection data, wherein one geographical partition includes a plurality of intersections;

[0052] A first merging module, used to merge a preset number of adjacent geographic partitions to form multiple Kafka partitions;

[0053] The second merging module is used to merge the multiple Kafka partitions to form at least one service group.

[0054] In one embodiment, the apparatus further comprises:

[0055] A generating module, configured to generate a service port corresponding to the service group after at least one service group is formed, wherein each service group corresponds to one service port;

[0056] The registration module is used to register all generated service ports in ZK.

[0057] In one embodiment, each service group includes multiple service instances, and the access module includes:

[0058] An access submodule, used for randomly accessing multiple service instances in the target service group;

[0059] The second routing submodule is used to route to other service instances in the target service group for access when the accessed service instance does not respond.

[0060] The present application also provides an early warning system, comprising:

[0061] at least one processor; and,

[0062] a memory communicatively connected to the at least one processor; wherein,

[0063] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to implement the early warning method recorded in any of the above embodiments.

[0064] The present application also provides a computer-readable storage medium. When the instructions in the storage medium are executed by a processor corresponding to the early warning system, the early warning system can implement the early warning method recorded in any of the above embodiments.

[0065] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings.

[0066] The technical solution of the present application is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0067] The accompanying drawings are used to provide a further understanding of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the present application and do not constitute a limitation of the present application. In the accompanying drawings:

[0068] Figure 1 This is a process of an early warning method in an embodiment of the present application;

[0069] Figure 2 This is a schematic diagram of roadside sensing target cache sharing in one embodiment of the present application;

[0070] Figure 3This is a schematic diagram of roadside sensing target cache data storage and access in one embodiment of the present application;

[0071] Figure 4 This is a structural schematic diagram of an early warning device in one embodiment of the present application;

[0072] Figure 5 The figure is a schematic diagram of the hardware structure of an early warning system in one embodiment of the present application. DETAILED DESCRIPTION

[0073] The preferred embodiments of the present application are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present application and are not used to limit the present application.

[0074] Figure 1 Flow chart of an early warning method in one embodiment of the present application, such as Figure 1 As shown, the method can be implemented as the following steps S101-S104:

[0075] In step S101, when a traffic event of a preset type is detected at a target location, a target warning service matching the traffic event type is determined;

[0076] In step S102, the target service group where the target location is located in the shared cache is determined according to the target warning service, wherein the shared cache is composed of a plurality of service groups, each service group being used to store part of the map data in a preset area;

[0077] In step S103, the target service group is accessed, and a list of connected vehicles within a preset range centered on the target location is obtained from the target service group;

[0078] In step S104, a warning service is sent to the connected vehicles corresponding to the connected vehicle list to inform the connected vehicles corresponding to the connected vehicle list that a traffic event of a preset type occurs at the target location.

[0079] In this application, when a traffic event of a preset type is detected at the target location, a target warning service matching the traffic event type is determined. In this application, multiple warning services are customized for different scenarios in advance. When a specific type of traffic event (such as a traffic accident, road construction, weather disaster, etc.) is monitored, the corresponding target warning service needs to be quickly started.

[0080] According to the target warning service, the target service group where the target location is located in the shared cache is determined, wherein the shared cache is composed of multiple service groups, each of which is used to store part of the map data in the preset area. In the present application, each service group stores map data and other important information related to the area it covers, so that each area has its own data management and query point, which speeds up the response time. In one embodiment of the present application, when the data is shared and cached, the intersection data of the preset area is obtained, and the intersection data is geographically partitioned, wherein a geographical partition contains multiple intersections; in order to improve data processing efficiency, the present application partitions the data through kafka partitions, wherein Kafka is a distributed message queue system, a high-throughput, distributed, and scalable message publishing-subscription platform, used in real-time data stream processing and event-driven architecture, supports the same topic data partition storage, and disperses the data into multiple partitions to support multiple clients to consume different partitions at the same time without affecting each other, thereby achieving high concurrency and high-performance access in the case of large data scale. Based on this, the present application writes PDF data into the corresponding kafka partition according to the mapping relationship between the geographical partition id and the kafka partition id configuration. Finally, the multiple Kafka partitions are merged to form at least one service group.

[0081] After storing data through the aforementioned shared cache, this application determines the target service group ID based on the Dubbo service. Among them, Dubbo is a high-performance, Java-based RPC (remote procedure call) framework, which is widely used in distributed systems and microservice architectures. It provides efficient service calling capabilities, and supports service registration and discovery, load balancing, fault-tolerant processing and other functions. It is one of the important tools for building microservices. Therefore, when judging the target service group where the target location is located in the shared cache, according to the Dubbo service, the target location is used as a retrieval condition, and custom routing is performed in the shared cache. Among them, first, the intersection corresponding to the target location is determined according to the target location; secondly, the geographical partition corresponding to the target location is determined according to the intersection; then, the kafka partition corresponding to the target location is determined according to the geographical partition; and then the service group ID corresponding to the target location is determined according to the kafka partition. Then, the service group in the routing result of the custom route is determined to be the target service group.

[0082] Access the target service group and obtain a list of connected vehicles within a preset range centered on the target location from the target service group. Perform random access to multiple service instances in the target service group; for any instance in the target service group, initiate a request by random selection. This non-directional selection helps to distribute the load and prevent overloading of certain instances. When the accessed service instance does not respond, route to other service instances in the target service group for access.

[0083] Finally, a warning service is sent to the connected vehicles corresponding to the connected vehicle list to inform the connected vehicles corresponding to the connected vehicle list that a traffic event of a preset type has occurred at the target location.

[0084] This application decouples cache management and query from specific business by implementing a "shared cache service". Only one copy of map data needs to be loaded, saving memory resources. In addition, when the amount of business data increases, it can support horizontal expansion and group data.

[0085] Figure 2 Schematic diagram of roadside sensing target cache sharing in one embodiment of the present application, Figure 3 Schematic diagram of roadside sensing target cache data storage and access in one embodiment of the present application, as shown in Figure 2 and Figure 3 As shown, in the shared cache of the present application, the PDF data (data after fusion of roadside perception targets) will geographically partition the intersections, wherein one geographical partition contains multiple intersections; then, according to the mapping relationship between the geographical partition id and the kafka partition id configuration, the PDF data is written to the corresponding kafka partition, wherein kafka is a distributed message queue system. Afterwards, according to the pre-set mapping relationship between the kafka partition and the service group, the multiple kafka partitions are merged to form a corresponding service group, wherein the service group is determined in advance whether the service grouping is required and how many groups it needs to be divided into according to the data scale before the service is deployed, and each group can contain multiple service instances to ensure high availability (load balancing), and multiple service instances in the same group have the same group id, and each service group will consume the PDF data of the specified part of the partition and cache it in memory. In the present application, after the service is started, it will register with ZK (Zookeeper, a distributed coordination service), and after the event perception and warning service is started, it will obtain the service information of each group from ZK. When the event perception and warning service needs to query PDF data, it will obtain the corresponding intersection number based on the current vehicle position, and then obtain the corresponding kafka partition id. According to the partition id, it can be routed to the corresponding service group and perform an RPC (Remote Procedure Call) call to obtain the query results.

[0086] For this application, data can also be cached through the open source memory database Redis to support spatial queries.

[0087] This application decouples cache query implementation from specific business, making it easier to maintain and expand. Avoid repeated loading of the same resources, which causes waste of memory and other resources. Support data grouping in the case of large data scale, each group of services only loads part of the data, and specifies the service instance group according to the custom routing query when the service is called, realizing horizontal expansion and load balancing.

[0088] The beneficial effects of the present application are: when a traffic event of a preset type is detected at the target location, a target warning service matching the traffic event type is determined to start the corresponding warning service; and then the target service group where the target location is located in the shared cache is determined according to the target warning service to locate the target service group. The target service group is accessed, and a quick query is performed within the located target service group to obtain a list of connected vehicles within a preset range centered on the target location from the target service group; a warning service is sent to the connected vehicle corresponding to the connected vehicle list to inform the connected vehicle corresponding to the connected vehicle list that a traffic event of a preset type has occurred at the target location, thereby accurately pushing warning information. In the present application, since the shared cache is composed of multiple service groups, each service group is used to store part of the map data in a preset area, so that the shared cache is separated by geographical area, ensuring that each group is only responsible for the management and update of map data in a certain area, and optimizing resource allocation by subdividing service groups, reducing invalid data processing, and greatly improving system operation efficiency.

[0089] In one embodiment, the above step S102 may be implemented as the following steps A1-A2:

[0090] In step A1, according to the Dubbo service, a custom route is performed in the shared cache using the target location as a search condition;

[0091] In step A2, it is determined that the service group in the routing result of the custom routing is the target service group.

[0092] In one embodiment, the above step A1 may be implemented as the following steps A11-A14:

[0093] In step A11, an intersection corresponding to the target position is determined according to the target position;

[0094] In step A12, a geographical partition corresponding to the target location is determined according to the intersection;

[0095] In step A13, the Kafka partition corresponding to the target location is determined according to the geographical partition;

[0096] In step A14, the service group ID corresponding to the target location is determined according to the kafka partition.

[0097] In one embodiment, the method can also be implemented as the following steps B1-B2:

[0098] In step B1, the service port corresponding to the target service group is obtained from ZK according to the target warning service;

[0099] In step B2, a connection between the target warning service and the target service group is established according to the service port corresponding to the target service group.

[0100] In this embodiment, the service port corresponding to the target service group is obtained from ZK according to the target warning service. In this application, the corresponding service group is pre-registered in Zookeeper, so according to the requirements of the target warning service, the service port information bound to the corresponding service group is accurately retrieved from Zookeeper.

[0101] A connection between the target warning service and the target service group is established according to the service port corresponding to the target service group, thereby achieving effective deployment and immediate response of the traffic incident warning service.

[0102] In one embodiment, the method can also be implemented as the following steps C1-C4:

[0103] In step C1, when a task to establish a shared cache of a preset area is received, the intersection data of the preset area is obtained;

[0104] In step C2, the intersection data is geographically partitioned, wherein one geographical partition includes a plurality of intersections;

[0105] In step C3, a preset number of adjacent geographic partitions are merged to form multiple Kafka partitions;

[0106] In step C4, the multiple Kafka partitions are merged to form at least one service group.

[0107] In this embodiment, when a task to establish a shared cache in a preset area is received, the intersection data of the preset area is acquired so as to subsequently construct a shared cache based on the intersection data.

[0108] The intersection data is divided into geographic regions, wherein one geographic region includes multiple intersections. That is, the collected intersection data is spatially divided, and each geographic region includes several intersections, so as to ensure clear geographic logic and facilitate subsequent data organization.

[0109] Merge a preset number of adjacent geographic partitions to form multiple Kafka partitions. Specifically, according to the mapping relationship between the geographic partition ID and the Kafka partition ID, write the PDF data to the corresponding Kafka partition. By combining a preset number of adjacent geographic partitions, a Kafka partition unit is constructed, which is conducive to the uniform distribution and processing of data streams.

[0110] The multiple Kafka partitions are merged to form at least one service group. The aforementioned Kafka partitions are further aggregated to form a service group structure, aiming to balance the workload and promote efficient data flow.

[0111] In this embodiment, through geographic partitioning, data is closer to the physical space layout, which facilitates the rapid location and retrieval of local hotspot data, and improves data processing efficiency by optimizing data distribution. In addition, Kafka partitions are combined with service groups to allow the system to flexibly adjust as data grows, ensuring high performance while facilitating horizontal expansion.

[0112] In one embodiment, the method can also be implemented as the following steps D1-D2:

[0113] In step D1, after at least one service group is formed, a service port corresponding to the service group is generated, wherein each service group corresponds to one service port;

[0114] In step D2, all generated service ports are registered in ZK.

[0115] After the service group is built, in order to make it visible and available in the network environment, data exchange and function call can be realized. When at least one service group is formed, a service port corresponding to the service group is generated, wherein each service group corresponds to a service port. For each service group, a unique service port is created, which serves as the interface for the group to communicate externally and carries the task of data interaction and control signals.

[0116] Then, register all generated service ports in ZK. ZK is the abbreviation of Zookeeper, which is a distributed coordination service that provides a complete set of naming, configuration, cluster management and other functions. Register all newly generated service port information in Zookeeper to achieve service discovery and dynamic routing.

[0117] In one embodiment, each service group includes multiple service instances, and the above step S103 can be implemented as the following steps E1-E2:

[0118] In step E1, a plurality of service instances in the target service group are randomly accessed;

[0119] In step E2, when the accessed service instance does not respond, the access is routed to other service instances in the target service group.

[0120] In this embodiment, multiple service instances in the target service group are randomly accessed. For any instance in the target service group, a request is initiated by random selection. This non-directional selection helps to distribute the load and prevent overloading of certain instances.

[0121] When the accessed service instance does not respond, it is routed to other service instances in the target service group for access. If the service instance accessed for the first time fails to respond, it is considered a temporary or permanent failure, and the request is immediately transferred to other instances in the same group. This process is implemented automatically without manual intervention, ensuring continuity and user experience.

[0122] Furthermore, through intelligent switching, even if individual instances have abnormalities, the overall service can still maintain normal operation, greatly improving the robustness of the system.

[0123] Figure 4 Schematic diagram of the structure of an early warning device in one embodiment of the present application. Figure 4 As shown, the device comprises:

[0124] A determination module 401 is used to determine a target warning service matching the traffic event type when a traffic event of a preset type is detected at a target location;

[0125] A determination module 402 is used to determine the target service group where the target location is located in the shared cache according to the target warning service, wherein the shared cache is composed of multiple service groups, each service group is used to store part of the map data in a preset area;

[0126] An access module 403 is used to access the target service group and obtain a list of connected vehicles within a preset range centered on a target location from the target service group;

[0127] The sending module 404 is used to send a warning service to the connected vehicle corresponding to the connected vehicle list to inform the connected vehicle corresponding to the connected vehicle list that a traffic event of a preset type occurs at the target location.

[0128] In one embodiment, the determination module includes:

[0129] A first routing submodule, configured to perform custom routing in the shared cache based on the Dubbo service with the target location as a search condition;

[0130] The determination submodule is used to determine that the service group in the routing result of the custom route is the target service group.

[0131] In one embodiment, the routing submodule is further used to:

[0132] Determine an intersection corresponding to the target location according to the target location;

[0133] Determine the geographical partition corresponding to the target location according to the intersection;

[0134] Determine the Kafka partition corresponding to the target location according to the geographic partition;

[0135] Determine the service group ID corresponding to the target location according to the kafka partition.

[0136] In one embodiment, the apparatus further comprises:

[0137] A first acquisition module, configured to acquire a service port corresponding to a target service group from ZK according to the target warning service;

[0138] The connection module is used to establish a connection between the target warning service and the target service group according to the service port corresponding to the target service group.

[0139] In one embodiment, the apparatus further comprises:

[0140] A second acquisition module, configured to acquire the intersection data of the preset area when receiving a task of establishing a shared cache of the preset area;

[0141] A partitioning module, used for geographically partitioning the intersection data, wherein one geographical partition includes a plurality of intersections;

[0142] A first merging module, used to merge a preset number of adjacent geographic partitions to form multiple Kafka partitions;

[0143] The second merging module is used to merge the multiple Kafka partitions to form at least one service group.

[0144] In one embodiment, the apparatus further comprises:

[0145] A generating module, configured to generate a service port corresponding to the service group after at least one service group is formed, wherein each service group corresponds to one service port;

[0146] The registration module is used to register all generated service ports in ZK.

[0147] In one embodiment, each service group includes multiple service instances, and the access module includes:

[0148] An access submodule, used for randomly accessing multiple service instances in the target service group;

[0149] The second routing submodule is used to route to other service instances in the target service group for access when the accessed service instance does not respond.

[0150] Figure 5 FIG. 1 is a schematic diagram of the hardware structure of an early warning system in one embodiment of the present application. Figure 5 As shown, the early warning system comprises:

[0151] at least one processor 520; and,

[0152] A memory 504 in communication with the at least one processor 520; wherein,

[0153] The memory 504 stores instructions that can be executed by the at least one processor 520, and the instructions are executed by the at least one processor 520 to implement the early warning method recorded in any of the above embodiments.

[0154] Reference Figure 5 , the warning system 500 may include one or more of the following components: a processing component 502, a memory 504, a power component 506, a multimedia component 508, an audio component 510, an input / output (I / O) interface 512, a sensor component 514, and a communication component 516.

[0155] The processing component 502 generally controls the overall operation of the early warning system 500. The processing component 502 may include one or more processors 520 to execute instructions to complete all or part of the steps of the above method. In addition, the processing component 502 may include one or more modules to facilitate the interaction between the processing component 502 and other components. For example, the processing component 502 may include a multimedia module to facilitate the interaction between the multimedia component 508 and the processing component 502.

[0156] The memory 504 is configured to store various types of data to support the operation of the early warning system 500. Examples of such data include instructions for any application or method operating on the early warning system 500, such as text, pictures, videos, etc. The memory 504 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0157] The power supply component 506 provides power to the various components of the early warning system 500. The power supply component 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the early warning system 500.

[0158] The multimedia component 508 includes a screen that provides an output interface between the early warning system 500 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 508 may also include a front camera and / or a rear camera. When the early warning system 500 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0159] The audio component 510 is configured to output and / or input audio signals. For example, the audio component 510 includes a microphone (MIC), and when the early warning system 500 is in an operation mode, such as an alarm mode, a recording mode, a voice recognition mode, and a voice output mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 504 or sent via the communication component 516. In some embodiments, the audio component 510 also includes a speaker for outputting audio signals.

[0160] I / O interface 512 provides an interface between processing component 502 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0161] The sensor assembly 514 includes one or more sensors for providing various aspects of status assessment for the early warning system 500. For example, the sensor assembly 514 may include a sound sensor. In addition, the sensor assembly 514 may detect the on / off state of the early warning system 500, the relative positioning of components, such as the display and keypad of the early warning system 500, and the sensor assembly 514 may also detect the operating state of the early warning system 500 or a component of the early warning system 500, the orientation or acceleration / deceleration of the early warning system 500, and the temperature change of the early warning system 500. The sensor assembly 514 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 514 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 514 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, or a temperature sensor.

[0162] The communication component 516 is configured to enable the early warning system 500 to provide the ability to communicate with other devices and cloud platforms in a wired or wireless manner. The early warning system 500 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 516 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 516 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0163] In an exemplary embodiment, the early warning system 500 can be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PIds), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to execute the early warning method described in any of the above embodiments.

[0164] The present application also provides a computer-readable storage medium. When the instructions in the storage medium are executed by a processor corresponding to the early warning system, the early warning system can implement the early warning method recorded in any of the above embodiments.

[0165] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) that contain computer-usable program code.

[0166] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0167] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0168] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0169] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. An early warning method, characterized in that: include: When a traffic event of a preset type is detected at a target location, a target warning service matching the traffic event type is determined; Determine the target service group where the target location is located in the shared cache according to the target warning service, wherein the shared cache is composed of a plurality of service groups, each service group being used to store part of the map data in a preset area; Access the target service group, and obtain a list of connected vehicles within a preset range centered on the target location from the target service group; Send an early warning service to the connected vehicles corresponding to the connected vehicle list to inform the connected vehicles corresponding to the connected vehicle list that a traffic event of a preset type has occurred at the target location.

2. The method according to claim 1, characterized in that The step of determining the target service group where the target location in the shared cache is located according to the target warning service includes: According to the Dubbo service, taking the target location as a search condition, custom routing is performed in the shared cache; Determine that the service group in the routing result of the custom route is the target service group.

3. The method according to claim 2, characterized in that The performing of custom routing in the shared cache includes: Determine an intersection corresponding to the target location according to the target location; Determine the geographical partition corresponding to the target location according to the intersection; Determine the Kafka partition corresponding to the target location according to the geographic partition; Determine the service group ID corresponding to the target location according to the kafka partition.

4. The method according to claim 1, characterized in that The method further comprises: Obtain the service port corresponding to the target service group from ZK according to the target warning service; A connection between the target warning service and the target service group is established according to the service port corresponding to the target service group.

5. The method according to claim 1, characterized in that The method further comprises: When receiving a task to establish a shared cache of a preset area, obtaining intersection data of the preset area; Geographically partitioning the intersection data, wherein one geographical partition includes a plurality of intersections; Merge a preset number of adjacent geographic partitions to form multiple Kafka partitions; The multiple Kafka partitions are merged to form at least one service group.

6. The method according to claim 1, characterized in that The method further comprises: After at least one service group is formed, a service port corresponding to the service group is generated, wherein each service group corresponds to one service port; Register all generated service ports in ZK.

7. The method according to claim 1, characterized in that Each service group includes multiple service instances, and accessing the target service group includes: Performing random access to multiple service instances in the target service group; When the accessed service instance does not respond, it is routed to other service instances in the target service group for access.

8. An early warning device, characterized in that: include: A determination module, for determining a target warning service matching the traffic event type when a traffic event of a preset type is detected at a target location; A determination module, configured to determine the target service group where the target location is located in the shared cache according to the target warning service, wherein the shared cache is composed of a plurality of service groups, each service group being used to store part of the map data in a preset area; An access module, used to access the target service group and obtain a list of connected vehicles within a preset range centered on a target location from the target service group; The sending module is used to send an early warning service to the connected vehicle corresponding to the connected vehicle list to inform the connected vehicle corresponding to the connected vehicle list that a traffic event of a preset type occurs at the target location.

9. An early warning system, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to implement the early warning method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: When the instructions in the storage medium are executed by a processor corresponding to the early warning system, the early warning system can implement the early warning method as described in any one of claims 1 to 7.