CN109062822B - Storage method and device for locomotive wireless communication data - Google Patents

Storage method and device for locomotive wireless communication data Download PDF

Info

Publication number
CN109062822B
CN109062822B CN201810790845.3A CN201810790845A CN109062822B CN 109062822 B CN109062822 B CN 109062822B CN 201810790845 A CN201810790845 A CN 201810790845A CN 109062822 B CN109062822 B CN 109062822B
Authority
CN
China
Prior art keywords
address
information
address storage
storage page
page
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
CN201810790845.3A
Other languages
Chinese (zh)
Other versions
CN109062822A (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 Century Oriental Zhihui Technology Co.,Ltd.
Original Assignee
Beijing Century Dongfang Communication Equipment 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 Century Dongfang Communication Equipment Co ltd filed Critical Beijing Century Dongfang Communication Equipment Co ltd
Priority to CN201810790845.3A priority Critical patent/CN109062822B/en
Publication of CN109062822A publication Critical patent/CN109062822A/en
Application granted granted Critical
Publication of CN109062822B publication Critical patent/CN109062822B/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/02Addressing or allocation; Relocation
    • G06F12/0223User address space allocation, e.g. contiguous or non contiguous base addressing
    • G06F12/023Free address space management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

The embodiment of the invention provides a storage method and device of locomotive wireless communication data. The method comprises the steps of obtaining an address storage page group of each information type in an address area in a chip, wherein the address storage page group comprises address storage pages with preset page quantity, and each address storage page stores address information and consists of a full mark bit and an end address; sorting the address storage pages in each address storage page group according to the value of the address information; the embodiment of the invention acquires the current address storage page of each type of information according to the size of the address information value in each address storage page after each start-up, thereby performing polling storage on the address information of each type of information among different address storage pages, reducing the possibility of error of the address information and improving the safety performance of a train.

Description

Storage method and device for locomotive wireless communication data
Technical Field
The embodiment of the invention relates to the technical field of data storage, in particular to a method and a device for storing locomotive wireless communication data.
Background
With the speed increase of the train in recent years, the protection measures are not in place enough, and the accidents of train rear-end collision and derailment occur sometimes, so that economic loss and casualties are caused. The existing railway in China is the condition of internal and electric hybrid traction and alternating operation of passengers and goods, particularly the inevitable meeting of a motor train unit with a freight train in an interval, the train derailment is not negligible, and the condition can cause a secondary accident which conflicts with the train, namely a linked group death and group injury accident. In order to reduce the damage caused by similar accidents, the railway department proposes to develop a train alarm system (LBJ) which mainly solves the secondary accidents of trains and gives consideration to crossing alarm, construction site early warning and train approaching early warning. The main functions of the LBJ are: inquiring train tail wind pressure and controlling KLW exhaust braking function from the train tail; the train protection alarm information is sent and received, and an acousto-optic prompt is sent; and receiving the road junction accident alarm information and the construction protection alarm information and sending out an acousto-optic prompt.
For this reason, LBJ equipment needs to record a large amount of data, including various operation information maintenance information, and for these data storage technologies, NandFlash memory is mostly used, and only the start address and the end address of a certain first page for storing various information are selected when information data storage is performed.
However, in the prior art, the locomotive power supply is unstable, the amount of stored data is large, and if the number of times of erasing a certain page independently is too large, the stored data is easy to generate errors, and the stored information cannot be analyzed.
Disclosure of Invention
The embodiment of the invention provides a method and a device for storing locomotive wireless communication data, which are used for solving the problems that in the prior art, the stored data is easy to generate errors and the stored information cannot be analyzed due to excessive erasing times of a certain page independently.
In a first aspect, an embodiment of the present invention provides a method for storing locomotive wireless communication data, including:
acquiring an address storage page group of each information type in an address area in a chip, wherein the address storage page group comprises address storage pages with a preset page number, each address storage page at least stores address information, and the address information consists of a full flag bit and an end address;
sorting the address storage pages in each address storage page group according to the value of the address information stored in each address storage page;
and taking the address storage page where the minimum address information is located as the current address storage page of the corresponding information type, and updating the address information of the current address storage page into larger address information.
In a second aspect, an embodiment of the present invention provides a storage device for locomotive wireless communication data, including:
the acquisition module is used for acquiring an address storage page group of each information type in an address area in a chip, wherein the address storage page group comprises address storage pages with preset page quantity, each address storage page at least stores address information, and the address information consists of a full flag bit and an end address;
the sorting module is used for sorting the address storage pages in each address storage page group according to the value of the address information stored in each address storage page;
and the judging module is used for taking the address storage page where the minimum address information is located as the current address storage page of the corresponding information type and updating the address information of the current address storage page into larger address information.
In a third aspect, an embodiment of the present invention further provides an electronic device, including:
a processor, a memory, a communication interface, and a bus; wherein the content of the first and second substances,
the processor, the memory and the communication interface complete mutual communication through the bus;
the communication interface is used for information transmission between communication devices of the electronic equipment;
the memory stores program instructions executable by the processor, the processor invoking the program instructions to perform a method comprising:
acquiring an address storage page group of each information type in an address area in a chip, wherein the address storage page group comprises address storage pages with a preset page number, each address storage page at least stores address information, and the address information consists of a full flag bit and an end address;
sorting the address storage pages in each address storage page group according to the value of the address information stored in each address storage page;
and taking the address storage page where the minimum address information is located as the current address storage page of the corresponding information type, and updating the address information of the current address storage page into larger address information.
In a fourth aspect, an embodiment of the present invention further provides a storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the following method:
acquiring an address storage page group of each information type in an address area in a chip, wherein the address storage page group comprises address storage pages with a preset page number, each address storage page at least stores address information, and the address information consists of a full flag bit and an end address;
sorting the address storage pages in each address storage page group according to the value of the address information stored in each address storage page;
and taking the address storage page where the minimum address information is located as the current address storage page of the corresponding information type, and updating the address information of the current address storage page into larger address information.
According to the method and the device for storing the locomotive wireless communication data, the address storage pages with the preset page number are allocated to each type of information to store the address information of the information data of the information type, and the current address storage page of each type of information is obtained according to the size of the address information value in each address storage page after each start-up, so that the address information of each type of information is stored in a polling mode among different address storage pages, the possibility of error of the address information is reduced, and the safety performance of a train is improved.
Drawings
FIG. 1 is a flow chart of a method for storing locomotive wireless communication data according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a memory device for locomotive wireless communication data according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a flowchart of a method for storing locomotive wireless communication data according to an embodiment of the present invention, as shown in fig. 1, the method includes:
step S01, obtaining an address storage page group of each information type in an address area in the chip, wherein the address storage page group comprises address storage pages with preset page quantity, each address storage page at least stores address information, and the address information comprises a full flag bit and an end address.
During the maintenance of various operation information on the train, the operation information is classified into different information types according to the characteristics of information data, for example, key information, information sent by other equipment, information sent to other equipment, maintenance information, interaction information and the like are received and stored in a memory.
The embodiment of the invention adopts a Flash chip as a memory, and the chip is divided into a data storage area for storing various information data and an address area for storing address information according to different information types, wherein each information type corresponds to a unique data storage area respectively. For example, if there are 16 information types, the chip includes at least 16 data storage areas, and one address area. The address area stores therein address information in units of pages, each of which stores address information of one information type. Each information type corresponds to a preset number of pages, e.g. 6 pages, of address storage pages and address storage pages of the same information type may be combined into address storage page groups, i.e. each information type corresponds to one address storage page group.
The page location in the address area for each address can be divided according to actual needs, and only one of them is given as an example below. Take the 16 types of information as an example. The whole address area can consist of 100 pages, which are 0-99 pages respectively, and the address storage pages corresponding to each information type i are 16 x 0+ i-1, 16 x 1+ i-1, 16 x 2+ i-1, 16 x 3+ i, 16 x 4+ i-1 and 16 x 5+ i-1. That is, the address storage pages of the first information type are 0, 16, 32, 48, 64, 80, and the address storage pages of the second information type are 1, 17, 33, 49, 65, 81, … ….
The address information is composed of a full flag bit and an end address, wherein the full flag bit is located at a high position, and a specific length can be determined according to actual needs, for example, the full flag bit can be 2 bytes, and the end address is 4 bytes.
After the system is powered off and then powered on, since it is not clear where the received information data should be stored, it is necessary to first obtain the address storage page group of each information type from the address area.
Step S02 is to sort the address storage pages in each address storage page group according to the size of the value of the address information stored in each address storage page.
And respectively extracting address information stored in each address storage page group, and then sorting the address storage pages in each address storage page group according to the size of the address information.
Step S03, the address storage page where the minimum address information is located is used as the current address storage page of the corresponding information type, and the address information of the current address storage page is updated to the larger address information.
And defaulting an address storage page where the maximum address information is located as an address storage page used for storing the address information of the corresponding information type before the system is powered off, wherein an ending address in the maximum address information is the last address for storing the information data of the corresponding information type before the system is powered off, and the ending address is used as the starting address of the corresponding information type after the system is powered on.
And after the address storage page with the minimum address information in the address storage page group is started up at this time, the address information in the current address storage page is updated to the maximum address information in the address storage page group, wherein the current address storage page corresponds to the information type.
For example, after the computer is turned on, the address storage pages in which the first type of information is obtained in the address area are pages 0, 16, 32, 48, 64, and 80, respectively, where the address information stored in each page is shown in the following table:
number of pages Full of deposit flag Ending address
Page 0 0 860
16 pages 0 1467
32 pages 0 360
48 pages 0 2580
64 pages 0 630
80 pages 0 65432
According to the above table sorting 65432, 2580, 1467, 860, 630 and 360, it can be seen that the operation has been stored in the position of the data storage area 65432 corresponding to the information type last time, data is written from the position 65432 after the start-up this time, the data stored in the 32 nd page is found to be minimum this time, the 65432 is written into the 32 nd page first, and then the ending address stored in the 32 nd page is refreshed once every time one piece of service information is stored.
According to the embodiment of the invention, the address storage pages with the preset page number are distributed to each type of information to store the address information of the information data of the information type, and the current address storage page of each type of information is obtained according to the size of the address information value in each address storage page after each start-up, so that the address information of each type of information is stored in a polling mode among different address storage pages, the error possibility of the address information is reduced, and the safety performance of a train is improved.
Based on the above embodiment, further, after the step S03, the method further includes:
acquiring information data of various information types;
and writing the information data from the end address of the current address storage page in the data storage area uniquely corresponding to the information type according to the information type, and saving the last address written this time as the end address of the current address storage page of the information type.
After the current address storage page of each type of information type is determined, the chip can acquire a large amount of information data in real time, store the information data into the data storage area corresponding to the information type according to different information types, and start writing from the end address of the corresponding current address storage page in the data storage area.
And then after each storage, recording the last address written in the data storage area into the current address storage page in the corresponding information type to replace the end address in the current address storage page. And as time goes on, the ending address in the current address storage page is continuously refreshed according to the storage of the information data until the system is shut down or powered off.
According to the embodiment of the invention, the address storage pages with the preset page number are distributed to each type of information to store the address information of the information data of the information type, and the current address storage page of each type of information is obtained according to the size of the address information value in each address storage page after each start-up, so that the address information of each type of information is stored in a polling mode among different address storage pages, the error possibility of the address information is reduced, and the safety performance of a train is improved.
Based on the above embodiment, further, the address storage page includes address storage domains with a preset first backup number; correspondingly, each address storage page at least stores address information, specifically:
the address storage fields of each address storage page store the same address information.
In order to be able to increase the accuracy of the address information stored in each address storage page, each address storage page is divided into address storage fields of a preset first backup number, for example 5, wherein each address storage field stores address information and maintains synchronization.
After the chip finishes one-time information data storage, the last written address is sent to the corresponding current address storage page and is simultaneously stored in all the address storage domains to replace the end address. At this time, even if an error occurs in one of the address storage areas in the saved address information, calibration can be performed based on the address information in the other address storage areas to ensure accuracy each time the address information is extracted.
The division of the address storage domain in each address storage page may be performed according to actual needs, and only one of them is given as an example below. Taking 512 bytes per page as an example, dividing every 100 bytes into different address memory domains, saving address information from 0 byte, and then saving every 100 bytes, namely saving the same address information at the positions of 100 bytes, 200 bytes, 300 bytes and 400 bytes.
Based on the above embodiment, further, the address storage domain further stores a check bit.
Check bits, such as 2-byte CRC check bits, may also be added when saving address information. When the address information is extracted, whether the address information is accurate or not can be judged through the CRC check bit. If an error is determined, address information in other address storage domains may be extracted.
According to the embodiment of the invention, the address information of the information data of each type of information is stored by allocating the address storage pages with the preset page number to each type of information, and the current address storage page of each type of information is obtained according to the size of the address information value in each address storage page after each start-up, wherein the address storage pages simultaneously store the address information in the address storage domain of the preset first backup data, so that the address information of each type of information is stored in a polling mode among different address storage pages, the error possibility of the address information is reduced, and the safety performance of a train is improved.
Based on the above embodiment, further, the chip further includes backup address areas with a preset second backup number, each backup address area has a backup address storage page corresponding to each address storage page in the address area one to one, and real-time synchronization is maintained; accordingly, the method further comprises:
if the address storage page has a fault, acquiring the value of the address information in a backup address storage page corresponding to the address storage page in any backup address area; correspondingly, the step of taking the address storage page where the minimum address information is located as the current address storage page of the corresponding information type specifically includes:
and taking the address storage page where the minimum address information is located and the backup address storage page as the current address storage page of the corresponding information type.
In order to further increase the fault tolerance of the address information, the chip may further divide a backup address area with a preset second backup number, for example, 2. And the setting and the stored information of each backup address area and the address area are kept consistent. Each backup address area also comprises a backup address storage page corresponding to the information type, and each backup address storage page corresponds to the address storage page in the address area one to one.
When the address storage pages in the address storage page group of each information type in the address area are sorted each time the computer is started, the backup address storage pages in the backup address storage page group of each information type in each backup address area also need to be sorted. Thereby, the backup address storage page of the minimum address information is also used as the current address storage page of the corresponding information type. When the chip completes the storage of the information data, the address information needs to be saved in the current address storage pages of the address area and the backup address area.
If the address storage page of the address area has a fault or a storage error, the required address information can be acquired from the backup address storage page of the backup address area.
At this time, the chip will include 16 data storage areas and three address areas, one for one corresponding to the type of information. The division of the chip into each area may be performed according to actual needs, and only one of them is given here as an example, first, three address areas are drawn, and 100 pages are respectively used for storing address information of each type of information at the beginning position, middle position and end position of the chip. Then 16 data storage areas are divided from the rest space, and 50 pages of isolation space is reserved between each data storage area.
The embodiment of the invention stores the address information of the information data of each type of information by allocating the address storage pages with the preset page number to each type of information, and acquires the current address storage pages of each type of information according to the size of the address information value in each address storage page after each start-up, and the chip also comprises the backup address areas with the preset second backup number and the same content as the address areas, so that the address information of each type of information is stored in polling mode among different address storage pages, the error possibility of the address information is reduced, and the safety performance of a train is improved.
Based on the above embodiment, further, the method further includes:
and if the information data of the information type is written into the last address in the corresponding data storage area range, writing the subsequent information data from the address at the beginning in the data storage area range, and adding 1 to the full identification bit in the corresponding current address storage page.
The initial value of the full flag bit in the address information is 0, but in the process of continuously writing the information data into the data storage area, the data storage area tends to be saturated until the data storage area is full, at this time, a full signal may be sent to the current address storage page, and the full flag bit is incremented by 1. The information data acquired later will be written from the initial address of the data storage area again to overwrite the original information data. And after the data storage area is initially written to be full again, adding 1 to the full flag bit of the current address storage page again, and overwriting the data storage area from the initial address again.
According to the embodiment of the invention, the address storage pages with the preset page number are distributed to each type of information type to store the address information of the information data of the information type, and the current address storage page of each type of information type is obtained according to the size of the address information value in each address storage page after each start-up, so that the address information of the information type is stored in a polling mode among different address storage pages, the error possibility of the address information is reduced, and the safety performance of a train is improved.
Fig. 2 is a schematic structural diagram of a storage device for locomotive wireless communication data according to an embodiment of the present invention, and as shown in fig. 2, the device includes: an acquisition module 10, a sorting module 11 and a decision module 12, wherein,
the obtaining module 10 is configured to obtain an address storage page group of each information type in an address area in a chip, where the address storage page group includes address storage pages with a preset page number, each address storage page at least stores address information, and the address information includes a full flag bit and an end address; the sorting module 11 is configured to sort the address storage pages in each address storage page group according to the size of the value of the address information stored in each address storage page; the determining module 12 is configured to use an address storage page where the minimum address information is located as a current address storage page of the corresponding information type, and update the address information of the current address storage page to larger address information. In particular, the amount of the solvent to be used,
the embodiment of the invention adopts a Flash chip as a memory, and the chip is divided into a data storage area for storing various information data and an address area for storing address information according to different information types, wherein each information type corresponds to a unique data storage area respectively. The address area stores therein address information in units of pages, each of which stores address information of one information type. Each information type corresponds to a preset number of pages of the address memory page, and address memory pages of the same information type can be combined into an address memory page group, i.e. each information type corresponds to one address memory page group.
The address information is composed of a full flag bit and an end address, wherein the full flag bit is located at a high bit, and the specific length can be determined according to actual needs.
After the system is powered off and then powered on, the obtaining module 10 obtains the address storage page group of each information type from the address area since it is not clear where the received information data should be stored.
Then, the sorting module 11 extracts the address information stored in each address storage page group, and sorts the address storage pages in each address storage page group according to the size of the address information. And sends the sorting result to the decision block 12.
The determining module 12 defaults the address storage page with the largest address information as the address storage page for storing the address information of the corresponding information type before the system is powered off, and the ending address in the largest address information is the last address for storing the information data of the corresponding information type before the system is powered off, and the ending address is used as the starting address of the corresponding information type after the system is powered on this time.
The determining module 12 takes the address storage page with the minimum address information in the address storage page group as the current address storage page corresponding to the information type after the boot is performed this time, and updates the address information in the current address storage page to the maximum address information.
The apparatus provided in the embodiment of the present invention is configured to execute the method, and the functions of the apparatus refer to the method embodiment specifically, and detailed method flows thereof are not described herein again.
According to the embodiment of the invention, the address storage pages with the preset page number are distributed to each type of information to store the address information of the information data of the information type, and the current address storage page of each type of information is obtained according to the size of the address information value in each address storage page after each start-up, so that the address information of each type of information is stored in a polling mode among different address storage pages, the error possibility of the address information is reduced, and the safety performance of a train is improved.
Based on the above embodiment, further, the apparatus further includes: an acquisition module and a storage module, wherein,
the acquisition module is used for acquiring information data of various information types; and the storage module is used for writing the information data from the end address of the current address storage page in the data storage area uniquely corresponding to the information type according to the information type, and storing the last address written this time as the end address of the current address storage page of the information type.
After the current address storage page of each type of information type is determined, the acquisition module acquires a large amount of information data in real time, and stores the information data in a data storage area corresponding to the information type according to different information types by the storage module, specifically, writing is started from the end address of the corresponding current address storage page in the data storage area.
And then after the storage is finished, the storage module records the last address written in the data storage area into the current address storage page in the corresponding information type so as to replace the end address in the current address storage page. And as time goes on, the ending address in the current address storage page is continuously refreshed according to the storage of the information data until the system is shut down or powered off.
According to the embodiment of the invention, the address storage pages with the preset page number are distributed to each type of information to store the address information of the information data of the information type, and the current address storage page of each type of information is obtained according to the size of the address information value in each address storage page after each start-up, so that the address information of each type of information is stored in a polling mode among different address storage pages, the error possibility of the address information is reduced, and the safety performance of a train is improved.
Fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the invention. As shown in fig. 3, the electronic device includes: a processor (processor)601, a memory (memory)602, and a bus 603;
wherein, the processor 601 and the memory 602 complete the communication with each other through the bus 603;
the processor 601 is configured to call program instructions in the memory 602 to perform the methods provided by the above-mentioned method embodiments, for example, including: acquiring an address storage page group of each information type in an address area in a chip, wherein the address storage page group comprises address storage pages with a preset page number, each address storage page at least stores address information, and the address information consists of a full flag bit and an end address; sorting the address storage pages in each address storage page group according to the value of the address information stored in each address storage page; and taking the address storage page where the minimum address information is located as the current address storage page of the corresponding information type, and updating the address information of the current address storage page into larger address information.
Further, embodiments of the present invention disclose a computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions, which when executed by a computer, the computer is capable of performing the methods provided by the above-mentioned method embodiments, for example, comprising: acquiring an address storage page group of each information type in an address area in a chip, wherein the address storage page group comprises address storage pages with a preset page number, each address storage page at least stores address information, and the address information consists of a full flag bit and an end address; sorting the address storage pages in each address storage page group according to the value of the address information stored in each address storage page; and taking the address storage page where the minimum address information is located as the current address storage page of the corresponding information type, and updating the address information of the current address storage page into larger address information.
Further, an embodiment of the present invention provides a non-transitory computer-readable storage medium storing computer instructions, which cause the computer to perform the method provided by the above method embodiments, for example, including: acquiring an address storage page group of each information type in an address area in a chip, wherein the address storage page group comprises address storage pages with a preset page number, each address storage page at least stores address information, and the address information consists of a full flag bit and an end address; sorting the address storage pages in each address storage page group according to the value of the address information stored in each address storage page; and taking the address storage page where the minimum address information is located as the current address storage page of the corresponding information type, and updating the address information of the current address storage page into larger address information.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
The above-described embodiments of the electronic device and the like are merely illustrative, where 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 also be distributed on multiple 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.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for storing locomotive wireless communication data is characterized by comprising the following steps:
dividing the chip into a data storage area for storing various information data and an address area for storing address information of the data according to different information types, wherein each information type corresponds to a unique data storage area;
acquiring an address storage page group corresponding to each information type in an address area in a chip, wherein the address storage page group comprises address storage pages with preset page quantity, each address storage page of the address storage page group is used for polling and storing address information of data of the corresponding information type, and the address information consists of a full flag bit and an end address;
sorting the address storage pages in each address storage page group according to the value of the address information stored in each address storage page in the address storage page group;
and taking the address storage page where the minimum address information is located as the current address storage page corresponding to the information type, and updating the address information of the current address storage page into larger address information.
2. The method of claim 1, further comprising:
acquiring information data of various information types;
and writing the information data from the end address of the current address storage page in the data storage area uniquely corresponding to the information type according to the information type, and saving the last address written this time as the end address of the current address storage page of the information type.
3. The method of claim 1, wherein the address storage page comprises a preset first number of address storage fields; correspondingly, each address storage page at least stores address information, specifically:
the address storage fields of each address storage page store the same address information.
4. The method of claim 3, wherein the address storage field further holds a check bit.
5. The method of claim 1, wherein the chip further comprises a backup address area with a preset second backup number, each backup address area has a backup address storage page corresponding to each address storage page in the address area one by one, and real-time synchronization is maintained; accordingly, the method further comprises:
if the address storage page has a fault, acquiring the value of the address information in a backup address storage page corresponding to the address storage page in any backup address area; correspondingly, the step of taking the address storage page where the minimum address information is located as the current address storage page of the corresponding information type specifically includes:
and taking the address storage page where the minimum address information is located and the backup address storage page as the current address storage page of the corresponding information type.
6. The method of claim 2, further comprising:
and if the information data of the information type is written into the last address in the corresponding data storage area range, writing the subsequent information data from the address at the beginning in the data storage area range, and adding 1 to the full identification bit in the corresponding current address storage page.
7. A storage device for locomotive wireless communication data, comprising:
the chip comprises an area dividing module, a data storage area and an address area, wherein the area dividing module is used for dividing the chip into the data storage area for storing various information data and the address area for storing the address information of the data according to different information types, and each information type corresponds to a unique data storage area;
the acquisition module is used for acquiring an address storage page group corresponding to each information type in an address area in a chip, wherein the address storage page group comprises address storage pages with preset page quantity, each address storage page of the address storage page group is used for polling and storing address information of data of the corresponding information type, and the address information consists of a full flag bit and an end address;
the sorting module is used for sorting the address storage pages in each address storage page group according to the value of the address information stored in each address storage page in the address storage page group;
and the judging module is used for taking the address storage page where the minimum address information is located as the corresponding current address storage page of the information type, and updating the address information of the current address storage page into larger address information.
8. The apparatus of claim 7, further comprising:
the acquisition module is used for acquiring information data of various information types;
and the storage module is used for writing the information data from the end address of the current address storage page in the data storage area uniquely corresponding to the information type according to the information type, and storing the last address written this time as the end address of the current address storage page of the information type.
9. An electronic device, comprising a memory and a processor, wherein the processor and the memory communicate with each other via a bus; the memory stores program instructions executable by the processor, the processor invoking the program instructions to perform the method of any of claims 1 to 6.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 6.
CN201810790845.3A 2018-07-18 2018-07-18 Storage method and device for locomotive wireless communication data Active CN109062822B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810790845.3A CN109062822B (en) 2018-07-18 2018-07-18 Storage method and device for locomotive wireless communication data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810790845.3A CN109062822B (en) 2018-07-18 2018-07-18 Storage method and device for locomotive wireless communication data

Publications (2)

Publication Number Publication Date
CN109062822A CN109062822A (en) 2018-12-21
CN109062822B true CN109062822B (en) 2021-09-07

Family

ID=64817220

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810790845.3A Active CN109062822B (en) 2018-07-18 2018-07-18 Storage method and device for locomotive wireless communication data

Country Status (1)

Country Link
CN (1) CN109062822B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2319857Y (en) * 1997-03-14 1999-05-19 中国人民解放军第二炮兵第三研究所 Microcomputer software protector
CN102067237A (en) * 2008-06-16 2011-05-18 桑迪士克以色列有限公司 Reverse order page writing in flash memories
CN102521084A (en) * 2011-12-20 2012-06-27 惠州市亿能电子有限公司 Data storage and reading method
CN102737715A (en) * 2011-04-02 2012-10-17 航天信息股份有限公司 Data brown-out protection method for NOR flash memory
US8650363B2 (en) * 2007-07-25 2014-02-11 AGIGA Tech Capacitor save energy verification
CN103632722A (en) * 2007-04-30 2014-03-12 三星电子株式会社 Memory system, program method thereof, and computing system including the same
US8745322B2 (en) * 2003-12-30 2014-06-03 Sandisk Technologies Inc. Management of non-volatile memory systems having large erase blocks
CN105302482A (en) * 2015-10-15 2016-02-03 北京友信宏科电子科技有限公司 Parameter storage method and apparatus as well as automobile controller
CN107678420A (en) * 2017-09-30 2018-02-09 北京理工大学 A kind of engine data on-line storage method
CN108089821A (en) * 2017-12-20 2018-05-29 福建星海通信科技有限公司 A kind of method of micro controller data storage management

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5674634B2 (en) * 2011-12-28 2015-02-25 株式会社東芝 Controller, storage device and program
US9466383B2 (en) * 2013-12-30 2016-10-11 Sandisk Technologies Llc Non-volatile memory and method with adaptive logical groups
US10126985B2 (en) * 2015-06-24 2018-11-13 Intel Corporation Application driven hardware cache management
CN105718219B (en) * 2016-01-19 2018-12-04 浙江大学 The method and module of high speed data transfer storage based on USB3.0
CN108153487B (en) * 2017-11-30 2021-04-13 西安空间无线电技术研究所 NAND FLASH-based satellite-borne solid-storage multi-source data file system

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2319857Y (en) * 1997-03-14 1999-05-19 中国人民解放军第二炮兵第三研究所 Microcomputer software protector
US8745322B2 (en) * 2003-12-30 2014-06-03 Sandisk Technologies Inc. Management of non-volatile memory systems having large erase blocks
CN103632722A (en) * 2007-04-30 2014-03-12 三星电子株式会社 Memory system, program method thereof, and computing system including the same
US8650363B2 (en) * 2007-07-25 2014-02-11 AGIGA Tech Capacitor save energy verification
CN102067237A (en) * 2008-06-16 2011-05-18 桑迪士克以色列有限公司 Reverse order page writing in flash memories
CN102737715A (en) * 2011-04-02 2012-10-17 航天信息股份有限公司 Data brown-out protection method for NOR flash memory
CN102521084A (en) * 2011-12-20 2012-06-27 惠州市亿能电子有限公司 Data storage and reading method
CN105302482A (en) * 2015-10-15 2016-02-03 北京友信宏科电子科技有限公司 Parameter storage method and apparatus as well as automobile controller
CN107678420A (en) * 2017-09-30 2018-02-09 北京理工大学 A kind of engine data on-line storage method
CN108089821A (en) * 2017-12-20 2018-05-29 福建星海通信科技有限公司 A kind of method of micro controller data storage management

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
铁路列尾装置确认办法;熊道权 等;《中国铁路 技术与应用》;20140531;第86-89页 *

Also Published As

Publication number Publication date
CN109062822A (en) 2018-12-21

Similar Documents

Publication Publication Date Title
CN103680128B (en) Taxi intelligent dispatching system
DE102019131118A1 (en) SYSTEM AND METHOD FOR EVALUATING THE OPERATION OF ENVIRONMENTAL DETECTION SYSTEMS OF VEHICLES
DE112018005458T5 (en) Systems and procedures for a cryptographically guaranteed vehicle identity
CN103605349A (en) Remote data real-time collection, analysis and statistical system and method based on CAN-bus
CN110758486B (en) Train operation control method and device and computer readable medium
DE10138703C1 (en) Method for storing odometer data
CN109062822B (en) Storage method and device for locomotive wireless communication data
DE102017218397A1 (en) Method for mapping a route section
CN110399370B (en) Method for vehicle-mounted terminal to rapidly read total mileage of vehicle instrument through cloud platform
CN108665723B (en) Information acquisition method and device
CN203422772U (en) Car driver identity classifying and recognizing and driving monitoring and recording system
CN110427221B (en) Method and system for configuring ATO software and vehicle control parameters separately
CN109816993B (en) Method for identifying vehicle rapid acceleration behavior and related equipment
CN113703417B (en) Method and device for determining test cases of full-automatic scene of train operation
CN108945007B (en) On-site verification system for ground equipment of CTCS-4-level train control system
CN113094035B (en) Method, system and equipment for realizing graphical editing of train database
DE102014217567A1 (en) Method and server for mapping a parking lot
CN108749856B (en) Method and device for analyzing operation data of train tail locomotive platform
EP3358532A1 (en) Method for automatically detecting the usage of vehicles
CN110920701A (en) Management system for running record data of locomotive signal vehicle-mounted host
CN110595497A (en) Navigation path generation method and device, storage medium and electronic equipment
CN111935199A (en) Vehicle-mounted software version information synchronization method, device and system and vehicle
Zhang et al. Rationality analysis of test sequence for CTCS-1 train control system based on expert system
CN116215614B (en) Safety processing method, medium and system for train positioning confidence interval
DE102018003777A1 (en) Method for updating a software of at least one control device of a vehicle

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
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 102600 Beijing Daxing District Zhongguancun Science and Technology Park Daxing Biomedical Industry Base, No. 1 Building, 21 Tianrong Street

Patentee after: Beijing Century Oriental Zhihui Technology Co.,Ltd.

Address before: 102629 Building 1, yard 21, Tianrong street, Daxing biomedical industrial base, Zhongguancun Science and Technology Park, Daxing District, Beijing

Patentee before: BEIJING CENTURY DONGFANG COMMUNICATION EQUIPMENT Co.,Ltd.