CN113963458B - Vehicle-mounted log management method - Google Patents

Vehicle-mounted log management method Download PDF

Info

Publication number
CN113963458B
CN113963458B CN202111360790.0A CN202111360790A CN113963458B CN 113963458 B CN113963458 B CN 113963458B CN 202111360790 A CN202111360790 A CN 202111360790A CN 113963458 B CN113963458 B CN 113963458B
Authority
CN
China
Prior art keywords
log
vehicle
cloud server
packets
compressed
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
CN202111360790.0A
Other languages
Chinese (zh)
Other versions
CN113963458A (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.)
Changzhou Citos Software Co ltd
Original Assignee
Changzhou Citos Software 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 Changzhou Citos Software Co ltd filed Critical Changzhou Citos Software Co ltd
Priority to CN202111360790.0A priority Critical patent/CN113963458B/en
Publication of CN113963458A publication Critical patent/CN113963458A/en
Application granted granted Critical
Publication of CN113963458B publication Critical patent/CN113963458B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C5/00Registering or indicating the working of vehicles
    • G07C5/008Registering or indicating the working of vehicles communicating information to a remotely located station
    • 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/18File system types
    • G06F16/1805Append-only file systems, e.g. using logs or journals to store data
    • G06F16/1815Journaling file systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/06Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/40Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Abstract

The invention provides a vehicle-mounted log management method, which comprises the following steps: s1, configuring a unique identification code for a vehicle machine, and identifying the identity of the vehicle machine through the unique identification code by a cloud server; s2, dividing each log into a plurality of compressed packets by the vehicle, and sequentially sending the compressed packets to the mobile terminal through Bluetooth by the vehicle and storing the compressed packets; s3, the cloud server screens out and extracts corresponding compressed packets from the mobile terminal by using the log date and the unique identification code, and the vehicle machine sends the residual compressed packets to the cloud server; s4, decompressing all the compressed packets by the cloud server. According to the vehicle-mounted log management method, the vehicle-mounted log is divided into a plurality of compressed packets and is transmitted to the mobile terminal step by step for storage, a small amount of log data are stored in the vehicle, and when the log is required to be used, the cloud server extracts the compressed packets from the mobile terminal and/or the vehicle, so that the loss of the vehicle-mounted log in storage is guaranteed, and the integrity of data in the process of transferring is also possibly guaranteed.

Description

