Intelligent mine lamp road network data offline storage method and related equipment
Through intelligent mining lamps, the navigation route information is obtained, the data index information is determined and the road network request parameters are constructed, which solves the problem of offline storage of intelligent mining lamps and the problem of inefficient data storage of intelligent mining lamps and realizes efficient data management and stable system operation.
Patent Information
- Application Number
- CN202510003372.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-02
- Publication Date
- 2025-05-06
AI Technical Summary
Smart mining lamps are less efficient when storing offline data on the road network, and fail to effectively manage versions, resulting in inconsistent data versions with servers, and frequent reading of large amounts of files is inefficient.
By obtaining the navigation route information of the smart mining lamp, determining the data index information, building road network request parameters, reading the target road network data and storing offline, using H3 spatial index and blockchain storage to improve data management efficiency.
It realizes that the intelligent mining lamp can access and use the required road network data without a network, improving the time efficiency of data storage, data reliability and system stability.
Smart Images

Figure CN119938641A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data management technology, and in particular to an offline storage method for intelligent mining lamp network data and related equipment. Background Art
[0002] In modern society, the development of mining lamp technology is changing with each passing day. As an important safety equipment in coal mines, mines and other underground workplaces, the performance of mining lamps directly affects the life safety and work efficiency of miners. On this basis, intelligent mining lamps have been developed, which can be used to store and manage various data in mines, including road network data, production data, safety data, equipment data, etc.
[0003] Usually, when mobile users in a mine need to navigate, they can request the corresponding road network data from the server according to the navigation route information, and input it into the matching algorithm for track binding and deviation judgment during navigation. However, due to the large amount of road network data information, frequent requests for the same road network data will result in high user traffic consumption. Therefore, it is necessary to store the road network data offline to improve the reuse of the same road network data and reduce traffic consumption.
[0004] At present, the offline storage solution of intelligent mining lamp road network data does not perform version management on the offline stored road network data, which may cause the version of the road network data to be different from that of the server. In addition, when a large amount of road network data is requested, a large number of files need to be read frequently, which makes the efficiency low. Summary of the invention
[0005] The purpose of the embodiments of the present application is to propose an intelligent mining lamp road network data offline storage method and related equipment to solve the technical problem of low efficiency when storing road network data offline.
[0006] In order to solve the above technical problems, the present application embodiment provides an offline storage method for intelligent mining lamp network data, which adopts the following technical solutions:
[0007] A method for offline storage of intelligent mining lamp network data comprises the following steps:
[0008] Get the navigation route information corresponding to the smart mining lamp;
[0009] Determining data index information according to the navigation route information;
[0010] Determine a road network data ID set according to the data index information;
[0011] Constructing a road network request parameter according to the data index information and the road network data ID set;
[0012] According to the road network request parameters, the target road network data is read and the target road network data is stored offline.
[0013] Furthermore, the step of determining the road network data ID set according to the data index information specifically includes:
[0014] According to the data index information, query the corresponding road network data ID from a preset database;
[0015] Data aggregation is performed on the road network data ID to obtain the road network data ID set.
[0016] Furthermore, the step of constructing a road network request parameter according to the data index information and the road network data ID set specifically includes:
[0017] According to the road network data ID set, a cache identifier and a road network data version identifier are added to the data index information;
[0018] The road network request parameters are generated according to the added data index information.
[0019] Further, after the step of searching the corresponding road network data ID from a preset database according to the data index information, the method further includes:
[0020] When there is no road network data ID corresponding to the data index information, a no-cache flag is added to the data index information.
[0021] Further, the navigation route information includes longitude and latitude point string information, and the step of determining data index information according to the navigation route information specifically includes:
[0022] Receiving a data query instruction carrying the latitude and longitude point string information;
[0023] The longitude and latitude point string information is converted into data through the h3 spatial index to obtain an h3 index set as the data index information.
[0024] Furthermore, the step of reading the target road network data according to the road network request parameter and storing the target road network data offline specifically includes:
[0025] Sending the network request parameters to the server of the smart miner's lamp;
[0026] Feedback information corresponding to the road network request parameter is received as the target road network data, and the target road network data is stored offline.
[0027] Further, after the step of reading the target road network data according to the road network request parameter and storing the target road network data offline, the method further includes:
[0028] The target road network data is stored in a preset blockchain node.
[0029] In order to solve the above technical problems, the embodiment of the present application also provides an intelligent mining lamp road network data offline storage device, which adopts the following technical solution:
[0030] An intelligent mining lamp network data offline storage device, comprising:
[0031] An acquisition module is used to obtain navigation route information corresponding to the smart mining lamp;
[0032] A first determining module, used to determine data index information according to the navigation route information;
[0033] A second determination module, used to determine a road network data ID set according to the data index information;
[0034] A construction module, used to construct a road network request parameter according to the data index information and the road network data ID set;
[0035] The reading module is used to read the target road network data according to the road network request parameters and store the target road network data offline.
[0036] In order to solve the above technical problems, the embodiment of the present application further provides a computer device, which adopts the following technical solution:
[0037] A computer device includes a memory and a processor, wherein the memory stores computer-readable instructions, and when the processor executes the computer-readable instructions, the steps of the above-mentioned method for offline storage of intelligent mining lamp network data are implemented.
[0038] In order to solve the above technical problems, the embodiment of the present application further provides a computer-readable storage medium, which adopts the following technical solution:
[0039] A computer-readable storage medium stores computer-readable instructions, which, when executed by a processor, implement the steps of the above-mentioned method for offline storage of intelligent mining lamp network data.
[0040] Compared with the prior art, the embodiments of the present application have the following beneficial effects:
[0041] The method for offline storage of road network data of smart mining lamps disclosed in the present application obtains navigation route information corresponding to the smart mining lamp; then determines data index information based on the navigation route information; then determines a road network data ID set based on the data index information; then constructs a road network request parameter based on the data index information and the road network data ID set; finally, reads the target road network data based on the road network request parameter, and stores the target road network data offline. The present application can accurately determine the road network data that needs to be stored by obtaining the navigation route information of the smart mining lamp and combining it with the generation of data index information, and realizes offline storage of road network data, so that the smart mining lamp can access and use the required road network data even without a network, thereby improving the time efficiency of data storage, the reliability of data, and the stability of the system. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the scheme in the present application, a brief introduction is given below to the drawings required for use in the description of the embodiments of the present application. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0043] Figure 1 is an exemplary system architecture diagram to which the present application may be applied;
[0044] Figure 2 It is a flow chart of an embodiment of the method for offline storage of intelligent mining lamp network data according to the present application;
[0045] Figure 3 It is a structural schematic diagram of an embodiment of an intelligent mining lamp road network data offline storage device according to the present application;
[0046] Figure 4 It is a structural diagram of an embodiment of a computer device according to the present application. DETAILED DESCRIPTION
[0047] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by technicians in the technical field of the present application; the terms used in the specification of the application herein are only for the purpose of describing specific embodiments and are not intended to limit the present application; the terms "including" and "having" and any variations thereof in the specification and claims of the present application and the above-mentioned drawings are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of the present application or the above-mentioned drawings are used to distinguish different objects, not to describe a specific order.
[0048] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0049] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.
[0050] like Figure 1 As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0051] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, social platform software, etc.
[0052] Terminal devices 101, 102, 103 can be various electronic devices with display screens and supporting web browsing, including but not limited to smart phones, tablet computers, e-book readers, MP3 (Moving Picture Experts Group Audio Layer III) players, MP4 (Moving Picture Experts Group Audio Layer IV) players, laptop computers, desktop computers, etc.
[0053] The server 105 may be a server that provides various services, such as a background server that provides support for web pages displayed on the terminal devices 101 , 102 , and 103 .
[0054] It should be noted that the smart mine lamp network data offline storage method provided in the embodiment of the present application is generally executed by a server / terminal device, and accordingly, the smart mine lamp network data offline storage device is generally set in the server / terminal device.
[0055] It should be understood that Figure 1The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0056] Continue to refer Figure 2 , shows a flow chart of an embodiment of an offline storage method for intelligent mining lamp network data according to the present application. The offline storage method for intelligent mining lamp network data comprises the following steps:
[0057] Step S201, obtaining navigation route information corresponding to the smart mining lamp.
[0058] In this embodiment, the method for storing data of the intelligent mining lamp network offline is executed on the electronic device (eg Figure 1 The server / terminal device shown in the figure can send or receive data through a wired connection or a wireless connection. It should be noted that the above wireless connection methods may include but are not limited to 3G / 4G / 5G connection, WiFi connection, Bluetooth connection, WiMAX connection, Zigbee connection, UWB (ultra wideband) connection, and other wireless connection methods currently known or to be developed in the future.
[0059] It should be noted that insurance is an important part of the financial industry, and financial technology has a significant impact on the insurance industry. With the development of financial technology, insurance companies' innovations in financial technology include channel innovation, product innovation, and service innovation based on the Internet. For insurance companies, whether it is products, marketing and underwriting, or claims, services and anti-fraud, they all need to combine innovations in financial technology on the basis of business scenarios in order to achieve better results.
[0060] In this embodiment, in actual application, the intelligent mining lamp usually obtains its current positioning information through a built-in navigation system (such as a GPS module) and determines its travel path according to a preset route planning (such as a corridor, passage, etc. in a mine). This step is intended to provide basic data for subsequent data storage and requests by obtaining the navigation route information of the mining lamp in real time. Through an integrated positioning system (such as GPS, inertial navigation system, etc.), the longitude and latitude information of the mining lamp, and even the positioning data inside the mine (for example, through Wi-Fi, RFID or UWB positioning) can be obtained in real time. These data are used as basic information and are usually stored in the form of a longitude and latitude point string to indicate the specific path of the mining lamp in the mine.
[0061] Step S202: determining data index information according to the navigation route information.
[0062] In this embodiment, the road network data is usually presented in a graphical or gridded manner and stored in a specific database (such as a geographic information system, GIS). Through data indexing (such as spatial indexing), a large amount of geographic data can be effectively and quickly queried and located. In order to make path planning more efficient and queryable, a spatial indexing method such as the H3 index can be used. H3 is a spatial indexing method based on a hexahedral grid. It divides the earth's surface into different grid cells, each of which has a unique identifier. Through the H3 spatial index, the longitude and latitude path of the mining lamp is converted into an H3 index value within the area as a keyword for subsequent queries. In this way, the path of the mining lamp can be efficiently mapped to the geographic data in the database.
[0063] Step S203: Determine a road network data ID set according to the data index information.
[0064] In this embodiment, the road network data ID set is a set of identifiers for specific road network data. Generally, the road network data ID refers to a unique identifier associated with a specific road section, path or area, which can help locate and obtain specific road network data. The corresponding road network data ID set is queried through a spatial database (for example, a spatial database based on an H3 index). In this step, the database retrieves the relevant road network data based on the index information and returns a set of ID values, which represent the area or grid corresponding to the route that the mining lamp needs to travel.
[0065] Step S204: constructing a road network request parameter according to the data index information and the road network data ID set.
[0066] In this embodiment, the road network request parameters are the key data required when initiating a request to the server. These request parameters contain all the information necessary to query and obtain road network data. When constructing the road network request parameters, it is usually necessary to combine the data ID with other additional information (such as cache identifier, version identifier, etc.) to ensure that the requested data is the latest and avoid repeated requests; the cache identifier indicates whether the data has been cached locally, and the version identifier indicates whether the data has been updated. Through these identifiers, the system can determine whether it needs to obtain new data from the server or read data directly from local storage.
[0067] Step S205: read the target road network data according to the road network request parameters, and store the target road network data offline.
[0068] In this embodiment, obtaining the road network data and storing it offline can effectively reduce frequent network requests and improve performance. In the actual application of the mining lamp, the amount of road network data is large, and the mining lamp may not be able to maintain a stable network connection, so it is necessary to store the data in the local device for subsequent query. The request parameters are sent to the server side of the mining lamp, and the server returns the corresponding road network data. According to different mining lamp requirements, the returned data can include environmental information, path data, etc. of the location of the mining lamp. The road network data is usually transmitted in JSON or XML format. After receiving the data, the mining lamp stores it in a local storage device (such as flash memory, hard disk), and ensures that the data can be accessed without a network.
[0069] This application obtains the navigation route information of the smart miner's lamp and combines it with the generation of data index information to accurately determine the road network data that needs to be stored and realize offline storage of the road network data, so that the smart miner's lamp can access and use the required road network data even without a network, thereby improving the time efficiency of data storage, the reliability of data, and the stability of the system.
[0070] In some optional implementations of this embodiment, the step of determining the road network data ID set according to the data index information specifically includes:
[0071] According to the data index information, query the corresponding road network data ID from a preset database;
[0072] Data aggregation is performed on the road network data ID to obtain the road network data ID set.
[0073] In this embodiment, in the application environment of the mining lamp, the road network data is usually pre-stored in the database, and the query process is usually performed through an index, which helps to quickly locate and find specific road network data. A spatial database or a geographic information system (GIS) is used to store the road network data. In this step, according to the previously obtained index information (such as the H3 index value), the system queries the corresponding road network data ID from the database, and through the spatial index (such as the B-tree, R-tree, etc.), it can efficiently perform the query and reduce unnecessary calculations. Further, data aggregation is to bring multiple related data sets together to form a more representative data set. In this step, the aggregation operation is to merge the road network data IDs of different regions to reduce the number of requests and avoid initiating requests for each road section separately. The aggregation operation is usually performed based on adjacent areas or road network data with the same attributes. For example, if the path of the mining lamp spans multiple adjacent areas, the system can aggregate the data IDs of these areas to form a larger road network ID set for unified processing in subsequent steps.
[0074] By querying and aggregating road network data ID sets from a preset database, this application can effectively reduce redundant data, improve the query efficiency of road network data, avoid storing irrelevant data, and optimize the system's resource utilization and processing speed.
[0075] In some optional implementations of this embodiment, the step of constructing the road network request parameter according to the data index information and the road network data ID set specifically includes:
[0076] According to the road network data ID set, a cache identifier and a road network data version identifier are added to the data index information;
[0077] The road network request parameters are generated according to the added data index information.
[0078] In this embodiment, in a distributed system, cache strategy and version management are very important. Through the cache identifier, the system can determine whether a certain data has been cached locally without re-downloading; similarly, the version identifier helps to identify whether the data is the latest so that the data can be updated when necessary. By adding a cache identifier and a version identifier for each data ID, data request and storage can be optimized. For example, the system can determine whether a certain road network data has been cached locally and whether the cache is expired; if the data version is inconsistent, an update request will be triggered, otherwise the data is read directly from the local cache. The generation of road network request parameters is the basis for subsequent data requests. It is a set of parameters required when sending data requests to the server, usually including road network data ID, cache identifier, version identifier, etc. When generating road network request parameters, in addition to data ID, cache identifier and version identifier, other information (such as timestamp, miner's lamp ID, area information, etc.) can be added according to the specific application scenario. These request parameters are finally sent to the server through HTTP requests or other communication protocols.
[0079] By constructing a road network request parameter that includes a cache identifier and a road network data version identifier, the system can intelligently determine whether it is necessary to obtain new data from the server or directly use cached data, thereby avoiding redundant requests and improving data processing speed and consistency.
[0080] In some optional implementations of this embodiment, after the above step of querying the corresponding road network data ID from a preset database according to the data index information, the method further includes:
[0081] When there is no road network data ID corresponding to the data index information, a no-cache flag is added to the data index information.
[0082] In this embodiment, if the corresponding road network data ID cannot be found, it may mean that the data has not been cached or stored. In this case, the system will mark the data as "no cache" to ensure that the system can request and update the data from the server. After adding the "no cache" flag, the system can determine whether it needs to request the latest road network data from the server based on the flag.
[0083] This application adds a no-cache flag so that when the query result is empty, the system can correctly identify it and take appropriate measures to ensure that new requests can still be initiated when data is missing. This enhances the robustness of data requests and the reliability of the system.
[0084] In some optional implementations of this embodiment, the navigation route information includes longitude and latitude point string information, and the step of determining the data index information according to the navigation route information specifically includes:
[0085] Receiving a data query instruction carrying the latitude and longitude point string information;
[0086] The longitude and latitude point string information is converted into data through the h3 spatial index to obtain an h3 index set as the data index information.
[0087] In this embodiment, the query instruction received by the system contains navigation route information, that is, a series of longitude and latitude coordinate points, representing the path of the mining lamp. Through these longitude and latitude point strings, the path that the mining lamp needs to pass through and its corresponding road network area can be determined. Using H3 spatial indexing technology, the longitude and latitude point strings are converted into H3 index sets. These H3 indexes are hierarchical and can accurately represent a certain area. They can also define a larger area by aggregating different H3 units. This step is to convert geographic spatial information into a more operational and queryable format.
[0088] This application can efficiently perform spatial data query and processing by converting longitude and latitude point string information into H3 spatial index, optimizes the storage and query process of road network data, and makes the matching of navigation routes more accurate and efficient.
[0089] In some optional implementations of this embodiment, the step of reading the target road network data according to the road network request parameter and storing the target road network data offline specifically includes:
[0090] Sending the network request parameters to the server of the smart miner's lamp;
[0091] Feedback information corresponding to the road network request parameter is received as the target road network data, and the target road network data is stored offline.
[0092] In this embodiment, the mobile device (such as a smart miner's lamp) sends the constructed road network request parameters to the server. After receiving the request, the server will process it and return the corresponding road network data according to the request content. The server returns the road network data related to the request parameters, and the system saves this data locally (offline storage). Through offline storage, repeated network requests are avoided, and the data acquisition speed and response efficiency are improved.
[0093] This application ensures that the smart mining lamp can access and use the latest road network data even in an environment without a network by sending the road network request parameters to the server and storing them offline, thereby improving the stability and real-time performance of the system.
[0094] In some optional implementations of this embodiment, after the above steps of reading the target road network data according to the road network request parameters and storing the target road network data offline, the method further includes:
[0095] The target road network data is stored in a preset blockchain node.
[0096] In this embodiment, the offline stored road network data is further stored in the blockchain node to ensure the data is tamper-proof and complete. The application of blockchain technology in this regard can ensure the credibility and traceability of road network data in a distributed system, which is particularly suitable for environments with high safety requirements (such as mines or dangerous areas).
[0097] This application ensures the immutability and security of the data by storing road network data in blockchain nodes, while improving the reliability and transparency of the data and preventing data loss or malicious modification.
[0098] It should be emphasized that in order to further ensure the privacy and security of the above-mentioned target road network data, the above-mentioned target road network data can also be stored in a node of a blockchain.
[0099] The blockchain referred to in this application is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.
[0100] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0101] AI basic technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics, etc. AI software technologies mainly include computer vision technology, robotics technology, biometrics technology, speech processing technology, natural language processing technology, and machine learning / deep learning.
[0102] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through computer-readable instructions, and the computer-readable instructions can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the aforementioned storage medium can be a non-volatile storage medium such as a disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
[0103] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
[0104] Further references Figure 3 , as a response to the above Figure 2 The present application provides an embodiment of an intelligent mining lamp network data offline storage device, and the device embodiment is similar to Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.
[0105] like Figure 3As shown, the intelligent mining lamp road network data offline storage device 300 described in this embodiment includes: an acquisition module 301, a first determination module 302, a second determination module 303, a construction module 304 and a reading module 305. Among them:
[0106] An acquisition module 301 is used to acquire navigation route information corresponding to the smart mining lamp;
[0107] A first determining module 302, configured to determine data index information according to the navigation route information;
[0108] A second determination module 303 is used to determine a road network data ID set according to the data index information;
[0109] A construction module 304 is used to construct a road network request parameter according to the data index information and the road network data ID set;
[0110] The reading module 305 is used to read the target road network data according to the road network request parameters, and store the target road network data offline.
[0111] The intelligent mining lamp road network data offline storage device provided in the present application can accurately determine the road network data that needs to be stored and realize offline storage of the road network data by acquiring the navigation route information of the intelligent mining lamp and combining it with the generation of data index information, so that the intelligent mining lamp can access and use the required road network data even without a network, thereby improving the time efficiency of data storage as well as the reliability of data and the stability of the system.
[0112] In some optional implementations of this embodiment, the second determining module 303 is further configured to:
[0113] According to the data index information, query the corresponding road network data ID from a preset database;
[0114] Data aggregation is performed on the road network data ID to obtain the road network data ID set.
[0115] The intelligent mining lamp road network data offline storage device provided in the present application can effectively reduce redundant data, improve the query efficiency of road network data, avoid storing irrelevant data, and optimize the system's resource utilization and processing speed by querying and aggregating road network data ID sets from a preset database.
[0116] In some optional implementations of this embodiment, the second determining module 303 is further configured to:
[0117] According to the road network data ID set, a cache identifier and a road network data version identifier are added to the data index information;
[0118] The road network request parameters are generated according to the added data index information.
[0119] The intelligent mining lamp road network data offline storage device provided in the present application constructs a road network request parameter including a cache identifier and a road network data version identifier. The system can intelligently determine whether it is necessary to obtain new data from the server or directly use the cached data, thereby avoiding redundant requests and improving data processing speed and consistency.
[0120] In some optional implementations of this embodiment, the second determining module 303 is further configured to:
[0121] When there is no road network data ID corresponding to the data index information, a no-cache flag is added to the data index information.
[0122] The intelligent mining lamp network data offline storage device provided by the present application adds a no-cache flag, so that when the query result is empty, the system can correctly identify and take appropriate measures to ensure that a new request can still be initiated when data is missing. This enhances the robustness of data requests and the reliability of the system.
[0123] In some optional implementations of this embodiment, the first determining module 302 is further configured to:
[0124] Receiving a data query instruction carrying the latitude and longitude point string information;
[0125] The longitude and latitude point string information is converted into data through the h3 spatial index to obtain an h3 index set as the data index information.
[0126] The intelligent mining lamp road network data offline storage device provided in the present application can efficiently perform spatial data query and processing by converting longitude and latitude point string information into H3 spatial index, thereby optimizing the storage and query process of road network data and making the matching of navigation routes more accurate and efficient.
[0127] In some optional implementations of this embodiment, the reading module 305 is further configured to:
[0128] Sending the network request parameters to the server of the smart miner's lamp;
[0129] Feedback information corresponding to the road network request parameter is received as the target road network data, and the target road network data is stored offline.
[0130] The smart mining lamp road network data offline storage device provided in this application sends the road network request parameters to the server and stores them offline, ensuring that the smart mining lamp can access and use the latest road network data even in an environment without a network, thereby improving the stability and real-time performance of the system.
[0131] In some optional implementations of this embodiment, the reading module 305 is further configured to:
[0132] The target road network data is stored in a preset blockchain node.
[0133] The intelligent mining lamp road network data offline storage device provided in the present application ensures the data's immutability and security by storing the road network data in the blockchain node, while improving the data's reliability and transparency and preventing data loss or malicious modification.
[0134] To solve the above technical problems, the present application also provides a computer device. Figure 4 , Figure 4 This is a basic structural block diagram of the computer device in this embodiment.
[0135] The computer device 4 includes a memory 41, a processor 42, and a network interface 43 that are interconnected through a system bus. It should be noted that the figure only shows a computer device 4 with components 41-43, but it should be understood that it is not required to implement all the components shown, and more or fewer components can be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable gate arrays (Field-Programmable Gate Array, FPGA), digital processors (Digital Signal Processor, DSP), embedded devices, etc.
[0136] The computer device may be a desktop computer, a notebook, a PDA, a cloud server, etc. The computer device may interact with the user through a keyboard, a mouse, a remote controller, a touch pad, or a voice control device.
[0137] The memory 41 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 41 can be an internal storage unit of the computer device 4, such as a hard disk or memory of the computer device 4. In other embodiments, the memory 41 can also be an external storage device of the computer device 4, such as a plug-in hard disk equipped on the computer device 4, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (FlashCard), etc. Of course, the memory 41 can also include both the internal storage unit of the computer device 4 and its external storage device. In this embodiment, the memory 41 is generally used to store the operating system and various application software installed on the computer device 4, such as computer-readable instructions of the offline storage method of intelligent mining lamp road network data, etc. In addition, the memory 41 can also be used to temporarily store various types of data that have been output or are to be output.
[0138] The processor 42 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips in some embodiments. The processor 42 is generally used to control the overall operation of the computer device 4. In this embodiment, the processor 42 is used to run the computer-readable instructions stored in the memory 41 or process data, such as running the computer-readable instructions of the intelligent mining lamp road network data offline storage method.
[0139] The network interface 43 may include a wireless network interface or a wired network interface. The network interface 43 is generally used to establish a communication connection between the computer device 4 and other electronic devices.
[0140] The computer device provided in the present application can accurately determine the road network data that needs to be stored and realize offline storage of the road network data by acquiring the navigation route information of the smart mining lamp and combining it with the generation of data index information, so that the smart mining lamp can access and use the required road network data even without a network, thereby improving the time efficiency of data storage as well as the reliability of data and the stability of the system.
[0141] The present application also provides another implementation, namely, providing a computer-readable storage medium, wherein the computer-readable storage medium stores computer-readable instructions, and the computer-readable instructions can be executed by at least one processor to enable the at least one processor to perform the steps of the above-mentioned intelligent mining lamp road network data offline storage method.
[0142] The computer-readable storage medium provided in the present application can accurately determine the road network data that needs to be stored and realize offline storage of the road network data by acquiring the navigation route information of the smart mining lamp and combining it with the generation of data index information, so that the smart mining lamp can access and use the required road network data even without a network, thereby improving the time efficiency of data storage, the reliability of data and the stability of the system.
[0143] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0144] Obviously, the embodiments described above are only some embodiments of the present application, rather than all embodiments. The preferred embodiments of the present application are given in the accompanying drawings, but they do not limit the patent scope of the present application. The present application can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present application more thorough and comprehensive. Although the present application is described in detail with reference to the aforementioned embodiments, for those skilled in the art, it is still possible to modify the technical solutions recorded in the aforementioned specific implementation methods, or to perform equivalent replacement of some of the technical features therein. Any equivalent structure made using the contents of the specification and drawings of this application, directly or indirectly used in other related technical fields, is similarly within the scope of patent protection of this application.
Claims
1. A method for offline storage of intelligent mining lamp network data, characterized in that: The steps include: Get the navigation route information corresponding to the smart mining lamp; Determining data index information according to the navigation route information; Determine a road network data ID set according to the data index information; Constructing a road network request parameter according to the data index information and the road network data ID set; According to the road network request parameters, the target road network data is read and the target road network data is stored offline.
2. The method for offline storage of intelligent mining lamp network data according to claim 1, characterized in that: The step of determining the road network data ID set according to the data index information specifically includes: According to the data index information, query the corresponding road network data ID from a preset database; Data aggregation is performed on the road network data ID to obtain the road network data ID set.
3. The method for offline storage of intelligent mining lamp network data according to claim 2, characterized in that: The step of constructing a road network request parameter according to the data index information and the road network data ID set specifically includes: According to the road network data ID set, a cache identifier and a road network data version identifier are added to the data index information; The road network request parameters are generated according to the added data index information.
4. The method for offline storage of intelligent mining lamp network data according to claim 2, characterized in that: After the step of searching the corresponding road network data ID from a preset database according to the data index information, the method further includes: When there is no road network data ID corresponding to the data index information, a no-cache flag is added to the data index information.
5. The method for offline storage of intelligent mining lamp network data according to claim 1, characterized in that: The navigation route information includes longitude and latitude point string information, and the step of determining data index information according to the navigation route information specifically includes: Receiving a data query instruction carrying the latitude and longitude point string information; The longitude and latitude point string information is converted into data through the h3 spatial index to obtain an h3 index set as the data index information.
6. The method for offline storage of intelligent mining lamp network data according to claim 1, characterized in that: The step of reading the target road network data according to the road network request parameter and storing the target road network data offline specifically includes: Sending the network request parameters to the server of the smart miner's lamp; Feedback information corresponding to the road network request parameter is received as the target road network data, and the target road network data is stored offline.
7. The method for offline storage of intelligent mining lamp network data according to claim 1, characterized in that: After the step of reading the target road network data according to the road network request parameter and storing the target road network data offline, the method further includes: The target road network data is stored in a preset blockchain node.
8. An intelligent mining lamp network data offline storage device, characterized in that: include: An acquisition module is used to obtain navigation route information corresponding to the smart mining lamp; A first determining module, used to determine data index information according to the navigation route information; A second determination module, used to determine a road network data ID set according to the data index information; A construction module, used to construct a road network request parameter according to the data index information and the road network data ID set; The reading module is used to read the target road network data according to the road network request parameters and store the target road network data offline.
9. A computer device, characterized in that: The method comprises a memory and a processor, wherein the memory stores computer-readable instructions, and when the processor executes the computer-readable instructions, the steps of the method for offline storage of intelligent mining lamp network data as described in any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the steps of the method for offline storage of intelligent mining lamp network data according to any one of claims 1 to 7 are implemented.