CN114816252A - Reading method and device of vehicle-mounted storage equipment, vehicle and storage medium - Google Patents

Reading method and device of vehicle-mounted storage equipment, vehicle and storage medium Download PDF

Info

Publication number
CN114816252A
CN114816252A CN202210420026.6A CN202210420026A CN114816252A CN 114816252 A CN114816252 A CN 114816252A CN 202210420026 A CN202210420026 A CN 202210420026A CN 114816252 A CN114816252 A CN 114816252A
Authority
CN
China
Prior art keywords
vehicle
storage device
hash value
mounted storage
reading
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210420026.6A
Other languages
Chinese (zh)
Inventor
刘允辉
赛影辉
张强
盛文强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhu Automotive Prospective Technology Research Institute Co ltd
Chery Automobile Co Ltd
Original Assignee
Wuhu Automotive Prospective Technology Research Institute Co ltd
Chery Automobile Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhu Automotive Prospective Technology Research Institute Co ltd, Chery Automobile Co Ltd filed Critical Wuhu Automotive Prospective Technology Research Institute Co ltd
Priority to CN202210420026.6A priority Critical patent/CN114816252A/en
Publication of CN114816252A publication Critical patent/CN114816252A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/061Improving I/O performance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/14Details of searching files based on file metadata
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24552Database cache management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0608Saving storage space on storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0655Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Library & Information Science (AREA)
  • Computational Linguistics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application discloses a reading method and device of vehicle-mounted storage equipment, 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, 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 to obtain a query result of the vehicle-mounted storage device, an optimal reading mode corresponding to the query result is matched, and the vehicle is controlled to read information stored in the vehicle-mounted storage device according to the optimal reading mode. By calculating the file name in the accessed storage device and determining the optimal device reading mode according to the hash value of the file name, the speed of reading the information of the storage device by the vehicle is increased, and the cache space of the vehicle-mounted system is saved. Therefore, the technical problems that all data in the accessed vehicle-mounted storage device are cached and read, the reading time is slow, and the occupied cache space is large are solved.

Description

