CN110955615B - TBox internal data protection method and system - Google Patents

TBox internal data protection method and system Download PDF

Info

Publication number
CN110955615B
CN110955615B CN201911013719.8A CN201911013719A CN110955615B CN 110955615 B CN110955615 B CN 110955615B CN 201911013719 A CN201911013719 A CN 201911013719A CN 110955615 B CN110955615 B CN 110955615B
Authority
CN
China
Prior art keywords
configuration data
tbox
data
configuration
address
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
CN201911013719.8A
Other languages
Chinese (zh)
Other versions
CN110955615A (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.)
Wuhan Kotei Informatics Co Ltd
Original Assignee
Wuhan Kotei Informatics 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 Wuhan Kotei Informatics Co Ltd filed Critical Wuhan Kotei Informatics Co Ltd
Priority to CN201911013719.8A priority Critical patent/CN110955615B/en
Publication of CN110955615A publication Critical patent/CN110955615A/en
Application granted granted Critical
Publication of CN110955615B publication Critical patent/CN110955615B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/16Protection against loss of memory contents

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Storage Device Security (AREA)

Abstract

The invention relates to a TBox internal data protection method and a system, wherein the method comprises the following steps: step 1, after receiving configuration data, the TBox writes the configuration data into a free space; step 2, modifying the data address of the configuration item of the TBox into the data address of the corresponding configuration item in the configuration data written in the step 1, and generating a new address table, wherein the address table comprises a configuration item ID, a configuration data address and a time stamp; and 3, determining configuration data according to the configuration data address in the address table corresponding to the latest timestamp. When power is off before the timestamp is set after the configuration data is written, the original configuration data cannot be lost due to the fact that the old configuration item is still in the current configuration item; when the data power is cut off after the configuration data is written in and the time stamp is set, which address table is the newest can be judged from the time stamp, the newly written configuration data can be adopted, the data damage caused by the power failure can be solved, the internal data of the TBox is protected, the safety of the internal data of the TBox is effectively improved, and the operation of the TBox service is guaranteed.

Description

