CN112052226B - Processing method and device for vehicle-mounted service data - Google Patents

Processing method and device for vehicle-mounted service data Download PDF

Info

Publication number
CN112052226B
CN112052226B CN202011050024.XA CN202011050024A CN112052226B CN 112052226 B CN112052226 B CN 112052226B CN 202011050024 A CN202011050024 A CN 202011050024A CN 112052226 B CN112052226 B CN 112052226B
Authority
CN
China
Prior art keywords
data
request information
file
target file
information
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.)
Active
Application number
CN202011050024.XA
Other languages
Chinese (zh)
Other versions
CN112052226A (en
Inventor
韩松
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Co Wheels Technology Co Ltd
Original Assignee
Beijing Co Wheels Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Co Wheels Technology Co Ltd filed Critical Beijing Co Wheels Technology Co Ltd
Priority to CN202011050024.XA priority Critical patent/CN112052226B/en
Publication of CN112052226A publication Critical patent/CN112052226A/en
Application granted granted Critical
Publication of CN112052226B publication Critical patent/CN112052226B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • 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/17Details of further file system functions
    • G06F16/174Redundancy elimination performed by the file system
    • 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/23Updating

Landscapes

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

Abstract

The application discloses a processing method and a device for processing service data of a vehicle-mounted machine, wherein the method comprises the following steps: receiving data request information, wherein the data request information is generated by a vehicle-mounted terminal; determining a target file according to the data request information; responding to the data request information, and sending feedback data according to the target file; when the data request information is first request information, the target file is a copy file stored after the original file is updated last time; when the data request information is page turning request information, the target file is a copy file determined when responding to the first request information. According to the embodiment of the application, the data in the copy file stored after the last update of the original file is fed back when the first request information is responded, and the feedback data when the page turning request information is responded subsequently are all the data of the same copy file, so that the problems of duplication and deletion of the feedback data caused by the update of the original file are effectively avoided.

Description

Processing method and device for vehicle-mounted service data
Technical Field
The present application relates to the field of information technologies, and in particular, to a method and an apparatus for processing service data of a vehicle machine.
Background
The requested data content of the vehicle side, such as the secondary screen of the vehicle side, generally comprises content such as music and video, and the data content is generally managed by a management background of the vehicle server. The management background can perform operations such as sequence adjustment, content addition or content deletion on the data content, and update the data content based on the operations. When the file of the data content is larger, the vehicle server needs to page the vehicle side to feed back the data. For example, the vehicle-mounted server has 1 ten thousand pieces of data information according to the file content to be fed back by the data request information, and the vehicle-mounted server cannot feed back the whole file content to the vehicle-mounted terminal in one feedback due to bandwidth and other hardware limitations, but if the original file content is updated in the process of sequential feedback, the problem of content repetition and deletion easily occurs in the whole content finally received by the vehicle-mounted terminal. For example, when the original file data content is adjusted in sequence, the vehicle-mounted terminal requests to access the first 20 pieces of data, at this time, the operator adjusts the 21 st position of the content list to the 1 st position, and when the vehicle-mounted terminal requests the second 20 pieces of data, the content at the 20 th position of the first page appears to be repeatedly displayed. When the original file data content is newly added, the vehicle-mounted terminal requests to access the first 20 pieces of data, at the moment, an operator adds a piece of content to the 1 st position of the content list content, and when the vehicle-mounted terminal requests the second 20 pieces of data, the content of the 20 th position of the first page appears to be repeatedly displayed. When the original file data content is deleted, the vehicle-mounted terminal requests to access the first page 20 pieces of data, at the moment, an operator deletes the content at the 1 st position of the content list content, when the vehicle-mounted terminal requests the second page 20 pieces of data, the original 21 st position data cannot be displayed, and only the first page is requested again, the original 21 st position data can be queried.
Disclosure of Invention
Object of the application
In order to overcome the defects, the technical problem to be solved by the embodiment of the application is to provide a processing method and a processing device for vehicle-machine service data, wherein the method is used for feeding back the data of the copy file which is newly stored in the original file when responding to the first request information, feeding back the data of the same copy file when responding to the subsequent page turning request information, and avoiding the repetition and the deletion of the feedback data caused by the updating of the original file.
(II) technical scheme
In a first aspect, an embodiment of the present application provides a method for processing service data of a vehicle machine, including:
receiving data request information, wherein the data request information is generated by a vehicle-mounted terminal;
determining a target file according to the data request information;
responding to the data request information, and sending feedback data according to the target file; wherein the method comprises the steps of
When the data request information is first request information, the target file is a copy file stored after the last update of the original file;
when the data request information is page turning request information, the target file is a copy file determined when responding to the first request information.
In some embodiments, the feedback data includes identification information of the target file, data read from the target file, and location information of the data read this time.
In some embodiments, the location information of the data includes at least one of a read start location and a read end location.
In some embodiments, determining the target file according to the data request information includes:
analyzing the data request information;
when the data request information does not contain the identification information of the target file, determining the data request information as first request information;
when the data request information contains the identification information of the target file, determining that the data request information is page turning request information.
In some embodiments, when the data request information is first request information, responding to the data request information, and sending feedback data according to the target file includes:
reading the data to be sent from the initial position of the target file;
synthesizing the read data, the position information of the data and the identification information of the target file into feedback data;
and sending the feedback data.
In some embodiments, when the data request information is page turning request information, responding to the data request information, and sending feedback data according to the target file includes:
Determining the initial position of the current reading according to the position information of the data in the last feedback data;
reading data to be sent from the target file;
synthesizing the read data, the position information of the data and the identification information of the target file into feedback data;
and sending the feedback data.
In some embodiments, after sending feedback data according to the target file in response to the data request information, the method further includes:
updating the original file based on the data change of the original file;
and storing a new copy file according to the updated original file, wherein the new copy file has identification information corresponding to the new copy file.
In some embodiments, the method further comprises:
and deleting redundant duplicate files in other duplicate files except the latest stored duplicate file when the number of the duplicate files of the original file reaches a set value, wherein the redundant duplicate files are duplicate files which do not respond to the data request information as target files within a set time length.
In some embodiments, deleting redundant duplicate files from other duplicate files than the newly saved duplicate file includes:
Determining the time length of other copy files which do not respond to the data request information;
when the duration is greater than or equal to the set duration, determining the copy file corresponding to the duration as a redundant copy file;
and deleting the redundant duplicate file.
In a second aspect, an embodiment of the present application provides a method for processing service data of a vehicle machine, including:
generating data request information for a target file;
transmitting data request information, wherein the data request information is used for indicating a server to determine a target file and generating feedback data according to the target file;
receiving the feedback data; wherein the method comprises the steps of
When the data request information is first request information, the target file is a copy file stored after the last update of the original file;
when the data request information is page turning request information, the target file is a copy file determined when responding to the first request information.
In some embodiments, the feedback data includes the identification information of the target file, a data file read from the target file, and termination location information of the data file.
In some embodiments, when the data request information is page turning request information, the data reading position of the target file is a position of 1 plus a termination position of the data in the feedback data last time.
In a third aspect, an embodiment of the present application provides a device for processing service data of a vehicle machine, including:
a first receiving module: the method comprises the steps of receiving data request information, wherein the data request information is generated by a vehicle-mounted terminal;
and a judging module: the method is used for determining a target file according to the data request information;
a first sending module: the feedback data is sent according to the target file in response to the data request information; wherein the method comprises the steps of
When the data request information is first request information, the target file is a copy file stored after the last update of the original file;
when the data request information is page turning request information, the target file is a copy file determined when responding to the first request information.
In a fourth aspect, an embodiment of the present application provides a device for processing service data of a vehicle machine, including:
the generation module is used for: for generating data request information for the target file;
and a second sending module: the method comprises the steps of sending data request information, wherein the data request information is used for indicating a server to determine a target file and generating feedback data according to the target file;
and a second receiving module: receiving the feedback data; wherein the method comprises the steps of
When the data request information is first request information, the target file is a copy file stored after the last update of the original file;
when the data request information is page turning request information, the target file is a copy file determined when responding to the first request information.
In a fifth aspect, embodiments of the present application provide a computer-readable storage medium having stored thereon computer-executable instructions which, when executed by a processor, implement the method of any one of the first or second aspects.
In a sixth aspect, an embodiment of the present application provides an electronic device, including at least one processor and a holder, where the holder holds computer-executable instructions, and where the at least one processor executes the computer-executable instructions held by the holder, so that the electronic device performs the method according to any one of the first or second aspects.
In a seventh aspect, embodiments of the present application provide a vehicle comprising an apparatus according to any one of the third or fourth aspects.
(III) beneficial effects
The technical scheme has the advantages that the embodiment of the application feeds back the data in the copy file stored after the last update of the original file when responding to the first request information through the set data feedback rule, and the feedback data when responding to the page turning request information is the data of the same copy file through the identification information of the copy file, so that the problems of duplication and deletion of the feedback data caused by the update of the original file are effectively avoided.
Drawings
FIG. 1 is a diagram of a service architecture of a vehicle server and a vehicle terminal according to an embodiment of the present application;
FIG. 2 is a flow chart of a method for processing vehicle service data according to an embodiment of the application;
FIG. 3 is a flowchart of a method for processing vehicle service data according to an embodiment of the present application;
FIG. 4 is a block diagram of a device corresponding to the embodiment of FIG. 2;
fig. 5 is a block diagram of the device configuration corresponding to the embodiment of fig. 3.
Detailed Description
The objects, technical solutions and advantages of the present application will become more apparent by the following detailed description of the present application with reference to the accompanying drawings. It should be understood that the description is only illustrative and is not intended to limit the scope of the application. In addition, in the following description, descriptions of well-known structures and techniques are omitted so as not to unnecessarily obscure the present application.
It will be apparent that the described embodiments are some, but not all, embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
In the description of the present application, it should be noted that the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In addition, the technical features of the different embodiments of the present application described below may be combined with each other as long as they do not collide with each other.
Fig. 1 is a service architecture diagram of a vehicle server and a vehicle terminal according to an embodiment of the present application.
As shown in fig. 1, in the service architecture, a vehicle server provides data service for a vehicle terminal. The server sends the data to be referred by the user to the vehicle terminal, and the vehicle terminal displays the corresponding data through the auxiliary screen of the vehicle terminal.
In order to solve the problems of repeated or missing data caused by data updating in the process of data reference by a user. In the application, after each update of the data, a copy with unique identification information is saved. Such updates include, for example, data sequence adjustments, additions or deletions. The server responds to the data request information sent by the vehicle-mounted terminal, when the data request information is first request information generated by the vehicle-mounted terminal based on the first reference operation of the user, the server reads the data of the copy file which is stored up to date, and the data is sent as feedback data together with the identification information of the copy file and the position information of the data read at the time. When the data request information is page turning request information generated by the vehicle terminal based on the page turning operation of the user, the server takes the first copy file as a target file, reads corresponding data and feeds the corresponding data back to the vehicle terminal. In the application, the server feeds back the data based on the same copy file in response to the first request information of the vehicle-mounted terminal and the page turning request information after the first request information, thereby avoiding repeated or missing data transmission caused by the change of the data in the original file
Fig. 2 is a flowchart of a method for processing vehicle service data according to an embodiment of the present application.
As shown in fig. 2, a method for processing service data of a vehicle machine includes:
step 110: and receiving data request information, wherein the data request information is generated by a vehicle machine side.
The data request information received in step 110 refers to data request information sent by the vehicle server receiving the vehicle terminal, where the data request information may be first request information or page turning request information.
Step 120: and determining a target file according to the data request information.
Step 120 is actually a process of parsing judgment, i.e. determining whether the data request information is first request information or page turning request information through parsing of the data request information, and further determining a target file to be targeted.
In some embodiments, determining the target file according to the data request information includes: analyzing the data request information; when the data request information does not contain the identification information of the target file, determining the data request information as first request information; when the data request information contains the identification information of the target file, determining that the data request information is page turning request information.
Specifically, when the data request information is determined to be the first request information, determining a copy file which is newly protected by the original file as a target file; and when the data request information is determined to be page turning request information, determining a copy file responding to the first request information as a target file.
Step 130: responding to the data request information, and sending feedback data according to the target file; when the data request information is the first request information, the target file is a copy file stored after the last update of the original file. When the data request information is page turning request information, the target file is a copy file determined when responding to the first request information.
Step 130 refers to that after the vehicle server requests information from the corresponding vehicle terminal, the vehicle server sends feedback data to the vehicle terminal according to the target file determined in the vehicle server.
The order of steps in the above embodiments is merely for convenience of description and is not limiting to the inventive concept, that is, the order of steps is appropriately adjusted without exceeding the scope of protection covered by the inventive concept, if necessary.
In some embodiments, the feedback data includes identification information of the target file, data read from the target file, and location information of the data read this time.
In some embodiments, the location information of the data includes at least one of a read start location and a read end location. Optionally, the location information is read termination location information. When the vehicle terminal generates the position information of data reading in the page turning request information according to the reading termination position information, the position information can be obtained by automatically adding 1 to the reading termination position. If the position information is the reading initial position, the vehicle machine side can automatically add the length value of the data fed back each time by the reading initial position when generating the position information of the data reading in the page turning request information according to the reading initial position information, if the length value is a determined value, the determined value is added, if the length value is not determined, the vehicle machine side needs to calculate the length value first, and then the received reading initial position is added to the new data reading position information in the new page turning request information.
Optionally, in the foregoing embodiment, when the vehicle server generates the feedback data in response to the page turning request information, only the data read from the target file and the termination position information of the data are included, and the identification information of the target file is not included. Since the subsequent page turning request information may continue along with the identification information in the last page turning request information except for the first page turning request information required to acquire the identification information of the target file from the first feedback data, the vehicle server may not include the identification information of the target file when generating the feedback data in response to the page turning request information, but may include the identification information of the target file only when generating the feedback data in response to the first request information.
However, in general, the vehicle-mounted device side and the vehicle-mounted server transmit the identification information and the reading position through the data interface parameter next parameter value and the version parameter value, so that the vehicle-mounted server can directly assign the identification information to the version parameter in the interface parameter without omitting the identification information of the target file when generating the feedback data in response to the page turning request information, and the embodiment adopts the mode in practice.
However, if the identification information, the data and the termination position of the data are not transmitted through the interface parameters, but are transmitted after being packaged, in order to save the traffic occupation of the feedback data each time, the identification information can be omitted when the feedback data is generated in response to the page turning request information. Alternatively, the position information may be omitted when the feedback data is generated in response to the page turning request information. At this time, the vehicle-mounted terminal needs to remove the resolved data termination position from the feedback data received each time. That is, when there is no data interface and interface parameters for transferring the identification information and the position information, the vehicle server may be only the data itself read from the target file when generating the feedback data in response to the page turning request information.
In some embodiments, when the data request information is first request information, responding to the data request information, and sending feedback data according to the target file, where the feedback data includes reading data to be sent from a starting position of the target file; synthesizing the read data, the position information of the data and the identification information of the target file into feedback data; and sending the feedback data.
In some embodiments, when the data request information is page turning request information, responding to the data request information, and sending feedback data according to the target file, wherein the step of determining a start position of current reading according to position information of the data in the last feedback data; reading data to be sent from the target file; synthesizing the read data, the position information of the data and the identification information of the target file into feedback data; and sending the feedback data.
The two embodiments may also be combined, that is, in response to the data request information, the sending feedback data according to the target file includes:
and when the data request information is the first request information, determining a data reading position as the starting position of the target file.
The process refers to a process of determining a data reading position in the target file in response to the first request for information. The data reading position for reading data in response to the first request for information is the start position of the target file.
And when the data request information is page turning request information, determining the data reading position as the position of adding 1 to the end position of the data in the last feedback data.
The process refers to a process of determining a data reading position in the target file when responding to the page turning request information. The data reading position of the read data in response to the page turning request information is the position of the end position of the data in the last feedback data plus 1. For example, if the end position of the data in the previous feedback data is the 100 th strip, the current data reading position is the 101 th strip. It is of course also possible to calculate in bits or other units instead of in stripes.
Reading data from the target file according to the data reading position; generating feedback data based on the data, the termination location of the data, and the identification information of the target file; and sending the feedback data.
The process is a reading process of data in feedback data, a generating process of the feedback data and a final sending process.
In some embodiments, after sending feedback data according to the target file in response to the data request information, the method further includes: updating the original file based on the data change of the original file; and storing a new copy file according to the updated original file, wherein the new copy file has identification information corresponding to the new copy file.
The implementation refers to conditions and processes for generating a copy file, wherein a new copy file is compared with a previous copy file, and specifically refers to another copy file stored after the original file is stored as one copy file and updated again.
In some embodiments, the method further comprises: and deleting redundant duplicate files in other duplicate files except the latest stored duplicate file when the number of the duplicate files of the original file reaches a set value, wherein the redundant duplicate files are duplicate files which do not respond to the data request information as target files within a set time length.
The embodiment refers to a process of deleting part of the duplicate files when the duplicate data reaches a set value, wherein the latest saved duplicate file refers to the duplicate file saved after the latest update of the original file. Alternatively, the set value of the number is 30 parts, and the set value of the duration T is 30 minutes.
In some embodiments, deleting redundant duplicate files in other duplicate files than the newly saved duplicate file includes determining a duration in which other duplicate files do not respond to the data request information; when the duration is greater than or equal to the set duration, determining the copy file corresponding to the duration as a redundant copy file; and deleting the redundant duplicate file.
In a real scene, when a stored copy file is not requested by any data request information within a set period of time, such as 30 minutes, due to the new copy file which appears continuously later, the unsolicited copy file is unlikely to be requested again, and on the other hand, limited storage resources are occupied, so that the copy file which is generated later is at risk of having no storage space.
This embodiment provides a processing method for the case that the number of the saved copy files is excessive in view of the above problem. Specifically, if a duplicate file is not requested by any data request information and is not a duplicate file with the latest identification information, for example, within 30 minutes, the duplicate file is automatically deleted by the program. On the other hand, if the duplicate file is requested by a data request message once within 30 minutes, it is necessary to recalculate the time from the point when the request occurs until 30 minutes.
Fig. 3 is a flowchart of a method for processing vehicle service data according to an embodiment of the present application.
As shown in fig. 3, a method for processing service data of a vehicle machine includes:
step 210: generating data request information for a target file;
step 210 corresponds to step 120 in the embodiment of fig. 2, where the target file is determined according to the data request information, and refers to a process of generating the data request information at the vehicle machine side.
Specifically, when the data request information is first request information, the request information generated by the vehicle-mounted terminal does not contain the identification information of the target file. When the data request information is page turning request information, the data request information generated by the vehicle machine side comprises identification information of the target file and position information of data reading of the target file.
In some embodiments, the location information includes at least one of a read start location and a read end location. Optionally, the location information is a read start location. If the reading end position is determined each time the reading position is determined, it can be obtained by automatically adding 1 to the reading end position. The inventive concept is not so limited.
In step 210, when the data request information is the page turning request information, the data reading position of the target file is the position of the termination position of the data in the last feedback data plus 1.
Step 220: transmitting data request information, wherein the data request information is used for indicating a server to determine a target file and generating feedback data according to the target file;
step 220 corresponds to step 110 in the embodiment of fig. 2, and the data request information sent in step 220 is the data request information received in step 110 in the embodiment of fig. 2. The server is optional and is a vehicle-mounted server for submitting data service to the vehicle-mounted terminal.
Step 230: receiving the feedback data; wherein the method comprises the steps of
When the data request information is first request information, the target file is a copy file stored after the last update of the original file;
when the data request information is page turning request information, the target file is a copy file determined when responding to the first request information.
Step 230 corresponds to step 130 in the embodiment of fig. 2, and the feedback data received in step 230 is exactly the feedback data sent in step 130 in the embodiment of fig. 2. And depending on the data request information sent in step 220, the feedback data received in step 230 also includes: the vehicle server responds to the feedback data sent by the first request information and the feedback data sent by the page turning request information. The feedback data transmitted in response to the first request information includes data read from the start position of the target file, which is a duplicate file saved after the last update of the original file, and identification information and end position information of the data. The feedback data transmitted in response to the page turning request information includes data read from a new start position determined from position information of the data read given in the page turning request information, and identification information and a termination position of the data.
The present embodiment corresponds to an embodiment of a vehicle-side server data processing method. In the embodiment, the vehicle-mounted terminal instructs the vehicle-mounted server to generate and feed back corresponding feedback data by generating and sending data request information, and when the sent data request information is the first request information, the interface parameter next parameter and version parameter of the vehicle-mounted terminal and vehicle-mounted server data interface are assigned to be null. When the value read by the vehicle-mounted server from the next parameter and the version parameter is empty, the vehicle-mounted server determines that the data request information is first request information, determines a copy file stored after the last update of the original file as a target file according to a data transmission rule of the vehicle-mounted server, and reads data from the determined starting position of the target file. When the value read by the vehicle-mounted server from the next parameter and the version parameter is not null, the vehicle-mounted server determines that the data request information is page turning request information, acquires the identification information of the target file and the reading position of the target file from the next parameter and the version parameter, and reads the data of the target file needed in the feedback data from the reading position of the target file corresponding to the identification information. In general, the target file corresponding to the identification information in the page turning request information is a copy file determined when the vehicle server responds to the first request information. In this embodiment, the target file corresponding to the identification information in each page turning request information is a copy file determined when the vehicle server responds to the first request information, and in the whole process of data request and data feedback, the target file corresponding to the identification information and the copy file determined when the vehicle server responds to the first request information is always unchanged.
In some embodiments, in step 230, the feedback data sent by the vehicle server in step 130 of the embodiment of fig. 2, the feedback data received by the vehicle server includes the identification information of the target file, the data read from the target file, and the termination position information of the data.
Referring to fig. 1, 2 and 3, taking an example that a vehicle side requests audio list data from a vehicle server, embodiments of the present application are further described:
wherein, the auxiliary screen of the vehicle machine side displays 20 pieces of information each time. Thus, the server transmits 20 pieces of data at a time in response to each data request information. After each update of the audio list data, the server stores a copy file, and each copy file corresponds to unique identification information. For example, the identification information is a version number. In an exemplary embodiment, the retention time of the copy is used as the identification information. The latest duplicate file can be quickly determined.
When a user operates on the vehicle-mounted terminal and refers to the audio information, the vehicle-mounted terminal generates first request information. Because the request is the first request, the vehicle machine side does not have the identification information of the current latest copy, so the identification information of the target file is not included in the first request information, namely the assignment of the identification information in the first request information is null. After the vehicle-mounted server receives the first request information sent by the vehicle-mounted terminal, the vehicle-mounted server determines a target file according to the data request information; when the vehicle-mounted server analyzes the data request information and finds that the data request information does not include the identification information of the target file, namely the identification information is empty, the request is determined to be the first request information. In practice, the server may determine that the data request information is the first request information by determining that the data interface is assigned with the interface parameters. The vehicle server searches the latest stored copy file in the stored copy files and the copy files stored after the latest update. And the server takes the copy file stored after the last update of the original file as a target file. And reading a set amount of data from the initial position of the target file according to a data feedback rule. In this example, 20 pieces of audio data are read at a time. And sending the 20 pieces of audio data read at this time, the identification information of the copy file determined at this time (for example, the identification information of the copy file determined at this time is 202009280918) and the data position information to a vehicle machine side as feedback data. After the vehicle terminal receives the feedback data, the audio data are displayed on the auxiliary screen of the vehicle terminal.
When the user needs to continuously check new content and perform page turning operation, the vehicle side generates page turning request information. The page turning request information includes identification information (202009280918) of the target file and the start position information read at this time. The initial position information can be determined according to the data position information in the feedback information received last time by the vehicle machine side. Taking the data position information in the feedback information as the end position information as an example, the last end position is added with 1 to be the current start position. If the data position information in the feedback information is the initial position information, adding the number (20) of each reading to the initial position of the last time, and adding 1 to the initial position of the current time.
When the vehicle server receives the data request information, the target file is determined according to the identification information (202009280918). And according to the read initial position information, reading the corresponding number (20) of audio data from the target file, and sending the audio data, the identification information (202009280918) and the data position information to the vehicle machine side as feedback data. The vehicle-mounted server can read corresponding assignment values from the next parameter and the version parameter, so that identification information of the feedback data and position information of the data reading are obtained. If the next parameter in the data fed back by the vehicle-mounted server is the termination position information of the last data, the vehicle-mounted server automatically adds 1 to the next value to form the position information of the current data reading. After receiving page turning request information containing a next parameter value and a version parameter value, the vehicle server finds out data of 20 pieces of audio content from a data reading position corresponding to the next parameter value in the target file according to the next parameter value and the version parameter value, packages the data together with termination position information of the data and identification information of the target file, and then sends the packaged data to the vehicle server as second feedback data. And similarly, when the vehicle server receives the Nth page turning request information, the Nth feedback data is sent, and after the first request, the page turning request information each time contains the identification information of the target file received in response to the first request and the position information of the read data. The position information read by the data in the page turning request information of the audio content generated by the vehicle side is the position information obtained by increasing the termination position of the data of the 20 th audio content by 1, wherein the N-1 th feedback data is contained in the N-1 th feedback data received before the vehicle side generates the page turning request information.
To avoid that the saved duplicate files take up a large space. The server may clean up the duplicate files. The server may clean up the duplicate file based on a set deadline. For example, cleaning is done once daily, weekly or monthly. The server may also clean up the duplicate files based on the number of duplicate files reaching a certain threshold. For example, the number of duplicate files reaches 100, 300, 500, 1000, etc., i.e., the duplicate files are cleaned.
When the vehicle side requests information for the first time, the next parameter and the version parameter do not transmit values. At this time, the values of the next parameter and the version parameter read from the data interface by the vehicle server are both null, and the data request information is determined to be the first request information. The vehicle machine server takes a copy file stored after the last update of the original file as a target file according to a preset data feedback rule, and reads a first page or a first copy or a first block of data from a starting position of the target file, wherein a unit of the first copy or the first block of data is determined according to a data form of the read target file, and each part of data can comprise a certain amount of data information, such as 20 pieces of data information. The feedback data sent by the vehicle server for the first time comprises identification information of the target file and position information of data reading of the next part of data besides the first part of data read from the starting position of the target file. Optionally, the location information is a termination location of the read data. When the vehicle terminal generates the page turning request information each time, the terminal position can be automatically added with 1 to obtain the position information of the data reading in the page turning request information.
And after the second time, including the second time, the vehicle terminal sends page turning request information when carrying out data request information. When page turning request information is sent, first, an interface parameter next parameter and a version parameter of a data interface are assigned, and when the data request information is received, a vehicle server reads corresponding assignments from the next parameter and the version parameter, so that identification information of the feedback data and position information of reading the data are obtained. If the next parameter in the data fed back by the vehicle-mounted server is the termination position information of the last data, the vehicle-mounted server automatically adds 1 to the next value to form the position information of the current data reading. In another case, the rule enables the vehicle-mounted terminal to add 1 to the termination position of the last data received to form the position information of data reading in the page turning request information, and the vehicle-mounted terminal service terminal directly reads the position information from the next parameter without adding 1. After receiving page turning request information containing a next parameter value and a version parameter value, the vehicle server finds out a piece of data from a data reading position corresponding to the next parameter value in a corresponding target file according to the next parameter value and the version parameter value, reads 20 pieces of data content from the position if one piece of data is set to be 20 pieces of data, packages the data together with termination position information of the data and identification information of the target file, and then sends the packaged data to a vehicle terminal as second feedback data. And similarly, when the vehicle server receives the Nth page turning request information, the Nth feedback data is sent, and the second page turning request information contains identification information of the same target file and position information which is different each time. The position information read by the data in the Nth page turning request information generated by the vehicle terminal is the position information obtained by increasing the termination position of the (N-1) -th data contained in the (N-1) -th feedback data received before the vehicle terminal generates the current page turning request information by 1.
Fig. 4 is a block diagram of a device corresponding to the embodiment of fig. 2.
As shown in fig. 4, a processing device for service data of a vehicle machine includes:
the first receiving module 11: the method is used for receiving data request information, and the data request information is generated by a vehicle-mounted terminal.
The judgment module 12: and the method is used for determining the target file according to the data request information.
The first transmitting module 13: the feedback data is sent according to the target file in response to the data request information; wherein the method comprises the steps of
When the data request information is first request information, the target file is a copy file stored after the last update of the original file;
when the data request information is page turning request information, the target file is a copy file determined when responding to the first request information.
In this embodiment, the first receiving module 11 receives the data request information, the judging module 12 determines the target file according to the data request information, and the first sending module 13 responds to the data request information and sends feedback data according to the target file, so that the data in the copy file stored after the last update of the original file is fed back when the first request information is responded, and the feedback data when the page turning request information is responded subsequently are all the data of the same copy file, thereby effectively avoiding the problems of duplication and deletion of the feedback data caused when the original file is updated.
Fig. 5 is a block diagram of the device configuration corresponding to the embodiment of fig. 3.
As shown in fig. 5, a processing device for service data of a vehicle machine includes:
the generating module 21 is configured to generate data request information for the target file.
The second sending module 22 is configured to send data request information, where the data request information is used to instruct the server to determine a target file, and generate feedback data according to the target file.
A second receiving module 23, configured to receive the feedback data; wherein the method comprises the steps of
When the data request information is first request information, the target file is a copy file stored after the last update of the original file;
when the data request information is page turning request information, the target file is a copy file determined when responding to the first request information.
The embodiment of the application also provides a computer readable storage medium, wherein computer executable instructions are stored on the computer readable storage medium, and when the computer executable instructions are executed by a processor, the data processing method in any of the above embodiments is realized.
The embodiment of the application also provides electronic equipment, which comprises at least one processor and a storage, wherein the storage stores computer-executed instructions, and the at least one processor executes the computer-executed instructions stored by the storage, so that the electronic equipment executes the data processing method in any one of the above embodiments.
The embodiment of the application also provides a vehicle, which comprises the data processing device in any one of the above embodiments.
It is to be understood that the above-described embodiments of the present application are merely illustrative of or explanation of the principles of the present application and are in no way limiting of the application. Accordingly, any modification, equivalent replacement, improvement, etc. made without departing from the spirit and scope of the present application should be included in the scope of the present application. Furthermore, the appended claims are intended to cover all such changes and modifications that fall within the scope and boundary of the appended claims, or equivalents of such scope and boundary.
The application has been described above with reference to the embodiments thereof. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present application. The scope of the application is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be made by those skilled in the art without departing from the scope of the application, and such alternatives and modifications are intended to fall within the scope of the application.
Although embodiments of the present application have been described in detail, it should be understood that various changes, substitutions, and alterations can be made hereto without departing from the spirit and scope of the application.
It is apparent that the above examples are given by way of illustration only and are not limiting of the embodiments. Other variations or modifications of the above teachings will be apparent to those of ordinary skill in the art. It is not necessary here nor is it exhaustive of all embodiments. While still being apparent from variations or modifications that may be made by those skilled in the art are within the scope of the application.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method or a computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.

Claims (11)

1. The processing method of the vehicle-mounted service data is characterized by comprising the following steps of:
receiving data request information, wherein the data request information is generated by a vehicle-mounted terminal;
determining a target file according to the data request information; analyzing the data request information; when the data request information does not contain the identification information of the target file, determining the data request information as first request information; when the data request information contains the identification information of the target file, determining that the data request information is page turning request information;
Responding to the data request information, and sending feedback data according to the target file; when the data request information is first request information, responding to the data request information, and sending feedback data according to the target file, wherein the feedback data comprises the following steps: reading the data to be sent from the initial position of the target file; synthesizing the read data, the position information of the data and the identification information of the target file into feedback data; transmitting the feedback data; when the data request information is page turning request information, responding to the data request information, and sending feedback data according to the target file, wherein the feedback data comprises the following steps: determining the initial position of the current reading according to the position information of the data in the last feedback data; reading data to be sent from the target file; synthesizing the read data, the position information of the data and the identification information of the target file into feedback data; transmitting the feedback data; wherein the method comprises the steps of
When the data request information is first request information, the target file is a copy file stored after the last update of the original file;
when the data request information is page turning request information, the target file is a copy file determined when the first request information is responded;
And responding to the data request information, and after sending feedback data according to the target file, further comprising: updating the original file based on the data change of the original file; and storing a new copy file according to the updated original file, wherein the new copy file has identification information corresponding to the new copy file.
2. The method of claim 1, wherein the location information of the data includes at least one of a read start location and a read end location.
3. The method according to claim 1, wherein the method further comprises:
and deleting redundant duplicate files in other duplicate files except the latest stored duplicate file when the number of the duplicate files of the original file reaches a set value, wherein the redundant duplicate files are duplicate files which do not respond to the data request information as target files within a set time length.
4. A method according to claim 3, wherein deleting redundant ones of the replica files other than the newly saved replica file comprises:
determining the time length of other copy files which do not respond to the data request information;
when the duration is greater than or equal to the set duration, determining the copy file corresponding to the duration as a redundant copy file;
And deleting the redundant duplicate file.
5. The processing method of the vehicle-mounted service data is characterized by comprising the following steps of:
generating data request information for a target file; when the data request information is first request information, the data request information does not contain the identification information of the target file; when the data request information is page turning request information, the data request information comprises identification information of a target file and data reading position information of the target file;
transmitting data request information, wherein the data request information is used for indicating a server to determine a target file and generating feedback data according to the target file;
receiving the feedback data; the feedback data received includes: feedback data sent in response to the first request information and feedback data sent in response to the page turning request information; the feedback data sent in response to the first request information comprises data read from the initial position of the target file, and identification information and termination position information of the data; the feedback data sent in response to the page turning request information comprises data read from a new starting position determined by position information read from given data in the page turning request information, and identification information and a termination position of the data; wherein,
When the data request information is first request information, the target file is a copy file stored after the last update of the original file;
when the data request information is page turning request information, the target file is a copy file determined when the first request information is responded;
the feedback data comprise identification information of the target file, data read from the target file and termination position information of the data;
after receiving the feedback data, updating the original file based on the data change of the original file;
and storing a new copy file according to the updated original file, wherein the new copy file has identification information corresponding to the new copy file.
6. The method of claim 5, wherein the location information of the data includes at least one of a read start location and a read end location.
7. A processing apparatus for vehicle service data, comprising:
a first receiving module: the method comprises the steps of receiving data request information, wherein the data request information is generated by a vehicle-mounted terminal;
and a judging module: the method is used for determining a target file according to the data request information; analyzing the data request information; when the data request information does not contain the identification information of the target file, determining the data request information as first request information; when the data request information contains the identification information of the target file, determining that the data request information is page turning request information;
A first sending module: the feedback data is sent according to the target file in response to the data request information; when the data request information is first request information, responding to the data request information, and sending feedback data according to the target file, wherein the feedback data comprises the following steps: reading the data to be sent from the initial position of the target file; synthesizing the read data, the position information of the data and the identification information of the target file into feedback data; transmitting the feedback data; when the data request information is page turning request information, responding to the data request information, and sending feedback data according to the target file, wherein the feedback data comprises the following steps: determining the initial position of the current reading according to the position information of the data in the last feedback data; reading data to be sent from the target file; synthesizing the read data, the position information of the data and the identification information of the target file into feedback data; transmitting the feedback data; wherein the method comprises the steps of
When the data request information is first request information, the target file is a copy file stored after the last update of the original file;
When the data request information is page turning request information, the target file is a copy file determined when the first request information is responded;
the updating module is configured to respond to the data request information, and after sending feedback data according to the target file, the updating module further includes: updating the original file based on the data change of the original file; and storing a new copy file according to the updated original file, wherein the new copy file has identification information corresponding to the new copy file.
8. A processing apparatus for vehicle service data, comprising:
the generation module is used for: for generating data request information for the target file; when the data request information is first request information, the data request information does not contain the identification information of the target file; when the data request information is page turning request information, the data request information comprises identification information of a target file and data reading position information of the target file;
and a second sending module: the method comprises the steps of sending data request information, wherein the data request information is used for indicating a server to determine a target file and generating feedback data according to the target file;
and a second receiving module: receiving the feedback data; the feedback data received includes: feedback data sent in response to the first request information and feedback data sent in response to the page turning request information; the feedback data sent in response to the first request information comprises data read from the initial position of the target file, and identification information and termination position information of the data; the feedback data transmitted in response to the page-turning request information includes data read from a new start position determined from position information of the data read given in the page-turning request information, and identification information and a termination position of the data, wherein
When the data request information is first request information, the target file is a copy file stored after the last update of the original file;
when the data request information is page turning request information, the target file is a copy file determined when the first request information is responded;
the updating module is used for updating the original file based on the data change of the original file after receiving the feedback data; and storing a new copy file according to the updated original file, wherein the new copy file has identification information corresponding to the new copy file.
9. A computer-readable storage medium having stored thereon computer-executable instructions which, when executed by a processor, implement the method of any one of claims 1-4 or claims 5-6.
10. An electronic device comprising at least one processor and a holder holding computer-executable instructions, the at least one processor executing the computer-executable instructions held by the holder causing the electronic device to perform the method of any one of claims 1-4 or claims 5-6.
11. A vehicle, characterized in that it comprises the device according to claim 7 or 8.
CN202011050024.XA 2020-09-29 2020-09-29 Processing method and device for vehicle-mounted service data Active CN112052226B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011050024.XA CN112052226B (en) 2020-09-29 2020-09-29 Processing method and device for vehicle-mounted service data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011050024.XA CN112052226B (en) 2020-09-29 2020-09-29 Processing method and device for vehicle-mounted service data

Publications (2)

Publication Number Publication Date
CN112052226A CN112052226A (en) 2020-12-08
CN112052226B true CN112052226B (en) 2023-10-10

Family

ID=73605893

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011050024.XA Active CN112052226B (en) 2020-09-29 2020-09-29 Processing method and device for vehicle-mounted service data

Country Status (1)

Country Link
CN (1) CN112052226B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112506696A (en) * 2021-01-22 2021-03-16 马瑞利汽车电子(广州)有限公司 Method for preventing request between modules from being lost

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104090943A (en) * 2014-07-01 2014-10-08 中国工商银行股份有限公司 Data file processing method, device and system
CN104320469A (en) * 2014-10-29 2015-01-28 北京思特奇信息技术股份有限公司 Incremental change data analyzing and downloading method and system based on SVN
CN105516230A (en) * 2014-10-15 2016-04-20 深圳市腾讯计算机系统有限公司 Data processing method and device
US10534756B1 (en) * 2016-04-27 2020-01-14 Google Llc Systems and methods for cross-referencing electronic documents on distributed storage servers
CN110704076A (en) * 2019-10-15 2020-01-17 上海元城汽车技术有限公司 Data processing method and device, vehicle-mounted controller and computer-readable storage medium
CN111400266A (en) * 2019-01-02 2020-07-10 阿里巴巴集团控股有限公司 Data processing method and system, and diagnosis processing method and device of operation event

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8180730B2 (en) * 2008-11-25 2012-05-15 International Business Machines Corporation Arbitration token for managing data integrity and data accuracy of information services that utilize distributed data replicas

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104090943A (en) * 2014-07-01 2014-10-08 中国工商银行股份有限公司 Data file processing method, device and system
CN105516230A (en) * 2014-10-15 2016-04-20 深圳市腾讯计算机系统有限公司 Data processing method and device
CN104320469A (en) * 2014-10-29 2015-01-28 北京思特奇信息技术股份有限公司 Incremental change data analyzing and downloading method and system based on SVN
US10534756B1 (en) * 2016-04-27 2020-01-14 Google Llc Systems and methods for cross-referencing electronic documents on distributed storage servers
CN111400266A (en) * 2019-01-02 2020-07-10 阿里巴巴集团控股有限公司 Data processing method and system, and diagnosis processing method and device of operation event
CN110704076A (en) * 2019-10-15 2020-01-17 上海元城汽车技术有限公司 Data processing method and device, vehicle-mounted controller and computer-readable storage medium

Also Published As

Publication number Publication date
CN112052226A (en) 2020-12-08

Similar Documents

Publication Publication Date Title
CN111291000B (en) File acquisition method, equipment and storage medium based on block chain
WO2018076755A1 (en) Method and apparatus for issuing upgrade package
CN111447248A (en) File transmission method and device
US20110138079A1 (en) Information processing apparatus, information processing method, data management server and data synchronization system
CN107770229B (en) Cloud file sharing method and system and cloud server
US20110202633A1 (en) Cache server control device, content distribution system, method of distributing content, and program
US9582387B2 (en) Server, backup system and backup method
CN102664950B (en) Data communication method between welding power sources and computers
JP5358539B2 (en) Mobile terminal, data distribution server, data distribution system, and data distribution method
CN110324406B (en) Method for acquiring business data and cloud service system
CN111221469A (en) Method, device and system for synchronizing cache data
CN102420857A (en) Operation instruction transmission and processing methods, transmission and cache servers and storage system
US20110202596A1 (en) Cache server control device, content distribution system, method of distributing content, and program
CN112052226B (en) Processing method and device for vehicle-mounted service data
CN105743945A (en) Method and system for downloading files on the basis of switching download sources
CN102136941A (en) Method, device and system for data backup of integrated access device
CN110515548B (en) Method for avoiding waste of third-party cloud storage space
CN104079623A (en) Method and system for controlling multilevel cloud storage synchrony
CN107741994B (en) Data updating method and device
CN101526959B (en) Data storing method and device
JP6172296B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, AND COMMUNICATION PROGRAM
CN110995830B (en) Network resource processing method and device
US20100057839A1 (en) System and method for distributing design system, design system distributing server, and client system
CN110493029B (en) Transmission method, transmission device, electronic equipment and storage medium
JP2005100007A (en) Data file saving system and allocation method

Legal Events

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