CN103020024A - File format converting method - Google Patents
File format converting method Download PDFInfo
- Publication number
- CN103020024A CN103020024A CN2012105815029A CN201210581502A CN103020024A CN 103020024 A CN103020024 A CN 103020024A CN 2012105815029 A CN2012105815029 A CN 2012105815029A CN 201210581502 A CN201210581502 A CN 201210581502A CN 103020024 A CN103020024 A CN 103020024A
- Authority
- CN
- China
- Prior art keywords
- file
- conversion
- default
- conditioned
- information data
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 64
- 238000006243 chemical reaction Methods 0.000 claims abstract description 125
- 230000001143 conditioned effect Effects 0.000 claims description 80
- 239000000284 extract Substances 0.000 claims description 11
- 230000009466 transformation Effects 0.000 claims description 11
- 230000008569 process Effects 0.000 claims description 9
- 230000004048 modification Effects 0.000 claims description 7
- 238000012986 modification Methods 0.000 claims description 7
- 238000000605 extraction Methods 0.000 claims description 4
- 230000015572 biosynthetic process Effects 0.000 claims description 2
- 230000005540 biological transmission Effects 0.000 description 11
- 230000008878 coupling Effects 0.000 description 8
- 238000010168 coupling process Methods 0.000 description 8
- 238000005859 coupling reaction Methods 0.000 description 8
- 238000004891 communication Methods 0.000 description 6
- 230000008859 change Effects 0.000 description 3
- 241001269238 Data Species 0.000 description 2
- 239000012467 final product Substances 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a file format converting method. The method comprises the following steps: receiving an unconverted file, extracting information data in the unconverted file and storing the information data according to a preset classification rule, so as to obtain an intermediate data file corresponding to the unconverted file; and generating the intermediate data file into a preset converted file according to a preset conversion rule, so as to achieve accurate and convenient conversion between files with two types of an Excel chart and a special file format.
Description
Technical field
The present invention relates to network field, particularly a kind of file layout change-over method.
Background technology
A vehicle network is comprised of a lot of electronic control units often, the content which kind of mode each electronic control unit need to work, work in, how to divide the work to dispatch with relevant rules such as management and need to pre-establish, the file that these rules are exported has consisted of communications database.
Usually use the communications database to define whole vehicle network, stipulated to comprise in the vehicle to comprise in the network attribute, each network segment of which network segment, each network segment which electronic control unit, each electronic control unit in the communications database and done which work and which mode to work, how to divide the work between each electronic control unit the contents such as scheduling and management in.
The form of existing vehicle network communications database generally has the Excel table of fixed form form and is used for the proprietary file form (as: * .ldf, * .dbc, * .Fibex, * .odx etc.) of the purposes such as emulation, simulation, based on different networks, different communication data library formats is arranged.For example, the proprietary file form based on the CAN network is * .dbc, * .mdc; Proprietary file form based on the LIN network is * .ldf; Proprietary file form based on the FlexRay network is * .Fibex; Proprietary file form based on the MOST network is * .Fibex; Proprietary file form based on diagnostic network is * .odx, * .cdd; Proprietary file form based on the demarcation network is * .a2l.
Excel table and this file of two types of proprietary file form are essential at work.Usually, can set up first the Excel table of fixed form form, determine the content of vehicle network communications database after, create again the file of proprietary file form by dedicated software tool.If the later stage need to be revised vehicle network; then need simultaneously to revise the Excel table of fixed form form and the file of proprietary file form; and in routine duties; vehicle network often can face repeatedly the process of revising, determining; at present, also there is not a kind of suitable method to come Excel table and this file of two types of proprietary file form carries out accurately, change mutually easily.
Summary of the invention
Problem to be solved by this invention is: a kind of method of file layout conversion is provided, comes the problem that the file of different-format is changed with a kind of suitable method of shortage in the solution prior art.
Concrete scheme is as follows:
A kind of file layout change-over method, described method comprises:
Receive the conversion preceding document;
Extract the information data in the described conversion preceding document, and described information data is stored according to default classifying rules, obtain the intermediate data file corresponding with described conversion preceding document;
According to default transformation rule, the file after the conversion that described intermediate data file generation is default.
Preferably, the information data that comprises in the described intermediate data file comprises: the combination of any one or a few in file information data, schedule information data, message information data, signal message data and the version information data.
Preferably, before the information data in the described conversion preceding document of described extraction, described method also comprises:
It is first pre-conditioned whether the filename form of judging described conversion preceding document meets, and if so, then extracts the information data in the described conversion preceding document, otherwise again receive the conversion preceding document.
Preferably, it is first pre-conditioned whether the described filename form of judging described conversion preceding document meets, and specifically comprises:
When the filename form of described conversion preceding document is the file designation form, when the file designation form of described conversion preceding document and default file name form is consistent, meet first pre-conditioned;
When the filename form of described conversion preceding document is file designation form and vehicle file layout, the file designation form of described conversion preceding document is consistent with default file name form, and when the vehicle file layout of described conversion preceding document is consistent with default vehicle file layout, meet first pre-conditioned.
Preferably, information data in the described conversion preceding document of described extraction, and described information data stored according to default classifying rules, obtain after the intermediate data file corresponding with described conversion preceding document, the transformation rule that described basis is default, before the file after the conversion that described intermediate data file generation is default, also comprise:
It is second pre-conditioned to judge whether described intermediate data file meets, and if so, then according to default transformation rule, described intermediate data file is generated file after the default conversion;
Wherein, described to judge whether described intermediate data file meets second pre-conditioned, specifically comprises:
When the information data in the described intermediate data file is the signal message data, judge whether described signal message data exceed the preset range of signal message data, if not, then described intermediate data file meets second pre-conditioned;
When the information data in the described intermediate data file is signal message data and message information data, judge whether described signal message data exceed the preset range of signal message data, if exceed, then described intermediate data file does not meet second pre-conditioned, if do not exceed, judge then whether described message information data exceed the preset range of message information data, if exceed, then described intermediate data file does not meet second pre-conditioned, if do not exceed, judge then whether described signal message data and message information data satisfy the condition of message information and signal message matching relationship, if, then described intermediate data file meets second pre-conditionedly, and if not, then described intermediate data file does not meet second pre-conditioned.
Preferably, also comprise:
When described intermediate data file does not meet described second when pre-conditioned, then the output modifications suggestion content is made amendment next conversion preceding document according to described modification suggestion content.
Preferably, the transformation rule that described basis is default, the process of the file after the conversion that described intermediate data file generation is default comprises:
File after the conversion that reception is preset, it is the 3rd pre-conditioned whether the filename form of judging the file after the described default conversion meets, if, file after the conversion that described intermediate data file conversion generation is default, if not, redefine the filename form of the file after the described default conversion.
Preferably, it is the 3rd pre-conditioned whether the described filename form of judging the file after the described default conversion meets, and specifically comprises:
Judge whether the file designation form of the file after the described default conversion meets the file designation form of default output file, if so, then meet the 3rd pre-conditioned, otherwise, do not meet the 3rd pre-conditioned.
Preferably, it is the 3rd pre-conditioned whether the described filename form of judging the file after the described default conversion meets, and specifically comprises:
The file designation form of the file after described default conversion is consistent with the file designation form of default output file, and, when the vehicle file layout of the file after the described default conversion was consistent with default output vehicle file layout, it is the 3rd pre-conditioned that the file after the described conversion meets.
Preferably, it is characterized in that described intermediate data file is any one or a few the combination in array, stack, formation, chained list, tree, figure, heap, hash table, the temporary variable.
As can be seen from the above technical solutions, the invention provides a kind of file layout change-over method, described method comprises: receive the conversion preceding document, extract the information data in the described conversion preceding document, and described information data stored according to default classifying rules, obtain the intermediate data file corresponding with described conversion preceding document, according to default transformation rule, with the file behind the described intermediate data file T.G Grammar, realized that Excel table and this file of two types of proprietary file form are accurately, change mutually easily.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, the below will do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art, apparently, the accompanying drawing that the following describes only is some embodiment that put down in writing among the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the schematic flow sheet of the embodiment of the invention one disclosed a kind of file layout change-over method;
Fig. 2 is the schematic flow sheet of the embodiment of the invention two disclosed a kind of file layout change-over methods;
Fig. 3 is the schematic flow sheet whether disclosed a kind of filename form of judging the file before the described conversion of the embodiment of the invention three meets the first pre-conditioned method;
Fig. 4 is the schematic flow sheet whether disclosed a kind of filename form of judging the file before the described conversion of the embodiment of the invention four meets the first pre-conditioned method;
To be that the embodiment of the invention five is disclosed a kind ofly judge whether described intermediate data file meets the schematic flow sheet of the second pre-conditioned method to Fig. 5;
To be that the embodiment of the invention six is disclosed a kind ofly judge whether described intermediate data file meets the schematic flow sheet of the second pre-conditioned method to Fig. 6;
Fig. 7 is the schematic flow sheet whether disclosed a kind of filename form of judging the file after the default conversion of the embodiment of the invention seven meets the 3rd pre-conditioned method;
Fig. 8 is the schematic flow sheet whether disclosed a kind of filename form of judging the file after the default conversion of the embodiment of the invention eight meets the 3rd pre-conditioned method.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to protection scope of the present invention not making the every other embodiment that obtains under the creative work prerequisite.
The embodiment of the invention one discloses a kind of file layout change-over method, and described method is used in the process that Excel shows and this file of two types of proprietary file form is changed mutually, and referring to shown in Figure 1, described method comprises:
Step S101: receive the conversion preceding document;
Step S102: extract the information data in the described conversion preceding document, and described information data is stored according to default classifying rules, obtain the intermediate data file corresponding with described conversion preceding document;
Step S103: according to default transformation rule, the file after the conversion that described intermediate data file generation is default.
Present embodiment discloses a kind of file layout change-over method, receive the conversion preceding document in the described method, extract the information data in the described conversion preceding document, and described information data classified according to default classifying rules, obtain the intermediate data file corresponding with described conversion preceding document, according to default transformation rule, described intermediate data file is generated file after the default conversion, realized that Excel table and this file of two types of proprietary file form are accurately, change mutually easily.
The embodiment of the invention two discloses a kind of file layout change-over method, and described method is used in the process that Excel shows and this file of two types of proprietary file form is changed mutually, and referring to shown in Figure 2, described method comprises:
Step S201: receive the conversion preceding document;
Step S202: it is first pre-conditioned whether the filename form of judging described conversion preceding document meets, if so, and execution in step S203, if not, execution in step S204 then;
Wherein, the described first pre-conditioned comprising: filename meets that the vehicle of obtaining in file designation call format, the filename meets the requirements, the network segment/nodal information in the filename meets the requirements, the information data in the file meets the requirements, wherein, defined the field of the information such as vehicle, the network segment, node, network type in the filename form, each field uses identifier to separate;
Further, filename meets the criterion of file designation call format: whether the form of each field information meets the requirements, and whether the field number meets the requirements;
The satisfactory criterion of the vehicle of obtaining in the filename: whether the vehicle in the file name segment information meets the requirement of existing vehicle;
The satisfactory criterion of the network segment/nodal information in the filename: whether the network segment/the nodal information in the filename network segment/node field information meets the requirement of place vehicle;
The satisfactory criterion of information data in the file: whether the nodal information in the file meets the requirement of place vehicle;
Step S203: extract the information data in the described conversion preceding document, and described information data is stored according to default classifying rules, obtain the intermediate data file corresponding with described conversion preceding document;
Wherein, the information data that comprises in the described intermediate data file comprises: the combination of any one or a few in file information data, schedule information data, message information data, signal message data and the version information data;
Step S204: again receive the conversion preceding document;
Step S205: it is second pre-conditioned to judge whether described intermediate data file meets, if so, and execution in step S206, if not, execution in step S208 then;
Step S206: the file after the conversion that reception is preset;
Step S207: it is the 3rd pre-conditioned whether the filename form of judging the file after the described default conversion meets, if so, and execution in step S209 then, if not, execution in step S210;
Step S208: the output modifications suggestion content, next conversion preceding document is made amendment according to described modification suggestion content;
Step S209: the file after the conversion that described intermediate data file conversion generation is default;
Step S210: the filename form that redefines the file after the described conversion.
The disclosed a kind of file layout change-over method of present embodiment is on the basis of embodiment one, increased the deterministic process that conversion preceding document, intermediate data file is reached the file after the default conversion, for the file before the conversion judged whether meet first pre-conditioned, it is second pre-conditioned that described intermediate data file judges whether to meet, to the file after the described default conversion judged whether meet the 3rd pre-conditioned, three above-mentioned deterministic processes have improved the accuracy rate that Excel table and this file of two types of proprietary file form are changed mutually.
Whether meet the first pre-conditioned method for the filename form of judging described conversion preceding document and comprise following two kinds, a kind ofly a kind ofly judge whether the filename form of described conversion preceding document meets the first pre-conditioned method for the embodiment of the invention three is disclosed, referring to shown in Figure 3, described procedure comprises:
Step S301: when the filename form of described conversion preceding document is the file designation form;
Wherein, the field number is consistent with the requirement of file designation form with the identifier number in the filename of described conversion preceding document;
Step S302: whether the file designation form of judging described conversion preceding document is consistent with default file name form, if so, and execution in step S303, if not, execution in step S304;
Step S303: meet described first pre-conditioned;
Step S304: do not meet described first pre-conditioned.
Another kind of a kind ofly judge whether the filename form of described conversion preceding document meets the first pre-conditioned method for the embodiment of the invention four is disclosed, referring to shown in Figure 4, described procedure comprises:
Step S401: when the filename form of described conversion preceding document is file designation form and vehicle file layout;
Wherein, the vehicle in the file name segment information of described conversion preceding document meets the requirement of existing vehicle;
Step S402: whether the file designation form of judging described conversion preceding document is consistent with default file name form, if so, and execution in step S403, if not, execution in step S404;
Step S403: whether the vehicle file layout of judging described conversion preceding document is consistent with default vehicle file layout, if consistent, execution in step S405, if inconsistent, execution in step S404;
Step S404: do not meet described first pre-conditioned;
Step S405: then meet described first pre-conditioned.
Among above-described embodiment three and the embodiment four, embodiment three has judged whether the file designation form of the file before the described conversion is consistent with default file name form, it is different with default file designation form to avoid the file designation form occurring, cause the error of subsequent operation, improved the conversion accuracy rate of carrying out file layout, whether embodiment four has increased the file vehicle file layout of judging described conversion preceding document on the basis of embodiment three consistent with default vehicle file layout, two kinds of above-mentioned judgements have all been played and have been improved the accuracy rate that Excel shows and this file of two types of proprietary file form is changed mutually, and just the degree of accuracy of the mode of embodiment four can be higher.
For judging whether described intermediate data file meets the second pre-conditioned method and comprise following two kinds, a kind ofly a kind ofly judge whether described intermediate data file meets the second pre-conditioned method for the embodiment of the invention five is disclosed, referring to shown in Figure 5, described procedure comprises:
Step S501: when the information data in the described intermediate data file is the signal message data;
Wherein, described signal message data are that the form according to signal message extracts from described conversion preceding document;
Step S502: judge whether described signal message data exceed the preset range of signal message data, if so, execution in step S503, if not, execution in step S504;
Wherein, the preset range of described signal message data: whether the form of the information such as the title of signal, length, transmission types, start bit, start byte, arrangement mode, signal maximum, signal minimum, physics maximal value, physics minimum value, side-play amount, scale factor, signal value tabulation, receiving node meets the requirements; Whether mate between signal maximum, signal minimum, physics maximal value, physics minimum value, side-play amount, the scale factor; Whether mate between signal maximum, signal minimum, the signal value tabulation; Arrange between signal and the signal and whether repeat; Whether signal name repeats.
Step S503: described intermediate data file does not meet described second pre-conditioned, execution in step S208;
Step S504: described intermediate data file meets described second pre-conditioned, execution in step S206.
Another kind of a kind ofly judge whether described intermediate data file meets the second pre-conditioned method for the embodiment of the invention six is disclosed, referring to shown in Figure 6, described procedure comprises:
Step S601: when the information data in the described intermediate data file is signal message data and message information data;
Wherein, described signal message data are that the form according to signal message extracts from described conversion preceding document, and are same, and described message information data also are that the form according to message information extracts from described conversion preceding document;
Step S602: judge whether described signal message data exceed the preset range of signal message data, if exceed, execution in step S603, if do not exceed, execution in step S604;
Wherein, so the preset range of signal message data: the form of the information such as the title of signal, length, transmission types, start bit, start byte, arrangement mode, signal maximum, signal minimum, physics maximal value, physics minimum value, side-play amount, scale factor, signal value tabulation, receiving node meets the requirements; The length of signal, start bit, start byte relationship match; Signal maximum, signal minimum, physics maximal value, physics minimum value, side-play amount, scale factor Relations Among coupling; Signal maximum, signal minimum, signal value tabulation Relations Among coupling; Signal name does not repeat;
Step S603: described intermediate data file does not meet second pre-conditioned, execution in step S208;
Wherein, the described second pre-conditioned having comprised: every data exceed preset range, node and vehicle coupling, node has the message of transmission and receives message, message ID does not repeat, message name does not repeat, the signal length that the length of message and message comprise is suitable, the send mode of message is up to specification, the transmission cycle of message and message ID relationship match, the type of message of message and message ID relationship match, signal in the message is arranged the occupy-place that does not have repetition, message has a sending node at least, signal name does not repeat, signal byte sequence number and signal length and start bit coupling, signal bits sequence number and signal length and start bit coupling, signal bus minimum value and physics minimum value coupling, signal bus maximal value and physics maximal value coupling, signal minimum surpasses the signal value scope; Above second pre-conditioned in, have for described classified information data in every test criterion in five, the test criterion to these five information data matching relationships is also arranged;
Step S604: judge whether described message information data exceed the preset range of message information data, if exceed, execution in step S603, if do not exceed, execution in step S605;
Wherein, the preset range of described message information data: the form that the ID of message, title, length, transmission types, transmission cycle, message send the information such as cycle, the quick transmission times of message, message delay time, sending node fast meets the requirements; Message ID does not repeat; Message name does not repeat; The transmission types of message, transmission cycle, message send cycle, the quick transmission times of message, message delay time Relationship coupling, the transmission cycle of message and message ID relationship match fast;
Step S605: judge whether described signal message data and message information data satisfy the condition of message information and signal message matching relationship, if, execution in step S606, if not, execution in step S603
Wherein, the condition of described message information and signal message matching relationship is: the signal length that the length of message and message comprise is suitable, the signal in the type of message of message and message ID relationship match, the message is arranged the occupy-place that not have repetition;
Step S606: described intermediate data file meets second pre-conditioned, execution in step S206;
Wherein, when described classified information data have comprised signal message data and message information data, judge that the pre-conditioned of signal message data is: whether described signal message data exceed preset range, judge that the pre-conditioned of message information data is, whether the message information data exceed preset range, be exactly to judge whether described signal message data and message information data satisfy the condition of message information and signal message matching relationship in addition, this shows, when described classified information data comprise two or more information datas, except needs are judged pre-conditioned that each information data will satisfy, also need also to satisfy described information data Relations Among pre-conditioned.
Among above-described embodiment five and the embodiment six, it is second pre-conditioned that embodiment five has judged whether described intermediate data file meets, when the information data in the described intermediate data file is the signal message data, judging whether described signal message data meet exceeds preset range, disclose among the embodiment six when described classified information data comprise two or more information datas, except needs judge each information data whether satisfy pre-conditioned, need also to judge whether the relation between the described information data also satisfies pre-conditioned, described pre-conditioned can presetting according to client's needs, can be that any one also can be any several combination, can satisfy flexibly client's needs, usable range obtains enlarging.
Whether meet the 3rd pre-conditioned method for the filename form of judging the file after the described default conversion and comprise following two kinds, a kind ofly for whether the disclosed a kind of filename form of judging the file after the default conversion of the embodiment of the invention seven meets the 3rd pre-conditioned process comprise:
Step S701: when the filename form of the file after the described default conversion is the file designation form;
Wherein, the field number is consistent with the requirement of file designation form with the identifier number in the filename after the described conversion;
Step S702: judge whether the file designation form of the file after the described default conversion meets the file designation form of default output file, if so, execution in step S703, if not, execution in step S704;
Step S703: meet the described the 3rd pre-conditioned;
Step S704: do not meet the described the 3rd pre-conditioned.
Another kind of for whether the disclosed a kind of filename form of judging the file after the default conversion of the embodiment of the invention eight meets the 3rd pre-conditioned process comprise:
Step S801: when the filename form of the file after the described default conversion is file designation form and vehicle file layout;
Wherein, the vehicle in the file name segment information of the file after the described conversion meets the requirement of existing vehicle;
Step S802: judge whether the file designation form of the file after the described default conversion meets the file designation form of default output file, if so, execution in step S803, if not, execution in step S804;
Step S803: whether the vehicle file layout of judging the file after the described default conversion is consistent with default output vehicle file layout, if consistent, execution in step S805, if inconsistent, execution in step S804;
Step S804: do not meet the described the 3rd pre-conditioned;
Step S805: meet the described the 3rd pre-conditioned.
Among above-described embodiment seven and the embodiment eight, whether the filename form of the file after the described default conversion is met the 3rd is pre-conditionedly judged, that is: judge among the embodiment seven whether the file designation form of the file after the described default conversion meets the file designation form of default output file, if, then meet the 3rd pre-conditioned, judge the file designation form of the file after the described default conversion and file designation form and the output vehicle file layout whether the vehicle file layout meets default output file among the embodiment eight, if, then meet the 3rd pre-conditioned, before the file after described intermediate data file converts described default conversion to, increase Rule of judgment, further improved the accuracy rate of mutually changing between the file layout.
Each embodiment adopts the mode of going forward one by one to describe in this instructions, and what each embodiment stressed is and the difference of other embodiment that identical similar part is mutually referring to getting final product between each embodiment.For the disclosed device of embodiment, because it is corresponding with the disclosed method of embodiment, so description is fairly simple, relevant part partly illustrates referring to method and gets final product.
To the above-mentioned explanation of the disclosed embodiments, make this area professional and technical personnel can realize or use the present invention.Multiple modification to these embodiment is apparent to those skilled in the art, and General Principle as defined herein can in the situation that does not break away from the spirit or scope of the present invention, realize in other embodiments.Therefore, the present invention will can not be restricted to these embodiment shown in this article, but will meet the wide region consistent with principle disclosed herein and features of novelty.
Claims (10)
1. a file layout change-over method is characterized in that, described method comprises:
Receive the conversion preceding document;
Extract the information data in the described conversion preceding document, and described information data is stored according to default classifying rules, obtain the intermediate data file corresponding with described conversion preceding document;
According to default transformation rule, the file after the conversion that described intermediate data file generation is default.
2. method according to claim 1, it is characterized in that the information data that comprises in the described intermediate data file comprises: the combination of any one or a few in file information data, schedule information data, message information data, signal message data and the version information data.
3. method according to claim 1 is characterized in that, before the information data in the described conversion preceding document of described extraction, described method also comprises:
It is first pre-conditioned whether the filename form of judging described conversion preceding document meets, and if so, then extracts the information data in the described conversion preceding document, otherwise again receive the conversion preceding document.
4. method according to claim 3 is characterized in that, it is first pre-conditioned whether the described filename form of judging described conversion preceding document meets, and specifically comprises:
When the filename form of described conversion preceding document is the file designation form, when the file designation form of described conversion preceding document and default file name form is consistent, meet first pre-conditioned;
When the filename form of described conversion preceding document is file designation form and vehicle file layout, the file designation form of described conversion preceding document is consistent with default file name form, and when the vehicle file layout of described conversion preceding document is consistent with default vehicle file layout, meet first pre-conditioned.
5. method according to claim 2, it is characterized in that, information data in the described conversion preceding document of described extraction, and described information data stored according to default classifying rules, obtain after the intermediate data file corresponding with described conversion preceding document, the transformation rule that described basis is default before the file after the conversion that described intermediate data file generation is default, also comprises:
It is second pre-conditioned to judge whether described intermediate data file meets, and if so, then according to default transformation rule, described intermediate data file is generated file after the default conversion;
Wherein, described to judge whether described intermediate data file meets second pre-conditioned, specifically comprises:
When the information data in the described intermediate data file is the signal message data, judge whether described signal message data exceed the preset range of signal message data, if not, then described intermediate data file meets second pre-conditioned;
When the information data in the described intermediate data file is signal message data and message information data, judge whether described signal message data exceed the preset range of signal message data, if exceed, then described intermediate data file does not meet second pre-conditioned, if do not exceed, judge then whether described message information data exceed the preset range of message information data, if exceed, then described intermediate data file does not meet second pre-conditioned, if do not exceed, judge then whether described signal message data and message information data satisfy the condition of message information and signal message matching relationship, if, then described intermediate data file meets second pre-conditionedly, and if not, then described intermediate data file does not meet second pre-conditioned.
6. method according to claim 5 is characterized in that, also comprises:
When described intermediate data file does not meet described second when pre-conditioned, then the output modifications suggestion content is made amendment next conversion preceding document according to described modification suggestion content.
7. method according to claim 1 is characterized in that, the transformation rule that described basis is default, and the process of the file after the conversion that described intermediate data file generation is default comprises:
File after the conversion that reception is preset, it is the 3rd pre-conditioned whether the filename form of judging the file after the described default conversion meets, if, file after the conversion that described intermediate data file conversion generation is default, if not, redefine the filename form of the file after the described default conversion.
8. method according to claim 7 is characterized in that, it is the 3rd pre-conditioned whether the described filename form of judging the file after the described default conversion meets, and specifically comprises:
Judge whether the file designation form of the file after the described default conversion meets the file designation form of default output file, if so, then meet the 3rd pre-conditioned, otherwise, do not meet the 3rd pre-conditioned.
9. method according to claim 7 is characterized in that, it is the 3rd pre-conditioned whether the described filename form of judging the file after the described default conversion meets, and specifically comprises:
The file designation form of the file after described default conversion is consistent with the file designation form of default output file, and, when the vehicle file layout of the file after the described default conversion was consistent with default output vehicle file layout, it is the 3rd pre-conditioned that the file after the described conversion meets.
10. the described method of any one in 9 according to claim 1 is characterized in that, described intermediate data file is any one or a few the combination in array, stack, formation, chained list, tree, figure, heap, hash table, the temporary variable.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210581502.9A CN103020024B (en) | 2012-12-27 | 2012-12-27 | A kind of file layout change-over method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210581502.9A CN103020024B (en) | 2012-12-27 | 2012-12-27 | A kind of file layout change-over method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103020024A true CN103020024A (en) | 2013-04-03 |
CN103020024B CN103020024B (en) | 2016-01-27 |
Family
ID=47968643
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210581502.9A Active CN103020024B (en) | 2012-12-27 | 2012-12-27 | A kind of file layout change-over method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103020024B (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103559285A (en) * | 2013-11-07 | 2014-02-05 | 大连东方之星信息技术有限公司 | Method for monitoring file folder in real time and supporting conversion of multi-format files |
CN105279177A (en) * | 2014-07-03 | 2016-01-27 | 北京联嘉众赢网络技术有限公司 | Data structure conversion method and apparatus |
CN107247697A (en) * | 2017-07-05 | 2017-10-13 | 上海蔚赫信息科技有限公司 | A kind of method that Excel file is converted to automotive networking DBC files |
CN107644059A (en) * | 2017-08-18 | 2018-01-30 | 广州视源电子科技股份有限公司 | Method and device for exporting database file, storage medium and terminal equipment |
CN107992567A (en) * | 2017-11-29 | 2018-05-04 | 北京天健通泰科技有限公司 | Collecting method and data collecting system |
CN108733674A (en) * | 2017-04-14 | 2018-11-02 | 宁德时代新能源科技股份有限公司 | A2L file merging method and device |
CN109213102A (en) * | 2018-09-11 | 2019-01-15 | 深圳众城卓越科技有限公司 | More order monitoring methods, device, computer equipment and storage medium |
CN110851665A (en) * | 2019-11-12 | 2020-02-28 | 上海元城汽车技术有限公司 | Calibration information extraction method and device, electronic equipment and storage medium |
CN111103861A (en) * | 2018-10-25 | 2020-05-05 | 上汽通用汽车有限公司 | Method and apparatus for developing an integrated system based on vehicle after-market diagnostic needs |
CN111178004A (en) * | 2019-12-30 | 2020-05-19 | 北京富通东方科技有限公司 | Rule digital representation method for airport parking space resource allocation |
CN112559470A (en) * | 2020-12-04 | 2021-03-26 | 北京车和家信息技术有限公司 | File format conversion method and device, storage medium and electronic equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040205619A1 (en) * | 2002-02-14 | 2004-10-14 | Twede Roger S. | Method and system for chained format translation |
CN101751461A (en) * | 2009-12-30 | 2010-06-23 | 中兴通讯股份有限公司 | Document conversion method and device |
CN102541903A (en) * | 2010-12-27 | 2012-07-04 | 无锡华润上华半导体有限公司 | Comma separated value (CSV) to microsoft excel (XLS) format conversion mode |
CN102609400A (en) * | 2011-01-19 | 2012-07-25 | 上海中信信息发展股份有限公司 | Method for converting file formats and conversion tool |
-
2012
- 2012-12-27 CN CN201210581502.9A patent/CN103020024B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040205619A1 (en) * | 2002-02-14 | 2004-10-14 | Twede Roger S. | Method and system for chained format translation |
CN101751461A (en) * | 2009-12-30 | 2010-06-23 | 中兴通讯股份有限公司 | Document conversion method and device |
CN102541903A (en) * | 2010-12-27 | 2012-07-04 | 无锡华润上华半导体有限公司 | Comma separated value (CSV) to microsoft excel (XLS) format conversion mode |
CN102609400A (en) * | 2011-01-19 | 2012-07-25 | 上海中信信息发展股份有限公司 | Method for converting file formats and conversion tool |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103559285A (en) * | 2013-11-07 | 2014-02-05 | 大连东方之星信息技术有限公司 | Method for monitoring file folder in real time and supporting conversion of multi-format files |
CN105279177A (en) * | 2014-07-03 | 2016-01-27 | 北京联嘉众赢网络技术有限公司 | Data structure conversion method and apparatus |
CN108733674A (en) * | 2017-04-14 | 2018-11-02 | 宁德时代新能源科技股份有限公司 | A2L file merging method and device |
CN107247697A (en) * | 2017-07-05 | 2017-10-13 | 上海蔚赫信息科技有限公司 | A kind of method that Excel file is converted to automotive networking DBC files |
CN107644059A (en) * | 2017-08-18 | 2018-01-30 | 广州视源电子科技股份有限公司 | Method and device for exporting database file, storage medium and terminal equipment |
CN107992567A (en) * | 2017-11-29 | 2018-05-04 | 北京天健通泰科技有限公司 | Collecting method and data collecting system |
CN109213102A (en) * | 2018-09-11 | 2019-01-15 | 深圳众城卓越科技有限公司 | More order monitoring methods, device, computer equipment and storage medium |
CN109213102B (en) * | 2018-09-11 | 2022-01-18 | 深圳众城卓越科技有限公司 | Multi-command monitoring method and device, computer equipment and storage medium |
CN111103861A (en) * | 2018-10-25 | 2020-05-05 | 上汽通用汽车有限公司 | Method and apparatus for developing an integrated system based on vehicle after-market diagnostic needs |
CN111103861B (en) * | 2018-10-25 | 2023-04-07 | 上汽通用汽车有限公司 | Method and apparatus for developing an integrated system based on vehicle after-market diagnostic needs |
CN110851665A (en) * | 2019-11-12 | 2020-02-28 | 上海元城汽车技术有限公司 | Calibration information extraction method and device, electronic equipment and storage medium |
CN110851665B (en) * | 2019-11-12 | 2022-07-12 | 上海元城汽车技术有限公司 | Calibration information extraction method and device, electronic equipment and storage medium |
CN111178004A (en) * | 2019-12-30 | 2020-05-19 | 北京富通东方科技有限公司 | Rule digital representation method for airport parking space resource allocation |
CN111178004B (en) * | 2019-12-30 | 2023-12-26 | 北京富通东方科技有限公司 | Regular digital representation method for airport stand resource allocation |
CN112559470A (en) * | 2020-12-04 | 2021-03-26 | 北京车和家信息技术有限公司 | File format conversion method and device, storage medium and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN103020024B (en) | 2016-01-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103020024A (en) | File format converting method | |
CN113612654B (en) | Vehicle-mounted gateway function test method based on database | |
CN108595483B (en) | Data processing method and related device | |
CN101877659A (en) | Method, device and system for monitoring packet loss | |
CN110390082B (en) | Communication matrix comparison method and system | |
CN101986282B (en) | Topology adaptation method and device | |
CN110362560B (en) | Method for removing duplicate of non-service master key data during database storage | |
CN113836876B (en) | Document processing method, device, electronic equipment and medium | |
CN110855459B (en) | Network configuration method, device and system | |
CN109919826B (en) | Graph data compression method for graph computation accelerator and graph computation accelerator | |
CN102611741A (en) | Method for extracting communication matrix from AUTOSAR (Automotive Open System Architecture) system allocation model | |
CN101159534B (en) | Method and apparatus for implementing interface condition synchronization | |
CN116341481B (en) | Clock file confirmation method and device, electronic equipment and storage medium | |
CN103646015B (en) | Transmission, the method and system for receiving and transmitting XML message | |
CN104378362A (en) | Method and device for carrying out conversion of message interfaces | |
CN107968722B (en) | Method for converting interface control file into AFDX (avionics full Duplex switched Ethernet) network equipment configuration file | |
CN113835712A (en) | Fast data packet routing method for judging according to given field value | |
CN113239039B (en) | Dynamic data storage method, query method, management method and management system | |
US10897401B2 (en) | Determining the importance of network devices based on discovered topology, managed endpoints, and activity | |
CN113326407A (en) | Data processing method and device | |
CN112506919A (en) | Structured ICD generation method | |
CN105119814A (en) | Information-processing method and terminal | |
CN110674068A (en) | Information interaction method among board cards, distributed board card and storage medium | |
CN104734958A (en) | Aging method and device for routing information | |
CN113590348B (en) | Parameter transmission method, device, equipment and medium based on tree structure |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address |
Address after: 4 / F, building 1, No.14 Jiuxianqiao Road, Chaoyang District, Beijing 100020 Patentee after: Beijing Jingwei Hirain Technologies Co.,Inc. Address before: 100101 Beijing city Chaoyang District Anxiang Beili 11 B block 8 layer Patentee before: Beijing Jingwei HiRain Technologies Co.,Ltd. |
|
CP03 | Change of name, title or address |