TBox internal data protection method and system
Technical Field
The invention relates to the field of data protection, in particular to a TBox internal data protection method and system.
Background
The vehicle-mounted terminal TBox (Telematics BOX) is mounted on an automobile and communicates with a TSP (Telematics Service Platform) through a wireless module.
Various configurations are arranged in the vehicle-mounted terminal TBox, each configuration data comprises a configuration name and configuration data content, and the configuration data is stored in Flash. When power failure occurs during writing of configuration data, the new configuration data is not completely written and the old configuration data is overwritten, that is, the configuration data is damaged; when a malfunction occurs, new configuration data is written because it is a malfunction, and the new configuration data is invalid.
Incorrect or invalid configuration data can cause the TBox service to operate abnormally, with serious consequences if an emergency call or vehicle drop-in service is affected.
Disclosure of Invention
The invention provides a method and a system for protecting TBox internal data aiming at the technical problems in the prior art, and solves the problem of abnormal operation caused by invalid or wrong configuration data of the TBox.
The technical scheme for solving the technical problems is as follows: a TBox internal data protection method comprises the following steps:
step 1, after receiving configuration data, the TBox writes the configuration data into a free space;
step 2, modifying the data address of the configuration item of the TBox into the data address of the corresponding configuration item in the configuration data written in the step 1, and generating a new address table, wherein the address table comprises a configuration item ID, a configuration data address and a time stamp;
and 3, determining configuration data according to the configuration data address in the address table corresponding to the latest timestamp.
A TBox internal data protection system comprising: the device comprises a configuration data receiving module, an address table generating module and a configuration data acquiring module;
the configuration data receiving module is used for writing the configuration data into the free space after the TBox receives the configuration data;
the address table generation module is used for modifying the data address of the configuration item of the TBox into the data address of the corresponding configuration item in the written configuration data and generating a new address table, wherein the address table comprises a configuration item ID, a configuration data address and a timestamp;
and the configuration data acquisition module is used for determining configuration data according to the configuration data address in the address table corresponding to the latest timestamp.
The invention has the beneficial effects that: the TBox writes the configuration data into the free space after receiving the configuration data, generates a new address table containing configuration items of the time stamp, determines the configuration data according to the configuration data address in the address table corresponding to the latest time stamp, and does not lose the original configuration data due to the fact that the old configuration item is still before the time stamp is set after the configuration data is written; when the data power is cut off after the configuration data is written in and the time stamp is set, which address table is the newest can be judged from the time stamp, the newly written configuration data can be adopted, the data damage caused by the power failure can be solved, the internal data of the TBox is protected, the safety of the internal data of the TBox is effectively improved, and the operation of the TBox service is guaranteed.
On the basis of the technical scheme, the invention can be further improved as follows.
Further, the step 2 is followed by:
and 2', clearing the time stamp in the old address table of the configuration item, and releasing the storage space of the configuration data corresponding to the configuration data address in the old address table.
Further, the step 3 is followed by:
step 4, the TBox reads all configuration items and sends the configuration data to the TSP platform;
and 5, when the TBox detects invalid configuration data, sending a request to the TSP platform to acquire the configuration data stored by the TSP platform.
Further, in step 4, when a new address table of configuration items is generated, configuration data is sent to the TSP platform or periodically sent to the TSP platform at a set time;
sending the configuration data containing the device ID of the TBox to the TSP platform in a predetermined format.
Further, after step 4, after the TSP platform receives the configuration data, a timestamp is stamped on the configuration data, and the configuration data is stored locally on the TSP platform;
and 5, the TBox sends a request to the TSP platform to acquire the configuration data corresponding to the latest timestamp stored by the TSP platform.
Further, the step 5 is followed by:
and after the TBox acquires the configuration data, checking the validity of the configuration data, if invalid configuration data is found, sending a request to the TSP platform, and acquiring the corresponding configuration data when the timestamp stored by the TSP platform is earlier until all the configuration data are valid.
Further, when the TBox judges that the configuration data acquired from the TSP platform is valid, the TBox stores the configuration data.
The beneficial effect of adopting the further scheme is that: the configuration data stored by the TSP platform is provided with a time stamp, and the TBox acquires the configuration data from the TSP platform as the latest and effective configuration data to ensure the operation of the TBox service; the configuration data stored by the TSP platform is provided with a time stamp, and the configuration data acquired by the TBox from the TSP platform is the latest and effective configuration data, so that the operation of the TBox service is guaranteed.
Drawings
Fig. 1 is a flowchart of a TBox internal data protection method provided by the present invention;
fig. 2 is a block diagram of a structure of a TBox internal data protection system according to an embodiment of the present invention;
fig. 3 is a schematic physical structure diagram of an electronic device according to an embodiment of the present invention.
In the drawings, the components represented by the respective reference numerals are listed below:
101. the device comprises a configuration data receiving module 102, an address table generating module 103, a configuration data acquiring module 201, a processor 202, a communication interface 203, a memory 204 and a communication bus.
Detailed Description
The principles and features of this invention are described below in conjunction with the following drawings, which are set forth by way of illustration only and are not intended to limit the scope of the invention.
Fig. 1 is a flowchart of a TBox internal data protection method provided by the present invention, and as can be seen from fig. 1, the method includes:
step 1, after receiving the configuration data, the TBox writes the configuration data into a free space.
And 2, modifying the data address of the configuration item of the TBox into the data address of the corresponding configuration item in the configuration data written in the step 1, and generating a new address table, wherein the address table comprises a configuration item ID, a configuration data address and a time stamp.
And 3, determining configuration data according to the configuration data address in the address table corresponding to the latest timestamp.
According to the method for protecting the internal data of the TBox, the TBox writes in an idle space after receiving the configuration data, generates a new address table containing the configuration items of the timestamp, determines the configuration data according to the configuration data address in the address table corresponding to the latest timestamp, and when power is off before the timestamp is set after the configuration data is written in, the original configuration data cannot be lost due to the fact that the old configuration item is still in the address table; when the data power is cut off after the configuration data is written in and the time stamp is set, which address table is the newest can be judged from the time stamp, the newly written configuration data can be adopted, the data damage caused by the power failure can be solved, the internal data of the TBox is protected, the safety of the internal data of the TBox is effectively improved, and the operation of the TBox service is guaranteed.
Example 1
Embodiment 1 provided by the present invention is an embodiment of a TBox internal data protection method provided by the present invention, and the embodiment includes:
step 1, after receiving the configuration data, the TBox writes the configuration data into a free space.
And after the TBox allocates a free space for the configuration data needing to be written, writing the configuration data into the free space.
And 2, modifying the data address of the configuration item of the TBox into the data address of the corresponding configuration item in the configuration data written in the step 1, and generating a new address table, wherein the address table comprises a configuration item ID, a configuration data address and a time stamp.
And setting a timestamp for the new address table after the new address table is generated, and releasing the configuration data space.
Step 2 is followed by:
and 2', clearing the time stamp in the old address table of the configuration item, and releasing the storage space of the configuration data corresponding to the configuration data address in the old address table.
And 3, determining configuration data according to the configuration data address in the address table corresponding to the latest timestamp.
Specifically, in step 3, if power failure occurs after step 1, that is, power failure occurs before the timestamp is set after the configuration data is written, the old configuration data is still stored, so that the address table corresponding to the latest timestamp is the old address table; if power failure occurs after the step 2, namely when the data is powered off after the configuration data is written and the timestamp is set, the timestamp is not set in the new configuration data, so that the address table corresponding to the latest timestamp is the old address table; if power failure occurs in the process of step 2', that is, power failure occurs in the process of clearing the timestamp in the old address table of the configuration item, the new address table is in effect, even if the old address table fails to be cleared, the new configuration data cannot be affected, and the address table can be judged to be the latest from the timestamp, so that the latest configuration data can be acquired.
Step 3 is followed by:
and 4, reading all configuration items by the TBox, and sending the configuration data to the TSP platform.
And 5, when the TBox detects invalid configuration data, sending a request to the TSP platform to acquire the configuration data stored by the TSP platform.
When the misoperation is judged to occur, the configuration data can be acquired from the TSP platform, the configuration data invalidation caused by the misoperation is solved, and the internal data of the TBox is protected.
In step 4, the configuration data may be sent to the TSP platform when the address table of the new configuration item is generated, or the configuration data may be sent to the TSP platform periodically at a set time. Configuration data containing the device ID of the TBox is sent to the TSP platform in a predetermined format.
And 4, after the TSP platform receives the configuration data, stamping a time stamp for the configuration data, and storing the configuration data in the TSP local, wherein the time stamp is the year, month and day. Even if multiple configuration save requests are received on the same day, only one copy of configuration data is saved. Therefore, when the TBox periodically sends the configuration data to the TSP platform in step 4, the period may be one day.
And 5, the TBox sends a request to the TSP platform to acquire the configuration data corresponding to the latest timestamp stored by the TSP platform.
Step 5 is followed by:
and after the TBox acquires the configuration data, checking the validity of the configuration data, if invalid configuration data is found, sending a request to the TSP platform, and acquiring the corresponding configuration data when the timestamp stored by the TSP platform is earlier until all the configuration data are valid.
The TBox stores configuration data obtained from the TSP platform.
In the embodiment of the method for protecting the internal data of the TBox, provided by the invention, the configuration data stored by the TSP platform is provided with the time stamp, and the configuration data acquired by the TBox from the TSP platform is the latest and effective configuration data, so that the operation of the TBox service is ensured.
Example 2
Embodiment 2 provided by the present invention is an embodiment of a TBox internal data protection system provided by the present invention, as shown in fig. 2, the system includes:
and the configuration data receiving module 101 is configured to write the configuration data into the free space after the TBox receives the configuration data.
The address table generating module 102 modifies the data address of the configuration item of the TBox to the data address of the corresponding configuration item in the written configuration data, and generates a new address table, where the address table includes a configuration item ID, a configuration data address, and a timestamp.
And the configuration data acquisition module 103 is configured to determine configuration data according to a configuration data address in the address table corresponding to the latest timestamp.
It should be noted that, the system provided in the embodiment of the present invention specifically executes the method in each of the above embodiments, and details of the method in each of the above embodiments are described in detail, which are not described again in the embodiment of the present invention.
Fig. 3 is a schematic entity structure diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 3, the electronic device may include: the system comprises a processor 201, a communication interface 202, a memory 203 and a communication bus 204, wherein the processor 201, the communication interface 202 and the memory 203 are communicated with each other through the communication bus 204. The processor 201 may call a computer program stored on the memory 203 and executable on the processor 201 to execute the TBox internal data protection method provided by the above embodiments, for example, including: step 1, after receiving the configuration data, the TBox writes the configuration data into a free space; step 2, modifying the data address of the configuration item of the TBox into the data address of the corresponding configuration item in the configuration data written in the step 1, and generating a new address table, wherein the address table comprises a configuration item ID, a configuration data address and a time stamp; and 3, determining configuration data according to the configuration data address in the address table corresponding to the latest timestamp.
An embodiment of the present invention further provides a non-transitory computer readable storage medium, on which a computer program is stored, where the computer program is implemented to, when executed by a processor, perform the TBox internal data protection method provided in the foregoing embodiments, for example, including: step 1, after receiving the configuration data, the TBox writes the configuration data into a free space; step 2, modifying the data address of the configuration item of the TBox into the data address of the corresponding configuration item in the configuration data written in the step 1, and generating a new address table, wherein the address table comprises a configuration item ID, a configuration data address and a time stamp; and 3, determining configuration data according to the configuration data address in the address table corresponding to the latest timestamp.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (7)