Vehicle-mounted log management method
Technical Field
The invention relates to the technical field of vehicle-mounted software management, in particular to a vehicle-mounted log management method.
Background
The on-board software will be equipped with a logging system but can only be stored locally. When a customer encounters a problem, the after-market 4S store must ask a staff member to export the log to the host vendor for investigation. However, since the log storage capacity is limited or the client cannot go to the 4S store for a short time, the situation that the problem log is lost may be found after the log is exported, the provider cannot find the problem in the software, and complaints of the client may be caused over time.
If the log is directly uploaded to the cloud through the Internet, the current most automobiles are limited by network quality even if the automobiles are accessed to the Internet, and the uploading of the data cannot be ensured.
Disclosure of Invention
The invention aims to solve the technical problems that: in order to solve the problem of vehicle-mounted log loss in the prior art, the invention provides a vehicle-mounted log management method for solving the problem.
The technical scheme adopted for solving the technical problems is as follows: a vehicle-mounted log management method comprises the following steps:
s1, configuring a unique identification code for a vehicle machine, and identifying the identity of the vehicle machine through the unique identification code by a cloud server;
s2, dividing each log into a plurality of compressed packets by the vehicle, and sequentially sending the compressed packets to the mobile terminal through Bluetooth by the vehicle and storing the compressed packets; the vehicle machine sends the unique identification code to the mobile terminal through Bluetooth and stores the unique identification code;
s3, the vehicle machine sends a log uploading request to a cloud server through the Internet, the log uploading request comprises a log date and a unique identification code, the cloud server screens out and extracts a corresponding compressed packet from the mobile terminal by using the log date and the unique identification code, and the vehicle machine sends the residual compressed packet to the cloud server;
s4, decompressing all the compressed packets by the cloud server.
Preferably, the plurality of compression packets include a first compression packet having log data and an operation formula, a second compression packet having log data and an operation parameter, and a third compression packet having log data and an operation result, and the other compression packets having log data and operation data;
and decompressing all the compression packets by the cloud server, extracting the operation formula, the operation parameters, the operation data and the operation result, substituting the operation parameters and the operation data into the operation formula for calculation, comparing the calculated result with the operation result, and judging whether the compression packets obtained by the cloud server are complete or not.
Preferably, the mobile terminal backs up the compressed packets, wherein the backup of each compressed packet has a unique code corresponding to an operation formula, an operation parameter, operation data or an operation result, and when the cloud server judges that the operation cannot be performed or the operation result is incorrect due to the lack of the operation formula, the operation parameter, the operation data or the operation result, the corresponding compressed packet is found from the backup according to the lack of the operation formula, the operation parameter, the operation data or the operation result.
Preferably, the backup of the compressed package is cleared at a preset period.
The vehicle-mounted log management method has the beneficial effects that the vehicle-mounted log is divided into a plurality of compressed packets and is gradually transmitted to the mobile terminal for storage, a small amount of log data is stored in the vehicle, and when the log is needed to be used, the cloud server extracts the compressed packets from the mobile terminal and/or the vehicle, so that the loss of the vehicle-mounted log in the storage process is ensured, and the integrity of data in the transfer process is also possibly ensured.
Drawings
The invention will be further described with reference to the drawings and examples.
Fig. 1 is a flowchart of a preferred embodiment of a method of managing an in-vehicle log according to the present invention.
Detailed Description
Embodiments of the present invention are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are illustrative only and are not to be construed as limiting the invention.
In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "axial", "radial", "circumferential", etc. indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings are merely for convenience in describing the present invention and simplifying the description, and do not indicate or imply that the device or element being referred to must have a specific orientation, be configured and operated in a specific orientation, and thus should not be construed as limiting the present invention.
Furthermore, the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In the description of the present invention, it should be noted that, unless explicitly specified and limited otherwise, the terms "connected," "connected," and "connected" are to be construed broadly, and may be either fixedly connected, detachably connected, or integrally connected, for example; can be mechanically or electrically connected; can be directly connected or indirectly connected through an intermediate medium. The specific meaning of the above terms in the present invention will be understood in specific cases by those of ordinary skill in the art. Furthermore, in the description of the present invention, unless otherwise indicated, the meaning of "a plurality" is two or more.
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 executable instructions for implementing specific logical functions or steps of the process, and further implementations are included within the scope of the preferred embodiment of the present invention 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 the present invention.
As shown in fig. 1, the invention provides a vehicle log management method, which comprises the following steps:
s1, configuring a unique identification code for a vehicle machine, and identifying the identity of the vehicle machine through the unique identification code by a cloud server;
s2, dividing each log into a plurality of compressed packets by the vehicle machine, and sequentially transmitting the compressed packets to the mobile terminal through Bluetooth by the vehicle machine and storing the compressed packets; the vehicle machine sends the unique identification code to the mobile terminal through Bluetooth and stores the unique identification code; the vehicle has a certain storage space, so that all the compressed packets are not required to be transmitted to the mobile terminal at one time, and all the compressed packets are not required to be transmitted to the mobile terminal. The intelligent device with Bluetooth transmission function such as an intelligent mobile phone and a tablet personal computer of the mobile terminal.
S3, the vehicle machine sends a log uploading request to the cloud server through the Internet, the log uploading request comprises a log date and a unique identification code, the cloud server screens out and extracts a corresponding compressed packet from the mobile terminal by using the log date and the unique identification code, and the vehicle machine sends the residual compressed packet to the cloud server;
s4, decompressing all the compressed packets by the cloud server, and extracting data in the compressed packets.
In order to further ensure the integrity of the data, the plurality of compression packets include a first compression packet, a second compression packet and a third compression packet, the first compression packet has log data and an operation formula, the second compression packet has log data and operation parameters, the third compression packet has log data and operation results, and the other compression packets have log data and operation data; the operation formula, the operation parameters, the operation data and the operation result can be determined according to the number of the compression packets, and for example, assuming that there are 5 compression packets, the operation formula can be aa+bb=c, where a=1, b=2, which are operation parameters, a=5, b=8, which are operation data, and c=21, which are operation results.
The cloud server decompresses all the compression packets, extracts an operation formula, operation parameters, operation data and operation results, substitutes the operation parameters and the operation data into the operation formula for calculation, compares the calculated results with the operation results, and judges whether the compression packets obtained by the cloud server are complete or not.
The mobile terminal backs up the compressed packets, each of which has a unique code corresponding to an operation formula, an operation parameter, operation data, or an operation result, and the unique codes for the operation data and the parameter may take the form of a date addition formula, for example, a unique code 20211015ka for the parameter a, where k is a preset constant, and for the operation formula, a unique code may be represented by a date addition special character. When the cloud server judges that the operation cannot be performed or the operation result is incorrect due to the lack of an operation formula, operation parameters, operation data or operation result, the corresponding compressed package is found from the backup according to the lack of content.
The backup of the compressed package is cleared according to a preset period, so that the backup is prevented from occupying the storage space for a long time.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," 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 present invention. In this specification, schematic representations of the terms do not necessarily 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 more embodiments or examples.
With the above-described preferred embodiments according to the present invention as an illustration, the above-described descriptions can be used by persons skilled in the relevant art to make various changes and modifications without departing from the scope of the technical idea of the present invention. The technical scope of the present invention is not limited to the description, but must be determined according to the scope of claims.