Reading method and device of vehicle-mounted storage equipment, vehicle and storage medium
Technical Field
The present disclosure relates to the field of vehicle-mounted information entertainment technologies, and in particular, to a method and an apparatus for reading a vehicle-mounted storage device, a vehicle, and a storage medium.
Background
At present, with the rapid development of vehicle-mounted information entertainment systems, users continuously put forward new and higher requirements on the efficiency and the intellectualization of vehicle reading of vehicle-mounted storage devices, and the development of vehicle intellectualization and networking is further promoted.
When a vehicle is inserted into the vehicle-mounted storage device, all data information in the accessed vehicle-mounted storage device is read and cached generally in the related technology, and displayable information is displayed to a user through a vehicle-mounted display screen for the user to select.
However, when the types and the data amount of files in the vehicle-mounted storage device are large, reading often requires a long time, a user can use the device after reading is finished, and read useless data occupy the space of a vehicle-mounted system, so that the speed of the system reading device is limited, the application experience of the user is greatly influenced, and a solution is needed urgently.
Disclosure of Invention
The application provides a reading method and device of a vehicle-mounted storage device, a vehicle and a storage medium, and aims to solve the technical problems that all data in the accessed vehicle-mounted storage device are cached and read, the reading time is slow, and the occupied cache space is large.
An embodiment of a first aspect of the present application provides a reading method for a vehicle-mounted storage device, including the following steps: detecting whether a vehicle accesses a vehicle-mounted storage device; when the vehicle is detected to be connected to the vehicle-mounted storage equipment, reading a list name of at least one target file of the vehicle-mounted storage equipment; and calculating a target hash value of the list name of the at least one target file, retrieving in a preset database by using the target hash value to obtain a query result of the vehicle-mounted storage device, 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.
Optionally, in an embodiment of the present application, the reading the list name of the at least one target file of the onboard storage device includes: acquiring list names of all files in the vehicle-mounted storage equipment; and selecting 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 data of music, pictures or videos.
Optionally, in an embodiment of the present application, the calculating a target hash value of the list name of the at least one target file includes: a target hash value of the list name of the at least one target file is calculated by a cryptographic hash function.
Optionally, in an embodiment of the present application, retrieving, by using the target hash value in a preset database, a query result of the vehicle-mounted storage device is obtained, 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 includes: comparing the target hash value with the hash value in the preset database;
when the hash value identical to the target hash value exists in the preset database, controlling the vehicle to read the storage information corresponding to the target hash value in the preset database; and when the preset database does not have the hash value identical to the target hash value, controlling the vehicle to read the information stored in the vehicle-mounted storage device.
Optionally, in an embodiment of the present application, after controlling the vehicle to read the information stored in the onboard storage device, the method further includes: and storing the information stored in the vehicle-mounted storage equipment and the target hash value into the preset database.
An embodiment of a second aspect of the present application provides a reading apparatus for a vehicle-mounted storage device, including: the detection module is used for detecting whether the vehicle is connected to the vehicle-mounted storage device or not; the first reading module is used for reading the list name of at least one target file of the vehicle-mounted storage equipment when the vehicle is detected to be connected to the vehicle-mounted storage equipment; and the second reading module is used for calculating a target hash value of the list name of the at least one target file, retrieving the target hash value in a preset database to obtain a query result of the vehicle-mounted storage device, matching an optimal reading mode corresponding to the query result, and controlling the vehicle to read the information stored in the vehicle-mounted storage device according to the optimal reading mode.
Optionally, in an embodiment of the present application, the first reading module includes: the acquisition unit is used for acquiring list names of all files in the vehicle-mounted storage equipment; and the selecting unit is used for selecting the list name of a target file matched with the 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 data of music, pictures or videos.
Optionally, in an embodiment of the application, the second reading module is further configured to calculate a target hash value of the list name of the at least one target file by a cryptographic hash function.
An embodiment of a third aspect of the present application provides a vehicle, comprising: the reading method of the vehicle-mounted storage device comprises the following steps of storing a reading result of the vehicle-mounted storage device, storing the reading result of the vehicle-mounted storage device in a memory, storing the reading result of the vehicle-mounted storage device in the memory, and executing a computer program stored on the memory and capable of running on the processor.
A fourth aspect of the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to execute the reading method of the in-vehicle storage device according to the foregoing embodiment.
Therefore, the application has at least the following beneficial effects:
according to the embodiment of the application, the vehicle is detected to access 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 optimal reading mode corresponding to the query result is matched, and the vehicle is controlled to read the information stored in the vehicle-mounted storage device according to the optimal reading mode. By calculating the file name in the accessed storage device and determining the optimal device reading mode according to the hash value of the file name, the speed of reading the information of the storage device by the vehicle is increased, and the cache space of the vehicle-mounted system is saved. Therefore, the technical problems that all data in the accessed vehicle-mounted storage device are cached and read, the reading time is slow, and the occupied cache space is large are solved.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
Drawings
The foregoing and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a flowchart of a reading method of an onboard storage device according to an embodiment of the present application;
FIG. 2 is a schematic diagram illustrating an execution logic of a reading method of an onboard storage device according to an embodiment of the present application;
FIG. 3 is a diagram illustrating an example of a reading apparatus of an in-vehicle storage device according to an embodiment of the present application;
FIG. 4 is a schematic structural diagram of a vehicle according to an embodiment of the present application.
Description of reference numerals: the device comprises a detection module-100, a first reading module-200, a second reading module-300, a memory-401, a processor-402 and a communication interface-403.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary and intended to be used for explaining the present application and should not be construed as limiting the present application.
A reading method and apparatus, a vehicle, and a storage medium of an in-vehicle storage device according to an embodiment of the present application are described below with reference to the drawings. In order to solve the problems mentioned in the background art, the present application provides a method for reading a vehicle-mounted storage device, in which when it is detected that a vehicle accesses the vehicle-mounted storage device, a list name of at least one target file of the vehicle-mounted storage device is read, a target hash value of the list name of the at least one target file is calculated, the target hash value is retrieved in a preset database to obtain a query result of the vehicle-mounted storage device, and the vehicle is controlled to read information stored in the vehicle-mounted storage device according to an optimal reading mode by matching an optimal reading mode corresponding to the query result. By calculating the file name in the accessed storage device and determining the optimal device reading mode according to the hash value of the file name, the speed of reading the information of the storage device by the vehicle is increased, and the cache space of the vehicle-mounted system is saved. Therefore, the technical problems that all data in the accessed vehicle-mounted storage device are cached and read, the reading time is slow, and the occupied cache space is large are solved.
Specifically, fig. 1 is a schematic flowchart of a reading method of an onboard storage device according to an embodiment of the present application.
As shown in fig. 1, the reading method of the vehicle-mounted storage device includes the following steps:
in step S101, it is detected whether the vehicle accesses the in-vehicle storage device.
It is understood that the vehicle-mounted storage device may be a storage device capable of being connected to the vehicle, such as a usb disk, a mobile phone or a mobile hard disk, and when in use, may be connected to the vehicle through the vehicle-mounted interface and display the stored content through the vehicle-mounted display system.
The embodiment of the application can determine whether to access the vehicle-mounted storage device through various detection modes. For example, whether to access the in-vehicle storage device is determined by detecting the state of the in-vehicle interface or an access identifier of the in-vehicle display system, or the like. By taking the state of the vehicle-mounted interface as an example, the embodiment of the application can detect whether the electric signal passes through the vehicle-mounted interface, and when the electric signal passes through the vehicle-mounted interface, the embodiment of the application can judge that the vehicle is currently accessed into the vehicle-mounted storage device. By taking the detection of the access identifier of the vehicle-mounted display system as an example, the embodiment of the application can determine whether the current interface image has the set access identifier by acquiring the interface image on the vehicle-mounted display screen, and the embodiment of the application can determine that the vehicle is currently accessed to the vehicle-mounted storage device if the current interface image has the access identifier. The detection mode can be set by a person skilled in the art according to actual conditions, and is not particularly limited.
On the basis of the above embodiment, after it is detected that the vehicle accesses the vehicle-mounted storage device, the embodiment of the application may indicate through sound or light to remind that the vehicle-mounted storage device has accessed, for example, a sound system makes a "drop" sound or an indicator lamp at a vehicle-mounted interface is normally on, and the like, without specific limitation.
In step S102, upon detecting that the vehicle accesses the in-vehicle storage device, a list name of at least one target file of the in-vehicle storage device is read.
After the vehicle is detected to access the vehicle-mounted storage device through the embodiment, the target file list names in the vehicle-mounted storage device are read, and different from the reading mode in the related art, the embodiment of the application only reads the list names of the files of the vehicle-mounted access device. For example, taking a usb disk as an example, there are multiple parent folders in the usb disk, A, B, C, D, where a includes multiple pictures, B includes multiple videos, C includes two subfiles E and F, where the two subfiles E and F include multiple music and multiple videos, respectively, and D includes multiple text documents, and when reading, embodiments of the present application may obtain names A, B, C, D, E and F, and may not read data stored inside the files. Therefore, reading time is reduced, the extraction speed is improved, and user experience is effectively improved.
Further, the embodiment of the application may read names of all or part of the files, and may specifically be set according to actual needs, without specific limitations.
Optionally, in an embodiment of the present application, reading a list name of at least one target file of the onboard storage device includes: acquiring list names of all files in the vehicle-mounted storage equipment; and selecting a list name of a target file matched with the vehicle output mode from the list names of all files, wherein the target file matched with the vehicle output mode comprises one or more data of music, pictures or videos.
It can be understood that due to the limitation of the vehicle display system, not all the format files can be displayed, and if all the files are read and displayed contents are filtered, the reading speed will be reduced. Therefore, the embodiment of the application can selectively read when reading, and the reading speed is improved. For example, the vehicle-mounted display system may play music or video, display pictures, and the like, and therefore, when reading, the embodiment of the application may acquire the file name displayable by the vehicle-mounted display system. For example, on the basis of the above-described embodiment, since a plurality of text documents are stored in the D folder, the embodiment of the present application may read only the names A, B, C, E and F without reading the D folder.
It should be noted that the target file matching the vehicle output pattern may be adjusted according to the actual situation, and is not limited to the files listed in the above embodiments, for example, the text document is set as the target file matching the vehicle output pattern, and the like.
In step S103, a target hash value of the list name of at least one target file is calculated, the target hash value is used to perform retrieval in a preset database, so as to obtain a query result of the vehicle-mounted storage device, and the vehicle is controlled to read information stored in the vehicle-mounted storage device according to an optimal reading mode corresponding to the query result.
It can be understood that, after the names of the target files matching the vehicle output pattern are obtained, in order to obtain the best way of reading the information of the vehicle-mounted storage device and reduce the time required for reading the vehicle-mounted storage device, the embodiment of the application calculates the list name of at least one target file to obtain the hash value of the list name of at least one target file.
Optionally, in an embodiment of the present application, calculating a target hash value of the list name of the at least one target file includes: a target hash value for the list name of the at least one target file is calculated by a cryptographic hash function.
Specifically, embodiments of the present application may calculate the hash value through an MD5 Message Digest Algorithm (MD5 Message-Digest Algorithm), and the MD5 Message Digest Algorithm may generate a 128-bit (16-byte) hash value (hash value), which may be used to ensure the integrity and consistency of the Message transmission.
During calculation, the existing md5sum function can be directly called to complete calculation, and the calculation speed is very high. The test shows that the time of the hash value of the USB flash disk MD5 with 10000 files is less than 1 s.
And after the target hash value is calculated, retrieving the target hash value and the hash value stored in a preset database to obtain a query result, and determining the optimal reading mode, wherein the preset database stores the content of the vehicle-mounted storage device which is read before and the hash value thereof. It will be appreciated that the hash value may determine the consistency of the information, as it may be determined from the hash value whether the current onboard storage device was previously read. By the MD5 information abstract algorithm of the vehicle-mounted storage device, whether the vehicle-mounted storage device is the same vehicle-mounted storage device or not and whether the multimedia file of the vehicle-mounted storage device is changed or not can be judged very accurately and quickly, and differences of vehicle-mounted storage devices of different models are avoided.
Optionally, in an embodiment of the present application, retrieving, by using the target hash value in a preset database, to obtain a query result of the vehicle-mounted storage device, 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 includes: comparing the target hash value with the hash value in a preset database; when the hash value identical to the target hash value exists in the preset database, controlling the vehicle to read the storage information corresponding to the target hash value in the preset database; and controlling the vehicle to read the information stored in the vehicle-mounted storage device when the hash value identical to the target hash value does not exist in the preset database.
Specifically, through the comparison of the hash values, 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 cached in the preset database, and the embodiment of the present application may directly call the data in the preset database, so that the reading time is reduced and the caching space is saved. 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, and at this time, the embodiment of the present application reads the content of the current vehicle-mounted storage device.
Optionally, in an embodiment of the present application, after controlling the vehicle to read the information stored in the onboard storage device, the method further includes: and storing the information stored in the vehicle-mounted storage equipment and the target hash value into a preset database.
Specifically, in order to reduce the reading time of the same vehicle-mounted storage device later, 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, and the database is expanded, so that the hash value and the read data content can be directly called when the same vehicle-mounted storage device is inserted next time, the reading time is reduced, and the reading speed is increased.
The following describes a reading method of the onboard storage device according to a specific embodiment, with reference to the accompanying drawings.
Taking a usb disk as an example, fig. 2 is a schematic diagram of an execution logic of a reading method of a vehicle-mounted storage device according to an embodiment of the present application.
The specific flow method is as follows:
1) when the USB flash disk is inserted, acquiring a full directory list of all media files of the USB flash disk;
2) calculating the md5 value by using the file directory list to obtain a 128-bit hash value;
3) searching whether a newly calculated md5 value already exists in an already stored U disk information list;
4) if the media information exists, the stored media information is called, and the U disk can be used immediately; otherwise, the USB flash disk is a new USB flash disk, and the pre-reading operation of the media information is carried out, and the MD5 value of the USB flash disk is also recorded.
According to the reading method of the vehicle-mounted storage device, 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 for searching in a 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 vehicle is controlled to read information stored in the vehicle-mounted storage device according to the optimal reading mode. By calculating the file name in the accessed storage device and determining the optimal device reading mode according to the hash value of the file name, the speed of reading the information of the storage device by the vehicle is increased, and the cache space of the vehicle-mounted system is saved.
Next, a reading apparatus of an in-vehicle storage device proposed according to an embodiment of the present application is described with reference to the drawings.
Fig. 3 is a block schematic diagram of a reading apparatus of an in-vehicle storage device according to an embodiment of the present application.
As shown in fig. 3, the reading apparatus 10 of the in-vehicle storage device includes: the detection module 100, the first reading module 200 and the second reading module 300.
Wherein, include: the detection module 100 is used for detecting whether the vehicle is connected to the vehicle-mounted storage device; the first reading module 200 is configured to, when it is detected that a vehicle accesses a vehicle-mounted storage device, read a list name of at least one target file of the vehicle-mounted storage device; and a second reading module 300, configured to calculate a target hash value of the list name of the at least one target file, retrieve the target hash value in a preset database to 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.
Optionally, in an embodiment of the present application, the first reading module 200 includes: the acquisition unit is used for acquiring list names of all files in the vehicle-mounted storage equipment; and the selecting unit is used for selecting the list name of the target file matched with the 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 data in music, pictures or videos.
Optionally, in an embodiment of the present application, the second reading module 300 is further configured to calculate a target hash value of the list name of the at least one target file by a cryptographic hash function.
Optionally, in an embodiment of the present application, the second reading module 300 further includes: the comparison unit is used for comparing the target hash value with the hash value in a preset database; the first control unit is used for controlling the vehicle to read the storage information corresponding to the target hash value in the preset database when the hash value identical to the target hash value exists in the preset database; and the second control unit is used for controlling the vehicle to read the information stored in the vehicle-mounted storage device when the hash value identical to the target hash value does not exist in the preset database.
Optionally, in an embodiment of the present application, the reading apparatus 10 of the vehicle-mounted storage device further includes: and the storage module is used for storing the information stored by the vehicle-mounted storage equipment and the target hash value into a preset database after controlling the vehicle to read the information stored by the vehicle-mounted storage equipment.
It should be noted that the foregoing explanation on the embodiment of the reading method for the vehicle-mounted storage device is also applicable to the reading apparatus for the vehicle-mounted storage device in this embodiment, and details are not repeated here.
According to the reading device of the vehicle-mounted storage device provided by the embodiment of the application, when the vehicle is detected to be connected with 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 optimal reading mode corresponding to the query result is matched, and the vehicle is controlled to read the information stored in the vehicle-mounted storage device according to the optimal reading mode. By calculating the file name in the accessed storage device and determining the optimal device reading mode according to the hash value of the file name, the speed of reading the information of the storage device by the vehicle is increased, and the cache space of the vehicle-mounted system is saved.
Fig. 4 is a schematic structural diagram of a vehicle according to an embodiment of the present application. The vehicle may include:
memory 401, processor 402, and computer programs stored on memory 401 and executable on processor 402.
The processor 402 implements the reading method of the in-vehicle storage device provided in the above-described embodiment when executing the program.
Further, the vehicle further includes:
a communication interface 403 for communication between the memory 401 and the processor 402.
A memory 401 for storing computer programs executable on the processor 402.
Memory 401 may comprise high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
If the memory 401, the processor 402 and the communication interface 403 are implemented independently, the communication interface 403, the memory 401 and the processor 402 may be connected to each other through a bus and perform communication with each other. The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 4, but this does not indicate only one bus or one type of bus.
Optionally, in a specific implementation, 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 may complete mutual communication through an internal interface.
The processor 402 may be a Central Processing Unit (CPU), an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement embodiments of the present Application.
The present embodiment also provides a computer-readable storage medium on which a computer program is stored, characterized in that the program realizes the reading method of the in-vehicle storage device as above when executed by a processor.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or N embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present application, "N" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more N executable instructions for implementing steps of a custom logic function or process, and alternate implementations are included within the scope of the preferred embodiment of the present application in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of implementing the embodiments of the present application.
It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the N steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. If implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.