1. A TBox internal data protection method is characterized by comprising the following steps:
step 1, after receiving configuration data, the TBox writes the configuration data into a free space;
step 2, modifying the data address of the configuration item of the TBox into the data address of the corresponding configuration item in the configuration data written in the step 1, and generating a new address table, wherein the address table comprises a configuration item ID, a configuration data address and a time stamp;
step 3, determining configuration data according to the configuration data address in the address table corresponding to the latest timestamp;
step 4, the TBox reads all configuration items and sends the configuration data to the TSP platform;
step 5, when the TBox detects invalid configuration data, sending a request to the TSP platform to acquire the configuration data stored by the TSP platform;
after the step 4, after the TSP platform receives the configuration data, marking a new timestamp on the configuration data, and storing the configuration data locally on the TSP platform;
and 5, the TBox sends a request to the TSP platform to acquire the configuration data corresponding to the latest new timestamp stored by the TSP platform.
2. The method of claim 1, wherein step 2 is further followed by:
and 2', clearing the time stamp in the old address table of the configuration item, and releasing the storage space of the configuration data corresponding to the configuration data address in the old address table.
3. The method as claimed in claim 1, wherein step 4 is to send configuration data to the TSP platform when generating the address table of the new configuration item or periodically at a set time;
sending the configuration data containing the device ID of the TBox to the TSP platform in a predetermined format.
4. The method of claim 1, wherein step 5 is further followed by:
and after the TBox acquires the configuration data, checking the validity of the configuration data, if invalid configuration data is found, sending a request to the TSP platform, and acquiring the corresponding configuration data when the timestamp stored by the TSP platform is earlier until all the configuration data are valid.
5. The method as claimed in claim 4, wherein the TBox saves the configuration data when the TBox determines that the configuration data obtained from the TSP platform is valid.
6. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executing the program implements the steps of the TBox internal data protection method of any one of claims 1 to 5.
7. A non-transitory computer readable storage medium having stored thereon a computer program, wherein the computer program when executed by a processor implements the steps of the TBox internal data protection method of any of claims 1 to 5.
CN201911013719.8A 2019-10-23 2019-10-23 TBox internal data protection method and system Active CN110955615B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911013719.8A CN110955615B (en) 2019-10-23 2019-10-23 TBox internal data protection method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911013719.8A CN110955615B (en) 2019-10-23 2019-10-23 TBox internal data protection method and system

