Reading method and device of vehicle-mounted storage device, vehicle and storage medium

By reading the list of target file names and calculating hash values ​​when the vehicle connects to the on-board storage device, and using a database to match the best reading method, the problems of long reading time and cache space occupation of on-board storage devices are solved, achieving fast reading and saving cache.

CN114816252BActive Publication Date: 2026-01-02WUHU AUTOMOBILE ADVANCED TECHNOLOGY INSTITUTE +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210420026.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-20
Publication Date
2026-01-02
Estimated Expiration
2042-04-20

AI Technical Summary

Technical Problem

When there are many types and large amounts of data in the vehicle's storage device, the reading time is long, the cache space is occupied, and the user experience is affected.

Method used

When a vehicle connects to an onboard storage device, the system reads the list of target files and calculates their hash values. It then uses a pre-defined database to search for the best reading method and controls the vehicle to read information from the storage device.

Benefits of technology

It improves the speed at which vehicles read information from storage devices, saves cache space in the vehicle system, and enhances the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114816252B_ABST
    Figure CN114816252B_ABST
Patent Text Reader

Abstract

The application discloses a reading method and device of a vehicle-mounted storage device, a vehicle and a storage medium, wherein the method comprises the following steps: when it is detected that the vehicle accesses the vehicle-mounted storage device, reading the list name of at least one target file of the vehicle-mounted storage device, calculating the target hash value of the list name of the at least one target file, searching in a preset database by using the target hash value, obtaining a query result of the vehicle-mounted storage device, matching the optimal reading mode corresponding to the query result, and controlling the vehicle to read the information stored by the vehicle-mounted storage device according to the optimal reading mode. By calculating the file name in the accessed storage device, the optimal device reading mode is determined according to the hash value of the file name, the speed of reading the information of the storage device by the vehicle is improved, and the cache space of the vehicle-mounted system is saved. Therefore, the technical problem that all data in the accessed vehicle-mounted storage device is cached and read, the reading time is slow, and the cache space is occupied is solved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of vehicle infotainment technology, and in particular to a reading method and device for a vehicle storage device, a vehicle, and a storage medium. BACKGROUND

[0002] At present, with the rapid development of vehicle infotainment systems, users continue to demand higher efficiency and intelligence in reading vehicle storage devices, further promoting the development of vehicle intelligence and networking.

[0003] In related technologies, when a vehicle is inserted into a vehicle storage device, all data information in the accessed vehicle storage device is usually read and cached, and then the vehicle display screen is used to show the displayable information to the user for selection.

[0004] However, when there are many file types and large amounts of data in the vehicle storage device, reading often takes a long time, and the user cannot use it until the reading is completed. Moreover, the useless data read occupies the vehicle system space, limits the speed of the system reading device, and greatly affects the user's application experience, which needs to be solved urgently. SUMMARY

[0005] The present application provides a reading method and device for a vehicle storage device, a vehicle, and a storage medium to solve the technical problem of slow reading and large cache space occupation when all data in the accessed vehicle storage device is cached and read.

[0006] The first aspect of the present application provides a reading method for a vehicle storage device, comprising the following steps: detecting whether a vehicle is connected to a vehicle storage device; when it is detected that the vehicle is connected to the vehicle storage device, reading the list name of at least one target file of the vehicle storage device; calculating the target hash value of the list name of the at least one target file, searching in a preset database using the target hash value, obtaining the query result of the vehicle storage device, matching the best reading mode corresponding to the query result, and controlling the vehicle to read the information stored in the vehicle storage device according to the best reading mode.

[0007] Optionally, in an embodiment of the present application, the reading of the list name of at least one target file of the vehicle storage device comprises: obtaining the list name of all files in the vehicle storage device; selecting the list name of the target file matched with the vehicle output mode from the list name of all files, wherein the target file matched with the vehicle output mode includes one or more data of music, pictures, or videos.

[0008] Optionally, in an embodiment of the present application, the calculating the target hash value of the list name of the at least one target file comprises: calculating the target hash value of the list name of the at least one target file by a cryptographic hash function.