Claims (3)

1. The vehicle-mounted log management method is characterized by comprising the following steps of:
s1, configuring a unique identification code for a vehicle machine, and identifying the identity of the vehicle machine through the unique identification code by a cloud server;
s2, dividing each log into a plurality of compressed packets by the vehicle, and sequentially sending the compressed packets to the mobile terminal through Bluetooth by the vehicle and storing the compressed packets; the vehicle machine sends the unique identification code to the mobile terminal through Bluetooth and stores the unique identification code;
s3, the vehicle machine sends a log uploading request to a cloud server through the Internet, the log uploading request comprises a log date and a unique identification code, the cloud server screens out and extracts a corresponding compressed packet from the mobile terminal by using the log date and the unique identification code, and the vehicle machine sends the residual compressed packet to the cloud server;
s4, decompressing all the compressed packets by the cloud server;
the plurality of compression packets comprise a first compression packet, a second compression packet and a third compression packet, wherein the first compression packet is provided with log data and operation formula, the second compression packet is provided with log data and operation parameters, the third compression packet is provided with log data and operation result, and other compression packets are provided with log data and operation data;
and decompressing all the compression packets by the cloud server, extracting the operation formula, the operation parameters, the operation data and the operation result, substituting the operation parameters and the operation data into the operation formula for calculation, comparing the calculated result with the operation result, and judging whether the compression packets obtained by the cloud server are complete or not.
2. The method for managing a vehicle log according to claim 1, wherein: the mobile terminal backs up the compressed packets, the backup of each compressed packet has a unique code corresponding to an operation formula, an operation parameter, operation data or an operation result, and when the cloud server judges that the operation cannot be performed or the operation result is incorrect due to the lack of the operation formula, the operation parameter, the operation data or the operation result, the corresponding compressed packet is found out from the backup according to the lack of the operation formula, the operation parameter, the operation data or the operation result.
3. The method for managing a vehicle log according to claim 2, wherein: and the backup of the compressed package is cleared according to a preset period.
CN202111360790.0A 2021-11-17 2021-11-17 Vehicle-mounted log management method Active CN113963458B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111360790.0A CN113963458B (en) 2021-11-17 2021-11-17 Vehicle-mounted log management method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111360790.0A CN113963458B (en) 2021-11-17 2021-11-17 Vehicle-mounted log management method