Publications (2)

Publication Number Publication Date
CN110955615A CN110955615A (en) 2020-04-03
CN110955615B true CN110955615B (en) 2021-11-09

Family

ID=69975793

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911013719.8A Active CN110955615B (en) 2019-10-23 2019-10-23 TBox internal data protection method and system

Country Status (1)

Country Link
CN (1) CN110955615B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113436364B (en) * 2021-06-22 2022-04-08 广汽埃安新能源汽车有限公司 Tbox invalid signal value judgment method and device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101436158A (en) * 2008-12-25 2009-05-20 中兴通讯股份有限公司 Parameter management method and system based on embedded type equipment flash memory
CN101441605A (en) * 2007-11-19 2009-05-27 深圳市朗科科技股份有限公司 Current failure data protection method of flash memory medium
CN101515259A (en) * 2009-03-26 2009-08-26 浙江大华技术股份有限公司 Inserted device configuring data protecting method
CN102447542A (en) * 2010-10-09 2012-05-09 中兴通讯股份有限公司 Difference self-recognizing method and system for configuration data of network equipment
CN103384263A (en) * 2012-05-03 2013-11-06 三星电子株式会社 Timestamp management method for data synchronization and terminal therefor
CN107329782A (en) * 2017-06-23 2017-11-07 武汉长光科技有限公司 A kind of method for lifting embedded device configuration file read-write efficiency
CN108052570A (en) * 2017-12-07 2018-05-18 苏州科达科技股份有限公司 Configuration information storage method, read method and the device of conference system
CN108228091A (en) * 2016-12-22 2018-06-29 上海未来宽带技术股份有限公司 Configuration data subregion store method and system, configuration data method of calibration and system
CN110213100A (en) * 2019-06-03 2019-09-06 杭州安恒信息技术股份有限公司 A kind of disaster recovery method of configuration data, device, equipment and readable storage medium storing program for executing

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7451302B2 (en) * 2004-03-10 2008-11-11 Hewlett-Packard Development Company, L.P. System and method for managing configuration data for a multi-cell computer system
US8983902B2 (en) * 2010-12-10 2015-03-17 Sap Se Transparent caching of configuration data
WO2018082105A1 (en) * 2016-11-07 2018-05-11 华为技术有限公司 Method and device for switching on-vehicle service using external sim card

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101441605A (en) * 2007-11-19 2009-05-27 深圳市朗科科技股份有限公司 Current failure data protection method of flash memory medium
CN101436158A (en) * 2008-12-25 2009-05-20 中兴通讯股份有限公司 Parameter management method and system based on embedded type equipment flash memory
CN101515259A (en) * 2009-03-26 2009-08-26 浙江大华技术股份有限公司 Inserted device configuring data protecting method
CN102447542A (en) * 2010-10-09 2012-05-09 中兴通讯股份有限公司 Difference self-recognizing method and system for configuration data of network equipment
CN103384263A (en) * 2012-05-03 2013-11-06 三星电子株式会社 Timestamp management method for data synchronization and terminal therefor
CN108228091A (en) * 2016-12-22 2018-06-29 上海未来宽带技术股份有限公司 Configuration data subregion store method and system, configuration data method of calibration and system
CN107329782A (en) * 2017-06-23 2017-11-07 武汉长光科技有限公司 A kind of method for lifting embedded device configuration file read-write efficiency
CN108052570A (en) * 2017-12-07 2018-05-18 苏州科达科技股份有限公司 Configuration information storage method, read method and the device of conference system
CN110213100A (en) * 2019-06-03 2019-09-06 杭州安恒信息技术股份有限公司 A kind of disaster recovery method of configuration data, device, equipment and readable storage medium storing program for executing

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Vehicular data acquisition and analytics system for real-time driver behavior monitoring and anomaly detection;Bhashinee Nirmali 等;《2017 IEEE International Conference on Industrial and Information Systems (ICIIS)》;20180222;第1-6页 *
车联网服务提供商技术研究现状分析;唐阳山 等;《汽车实用技术》;20181231;第156-158页 *