[0009] Optionally, in an embodiment of the present application, the searching in the preset database by using the target hash value, obtaining a query result of the vehicle-mounted storage device, and matching an optimal reading mode corresponding to the query result, and controlling the vehicle to read information stored in the vehicle-mounted storage device according to the optimal reading mode comprises: comparing the target hash value with hash values in the preset database.

[0010] When there is a hash value same as the target hash value in the preset database, the vehicle is controlled to read the stored information corresponding to the target hash value in the preset database; and when there is no hash value same as the target hash value in the preset database, the vehicle is controlled to read the information stored in the vehicle-mounted storage device.

[0011] Optionally, in an embodiment of the present application, after the controlling the vehicle to read the information stored in the vehicle-mounted storage device, the information stored in the vehicle-mounted storage device and the target hash value are further stored in the preset database.

[0012] The second aspect embodiment of the present application provides a reading device of a vehicle-mounted storage device, comprising: a detection module configured to detect whether a vehicle is connected to a vehicle-mounted storage device; a first reading module configured to read a list name of at least one target file of the vehicle-mounted storage device when it is detected that the vehicle is connected to the vehicle-mounted storage device; and a second reading module configured to calculate a target hash value of the list name of the at least one target file, search in a preset database by using the target hash value, obtain a query result of the vehicle-mounted storage device, match an optimal reading mode corresponding to the query result, and control the vehicle to read information stored in the vehicle-mounted storage device according to the optimal reading mode.

[0013] Optionally, in an embodiment of the present application, the first reading module comprises: an acquisition unit configured to acquire list names of all files in the vehicle-mounted storage device; and a selection unit configured to select a list name of a target file matched with a vehicle output mode from the list names of all the files, wherein the target file matched with the vehicle output mode comprises one or more of music, pictures or videos.

[0014] Optionally, in an embodiment of the present application, the second reading module is further configured to calculate the target hash value of the list name of the at least one target file by a cryptographic hash function.

[0015] The third aspect of the present application provides a vehicle, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor executes the program to perform the reading method of the vehicle-mounted storage device as described in the above embodiments.

[0016] The fourth aspect of the present application provides a computer readable storage medium, which stores a computer program executable by a processor to perform the reading method of the vehicle-mounted storage device as described in the above embodiments.

[0017] Therefore, the present application has at least the following beneficial effects:

[0018] The embodiments of the present application detect the vehicle accessing the vehicle-mounted storage device, read the list name of at least one target file of the vehicle-mounted storage device, calculate the target hash value of the list name of the at least one target file, search in the preset database by using the target hash value, obtain the query result of the vehicle-mounted storage device, and match the optimal reading mode corresponding to the query result, and control the vehicle to read the information stored by the vehicle-mounted storage device according to the optimal reading mode. By calculating the file name in the accessed storage device, the optimal device reading mode is determined according to the hash value of the file name, the speed of reading the information of the storage device by the vehicle is improved, and the cache space of the vehicle-mounted system is saved. Thus, the technical problem of slow reading time and large cache space occupation caused by caching and reading all data in the accessed vehicle-mounted storage device is solved.

[0019] Additional aspects and advantages of the present application will be made apparent by the following description and the accompanying drawings. BRIEF DESCRIPTION OF DRAWINGS

[0020] The above and / or additional aspects and advantages of the present application will become apparent and be readily understood from the following description, taken in conjunction with the accompanying drawings, in which:

[0021] Figure 1 A flowchart of a reading method of a vehicle-mounted storage device according to an embodiment of the present application is provided.

[0022] Figure 2 An execution logic schematic diagram of a reading method of a vehicle-mounted storage device according to an embodiment of the present application is provided.

[0023] Figure 3 An example diagram of a reading device of a vehicle-mounted storage device according to an embodiment of the present application is provided.

[0024] Figure 4 A structural schematic diagram of a vehicle according to an embodiment of the present application is provided.

[0025] Explanation of reference signs: detection module - 100, first reading module - 200, second reading module - 300, memory - 401, processor - 402, communication interface - 403. DETAILED DESCRIPTION