Publications (2)

Publication Number Publication Date
CN113963458A CN113963458A (en) 2022-01-21
CN113963458B true CN113963458B (en) 2023-11-21

Family

ID=79470845

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111360790.0A Active CN113963458B (en) 2021-11-17 2021-11-17 Vehicle-mounted log management method

Country Status (1)

Country Link
CN (1) CN113963458B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115021975A (en) * 2022-05-17 2022-09-06 蔚来汽车科技(安徽)有限公司 Vehicle machine system, mobile terminal, server, log recording method and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108011966A (en) * 2017-12-14 2018-05-08 广东金赋科技股份有限公司 The optimization method that a kind of self-aided terminal log compression uploads
CN110546958A (en) * 2017-05-18 2019-12-06 利弗有限公司 Apparatus, system and method for wireless multilink vehicle communication
CN110995836A (en) * 2019-11-29 2020-04-10 安徽江淮汽车集团股份有限公司 Log management method, device, storage medium and device based on Internet of vehicles platform
CN111538706A (en) * 2020-04-21 2020-08-14 惠州Tcl移动通信有限公司 Data compression method and device, storage medium and mobile terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6720788B2 (en) * 2016-09-07 2020-07-08 富士通株式会社 Log management device and log management program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110546958A (en) * 2017-05-18 2019-12-06 利弗有限公司 Apparatus, system and method for wireless multilink vehicle communication
CN108011966A (en) * 2017-12-14 2018-05-08 广东金赋科技股份有限公司 The optimization method that a kind of self-aided terminal log compression uploads
CN110995836A (en) * 2019-11-29 2020-04-10 安徽江淮汽车集团股份有限公司 Log management method, device, storage medium and device based on Internet of vehicles platform
CN111538706A (en) * 2020-04-21 2020-08-14 惠州Tcl移动通信有限公司 Data compression method and device, storage medium and mobile terminal

Also Published As

Publication number Publication date
CN113963458A (en) 2022-01-21

Similar Documents

Publication Publication Date Title
CN110995836A (en) Log management method, device, storage medium and device based on Internet of vehicles platform
CN102546766B (en) Method for automatic data maintenance
US20120167071A1 (en) Software update apparatus and method of vehicle
DE102012109620A1 (en) Method and device for expanding a smartphone-oriented vehicle infotainment system by means of vehicle WiFi / DSRC
CN108182080A (en) A kind of method of automobile instrument software upgrading
CN113963458B (en) Vehicle-mounted log management method
CN112199266B (en) Log transmission method and system for vehicle-mounted machine system, vehicle and storage medium
CN104580376B (en) The methods, devices and systems connected between terminal are established in a local network
CN111262822B (en) File storage method, device, block link point and system
CN103198164A (en) Automobile fault file server, management system and management method
CN111521408A (en) Diagnosis request processing method, device, system, equipment and readable storage medium
US10020916B2 (en) Method and apparatus for data communication of vehicle
CN112689316B (en) Binding method and device of intelligent equipment, storage medium and electronic device
CN109542971A (en) Vehicle data processing method, device and readable storage medium storing program for executing
CN100395978C (en) Unloading method and terminal
CN102571820A (en) Method used for transmitting data, compression server and terminal
CN112740627A (en) Vehicle remote diagnosis method and system
CN112711612A (en) Data processing method, data processing device, storage medium and electronic device
CN111935267A (en) Industrial 5G rapid networking method and system
CN106910062A (en) Refuel automatic method of payment and system
CN105577734A (en) Information backup method, device, server and terminal
CN106686078A (en) Data transmission method and device
CN103685411A (en) Data sharing method and device in heterogeneous network
JP7108963B2 (en) In-vehicle device and vehicle information collection system
CN112203252A (en) Communication connection method and related equipment

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