Also Published As

Publication number Publication date
CN110955615A (en) 2020-04-03

Similar Documents

Publication Publication Date Title
CN110955615B (en) TBox internal data protection method and system
CN109361525B (en) Method, device, control terminal and medium for restarting distributed deployment of multiple services
CN104217137A (en) Method and device for identifying whether intelligent terminal system is changed
CN104932955A (en) Method for backing up data during factory setting restoring of mobile terminal, and mobile terminal
CN111159233B (en) Distributed caching method, system, computer equipment and storage medium
CN110866053A (en) Method and device for dynamically configuring cache deadline, computer equipment and storage medium
CN106528214B (en) A kind of installation method of OS, server and system
CN113986583A (en) Distributed message processing method, device, system, equipment and storage medium
CN108241616B (en) Message pushing method and device
CN112306871A (en) Data processing method, device, equipment and storage medium
CN110866834B (en) Execution method and system of batch processing program
CN112751743A (en) Message sending exception processing method, message sending device and electronic equipment
CN111414277A (en) Data recovery method, device, electronic equipment and medium
CN111143181A (en) Server maintenance method, system, equipment and computer readable storage medium
CN110750253A (en) Log standardization method and device, computer equipment and storage medium
US11051148B2 (en) USIM management device and industrial communication terminal
CN111935199B (en) Vehicle-mounted software version information synchronization method, device and system and vehicle
CN111694850B (en) Method, system, equipment and storage medium for recovering single number of logistics electronic bill
CN114356970A (en) Storage system resource caching method and device
CN111126004A (en) Method, device and equipment for generating product sequence code and computer readable storage medium
CN111865631A (en) Fault information reporting method and device, electronic equipment and readable storage medium
CN115543698B (en) Data backup method, device, equipment and storage medium
CN110611583B (en) System service method, server and storage medium
CN112395139B (en) Method and system for realizing synchronous reporting of high-availability deployment message information
CN113986585B (en) Message processing method and device, computer equipment and storage medium

Legal Events

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