[0026] Embodiments of the present application are described in detail below with reference to examples shown in the accompanying drawings, in which the same or similar reference signs represent the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by reference to the accompanying drawings are exemplary and are intended to explain the present application, and cannot be understood as limiting the present application.

[0027] A reading method, device, vehicle and storage medium of a vehicle-mounted storage device are described below with reference to the accompanying drawings. In view of the problems mentioned in the background art, the present application provides a reading method of a vehicle-mounted storage device, in which, when it is detected that a vehicle accesses the vehicle-mounted storage device, the list name of at least one target file of the vehicle-mounted storage device is read, the target hash value of the list name of the at least one target file is calculated, the target hash value is used to search in a preset database, the query result of the vehicle-mounted storage device is obtained, the best reading mode corresponding to the query result is matched, and the information stored by the vehicle-mounted storage device is read according to the best reading mode. By calculating the file name in the accessed storage device, the best device reading mode is determined according to the hash value of the file name, the speed of reading the information of the storage device by the vehicle is improved, and the cache space of the vehicle-mounted system is saved. Thus, the technical problems of caching and reading all data in the accessed vehicle-mounted storage device, slow reading time and large cache space occupation are solved.

[0028] Specifically, Figure 1 A flowchart of a reading method of a vehicle-mounted storage device provided by an embodiment of the present application is shown in FIG. 1.

[0029] As Figure 1 shown, the reading method of the vehicle-mounted storage device includes the following steps:

[0030] In step S101, it is detected whether the vehicle accesses the vehicle-mounted storage device.

[0031] It can be understood that the vehicle-mounted storage device can be a storage device capable of connecting the vehicle, such as a U disk, a mobile phone or a mobile hard disk, etc. In use, it can be connected with the vehicle through a vehicle-mounted interface and display the stored content through a vehicle-mounted display system.

[0032] The embodiments of the present application can determine whether to access the vehicle-mounted storage device through various detection manners. For example, whether to access the vehicle-mounted storage device is determined by detecting the state of the vehicle-mounted interface or the access identifier of the vehicle-mounted display system. Taking the detection of the state of the vehicle-mounted interface as an example, the embodiments of the present application can detect whether there is an electrical signal passing through the vehicle-mounted interface, and when it is detected that there is an electrical signal passing through, the embodiments of the present application can determine that the vehicle currently accesses the vehicle-mounted storage device. Taking the detection of the access identifier of the vehicle-mounted display system as an example, the embodiments of the present application can determine whether there is a set access identifier in the current interface image by capturing the interface image on the vehicle-mounted display screen, and when there is an access identifier in the current interface image, the embodiments of the present application can determine that the vehicle currently accesses the vehicle-mounted storage device. The detection manner can be set by a person skilled in the art according to the actual situation, and is not specifically limited.

[0033] On the basis of the above-mentioned embodiments, after detecting that the vehicle accesses the vehicle-mounted storage device, the embodiments of the present application can indicate and remind that the vehicle-mounted storage device has been accessed through sound or light, such as the sound of the sound system emitting “drop” sound or the indicator light at the vehicle-mounted interface being always on, and the like, and are not specifically limited.

[0034] In step S102, when it is detected that the vehicle accesses the vehicle-mounted storage device, the list name of at least one target file of the vehicle-mounted storage device is read.

[0035] After the vehicle accesses the vehicle-mounted storage device is detected through the above-mentioned embodiments, the list name of the target file in the vehicle-mounted storage device is read. Unlike the reading manner in the related art, the embodiments of the present application only read the list name of the file of the vehicle-mounted access device. For example, taking a U disk as an example, there are multiple parent folders A, B, C and D in the U disk, A includes multiple pictures, B includes multiple videos, C includes two sub-files E and F, the two sub-files E and F respectively include multiple music and multiple videos, and D includes multiple text documents. When reading, the embodiments of the present application can obtain the names of A, B, C, D, E and F, and the embodiments of the present application can not read the data stored in the file. Thus, the reading time is reduced, the extraction speed is improved, and the user experience is effectively improved.

[0036] Further, the embodiments of the present application can read the names of all or part of the files, and the names of all or part of the files can be set according to the actual needs, and are not specifically limited.

[0037] Optionally, in an embodiment of the present application, reading the list name of at least one target file of the vehicle-mounted storage device comprises: obtaining the list name of all files in the vehicle-mounted storage device; and selecting the list name of the target file matched with the vehicle output mode from the list name of all files, wherein the target file matched with the vehicle output mode includes one or more data in music, pictures or videos.

[0038] It can be understood that due to the limitation of the vehicle display system, not all formats of files can be displayed, and if all files are read and then the displayable content is filtered, the reading speed will be reduced. Therefore, in the reading process, the embodiments of the present application can selectively read to improve the reading speed. For example, the vehicle display system can play music or video, display pictures, etc., and therefore, in the reading process, the embodiments of the present application can obtain the file names that can be displayed by the vehicle display system. For example, on the basis of the above-mentioned embodiments, since the D folder stores a plurality of text documents, for the D folder, the embodiments of the present application can not read, and only read the names of A, B, C, E and F.

[0039] It should be noted that the target files matched with the vehicle output mode can be adjusted according to actual conditions, and are not limited to the files listed in the above-mentioned embodiments, for example, the text documents are set as the target files matched with the vehicle output mode.

[0040] In step S103, the target hash value of the list name of at least one target file is calculated, the target hash value is used for searching in the preset database, the query result of the vehicle storage device is obtained, the best reading mode corresponding to the query result is matched, and the vehicle is controlled to read the information stored in the vehicle storage device according to the best reading mode.

[0041] It can be understood that after obtaining the name of the target file matched with the vehicle output mode, in order to obtain the best reading mode of the vehicle storage device information and reduce the time required for reading the vehicle storage device, the embodiments of the present application calculate the hash value of the list name of at least one target file.

[0042] Optionally, in an embodiment of the present application, calculating the target hash value of the list name of at least one target file comprises: calculating the target hash value of the list name of at least one target file by using a cryptographic hash function.

[0043] Specifically, the embodiments of the present application can calculate the hash value by using the MD5 Message-Digest Algorithm (MD5), which can generate a 128-bit (16-byte) hash value, which can be used to ensure the integrity of information transmission.

[0044] In the calculation, the existing md5sum function can be directly called to complete the calculation, and the calculation speed is very fast. It is tested that the time for calculating the MD5 hash value of a U disk with 10000 files is less than 1s.

[0045] After the target hash value is calculated, the target hash value is searched in a preset database to obtain a query result, so as to determine the optimal reading mode, wherein the preset database stores the content of the vehicle-mounted storage device read before and the hash value thereof. It can be understood that the hash value can determine the consistency of information, because it can be determined through the hash value whether the current vehicle-mounted storage device is the one read before. Through the MD5 information digest algorithm of the vehicle-mounted storage device, it can be determined very accurately and quickly whether it is the same vehicle-mounted storage device, whether the vehicle-mounted storage device multimedia file has changed, and the difference between vehicle-mounted storage devices of different models is also avoided.

[0046] Optionally, in an embodiment of the present application, the target hash value is searched in the preset database to obtain the query result of the vehicle-mounted storage device, and the optimal reading mode corresponding to the query result is matched, and the vehicle is controlled to read the information stored by the vehicle-mounted storage device according to the optimal reading mode, comprising: comparing the target hash value with the hash value in the preset database; when the same hash value as the target hash value exists in the preset database, controlling the vehicle to read the stored information corresponding to the target hash value in the preset database; when the same hash value as the target hash value does not exist in the preset database, controlling the vehicle to read the information stored by the vehicle-mounted storage device.

[0047] Specifically, through the hash value comparison, if the same hash value is found in the preset database, it indicates that the current vehicle-mounted storage device has been read before and is cached in the preset database, and then the data in the preset database can be directly called by the embodiment of the present application, which reduces the reading time and saves the cache space. If the same hash value is not found in the preset database, it indicates that the current vehicle-mounted storage device has not been read before and is a new vehicle-mounted storage device, at this time, the content of the current vehicle-mounted storage device is read by the embodiment of the present application.

[0048] Optionally, in an embodiment of the present application, after the vehicle is controlled to read the information stored by the vehicle-mounted storage device, it further comprises: storing the information stored by the vehicle-mounted storage device and the target hash value in the preset database.

[0049] Specifically, in order to reduce the reading time of the same vehicle-mounted storage device in the future, after the content of the new vehicle-mounted storage device is read, the hash value of the new vehicle-mounted storage device and the read data content are stored in the preset database by the embodiment of the present application, and the database is expanded, so that the next time the same vehicle-mounted storage device is inserted, it can be directly called, the reading time is reduced, and the reading speed is improved.

[0050] The reading method of the vehicle-mounted storage device of the present application will be described below through a specific embodiment in combination with the drawings.

[0051] Taking a U disk as an example, Figure 2 An execution logic diagram of a reading method of a vehicle-mounted storage device provided by an embodiment of the present application is provided.

[0052] The specific flow method is as follows:

[0053] 1) When the U disk is inserted, all media file directory lists of the U disk are acquired;

[0054] 2) The md5 value is calculated by using the file directory list, and a 128-bit hash value is obtained;

[0055] 3) In the already stored U disk information list, it is checked whether the newly calculated md5 value already exists;

[0056] 4) If the md5 value already exists, the stored media information is called in, and the U disk can be immediately used; otherwise, it is a new U disk, and a media information pre-reading operation is performed, and the MD5 value of the U disk is also recorded.

[0057] According to the reading method of the vehicle-mounted storage device provided by the embodiment of the present application, when it is detected that the vehicle accesses the vehicle-mounted storage device, the list name of at least one target file of the vehicle-mounted storage device is read, the target hash value of the list name of the at least one target file is calculated, the target hash value is used for searching in a preset database, the query result of the vehicle-mounted storage device is obtained, the best reading mode corresponding to the query result is matched, and the vehicle is controlled to read the information stored by the vehicle-mounted storage device according to the best reading mode. By calculating the file name in the accessed storage device, the best device reading mode is determined according to the hash value of the file name, the speed of reading the information of the storage device by the vehicle is improved, and the cache space of the vehicle-mounted system is saved.

[0058] Next, a reading device of a vehicle-mounted storage device provided by the embodiment of the present application is described with reference to the accompanying drawings.

[0059] Figure 3 A block diagram of the reading device of the vehicle-mounted storage device of the embodiment of the present application is shown.

[0060] As shown in Figure 3 , the reading device 10 of the vehicle-mounted storage device includes a detection module 100, a first reading module 200, and a second reading module 300.

[0061] The reading method comprises the following steps: detecting whether the vehicle is connected to the vehicle storage device; reading a list name of at least one target file of the vehicle storage device when it is detected that the vehicle is connected to the vehicle storage device; calculating a target hash value of the list name of the at least one target file; searching a preset database by using the target hash value to obtain a query result of the vehicle storage device; and matching the query result with an optimal reading mode corresponding to the query result, and controlling the vehicle to read information stored in the vehicle storage device according to the optimal reading mode.

[0062] Optionally, in an embodiment of the present application, the first reading module 200 comprises: an acquisition unit configured to acquire list names of all files in the vehicle storage device; and a selection unit configured to select, from the list names of all files, a list name of a target file matching the output mode of the vehicle, wherein the target file matching the output mode of the vehicle comprises one or more of music, pictures or videos.

[0063] Optionally, in an embodiment of the present application, the second reading module 300 is further configured to calculate the target hash value of the list name of the at least one target file by using a cryptographic hash function.

[0064] Optionally, in an embodiment of the present application, the second reading module 300 further comprises: a comparison unit configured to compare the target hash value with hash values in the preset database; a first control unit configured to control the vehicle to read stored information corresponding to the target hash value in the preset database when there is a hash value identical to the target hash value in the preset database; and a second control unit configured to control the vehicle to read information stored in the vehicle storage device when there is no hash value identical to the target hash value in the preset database.

[0065] Optionally, in an embodiment of the present application, the reading device 10 of the vehicle storage device further comprises a storage module configured to store the information stored in the vehicle storage device and the target hash value in the preset database after controlling the vehicle to read the information stored in the vehicle storage device.

[0066] It should be noted that the above description of the reading method of the vehicle storage device is also applicable to the reading device of the vehicle storage device, and thus will not be described here again.

[0067] According to the reading device of the vehicle-mounted storage device provided by the embodiment of the present application, when the vehicle accesses the vehicle-mounted storage device, the list name of at least one target file of the vehicle-mounted storage device is read, the target hash value of the list name of the at least one target file is calculated, the target hash value is used to search in the preset database, the query result of the vehicle-mounted storage device is obtained, the optimal reading mode corresponding to the query result is matched, and the information stored by the vehicle-mounted storage device is read by the vehicle according to the optimal reading mode. The file name in the accessed storage device is calculated, the optimal device reading mode is determined according to the hash value of the file name, the speed of reading the information of the storage device by the vehicle is improved, and the cache space of the vehicle-mounted system is saved.

[0068] Figure 4 The vehicle provided by the embodiment of the present application is shown in the structural schematic diagram. The vehicle can include:

[0069] The memory 401, the processor 402 and the computer program stored in the memory 401 and executable on the processor 402.

[0070] The processor 402 implements the reading method of the vehicle-mounted storage device provided in the above embodiment when executing the program.

[0071] Further, the vehicle further includes:

[0072] The communication interface 403 is used for communication between the memory 401 and the processor 402.

[0073] The memory 401 is used for storing the computer program executable on the processor 402.

[0074] The memory 401 can include a high-speed RAM memory, and can also include a non-volatile memory, for example, at least one disk memory.

[0075] If the memory 401, the processor 402 and the communication interface 403 are independently implemented, the communication interface 403, the memory 401 and the processor 402 can be connected with each other through a bus and complete the communication between each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For the convenience of representation, Figure 4 In the figure, only one thick line is used to represent, but it does not mean that there is only one bus or one type of bus.

[0076] Optionally, if the memory 401, the processor 402 and the communication interface 403 are integrated on a chip, the memory 401, the processor 402 and the communication interface 403 can communicate with each other through an internal interface.

[0077] The processor 402 can be a central processing unit (CPU) or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to perform the methods described in the embodiments of the present application.

[0078] The embodiment further provides a computer readable storage medium, which stores a computer program, and the program is executed by a processor to implement the reading method of the vehicle-mounted storage device.

[0079] In the description of the present specification, the description of the terms "one embodiment", "some embodiments", "an example", "a specific example", or "some examples" means that the specific features, structures, materials or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present application. In the present specification, the illustrative description of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any appropriate manner in one or N embodiments or examples. In addition, the person skilled in the art can combine and combine the different embodiments or examples described in the present specification and the features of the different embodiments or examples without contradiction.

[0080] In addition, the terms "first", "second" are only for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined with "first", "second" can explicitly or implicitly include at least one of the features. In the description of the present application, the meaning of "N" is at least two, for example, two, three, etc., unless otherwise specifically limited.

[0081] Any process or method descriptions in flow charts or described elsewhere herein can be understood as representing code modules, segments, or portions of code which include one or more executable instructions for implementing specific logic functions (or steps) in the process, and the preferred embodiments of the application include additional implementations in which the order of steps can differ from those shown or discussed, including a step can occur at other times, including as recited in the claims, the functions can be performed at least in part by parallel processes or machines (for example, general purpose microprocessors, microcontrollers, microcomputers, digital signal processors, embedded microprocessors, etc.), or in a distributed manner (e.g., over several components or over a network), or in other ways. Thus, the broader implementation of the application includes other implementations which can not be explicitly described or shown herein, but which are included within the scope of the application.

[0082] It should be understood that portions of the application can be implemented in hardware, software, firmware, or combinations thereof. In the above embodiments, the N steps or methods can be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. As such, if implemented in hardware, and in another embodiment, any of the following technologies, known in the art, or their combinations, can be used to implement: discrete logic circuitry having logic gates for implementing logic functions on data signals, application specific integrated circuits having appropriate combinational logic gates, programmable gate arrays (PGA), field programmable gate arrays (FPGA), and the like.

[0083] Those skilled in the art can understand that all or part of the steps carried out by the above-mentioned embodiment methods can be completed by programs instructing related hardware, and the programs can be stored in a computer readable storage medium. When the program is executed, it includes one of the steps of the method embodiment or a combination thereof.

Claims

1. A method of reading a vehicle-mounted storage device, characterized by, The method comprises the following steps: detecting whether a vehicle is connected to an on-board storage device; reading a list name of at least one target file of the on-board storage device when it is detected that the vehicle is connected to the on-board storage device; and The reading of the list name of the at least one target file of the on-board storage device comprises: obtaining list names of all files in the on-board storage device; selecting, from the list names of all files, a list name of a target file matching a vehicle output mode, wherein the target file matching the vehicle output mode comprises one or more of music, pictures or videos; calculating a target hash value of the list name of the at least one target file, searching a preset database by using the target hash value to obtain a query result of the on-board storage device, matching a best reading mode corresponding to the query result, and controlling the vehicle to read information stored in the on-board storage device according to the best reading mode; wherein the calculation of the target hash value of the list name of the at least one target file comprises: calculating the target hash value of the list name of the at least one target file by using a cryptographic hash function; the searching of the preset database by using the target hash value to obtain the query result of the on-board storage device, the matching of the best reading mode corresponding to the query result, and the controlling of the vehicle to read the information stored in the on-board storage device according to the best reading mode comprise: comparing the target hash value with hash values in the preset database; when there is a hash value identical to the target hash value in the preset database, controlling the vehicle to read storage information corresponding to the target hash value in the preset database; when there is no hash value identical to the target hash value in the preset database, controlling the vehicle to read the information stored in the on-board storage device; after the controlling of the vehicle to read the information stored in the on-board storage device, the method further comprises: storing the information stored in the on-board storage device and the target hash value in the preset database.

2. A reading device of an in-vehicle storage device to realize the reading method of the in-vehicle storage device according to claim 1, characterized by The method comprises the following steps: a detection module for detecting whether a vehicle is connected to an on-board storage device; a first reading module for reading a list name of at least one target file of the on-board storage device when it is detected that the vehicle is connected to the on-board storage device; and a second reading module for calculating a target hash value of the list name of the at least one target file, searching a preset database by using the target hash value to obtain a query result of the on-board storage device, matching a best reading mode corresponding to the query result, and controlling the vehicle to read information stored in the on-board storage device according to the best reading mode; wherein the first reading module comprises: an obtaining unit for obtaining list names of all files in the on-board storage device; a selecting unit for selecting, from the list names of all files, a list name of a target file matching a vehicle output mode, wherein the target file matching the vehicle output mode comprises one or more of music, pictures or videos; the second reading module comprises: a calculating unit for calculating the target hash value of the list name of the at least one target file by using a cryptographic hash function; the searching of the preset database by using the target hash value to obtain the query result of the on-board storage device, the matching of the best reading mode corresponding to the query result, and the controlling of the vehicle to read the information stored in the on-board storage device according to the best reading mode comprise: comparing the target hash value with hash values in the preset database; when there is a hash value identical to the target hash value in the preset database, controlling the vehicle to read storage information corresponding to the target hash value in the preset database; when there is no hash value identical to the target hash value in the preset database, controlling the vehicle to read the information stored in the on-board storage device; after the controlling of the vehicle to read the information stored in the on-board storage device, the method further comprises: storing the information stored in the on-board storage device and the target hash value in the preset database. The second reading module is further configured to calculate a target hash value of a list name of the at least one target file by using a cryptographic hash function.

3. A vehicle characterized by comprising: The computer program is stored in the memory and executable in the processor, and the processor executes the program to realize the reading method of the vehicle-mounted storage device according to claim 1. The program is executed by the processor to realize the reading method of the vehicle-mounted storage device according to claim 1.

4. A computer-readable storage medium having stored thereon a computer program, characterized in that, ​

Citation Information

Patent Citations

  • Media file retrieval method and device for vehicle-mounted external storage equipment

    CN110543575A

  • Data loading method and device, electronic equipment and storage medium

    CN112380226A