Claims (10)

1. A reading method of a vehicle-mounted storage device is characterized by comprising the following steps:
detecting whether a vehicle is connected to a vehicle-mounted storage device or not;
when the vehicle is detected to be connected to the vehicle-mounted storage equipment, reading a list name of at least one target file of the vehicle-mounted storage equipment; and
and calculating a target hash value of the list name of the at least one target file, retrieving in a preset database by using the target hash value to obtain a query result of the vehicle-mounted storage device, 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.
2. The method of claim 1, wherein reading the list name of the at least one target file of the onboard storage device comprises:
acquiring list names of all files in the vehicle-mounted storage equipment;
and selecting 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 data of music, pictures or videos.
3. The method of claim 1, wherein calculating the target hash value for the list name of the at least one target file comprises:
a target hash value of the list name of the at least one target file is calculated by a cryptographic hash function.
4. The method of claim 1, wherein the searching in a preset database by using the target hash value to obtain 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 the hash value in the preset database;
when the hash value identical to the target hash value exists in the preset database, controlling the vehicle to read the storage information corresponding to the target hash value in the preset database;
and when the preset database does not have the hash value identical to the target hash value, controlling the vehicle to read the information stored in the vehicle-mounted storage device.
5. The method of claim 4, further comprising, after controlling the vehicle to read the information stored by the onboard storage device:
and storing the information stored in the vehicle-mounted storage equipment and the target hash value into the preset database.
6. A reading device of a vehicle-mounted storage device is characterized by comprising the following steps:
the detection module is used for detecting whether the vehicle is connected to the vehicle-mounted storage device or not;
the first reading module is used for reading the list name of at least one target file of the vehicle-mounted storage equipment when the vehicle is detected to be connected to the vehicle-mounted storage equipment; and
and the second reading module is used for calculating a target hash value of the list name of the at least one target file, retrieving the target hash value in a preset database to obtain a query result of the vehicle-mounted storage device, matching an optimal reading mode corresponding to the query result, and controlling the vehicle to read the information stored in the vehicle-mounted storage device according to the optimal reading mode.
7. The apparatus of claim 6, wherein the first reading module comprises:
the acquisition unit is used for acquiring list names of all files in the vehicle-mounted storage equipment;
and the selecting unit is used for selecting the list name of a target file matched with the 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 data of music, pictures or videos.
8. The apparatus of claim 6, wherein the second reading module is further configured to calculate a target hash value for the list name of the at least one target file via a cryptographic hash function.
9. A vehicle, characterized by comprising: memory, processor and computer program stored on the memory and executable on the processor, the processor executing the program to implement the reading method of the in-vehicle storage device according to any one of claims 1 to 5.
10. A computer-readable storage medium, on which a computer program is stored, characterized in that the program is executed by a processor for implementing a reading method of an in-vehicle storage device according to any one of claims 1 to 5.
CN202210420026.6A 2022-04-20 2022-04-20 Reading method and device of vehicle-mounted storage equipment, vehicle and storage medium Pending CN114816252A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210420026.6A CN114816252A (en) 2022-04-20 2022-04-20 Reading method and device of vehicle-mounted storage equipment, vehicle and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210420026.6A CN114816252A (en) 2022-04-20 2022-04-20 Reading method and device of vehicle-mounted storage equipment, vehicle and storage medium

Publications (1)

Publication Number Publication Date
CN114816252A true CN114816252A (en) 2022-07-29

Family

ID=82506279

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210420026.6A Pending CN114816252A (en) 2022-04-20 2022-04-20 Reading method and device of vehicle-mounted storage equipment, vehicle and storage medium

Country Status (1)

Country Link
CN (1) CN114816252A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117640626A (en) * 2024-01-25 2024-03-01 合肥中科类脑智能技术有限公司 File transmission method, device and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117640626A (en) * 2024-01-25 2024-03-01 合肥中科类脑智能技术有限公司 File transmission method, device and system
CN117640626B (en) * 2024-01-25 2024-04-26 合肥中科类脑智能技术有限公司 File transmission method, device and system

Similar Documents

Publication Publication Date Title
JP4979934B2 (en) Extended file system
KR100653872B1 (en) Moving image management method and apparatus
JP5886447B2 (en) Location independent files
EP2857990A1 (en) File information previewing method and system
CN107807989B (en) Small file processing method and device
JP4233564B2 (en) Data processing apparatus, data processing program and recording medium
EP2095274A1 (en) System, method, apparatus and computer program product for providing content selection in a network environment
CN114816252A (en) Reading method and device of vehicle-mounted storage equipment, vehicle and storage medium
CN110290201B (en) Picture acquisition method, mobile terminal, server and storage medium
CN103544254B (en) A kind of data managing method and device
CN112286457A (en) Object deduplication method and device, electronic equipment and machine-readable storage medium
US20210142540A1 (en) Intelligent exporting of images using an image editing application
CN115129789A (en) Bucket index storage method, device and medium of distributed object storage system
CN106294709B (en) Cloud storage file display method and device
CN112463746B (en) File storage and generation method and device and electronic equipment
JP2000155721A (en) Disk and image processing system by same disk
CN114527907A (en) Menu data processing method and device, computer equipment and storage medium
CN111459371B (en) View switching method and device, electronic equipment and storage medium
CN111143377B (en) Automatic driving simulation data collection method, device and system
CN112862939A (en) GLTF processing method and device for display optimization, electronic equipment and storage medium
CN112685474A (en) Application management method, device, equipment and storage medium
JP2020038409A (en) On-vehicle device, data collecting system, method for collecting data, and data collector
CN111858494B (en) File acquisition method and device, storage medium and electronic equipment
KR102195898B1 (en) Method and apparatus for editing screen of device.
CN115687173B (en) Data address query method and device, electronic equipment and readable storage medium

Legal Events

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