CN112097785A - Vehicle-mounted intelligent device data processing method and device and electronic device - Google Patents

Vehicle-mounted intelligent device data processing method and device and electronic device Download PDF

Info

Publication number
CN112097785A
CN112097785A CN202011254994.1A CN202011254994A CN112097785A CN 112097785 A CN112097785 A CN 112097785A CN 202011254994 A CN202011254994 A CN 202011254994A CN 112097785 A CN112097785 A CN 112097785A
Authority
CN
China
Prior art keywords
map data
vehicle
version number
module
stored
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011254994.1A
Other languages
Chinese (zh)
Other versions
CN112097785B (en
Inventor
贾双成
朱磊
孟鹏飞
王斌
张现法
贾郭峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mushroom Car Union Information Technology Co Ltd
Original Assignee
Mushroom Car Union Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mushroom Car Union Information Technology Co Ltd filed Critical Mushroom Car Union Information Technology Co Ltd
Priority to CN202011254994.1A priority Critical patent/CN112097785B/en
Publication of CN112097785A publication Critical patent/CN112097785A/en
Application granted granted Critical
Publication of CN112097785B publication Critical patent/CN112097785B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C21/00Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
    • G01C21/26Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network
    • G01C21/34Route searching; Route guidance
    • G01C21/3407Route searching; Route guidance specially adapted for specific applications
    • G01C21/3415Dynamic re-routing, e.g. recalculating the route when the user deviates from calculated route or after detecting real-time traffic data or accidents
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C21/00Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
    • G01C21/26Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network
    • G01C21/28Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network with correlation of data from several navigational instruments
    • G01C21/30Map- or contour-matching
    • G01C21/32Structuring or formatting of map data

Abstract

The application relates to a method and a device for processing data of vehicle-mounted intelligent equipment and electronic equipment. The method comprises the following steps: receiving a request containing position information of the vehicle-mounted intelligent device; according to the position information in the request, whether a cache region of the server stores map data corresponding to the position information is searched, wherein the map data are stored in the cache region according to a preset module; and if the corresponding map data stored according to the preset module is stored in the cache region, sending the map data to the vehicle-mounted intelligent equipment for displaying. In the method, the corresponding map data is searched in a cache region of the server in a targeted manner, so that the searching efficiency is improved, the display speed is improved, the map data of the server is updated more timely, and the accuracy of the displayed map data is ensured; in addition, the map data are stored in a classified mode according to the preset modules, so that the data are convenient to search and obtain quickly, and the display efficiency is further improved.

Description

Vehicle-mounted intelligent device data processing method and device and electronic device
Technical Field
The application relates to the field of navigation, in particular to a method and a device for processing data of vehicle-mounted intelligent equipment and electronic equipment.
Background
People can carry out positioning and route navigation through vehicle navigation, and the convenience of traffic is greatly improved. In the related art, two methods are generally adopted to obtain map data of an electronic map during navigation. One of them is that the vehicle navigation generally stores an electronic map in advance, but with the advance of city construction, surrounding buildings or roads change irregularly, so that the map data in the vehicle navigation is in a lagging state, and the latest map data cannot be provided for users, which affects the accuracy of the position. In another method, the vehicle navigation acquires the latest map data from a server through a network, and an electronic map is stored in a hard disk of the server in advance.
Because the map data volume is large, the data search is directly carried out on the hard disk of the server, the search efficiency is low, and the acquisition of the map data is delayed.
Disclosure of Invention
In order to solve the problems in the related art, the application provides a method and a device for processing data of a vehicle-mounted intelligent device and an electronic device.
The application provides a processing method of vehicle-mounted intelligent equipment data in a first aspect, and the processing method comprises the following steps:
receiving a request containing position information of the vehicle-mounted intelligent device;
according to the position information in the request, whether a cache region of a server stores map data corresponding to the position information is searched, wherein the map data are stored in the cache region according to a preset module;
and if the corresponding map data stored according to the preset module is stored in the cache region of the server, sending the map data to the vehicle-mounted intelligent equipment for displaying. In one embodiment, the storing the map data in the cache area according to a preset module includes:
according to the marks and the version numbers of the map tiles, the map data of each map tile are respectively formed into corresponding file data according to a preset module and stored in a Redis database of the cache region; wherein, the preset module at least comprises one of the following modules:
BMD module, route module, POI module, name module.
In one embodiment, after the searching, according to the location information in the request, whether a cache of a server stores map data corresponding to the location information further includes:
if the cache area of the server does not store the corresponding map data stored according to the preset module, searching whether a hard disk of the server stores the corresponding map data or not;
and if the corresponding map data are stored in the hard disk, the corresponding map data are sent to the vehicle-mounted intelligent equipment for display.
In one embodiment, if the hard disk stores the corresponding map data, sending the corresponding map data to the vehicle-mounted intelligent device for display includes:
searching the latest version number of the corresponding map data from a network terminal;
comparing the existing version number of the map data of the hard disk with the latest version number;
if the current version number is the same as the latest version number, sending the map data of the hard disk to the vehicle-mounted intelligent equipment for displaying;
and if the existing version number is different from the latest version number, downloading the map data with the latest version number to the network terminal, replacing the map data with the existing version number on the hard disk, and sending the map data with the latest version number to the vehicle-mounted intelligent equipment for displaying.
In one embodiment, after searching whether the hard disk of the server stores the corresponding map data according to the preset module if the cache area of the server does not store the corresponding map data stored according to the preset module, the method further includes:
and if the corresponding map data are not stored in the hard disk, downloading the map data with the latest version number to a network terminal, storing the map data into the cache region and the hard disk, and sending the map data with the latest version number to the vehicle-mounted intelligent equipment for displaying.
In one embodiment, the method further comprises:
periodically sending a search request to the network terminal, wherein the search request is a search request of the latest version number of the map data or a search request of the map data of the latest version number; and the search request is added to a network request sending list and then sent.
The second aspect of the present application provides an apparatus for processing data of an on-vehicle smart device, the apparatus includes:
the position receiving module is used for receiving a request containing position information of the vehicle-mounted intelligent equipment;
the searching module is used for searching whether a cache region of a server stores map data corresponding to the position information or not according to the position information in the request received by the position receiving module, wherein the map data is stored in the cache region according to a preset module;
and the sending module is used for sending the map data to the vehicle-mounted intelligent equipment for displaying if the searching module finds that the corresponding map data stored according to the preset module is stored in the cache region of the server.
In one embodiment, the lookup module is further configured to:
if the cache area is found not to store the corresponding map data, the searching module searches whether a hard disk stores the corresponding map data;
if the corresponding map data is not stored in the hard disk, searching the latest version number of the corresponding map data through a network terminal, and downloading the map data with the latest version number to the cache region and the hard disk.
A third aspect of the present application provides an electronic device comprising:
a processor; and
a memory having executable code stored thereon, which when executed by the processor, causes the processor to perform the method as described above.
A fourth aspect of the present application provides a non-transitory machine-readable storage medium having stored thereon executable code, which when executed by a processor of an electronic device, causes the processor to perform a method as described above.
The technical scheme provided by the application can comprise the following beneficial effects:
according to the method for processing the data of the vehicle-mounted intelligent device, the current position information of the vehicle-mounted intelligent device is received through the server, and corresponding map data are searched in the cache region according to the position information, wherein the map data are stored according to a preset module; and when the map data are found to be stored, displaying the map data on the vehicle-mounted intelligent equipment. By means of the design, on one hand, the stored corresponding map data are searched in a cache region of the server in a targeted mode, the searching efficiency can be improved, the display speed is improved, and the map data of the server are updated more timely compared with the data of the vehicle-mounted intelligent device, so that the accuracy of the displayed map data is guaranteed; simultaneously, the resource occupation of the server hard disk is reduced, so that the operation load of the server is reduced; on the other hand, the map data are stored in a classified mode according to the preset modules, so that the data are convenient to search and obtain quickly, and the display efficiency is further improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The foregoing and other objects, features and advantages of the application will be apparent from the following more particular descriptions of exemplary embodiments of the application, as illustrated in the accompanying drawings wherein like reference numbers generally represent like parts throughout the exemplary embodiments of the application.
Fig. 1 is a schematic flowchart illustrating a method for processing vehicle-mounted smart device data according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a method for processing vehicle-mounted smart device data according to another embodiment of the present application;
fig. 3 is a schematic flowchart of a method for processing vehicle-mounted smart device data according to another embodiment of the present application;
fig. 4 is a schematic structural diagram of a processing apparatus for vehicle-mounted intelligent device data according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device shown in an embodiment of the present application.
Detailed Description
Preferred embodiments of the present application will be described in more detail below with reference to the accompanying drawings. While the preferred embodiments of the present application are shown in the drawings, it should be understood that the present application may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It should be understood that although the terms "first," "second," "third," etc. may be used herein to describe various information, these information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present application, "a plurality" means two or more unless specifically limited otherwise.
In the related art, the car navigation can provide services such as positioning and navigation for a user. Because the map data in the vehicle-mounted navigation is not updated in real time, the user cannot timely and accurately acquire the latest map data, and the accuracy of the navigation is affected. In order to solve the above problems, embodiments of the present application provide a method for processing data of a vehicle-mounted intelligent device, which can update map data in time and ensure timeliness and accuracy of the data. The technical solutions of the embodiments of the present application are described in detail below with reference to the accompanying drawings.
Example one
Fig. 1 is a schematic flowchart of a method for processing vehicle-mounted smart device data according to an embodiment of the present application.
Referring to fig. 1, the present application provides a method for processing data of a vehicle-mounted intelligent device, including:
step S110, receiving a request containing the position information of the vehicle-mounted intelligent device.
The vehicle-mounted intelligent device is one of the user terminals. In one embodiment, the in-vehicle smart device may be an in-vehicle navigation. In other embodiments, the user end may be, but is not limited to, various personal computers, laptops, smartphones, tablets, and portable wearable devices. The position information of this application can derive from other multiple user terminals promptly, not only is limited to on-vehicle smart machine. Further, the location information may be real-time location information where the user is currently located, or location information corresponding to the location. In one embodiment, the location information may be geographic coordinates, and may be obtained by GPS (Global Positioning System) Positioning.
And step S120, according to the position information in the request, searching whether a cache region of the server stores map data corresponding to the position information or not, wherein the map data is stored in the cache region according to a preset module.
The cache area refers to a storage capable of high-speed data exchange, and exchanges data with a CPU (central processing unit) of the server before the memory, so that the speed is high. By establishing a cache region in the server and storing map data in the cache region in advance, the searching efficiency is improved.
In one embodiment, the storing the map data in the buffer according to a preset module includes: according to the marks and the version numbers of the map tiles, the map data of each map tile are respectively formed into corresponding file data according to a preset module and stored in a Redis database; the preset module at least includes one of a BMD (basic map display) module, a route module, a POI (Point of Information) module, and a name module.
Specifically, in the related art, the electronic map may be simulated and built through a tile map pyramid model. The tile map pyramid model is a multi-resolution hierarchical model, and the resolution is lower and lower from the bottom layer to the top layer of the tile pyramid, but the represented geographical range is unchanged. Specifically, the number N of zoom levels to be provided by the map service platform is determined, the map picture with the highest zoom level and the largest map scale is used as the bottom layer of the pyramid, namely the 0 th layer, and is partitioned, the map picture is cut from the left upper corner of the map picture, from the left to the right, from the top to the bottom, and is divided into square map tiles with the same size (for example, 256 × 256 pixels), so that a tile matrix of the 0 th layer is formed. On the basis of the map picture of the layer 0, generating the map picture of the layer 1 by a method of synthesizing one pixel by every 2x2 pixels, partitioning the map picture of the layer 1, and dividing the map picture into square map tiles with the same size as the next layer to form a tile matrix of the layer 1; the same method is used to generate the layer 2 tile matrix. This continues until layer N-1, which forms the entire tile pyramid.
Further, each map tile has a corresponding flag and version number. Specifically, when sliced, to facilitate distinguishing each map tile (tile), each map tile has a corresponding flag, which may be represented by an ID number, so that each map tile is distinguished. Meanwhile, since the map data is updated according to changes in the ground environment and the like, in order to distinguish the updated map data each time, each updated electronic map may be marked with a version number. Accordingly, each map tile of the updated electronic map has a corresponding version number.
The map data can be classified according to preset modules such as BMD, route, POI and name, and is stored in a Redis database in a cache region of the server. Further, with each map tile as a unit, storing the map data according to the preset module to form a plurality of file data and storing the file data in a Redis database. That is, each map tile stores file data corresponding to at least one preset module. For example, a tile has both route data and BMD data on it. It can be understood that obtaining the corresponding map data in the location information is obtaining the file data of each preset module on the tile. One of the document data may be at least one of BMD data, route data, POI data, or name data corresponding to one of the map tiles. In order to distinguish the file data, each file data is recorded with a flag and a version number of the corresponding map tile. When the corresponding map data is searched, a plurality of corresponding file data are searched, and the plurality of file data form the required map data. By classifying and storing the map data according to the preset modules, the data can be conveniently and quickly searched and obtained, so that the searching efficiency is improved.
Further, a Remote directory Server (Remote directory Server) is an in-memory cache database, which is written in C language, and the data model is key-value. Redis is widely used because it can support rich data types, such as String, List, Hash, Set, Sorted Set, etc. The Redis database is arranged in the cache region of the server, so that the data of the hard disk of the server is prevented from being called, rapid reading is realized, meanwhile, the resource occupation of the server is reduced, and the operating efficiency of the server is improved.
And step S130, if the corresponding map data stored according to the preset module is stored in the cache area of the server, sending the map data to the vehicle-mounted intelligent equipment for displaying.
It can be understood that, when searching for corresponding map data, in order to reduce and improve the search efficiency, the cache region is preferentially searched and the map data corresponding to the cache region is acquired. And if the corresponding map data are stored in the cache region, acquiring the corresponding map data to the vehicle-mounted intelligent equipment, and displaying the corresponding map data on the vehicle-mounted intelligent equipment.
In summary, in the data processing method for the vehicle-mounted intelligent device, the server receives the current position information of the vehicle-mounted intelligent device, and then searches for corresponding map data in the cache region according to the position information in a targeted manner, wherein the map data are stored according to a preset module; and when the map data are found to be stored, displaying the map data on the vehicle-mounted intelligent equipment. By means of the design, on one hand, the stored corresponding map data are searched in a cache region of the server in a targeted mode, the searching efficiency can be improved, the display speed is improved, and the map data of the server are updated more timely compared with the data of the vehicle-mounted intelligent device, so that the accuracy of the displayed map data is guaranteed; simultaneously, the resource occupation of the server hard disk is reduced, so that the operation load of the server is reduced; on the other hand, the map data are stored in a classified mode according to the preset modules, so that the data are convenient to search and obtain quickly, and the display efficiency is further improved.
Example two
Referring to fig. 2, an embodiment of the present application further provides a method for processing data of a vehicle-mounted intelligent device. The processing method of the vehicle-mounted intelligent device data at least comprises the following steps:
step S210, receiving a request containing the position information of the vehicle-mounted intelligent device.
In one embodiment, the location information may be geographic coordinates, i.e., latitude and longitude coordinates. The geographic coordinates can be obtained by positioning modes such as GPS, Wi-Fi or a base station.
Step S220, according to the position information, whether a Redis database of a cache region of the server stores corresponding map data stored according to a preset module is searched; and if the Redis database stores the corresponding map data, sending the map data to the vehicle-mounted intelligent equipment for displaying.
It can be understood that the server caches the map data by using the Reids database, and the searching efficiency can be improved. In one specific embodiment, the map data is classified and stored in a Redis database of the cache region according to the marks and the version numbers of the map tiles and according to the BMD module, the route module, the POI module and the name module. On one hand, the design realizes refined classification and is convenient for quick identification, thereby further improving the searching efficiency. On the other hand, the map tiles are obtained by slicing the layers of the electronic map, and can quickly correspond to the position information through the marks of the map tiles; meanwhile, the version number of the current map data can be determined through the version number of the map tile, so that the updating condition of the map data can be conveniently known. In the embodiment, the data condition is confirmed by preferentially searching the Redis database, so that the searching efficiency is improved. And if the Redis database stores the corresponding map data, sending the corresponding map data to the vehicle-mounted intelligent equipment for displaying.
Step S230, if the Redis database does not store the corresponding map data, searching whether a hard disk of the server stores the corresponding map data or not; and if the hard disk stores the corresponding map data, sending the corresponding map data to the vehicle-mounted intelligent equipment for display.
It can be understood that the data in the cache area is only a duplicate of partial data in the hard disk, so that the in-vehicle intelligent device may find the data in the cache area of the server without finding the data (because the data is not copied from the hard disk into the cache area), and the data needs to be found in the hard disk of the server. In other embodiments, a Redis database may also be disposed in the hard disk, and the map data is stored by the Redis database.
Further, in order to determine the update state of the map data in the hard disk, in one embodiment, the latest version number of the corresponding map data is searched through a network terminal, and the existing version number of the map data of the hard disk is compared with the latest version number; if the current version number is the same as the latest version number, displaying map data on the vehicle-mounted intelligent equipment; and if the existing version number is different from the latest version number, downloading the map data with the latest version number through the network terminal, and replacing the map data with the existing version number on the hard disk. It can be understood that the version of the electronic map is marked by a version number, and the version number of the electronic map is the version number of each map tile and is also the version number of each file data in each preset module in the Redis database.
Generally, the electronic map on the network side has the latest version and then the latest version number. The existing version number of the electronic map of the hard disk of the server is the version number of the map data stored currently. The updating state of the map data currently stored in the hard disk can be determined by comparing the current version number of the map data currently stored in the hard disk with the latest version number of the map data at the network end. If the existing version number is the same as the latest version number, the map data currently stored in the hard disk is the latest version number; if the two are different, the map data currently stored in the hard disk is a lagging version and needs to be updated. The map data with the latest version number is downloaded through the network terminal and replaced by the map data with the existing version number on the hard disk, so that the map data on the hard disk is changed into the data with the latest version number, and the latest map data is sent to the vehicle-mounted intelligent device to be displayed.
In other embodiments, if there is no network, the version number cannot be searched through the network side, and the map data cannot be downloaded through the network side. At the moment, if the map data corresponding to the position information is stored in the hard disk, the map data with the existing version number on the hard disk is directly sent to the vehicle-mounted intelligent device to be displayed.
And step S240, if the corresponding map data is not stored in the hard disk, downloading the map data with the latest version number to a Redis database and the hard disk through the network terminal, and sending the map data with the latest version number to the vehicle-mounted intelligent device for displaying.
It can be understood that the Redis database and the hard disk are searched one by one through the steps, and when corresponding map data are not stored in the Redis database and the hard disk, the map data with the latest version number can be downloaded and obtained through the network terminal. By the design, the Redis database of the cache region and the map data of the hard disk are perfected. And finally, the map data with the latest version number in the Redis database or the hard disk can be sent to the vehicle-mounted intelligent device for display.
In the related art, the Redis data is stored in the memory, and meanwhile, the Redis can synchronize the memory data to the disk at regular time, that is, the data can be persisted, and the Redis can periodically write updated data to the disk or write modification operation to an additional recording file. In this embodiment, the map data with the latest version number may be downloaded to the Redis database through the network terminal, and the Redis database writes the map data with the latest version number into the hard disk according to the data persistent update mechanism. By the design, the map data of the hard disk is kept complete and updated.
In order to avoid occupying network resources, in one embodiment, a search request is periodically sent to the network terminal, where the search request is a search request of the latest version number of the map data or a search request of the map data of the latest version number. In one embodiment, the search request is added to a network request sending list and then sent. Sending search requests to a network terminal according to a preset period, and adding each search request to a network request sending list; wherein, the search requests on the network request sending list are not repeated.
It can be understood that network resources are occupied when the network terminal searches the latest version number of the map data or downloads the map data. In order to avoid frequent sending or repeated sending, a preset period is set, and a searching request is sent to a network terminal at regular time, so that the searching request is limited to be sent only once in the preset period. By adopting the design, the problem that the next search request is sent again when the last search request is not returned is avoided. Therefore, by setting the network request sending list, the search request in each preset period is added to the network request sending list. In one embodiment, the predetermined period may be several hours or several days. And for the search request of the same map data, when the last sent request is not returned, the search request cannot be sent repeatedly, and the search requests aiming at the same map data on the network request sending list are not repeated. It can be understood that the search requests for different map data are not necessarily repeated, so that the search requests on the network request sending list in the preset period are not repeated.
In the processing method of the vehicle-mounted intelligent device data, the current position information is acquired, and then the corresponding map data is acquired in the Redis database according to the position information; if the Redis database does not have the map data, searching and acquiring the map data in the hard disk; if the map data does not exist in the hard disk, the map data is downloaded through a network and the like, and the map data is stored in a Redis database and the hard disk. According to the design, on one hand, according to the priority sequence, the map data are searched in the Redis database, the hard disk and the network end from high to low in sequence, and the map data are guaranteed to be searched according to the fastest level; meanwhile, the map data is updated in time, and the accuracy of the data is ensured. In addition, the Redis database stores map data according to a preset module, so that accurate classified storage is realized, and the searching efficiency and the data acquisition efficiency are improved. On the other hand, the map data is searched and updated according to the specific position information in a targeted manner, so that the updating data volume is reduced, and the updating efficiency is improved.
EXAMPLE III
Referring to fig. 3, an embodiment of the present application further provides a method for processing data of a vehicle-mounted smart device, and a technical solution of the present application is described in more detail with respect to fig. 1 and fig. 2. The processing method of the vehicle-mounted intelligent device data at least comprises the following steps:
step S310, receiving a request containing the position information of the vehicle-mounted intelligent device.
Step S320, according to the request, searching whether the cache area of the server stores the map data corresponding to the position information; if the corresponding map data are stored in the cache region, the step S380 is entered to send the map data to the vehicle-mounted intelligent equipment for display; if the buffer area does not store the corresponding map data, the process proceeds to step S330.
The cache region stores map data according to a preset module, and the preset module comprises a BMD module, a route module, a POI module and a name module.
Step S330, if the cache area does not store the corresponding map data, searching whether the hard disk of the server stores the corresponding map data or not; if the hard disk stores the corresponding map data, the step S340 is executed; if the hard disk does not store the corresponding map data, the process proceeds to step S370.
Step S340, confirming whether the server can be connected with a network end; if the server can be connected to the network, step S350 is entered; and if the server cannot be connected with the network end, the step S392 is carried out, and the map data on the hard disk are directly sent to the vehicle-mounted intelligent equipment for displaying.
Step S350, if the network terminal can be connected, searching the latest version number of the map data through the network terminal, comparing the latest version number with the existing version number of the map data stored in the hard disk, and judging whether the latest version number is the same as the existing version number of the map data stored in the hard disk; if the current version number is the same as the latest version number, the step 392 is carried out, and the map data on the hard disk are directly sent to the vehicle-mounted intelligent equipment to be displayed; if the existing version number is different from the latest version number, the process proceeds to step S360.
And step S360, if the existing version number is different from the latest version number, downloading the map data with the latest version number to the hard disk from the network terminal, and then entering step 391 to send the map data with the latest version number downloaded from the hard disk to the vehicle-mounted intelligent equipment for displaying.
Step S370, if the hard disk does not store the corresponding map data, downloading the map data with the latest version number from the network terminal to the cache area and the hard disk, and proceeding to step 391, sending the downloaded map data with the latest version number to the vehicle-mounted intelligent device for display.
And step S380, sending the map data of the cache region to the vehicle-mounted intelligent device for displaying.
And S391, sending the map data downloaded from the network end to the hard disk to the vehicle-mounted intelligent equipment for displaying.
And step S392, sending the map data on the hard disk to the vehicle-mounted intelligent equipment for displaying.
In the above embodiments, the method for processing the vehicle-mounted intelligent device data of the present application is described in detail. By combining the cache area, the hard disk and the network terminal to search data according to the priority sequence, the effects of high searching speed and new data display are achieved.
Corresponding to the embodiment of the application function implementation method, the application also provides a processing device of vehicle-mounted intelligent device data, an electronic device and a corresponding embodiment. In one embodiment, the processing device of the vehicle-mounted intelligent device data can be provided with functional modules for realizing the steps of the processing method of the vehicle-mounted intelligent device data.
Example four
Fig. 4 is a schematic structural diagram of a device for processing vehicle-mounted intelligent device data according to an embodiment of the present application.
As shown in fig. 4, the present application provides an apparatus for processing vehicle-mounted intelligent device data, including: a location receiving module 410, a searching module 420, and a sending module 430. Wherein:
a location receiving module 410, configured to receive a request including location information of the vehicle-mounted smart device;
a searching module 420, configured to search, according to the location information in the request received by the location receiving module 410, whether a cache area of a server stores map data corresponding to the location information, where the map data is stored in the cache area according to a preset module;
a sending module 430, configured to send the corresponding map data to the vehicle-mounted intelligent device for display if the searching module 420 finds that the corresponding map data is stored in the cache area of the server.
Specifically, the location receiving module 410 receives the location information of the vehicle-mounted intelligent device, and then transmits the location information to the searching module 420. The lookup module 420 performs a lookup based on the location information. The lookup module 420 prioritizes rebuffering the lookup. And the map data of the cache region is stored according to a preset module. Further, according to the marks and the version numbers of the map tiles, the map data of each map tile are respectively formed into corresponding file data according to a preset module and stored in a Redis database of a cache region; the preset module at least comprises one of a BMD module, a route module, a POI module and a name module. By storing the data in a sorted manner, the lookup module 420 is facilitated to quickly lookup desired map data. When the cache area does not store the corresponding map data, the searching module 420 searches whether the hard disk stores the corresponding map data; if the corresponding map data is not stored in the hard disk, searching the latest version number of the corresponding map data through a network terminal, and downloading the map data with the latest version number to the cache region and the hard disk. The searching module 420 searches according to the priority order of the cache area of the server, the hard disk of the server and the network end from first to last, starting from the fastest searching efficiency, thereby ensuring the searching efficiency. Finally, the sending module 430 sends the searched map data to the vehicle-mounted intelligent device, so that the vehicle-mounted intelligent device displays the corresponding map data for the user to use.
The processing apparatus for vehicle-mounted intelligent device data provided in this embodiment obtains the location information of the vehicle-mounted intelligent device through the location receiving module 410, the searching module 420 searches for the map data in different ways one by one according to the priority order, and finally sends the map data to the vehicle-mounted intelligent device through the sending module 430 for display. The processing device is suitable for the server, map data can be conveniently and quickly searched by coordinating the vehicle-mounted intelligent equipment, and then the display efficiency of the vehicle-mounted intelligent equipment is improved.
The modules of the processing apparatus for vehicle-mounted intelligent device data are used for implementing the steps of the processing method for vehicle-mounted intelligent device data, and are not described herein again.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 5 is a schematic structural diagram of an electronic device shown in an embodiment of the present application. Referring to fig. 5, an electronic device 500 includes a memory 510 and a processor 520. In one embodiment, the electronic device may be a server or a terminal. The server may be an independent physical server, or a server cluster composed of a plurality of physical servers, or a cloud server providing basic cloud computing services such as a cloud server, a cloud database, a cloud storage, and a CDN. The terminal may be, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, a professional camera, a vehicle-mounted smart device located in an automobile, and the like.
The Processor 520 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 510 may include various types of storage units, such as system memory, Read Only Memory (ROM), and permanent storage. Wherein the ROM may store static data or instructions for the processor 520 or other modules of the computer. The persistent storage device may be a read-write storage device. The persistent storage may be a non-volatile storage device that does not lose stored instructions and data even after the computer is powered off. In some embodiments, the persistent storage device employs a mass storage device (e.g., magnetic or optical disk, flash memory) as the persistent storage device. In other embodiments, the permanent storage may be a removable storage device (e.g., floppy disk, optical drive). The system memory may be a read-write memory device or a volatile read-write memory device, such as a dynamic random access memory. The system memory may store instructions and data that some or all of the processors require at runtime. Further, the memory 510 may include any combination of computer-readable storage media, including various types of semiconductor memory chips (DRAM, SRAM, SDRAM, flash memory, programmable read-only memory), magnetic and/or optical disks, may also be employed. In some embodiments, memory 510 may include a removable storage device that is readable and/or writable, such as a Compact Disc (CD), a digital versatile disc read only (e.g., DVD-ROM, dual layer DVD-ROM), a Blu-ray disc read only, an ultra-dense disc, a flash memory card (e.g., SD card, min SD card, Micro-SD card, etc.), a magnetic floppy disk, or the like. Computer-readable storage media do not contain carrier waves or transitory electronic signals transmitted by wireless or wired means.
The memory 510 has stored thereon executable code that, when processed by the processor 520, may cause the processor 520 to perform some or all of the methods described above.
The aspects of the present application have been described in detail hereinabove with reference to the accompanying drawings. In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments. Those skilled in the art should also appreciate that the acts and modules referred to in the specification are not necessarily required in the present application. In addition, it can be understood that the steps in the method of the embodiment of the present application may be sequentially adjusted, combined, and deleted according to actual needs, and the modules in the device of the embodiment of the present application may be combined, divided, and deleted according to actual needs.
Furthermore, the method according to the present application may also be implemented as a computer program or computer program product comprising computer program code instructions for performing some or all of the steps of the above-described method of the present application.
Alternatively, the present application may also be embodied as a non-transitory machine-readable storage medium (or computer-readable storage medium, or machine-readable storage medium) having stored thereon executable code (or a computer program, or computer instruction code) which, when executed by a processor of an electronic device (or electronic device, server, etc.), causes the processor to perform part or all of the various steps of the above-described method according to the present application.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the applications disclosed herein may be implemented as electronic hardware, computer software, or combinations of both.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems and methods according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Having described embodiments of the present application, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen in order to best explain the principles of the embodiments, the practical application, or improvements made to the technology in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.

Claims (10)

1. A processing method for vehicle-mounted intelligent equipment data is characterized by comprising the following steps:
receiving a request containing position information of the vehicle-mounted intelligent device;
according to the position information in the request, whether a cache region of a server stores map data corresponding to the position information is searched, wherein the map data are stored in the cache region according to a preset module;
and if the corresponding map data stored according to the preset module is stored in the cache region of the server, sending the map data to the vehicle-mounted intelligent equipment for displaying.
2. The method of claim 1, wherein the map data is stored in the buffer according to a preset module, comprising:
according to the marks and the version numbers of the map tiles, the map data of each map tile are respectively formed into corresponding file data according to a preset module and stored in a Redis database of the cache region; wherein, the preset module at least comprises one of the following modules: BMD module, route module, POI module, name module.
3. The method of claim 1, wherein after searching whether a cache of a server stores map data corresponding to the location information according to the location information in the request, the method further comprises:
if the cache area of the server does not store the corresponding map data stored according to the preset module, searching whether a hard disk of the server stores the corresponding map data or not;
and if the corresponding map data are stored in the hard disk, the corresponding map data are sent to the vehicle-mounted intelligent equipment for display.
4. The method according to claim 3, wherein if the hard disk stores the corresponding map data, sending the corresponding map data to the vehicle-mounted intelligent device for display comprises:
searching the latest version number of the corresponding map data from a network terminal;
comparing the existing version number of the map data of the hard disk with the latest version number;
if the current version number is the same as the latest version number, sending the map data of the hard disk to the vehicle-mounted intelligent equipment for displaying;
and if the existing version number is different from the latest version number, downloading the map data with the latest version number to the network terminal, replacing the map data with the existing version number on the hard disk, and sending the map data with the latest version number to the vehicle-mounted intelligent equipment for displaying.
5. The method according to claim 3, wherein after searching whether a hard disk of the server stores the corresponding map data if the cache area of the server does not store the corresponding map data stored according to the preset module, the method further comprises:
and if the corresponding map data are not stored in the hard disk, downloading the map data with the latest version number to a network terminal, storing the map data into the cache region and the hard disk, and sending the map data with the latest version number to the vehicle-mounted intelligent equipment for displaying.
6. The method according to claim 4 or 5, characterized in that the method further comprises:
periodically sending a search request to the network terminal, wherein the search request is a search request of the latest version number of the map data or a search request of the map data of the latest version number;
and the search request is added to a network request sending list and then sent.
7. An apparatus for processing vehicle-mounted intelligent device data, the apparatus comprising:
the position receiving module is used for receiving a request containing position information of the vehicle-mounted intelligent equipment;
the searching module is used for searching whether a cache region of a server stores map data corresponding to the position information or not according to the position information in the request received by the position receiving module, wherein the map data is stored in the cache region according to a preset module;
and the sending module is used for sending the corresponding map data to the vehicle-mounted intelligent equipment for displaying if the searching module finds that the cache area of the server stores the corresponding map data.
8. The apparatus of claim 7, wherein the lookup module is further configured to:
if the cache area is found not to store the corresponding map data, the searching module searches whether a hard disk stores the corresponding map data;
if the corresponding map data is not stored in the hard disk, searching the latest version number of the corresponding map data through a network terminal, and downloading the map data with the latest version number to the cache region and the hard disk.
9. An electronic device, comprising:
a processor; and
a memory having executable code stored thereon, which when executed by the processor, causes the processor to perform the method of any one of claims 1-6.
10. A non-transitory machine-readable storage medium having stored thereon executable code, which when executed by a processor of an electronic device, causes the processor to perform the method of any one of claims 1-6.
CN202011254994.1A 2020-11-11 2020-11-11 Vehicle-mounted intelligent device data processing method and device and electronic device Active CN112097785B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011254994.1A CN112097785B (en) 2020-11-11 2020-11-11 Vehicle-mounted intelligent device data processing method and device and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011254994.1A CN112097785B (en) 2020-11-11 2020-11-11 Vehicle-mounted intelligent device data processing method and device and electronic device

Publications (2)

Publication Number Publication Date
CN112097785A true CN112097785A (en) 2020-12-18
CN112097785B CN112097785B (en) 2021-02-12

Family

ID=73785862

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011254994.1A Active CN112097785B (en) 2020-11-11 2020-11-11 Vehicle-mounted intelligent device data processing method and device and electronic device

Country Status (1)

Country Link
CN (1) CN112097785B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112286952A (en) * 2020-12-23 2021-01-29 智道网联科技(北京)有限公司 Method, device and system for processing real-time traffic information

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101358851A (en) * 2007-08-03 2009-02-04 北京灵图软件技术有限公司 Method for navigating data in local caching, system and customer terminal device
CN101917481A (en) * 2010-08-19 2010-12-15 周寅 Method for realizing video network map multilevel cache based on spatial roaming position
CN102209113A (en) * 2011-05-24 2011-10-05 深圳市凯立德科技股份有限公司 Dynamic map downloading method and server and position service terminal
US20140082123A1 (en) * 2012-09-19 2014-03-20 Oki Electric Industry Co., Ltd. Content caching and delivering system with traffic of repetitively requested content reduced
CN105138678A (en) * 2015-09-11 2015-12-09 武汉云空间地理信息技术有限公司 Reading and distributing method and system for map tile data
CN106528772A (en) * 2016-11-07 2017-03-22 王昱淇 Network map multilayer cache method for cluster server side

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101358851A (en) * 2007-08-03 2009-02-04 北京灵图软件技术有限公司 Method for navigating data in local caching, system and customer terminal device
CN101917481A (en) * 2010-08-19 2010-12-15 周寅 Method for realizing video network map multilevel cache based on spatial roaming position
CN102209113A (en) * 2011-05-24 2011-10-05 深圳市凯立德科技股份有限公司 Dynamic map downloading method and server and position service terminal
US20140082123A1 (en) * 2012-09-19 2014-03-20 Oki Electric Industry Co., Ltd. Content caching and delivering system with traffic of repetitively requested content reduced
CN105138678A (en) * 2015-09-11 2015-12-09 武汉云空间地理信息技术有限公司 Reading and distributing method and system for map tile data
CN106528772A (en) * 2016-11-07 2017-03-22 王昱淇 Network map multilayer cache method for cluster server side

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112286952A (en) * 2020-12-23 2021-01-29 智道网联科技(北京)有限公司 Method, device and system for processing real-time traffic information
CN112286952B (en) * 2020-12-23 2021-10-01 智道网联科技(北京)有限公司 Method, device and system for processing real-time traffic information

Also Published As

Publication number Publication date
CN112097785B (en) 2021-02-12

Similar Documents

Publication Publication Date Title
US20210095988A1 (en) Apparatus and method for providing map data and system thereof
US9245046B2 (en) Map tile data pre-fetching based on mobile device generated event analysis
EP2958033A1 (en) Tile-based distribution of searchable geospatial data to client devices
US9134138B2 (en) Navigation device, method of outputting a map, and method of generating a database
CN110887499B (en) Method and terminal for processing road data and interest point data in map
CN112100196B (en) Real-time traffic information processing method and system and electronic equipment
WO2013090856A1 (en) Point of interest (poi) data positioning in image
US20230409611A1 (en) Improving Offline Map Data Availability
KR20100077006A (en) Method, apparatus and computer program product for multiple buffering for search application
US9451041B2 (en) Caching geographic data according to server-specified policy
CN112097785B (en) Vehicle-mounted intelligent device data processing method and device and electronic device
CN112231125B (en) Map display method and device for intelligent vehicle-mounted internet terminal
US20220318279A1 (en) Providing a resilient application programming interface for geographic services
US20150130817A1 (en) Generating a sidebar from vector tiles
CN112559666B (en) Method and device for processing notes and electronic equipment
US10902655B1 (en) Editing cached map titles
CN112287062B (en) Real-time traffic information synchronization method and device and electronic equipment
CN113010622A (en) Real-time traffic data processing method and device and electronic equipment
CN113254567B (en) Variable-precision high-precision map data storage method and storage device
CN111815954A (en) Real-time traffic data transmission and display method, system and electronic equipment
CN110704724A (en) Interest point attribute obtaining method and system, storage medium and vehicle-mounted terminal
CN116431670A (en) Bus data processing system, method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant