CN113676290B - Data transmission method and related equipment based on foundation system - Google Patents

Data transmission method and related equipment based on foundation system Download PDF

Info

Publication number
CN113676290B
CN113676290B CN202111136189.3A CN202111136189A CN113676290B CN 113676290 B CN113676290 B CN 113676290B CN 202111136189 A CN202111136189 A CN 202111136189A CN 113676290 B CN113676290 B CN 113676290B
Authority
CN
China
Prior art keywords
coding
group
code
file
preset
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
CN202111136189.3A
Other languages
Chinese (zh)
Other versions
CN113676290A (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.)
Shenzhen Golden Axe Network Technology Co ltd
Original Assignee
Shenzhen Golden Axe Network Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Golden Axe Network Technology Co ltd filed Critical Shenzhen Golden Axe Network Technology Co ltd
Priority to CN202111136189.3A priority Critical patent/CN113676290B/en
Publication of CN113676290A publication Critical patent/CN113676290A/en
Application granted granted Critical
Publication of CN113676290B publication Critical patent/CN113676290B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0009Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the channel coding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Quality & Reliability (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The invention discloses a data transmission method based on a foundation system, which comprises the steps of obtaining an information file to be transmitted; determining a coding identifier and a coding value corresponding to each field data according to a preset coding mapping table to obtain a plurality of first coding groups; determining a data coding group corresponding to the file format in the first coding group according to each preset file format and a coding mapping table, and taking the data coding group and the format coding group corresponding to the file format as a second coding group corresponding to the file format; classifying the second coding group to obtain a plurality of coding group sets; integrating each coding group set to obtain a target coding sequence corresponding to the coding group set; and according to a preset arrangement rule, arranging the target coding sequence to obtain a transmission file corresponding to the information file. The invention effectively compresses the size of the transmission file between the foundation company end and the foundation sale end, and improves the flexibility and the simplicity of transmission.

Description

Data transmission method and related equipment based on foundation system
Technical Field
The present invention relates to an interaction system, and in particular, to a data transmission method and related devices based on a fund system.
Background
With the development of financial services, more and more sales services of financial products are circulated in the market. Meanwhile, sales service of financial products, such as fund sales service, is also actively developed. The fund sales company plays a bridge work between the fund company and the user, and needs to send the transaction information of the user to the fund company for transaction, and meanwhile, the transaction information fed back by the fund company is received and arranged. This was done early by manual billing, but with the development of technology, foundation marketing systems became the primary processing system. The business process inside the general foundation sales company is complex, and massive data needs to be processed. If the fund expense company develops the expense system by itself, a great deal of manpower and financial effort is required. Therefore, purchasing a third party's foundation expense system is a primary means of foundation expense companies.
When data is transmitted between a fund marketing company and a fund company, text in a TXT format is generally adopted for transmission in order to realize light weight of data transmission. The transmitted text is largely divided into an index file and a data file. The data file is composed of a plurality of transmission data, and the transmission data comprises a file identifier, a file version number, a file creator, a file receiver, a date, the number of files, a file name …, a file end identifier and the like. In the existing data transfer process, the meaning represented by each line of data and the data length are defined, for example, the first row of data is a file identifier, the length is 8 bytes, and the seventh row to the ninth row do not set a character string with the data length. Generally, "OFDCFIDX" is set as a file identifier, the length is defined as 8 bytes, and the file version number is 22, which does not satisfy the predefined 8 bytes, so that space or zero is adopted for filling. Wherein, "OFDCFEND" is the end of file identification. The data file is formed by splicing a plurality of data messages, and the data messages comprise a file identifier, a file version number, a file creator, a file receiver, a date, a summary list number, a file type code, a sender, a receiver, a field number, a field name, a record number, a record and a file end identifier. In the data file, starting from the first byte, and counting 8 bytes later, the starting point identification of the data file is obtained, and the starting point identification in the data file is the same as the starting point identification in the index file. Starting from the last byte of the data file, the last eight bytes are counted to obtain the end identification of the data file, and the end identification in the data file is the same as the end identification in the index file. For convenience of presentation, three fields of the foundation code, the unit red and the red time are selected for presentation, and the field lengths of the three fields are 6 bytes, 16 bytes and 8 bytes respectively. If the reddening content reflected by a record of a certain data file is: "Fund 000120 0.45 yuan per serving at 7.1.1, then the data presented for the corresponding three fields are presented as: 000120000000000000004520210701. if the content of the score reflected by a certain record is: "foundation 000223 was 1.50 yuan per serving at 7.1.1, then the data presented in the corresponding three fields are presented as: 000223000000000000015020210701. since there are only two records and the corresponding byte length of the record is 16, it is necessary to make up with a space or zero. The present embodiment uses zero padding.
Therefore, the byte length of the existing scheme is preset and cannot be adjusted, and the insufficient part needs to be complemented by zero or space, so that the whole file is bulky and inconvenient to transmit. In addition, during analysis, the length of each byte needs to be recorded, so that accurate analysis can be realized, and if the set byte length changes, the analysis program needs to be rewritten, so that resource waste is caused.
Disclosure of Invention
The technical problem to be solved by the invention is to provide a data transmission method based on a fund system, which is the defect of the existing data transmission scheme based on the fund.
In order to solve the technical problems, the technical scheme adopted by the invention is as follows:
a method of data transmission based on a fund system, the method comprising:
Acquiring an information file to be transmitted, wherein the information file comprises a plurality of field data;
Determining a coding identifier and a coding value corresponding to each field data according to a preset coding mapping table to obtain a plurality of first coding groups;
Determining a data coding group corresponding to the file format in the first coding group according to each preset file format and the coding mapping table, and taking the data coding group and a format coding group corresponding to the file format as a second coding group corresponding to the file format;
Classifying the second coding group according to a preset classification rule to obtain a plurality of coding group sets;
for each code group set, integrating the code group set according to a preset integration rule to obtain a target code sequence corresponding to the code group set;
And according to a preset arrangement rule, arranging the target coding sequence to obtain a transmission file corresponding to the information file.
The data transmission method based on the fund system, wherein the transmission file comprises an index file and a data file, and the file format comprises an index file format of the index file and a data file format of the data file; the data coding group comprises an index file coding group and a data file coding group; the determining, for each preset file format and the coding mapping table, a data coding group corresponding to the file format in the first coding group includes:
according to the index file format, determining a first coding group corresponding to the index file as an index file coding group; and
And determining a first coding group corresponding to the data file as a data file coding group according to the data file format.
The data transmission method based on the fund system, wherein for each code group set, performing integration processing on the code group set according to a preset integration rule to obtain a target code sequence corresponding to the code group set includes:
For each code group set, ordering a second code group in the code group set according to a preset ordering rule to obtain a first code sequence;
And according to a preset separator, separating the second coding group in the first coding sequence to obtain a target coding sequence corresponding to the first coding sequence.
The data transmission method based on the fund system, wherein the separator comprises an intra-group separator and an inter-group separator.
The data transmission method based on the fund system, wherein the separating the second coding group in the first coding sequence according to the preset separator, to obtain the target coding sequence corresponding to the first coding sequence comprises:
for each first coding sequence, modifying a second coding group in the file coding sequence according to a preset intra-group separator to obtain a second coding sequence corresponding to the first coding sequence;
And adding a preset inter-group separator to the tail end of the second coding sequence to obtain a target coding sequence corresponding to the second coding sequence.
The data transmission method based on the fund system, wherein the separating the second coding group in the first coding sequence according to the preset separator, to obtain the target coding sequence corresponding to the first coding sequence comprises:
For each first coding sequence, according to a preset intra-group separator, separating a second coding group in the first coding sequence to obtain a second coding sequence corresponding to the first coding sequence;
calculating the second coding sequence according to a preset check rule to obtain check bits corresponding to the second coding sequence;
generating a check code group corresponding to the second code sequence according to the check mark corresponding to the check rule and the check bit;
Adding the check coding group to the second coding sequence to obtain a third coding sequence;
And adding a preset inter-group separator to the tail end of the third coding sequence to obtain a target coding sequence corresponding to the second coding sequence.
The data transmission method based on the fund system, wherein the calculating the second coding sequence according to the preset check rule, to obtain the check bit corresponding to the second coding sequence, includes:
encrypting the second coding sequence according to a preset verification protocol to obtain an encryption sequence;
and extracting check bits in the encryption sequence according to a preset extraction rule.
A data transmission device based on a fund system, comprising:
The information transmission module is used for transmitting the information file to be transmitted to the receiving module;
the first code group module is used for determining the code identification and the code value corresponding to each field data according to a preset code mapping table to obtain a plurality of first code groups;
The second coding group module is used for determining a data coding group corresponding to the file format in the first coding group according to each preset file format and the coding mapping table, and taking the data coding group and the format coding group corresponding to the file format as a second coding group corresponding to the file format;
The classification module is used for classifying the second coding group according to a preset classification rule to obtain a plurality of coding group sets;
The integration module is used for integrating the code group sets according to a preset integration rule for each code group set to obtain a target code sequence corresponding to the code group set;
and the arrangement module is used for arranging the target coding sequences according to a preset arrangement rule to obtain a transmission file corresponding to the information file.
A computer readable storage medium storing one or more programs executable by one or more processors to implement steps in a method of data transmission based on a fund system as described in any of the above.
A terminal device, comprising: a processor, a memory, and a communication bus; the memory has stored thereon a computer readable program executable by the processor;
the communication bus realizes connection communication between the processor and the memory;
the processor, when executing the computer readable program, implements the steps in the fund system-based data transmission method as described in any of the above.
The beneficial effects are that: after the information file is obtained, the field data is mapped into the code identification with smaller data quantity and the code value according to the preset code mapping table, so that the first code group is obtained. And then determining a second coding group corresponding to different file formats according to the file formats of different files in the transmission file. And then classifying and integrating the second code groups to obtain a plurality of code sequences, and finally arranging the code sequences according to an arrangement rule to form a transmission file transmitted to the other end of the fund system. In the process, on one hand, the bronze drum coding mapping table is mapped to achieve the purpose of reducing the data volume, and on the other hand, the file is easier to read through a grouping arrangement mode. And the existence of the coding mapping table also improves the complexity and diversity of the information which can be transmitted and improves the flexibility of the transmitted information.
Drawings
FIG. 1 is a diagram illustrating an example of an index file definition in the prior art.
FIG. 2 is a diagram illustrating an example of a prior art data file definition and index file.
FIG. 3 is a flow chart of a data transmission method based on a fund system according to the present invention
Fig. 4 is a schematic diagram of an encoding mapping table in a data transmission method based on a fund system according to the present invention.
Fig. 5 is a schematic diagram of a data file in a data transmission method based on a fund system according to the present invention.
Fig. 6 is a transmission file when transmitted in a conventional manner.
Fig. 7 is a schematic structural diagram of a data transmission device based on a fund system according to the present invention.
Fig. 8 is a schematic structural diagram of a terminal device provided by the present invention.
Detailed Description
The invention provides a data transmission method based on a foundation system and related equipment, and aims to make the purposes, technical schemes and effects of the invention clearer and more definite. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless expressly stated otherwise, as understood by those skilled in the art. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. The term "and/or" as used herein includes all or any element and all combination of one or more of the associated listed items.
It will be understood by those skilled in the art that all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs unless defined otherwise. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
The invention will be further described by the description of embodiments with reference to the accompanying drawings.
As shown in fig. 3, the present embodiment provides a data transmission method based on a fund system, which includes the following steps:
S10, acquiring an information file to be transmitted, wherein the information file comprises a plurality of field data.
Specifically, the foundation company end generates various information files to be transmitted to the foundation sale end in the interaction process with the foundation sale end and in the operation process of the foundation company end. Taking a common scoring example, the end of the fund company needs to send the scoring result corresponding to each purchased fund of each user in the settlement period to the end of the fund service every other settlement period. Also, for example, clearing, when a user plans to stop buying a certain fund, the fund company needs to transmit the user's revenue during this period to the fund sales company. The information transmitted from the end of the fund company to the end of the fund sale is referred to as an information file in this embodiment.
The information file is composed of a plurality of pieces of information with specific operation information, time and the like, and the content of each piece of information is represented by character segment data.
S20, determining a coding identifier and a coding value corresponding to each field data according to a preset coding mapping table to obtain a plurality of first coding groups.
Specifically, a coding mapping table is preset, in which a corresponding coding identifier is set for each field type of field data, and a corresponding coding value is set for different field contents under each field type. As shown in fig. 4, the code corresponding to the "file type" is identified as "1"; the code mark corresponding to the file version number is 2; the code identifier corresponding to the file creator is 3; the code mark corresponding to the file receiver is 4; the code corresponding to the date is marked as 5; the code mark corresponding to the summary table number is '6'; the code identification corresponding to the file type code is 7; the code identification corresponding to the sender is 8; the code corresponding to the receiver is identified as 9; the code label corresponding to the field number is 10; the code corresponding to the "fund code (FundCode)" is identified as "11"; the code label corresponding to the unit red (DividendPerUnit) is 12; the code corresponding to the red separating time (DIVIDENTDATE) is identified as 13; the code corresponding to the "record number" is identified as "14", which is the number of information in the reddening file, namely, the information specifically related to reddening; the code corresponding to the "extension field 1" is identified as "500"; the code corresponding to "extension field 2" is identified as "501"; the code corresponding to the check protocol is identified as 998; the code corresponding to the "check bit" is identified as "999".
For example, a certain field data has a field type of date, a specific field content is 03 in 2020, a code identifier corresponding to that one piece of data is 5, and a code value corresponding to the field content is 20200303. The field type is a file receiver, a corresponding code value is preset for each file receiver (namely, a foundation sale terminal) contacted with the foundation company, the code mark corresponding to the file receiver is 4, the code value corresponding to the foundation sale terminal a is 1, and the code value corresponding to the file receiving terminal in the information file required to be sent to the foundation sale terminal a is 1.
Therefore, after the field data in the information file are obtained, the coding identifier and the coding value corresponding to the field data are determined according to the field type and the field content of each field data, and the first coding group corresponding to each field data is obtained. After determining the first code groups corresponding to all the field data, a plurality of first code groups can be obtained.
In this embodiment of the present disclosure, the first code group corresponding to each field data includes a code identifier and a code value corresponding to the field data, where the code identifier and the code value may be formed by combining characters such as arabic numerals and letters. To distinguish between the coded identifiers in the first coded set and the coded set, in one implementation, the coded identifiers may be used as numbers and the coded values may be used in letters, i.e., the coded identifiers and the coded values may be in different formats. In another implementation, a pointer is used to connect the coded identifier and the coded value, where the pointer is a connection symbol with a pointing property, such as a colon, arrow, dash, etc.
S30, determining a data coding group corresponding to the file format in the first coding group according to each preset file format and the coding mapping table, and taking the data coding group and the format coding group corresponding to the file format as a second coding group corresponding to the file format.
Specifically, the files transmitted to the fund company end are generally composed of two files, one is an index file and the other is a data file. Compared with the data file, the index file is smaller, is convenient for the base metal selling end to read and retrieve, and has larger data file and detailed information. The index file and the data file are obtained based on the original information file, and the content contained in the index file and the data file is different. That is, the file format of the index file and the file format of the data file, that is, the index file format and the data file format, determine the corresponding different first encoding arrays.
Therefore, according to the preset file format, the data coding group corresponding to the file format in the first coding group is determined. Specifically, the data encoding group includes an index file data group and a data file encoding group. And determining a first coding group corresponding to the index file as an index file coding group according to the index file format, and determining the first coding group corresponding to the data file as a data file coding group according to the data file format. Of course, if other files, such as system parameters, are added to the original index file and data file at the end of the fund company and the end of the fund sale, the other files can be used as another file, so as to generate the corresponding data coding set.
In the conventional manner, the initial positions of the index file and the data file which are generated last are directly written with characters of the index file or the data file, and in order to reduce the volume of the file, in this embodiment, the coding mapping table is set with coding identifiers and coding values corresponding to different file formats in advance, for example, the coding identifier corresponding to the file format is 1, the coding value corresponding to the file format of the index file is 01, and the coding value corresponding to the file format of the data file is 02. After determining the file format, determining the corresponding code identification and code value, and generating a format code group by adopting a mode of generating a first code group. And then the data coding group and the format coding group are used as an index file or a second coding group corresponding to the data file.
S40, classifying the second coding group according to a preset classification rule to obtain a plurality of coding group sets.
Specifically, a classification rule is preset for classifying the second coding group, and the purpose of classification is mainly to combine the second coding groups with different importance degrees and different types, so that the subsequent foundation sale terminal can be conveniently processed.
In the first mode of this embodiment, all the second code groups are directly used as one category, and one code group set is obtained.
In another embodiment, the number of code sets and which ones are a code set are defined by the needs of the end of the fund company. For example, as shown in fig. 5, a second code group corresponding to "file type", "file version number", "file creator", "file receiver", "field number", "record number" is used as the code group set.
S50, for each coding group set, integrating the coding group set according to a preset integration rule to obtain a target coding sequence corresponding to the coding group set.
Specifically, the splitting process is performed on the second code group in the code group set in units of the code group set. An integration rule is preset, and then each second code group in the code group is processed through the integration rule. Wherein, the second code groups in the code group are scattered, so a mode is needed to integrate the second code groups together to obtain the target code sequence.
In a first implementation manner of this embodiment, for each of the code group sets, first, according to a preset ordering rule, the second code group in the code group set is ordered to obtain a first code sequence. As shown, for the first code group set, the preset ordering order is: "File type", "File version number", "File creator", "File recipient", "field number", "record number"; for the second code group set, the preset ordering order is: "Foundation code (FundCode)" "DividendPerUnit (units of red)" "DIVIDENTDATE (times of red)".
And then, separating the second coding group in the first coding sequence according to a preset separator to obtain a target coding sequence corresponding to the first coding sequence. A plurality of separators are preset, and in this embodiment, the separators include null characters, line separators, and other special characters, and the special characters include "|" and the like. The null character is 0x00 in ASCII code, representing a null character. The second code group in the first code sequence is separated by a separator, which is added substantially before or after the second code group.
In another implementation, to increase ease of integration of the target coding sequence to be subsequently incorporated, in this embodiment, the separators include intra-set separators and inter-set separators. As the name implies, intra-group separators are used to separate a first coding group within a coding group set, while inter-group separators are used to separate coding group sets.
Firstly, modifying a separator of a second coding group in the file coding sequence according to a preset separator in the group for each first coding sequence obtained after sequencing to obtain a second coding sequence corresponding to the first coding sequence. In fig. 5, in order to represent the null character, a box is used for illustration, and the intra-group separator used is the null character.
And then adding a preset inter-group separator to the tail end of the second coding sequence to obtain a target coding sequence corresponding to the second coding sequence. Therefore, after the foundation exchange end obtains the transmission file and analyzes the transmission file to the target coding sequence, the data can be accurately split according to the group separator, and individual reading and independent analysis are not needed.
Further, in order to facilitate the foundation marketing company to conveniently and rapidly locate the different coding group sequences, the component separator adopted in the embodiment is a line separator.
The existing scheme lacks a checking mechanism for data transmitted by a foundation company end, so that the error risk is reduced in order to improve the authenticity of the data, and the checking mechanism is added in the process of generating a target coding sequence.
First, for each first code sequence, according to a preset intra-group separator, separating a second code group in the first code sequence to obtain a second code sequence corresponding to the first code sequence. The manner in which the component separator is added may be referred to in the foregoing, and will not be described in detail herein.
And then calculating the second coding sequence according to a preset check rule to obtain check bits corresponding to the second coding sequence. A check rule is preset and used for encrypting the second coding sequence to obtain check bits. The common check rule is to directly set a check protocol, the check protocol is implemented by adopting an encryption algorithm, such as md5 algorithm and SHA1 algorithm, the second coding sequence is used as data to be encrypted, and the check protocol is adopted to carry out encryption calculation on the second coding sequence to obtain check bits corresponding to the check protocol. However, the encryption sequence obtained by the general verification protocol is longer, even longer than the encrypted content, and the length of the target coding sequence is increased. Therefore, in this embodiment, the check rule includes a check protocol and an extraction rule. And firstly, encrypting the second coding sequence by adopting a check protocol to obtain an encrypted sequence corresponding to the second coding sequence. And then extracting a specific position and a character with a specific length in the encryption sequence as check bits according to the extraction rule. In fig. 5, the verification algorithm is md5, and the extraction rule is that the first four bits are extracted, so that the first and second code sequences are corresponded, and the encrypted sequence obtained after encryption is 3446630d0fe 0c0dfd925fc47f7d0a 4' and the corresponding verification bit is 3446.
And adding a check mark in the code mapping table in advance to obtain a check bit, and generating a check code group corresponding to the second code sequence according to the check mark corresponding to the check rule and the check bit. The check mark comprises a check protocol mark and a check bit mark, for example, the check code group in fig. 5 is a combination of two code groups, and comprises a check mark code group formed by the check mark and a check value thereof, and a check value code group formed by the check bit mark and the check bit, wherein the generation of the check mark code group and the check value code group can be generated in the manner of generating the first code group as described above, and the description is omitted herein.
And adding the check code group to the second code sequence to obtain a third code sequence. The set of check codes may be located at the first, end, or other position of the second code sequence, and is not limited herein, and fig. 5 depicts adding it to the end of the second code sequence. It is noted that since the check code set is also a code set, the second code set at the end in the second code sequence should be added to the intra-set delimiter at the back end before being added to the end of the second code sequence. This step may be performed at the time of generating the second coding sequences, i.e. when intra-group separators are added, which are set at the end of each second coding group. In addition, when the check mark code group and the check bit code group are added to the second code sequence, an intra-group separator can be added between the two code groups for separation.
And finally, adding a preset inter-group separator to the tail end of the third coding sequence to obtain a target coding sequence corresponding to the second coding sequence. By adding the component separator, different coding group sets are separated, and multiple target coding group sequences can be read at the same time at the subsequent foundation terminal, so that the reading rate is improved.
S60, according to a preset arrangement rule, arranging the target coding sequence to obtain a transmission file corresponding to the information file.
Specifically, an arrangement rule is preset, and as each code group set can obtain a target code sequence, and a transmission file is a set of different target code sequences, the arrangement rule is to arrange a plurality of target code rules to obtain a file arranged according to a certain rule, and the file can be an index file or a data file. After the data file and the index file are obtained, a transmission file corresponding to the information file obtained at the beginning is obtained.
Finally, the transmission file can be transmitted to the foundation terminal based on the communication connection between the foundation terminal and the foundation terminal.
After the fund marketing end obtains the transmission file, for each transmission file in each file format, extracting a second coding group in each target coding sequence in the transmission file according to the position of the check coding group which is agreed with the fund company end in advance. And then, encrypting the second code group by adopting a verification protocol identical to that of the foundation company end to obtain a corresponding verification value. And finally, comparing the verification value with check bits in the check code group. If the two codes are the same, the second code group is analyzed according to the code mapping table which is the same as the end of the foundation company, and the required information file is obtained.
By comparing fig. 5 with fig. 6, the transmission file finally obtained by the scheme is obviously smaller, simpler, more flexible and safer.
As shown in fig. 7, based on the above-mentioned data transmission method based on the fund system, the present embodiment provides a data transmission device 100 based on the fund system, wherein the data transmission device 100 based on the fund system includes:
an obtaining module 110, configured to obtain an information file to be transmitted, where the information file includes a plurality of field data;
the first code group module 120 is configured to determine, according to a preset code mapping table, a code identifier and a code value corresponding to each field data, so as to obtain a plurality of first code groups;
A second code group module 130, configured to determine, for each preset file format and the code mapping table, a data code group corresponding to the file format in the first code group, and use the data code group and a format code group corresponding to the file format as a second code group corresponding to the file format;
The classification module 140 is configured to classify the second code group according to a preset classification rule, so as to obtain a plurality of code group sets;
the integration module 150 is configured to integrate the code group sets according to a preset integration rule for each code group set to obtain a target code sequence corresponding to the code group set;
and the arrangement module 160 is configured to arrange the target coding sequences according to a preset arrangement rule, so as to obtain a transmission file corresponding to the information file.
The transmission file comprises an index file and a data file, wherein the file format comprises an index file format of the index file and a data file format of the data file; the data coding group comprises an index file coding group and a data file coding group; the second encoding group module 130 is specifically configured to:
according to the index file format, determining a first coding group corresponding to the index file as an index file coding group; and
And determining a first coding group corresponding to the data file as a data file coding group according to the data file format.
Wherein the integration module 150 includes:
the ordering unit is used for ordering the second code groups in each code group set according to a preset ordering rule to obtain a first code sequence;
And the separation unit is used for separating the second coding group in the first coding sequence according to a preset separator to obtain a target coding sequence corresponding to the first coding sequence.
Wherein the separators include intra-group separators and inter-group separators.
Wherein the separation unit is operable to:
for each first coding sequence, modifying a second coding group in the file coding sequence according to a preset intra-group separator to obtain a second coding sequence corresponding to the first coding sequence;
And adding a preset inter-group separator to the tail end of the second coding sequence to obtain a target coding sequence corresponding to the second coding sequence.
Wherein the separation unit can on the other hand be used for:
A separation subunit, configured to, for each of the first coding sequences, perform separation processing on a second coding group in the first coding sequence according to a preset intra-group separator, so as to obtain a second coding sequence corresponding to the first coding sequence;
the calculating subunit is used for calculating the second coding sequence according to a preset check rule to obtain check bits corresponding to the second coding sequence;
A generating subunit, configured to generate a check code group corresponding to the second code sequence according to the check identifier corresponding to the check rule and the check bit;
A first adding subunit, configured to add the check coding group to the second coding sequence, to obtain a third coding sequence;
And the second adding subunit is used for adding a preset inter-group separator to the tail end of the third coding sequence to obtain a target coding sequence corresponding to the second coding sequence.
Wherein the computing subunit is specifically configured to:
encrypting the second coding sequence according to a preset verification protocol to obtain an encryption sequence;
and extracting check bits in the encryption sequence according to a preset extraction rule.
Based on the data transmission method based on the fund system, the invention also provides a terminal device, as shown in fig. 8, which comprises at least one processor (processor) 20; a display screen 21; and a memory (memory) 22, which may also include a communication interface (Communications Interface) 23 and a bus 24. Wherein the processor 20, the display 21, the memory 22 and the communication interface 23 may communicate with each other via a bus 24. The display screen 21 is configured to display a user guidance interface preset in the initial setting mode. The communication interface 23 may transmit information. The processor 20 may invoke logic commands in the memory 22 to perform the methods of the embodiments described above.
In addition, the logic commands in the memory 22 described above may be implemented in the form of software functional units and may be stored in a computer readable storage medium when sold or used as a stand alone product.
The memory 22, as a computer-readable storage medium, may be configured to store a software program, a computer-executable program, such as program commands or modules corresponding to the methods in the embodiments of the present disclosure. The processor 20 performs functional applications and data processing, i.e. implements the methods of the embodiments described above, by running software programs, commands or modules stored in the memory 22.
The memory 22 may include a storage program area that may store an operating system, at least one application program required for functions, and a storage data area; the storage data area may store data created according to the use of the terminal device, etc. In addition, the memory 22 may include high-speed random access memory, and may also include nonvolatile memory. For example, a plurality of media capable of storing program codes such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or a transitory computer readable storage medium.
In addition, the specific processes of loading and executing the plurality of command processors in the terminal device and the computer readable storage medium are described in detail in the above method, and are not stated here.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the 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 scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (6)

1. A method of data transmission based on a fund system, the method comprising:
Acquiring an information file to be transmitted, wherein the information file comprises a plurality of field data;
Determining a coding identifier and a coding value corresponding to each field data according to a preset coding mapping table to obtain a plurality of first coding groups;
Determining a data coding group corresponding to the file format in the first coding group according to each preset file format and the coding mapping table, and taking the data coding group and a format coding group corresponding to the file format as a second coding group corresponding to the file format;
Classifying the second coding group according to a preset classification rule to obtain a plurality of coding group sets;
for each code group set, integrating the code group set according to a preset integration rule to obtain a target code sequence corresponding to the code group set;
According to a preset arrangement rule, arranging the target coding sequence to obtain a transmission file corresponding to the information file,
The transmission file comprises an index file and a data file, wherein the file format comprises an index file format of the index file and a data file format of the data file; the data coding group comprises an index file coding group and a data file coding group; the determining, for each preset file format and the coding mapping table, a data coding group corresponding to the file format in the first coding group includes:
according to the index file format, determining a first coding group corresponding to the index file as an index file coding group; and
According to the data file format, determining a first coding group corresponding to the data file as a data file coding group;
The integrating processing is performed on each code group set according to a preset integration rule, and the obtaining of the target code sequence corresponding to the code group set includes:
For each code group set, ordering a second code group in the code group set according to a preset ordering rule to obtain a first code sequence;
separating the second coding group in the first coding sequence according to a preset separator to obtain a target coding sequence corresponding to the first coding sequence;
The separator comprises an intra-group separator and an inter-group separator;
the step of separating the second code group in the first code sequence according to the preset separator to obtain a target code sequence corresponding to the first code sequence comprises the following steps:
For each first coding sequence, according to a preset intra-group separator, separating a second coding group in the first coding sequence to obtain a second coding sequence corresponding to the first coding sequence;
calculating the second coding sequence according to a preset check rule to obtain check bits corresponding to the second coding sequence;
generating a check code group corresponding to the second code sequence according to the check mark corresponding to the check rule and the check bit;
Adding the check coding group to the second coding sequence to obtain a third coding sequence;
And adding a preset inter-group separator to the tail end of the third coding sequence to obtain a target coding sequence corresponding to the second coding sequence.
2. The method for transmitting data based on the fund system as set forth in claim 1, wherein the separating the second code group in the first code sequence according to the preset separator to obtain the target code sequence corresponding to the first code sequence includes:
for each first coding sequence, modifying a second coding group in the file coding sequence according to a preset intra-group separator to obtain a second coding sequence corresponding to the first coding sequence;
And adding a preset inter-group separator to the tail end of the second coding sequence to obtain a target coding sequence corresponding to the second coding sequence.
3. The data transmission method based on the fund system of claim 1, wherein the calculating the second code sequence according to the preset check rule to obtain the check bit corresponding to the second code sequence comprises:
encrypting the second coding sequence according to a preset verification protocol to obtain an encryption sequence;
and extracting check bits in the encryption sequence according to a preset extraction rule.
4. A data transmission apparatus based on a fund system, comprising:
The information transmission module is used for transmitting the information file to be transmitted to the receiving module;
the first code group module is used for determining the code identification and the code value corresponding to each field data according to a preset code mapping table to obtain a plurality of first code groups;
The second coding group module is used for determining a data coding group corresponding to the file format in the first coding group according to each preset file format and the coding mapping table, and taking the data coding group and the format coding group corresponding to the file format as a second coding group corresponding to the file format;
The classification module is used for classifying the second coding group according to a preset classification rule to obtain a plurality of coding group sets;
The integration module is used for integrating the code group sets according to a preset integration rule for each code group set to obtain a target code sequence corresponding to the code group set;
The arrangement module is used for arranging the target coding sequences according to a preset arrangement rule to obtain a transmission file corresponding to the information file;
The transmission file comprises an index file and a data file, wherein the file format comprises an index file format of the index file and a data file format of the data file; the data coding group comprises an index file coding group and a data file coding group; the determining, for each preset file format and the coding mapping table, a data coding group corresponding to the file format in the first coding group includes:
according to the index file format, determining a first coding group corresponding to the index file as an index file coding group; and
According to the data file format, determining a first coding group corresponding to the data file as a data file coding group;
The integrating processing is performed on each code group set according to a preset integration rule, and the obtaining of the target code sequence corresponding to the code group set includes:
For each code group set, ordering a second code group in the code group set according to a preset ordering rule to obtain a first code sequence;
separating the second coding group in the first coding sequence according to a preset separator to obtain a target coding sequence corresponding to the first coding sequence;
The separator comprises an intra-group separator and an inter-group separator;
the step of separating the second code group in the first code sequence according to the preset separator to obtain a target code sequence corresponding to the first code sequence comprises the following steps:
For each first coding sequence, according to a preset intra-group separator, separating a second coding group in the first coding sequence to obtain a second coding sequence corresponding to the first coding sequence;
calculating the second coding sequence according to a preset check rule to obtain check bits corresponding to the second coding sequence;
generating a check code group corresponding to the second code sequence according to the check mark corresponding to the check rule and the check bit;
Adding the check coding group to the second coding sequence to obtain a third coding sequence;
And adding a preset inter-group separator to the tail end of the third coding sequence to obtain a target coding sequence corresponding to the second coding sequence.
5. A computer readable storage medium storing one or more programs executable by one or more processors to implement the steps in the fund system based data transfer method of any one of claims 1-3.
6. A terminal device, comprising: a processor, a memory, and a communication bus; the memory has stored thereon a computer readable program executable by the processor;
the communication bus realizes connection communication between the processor and the memory;
the processor, when executing the computer readable program, implements the steps of the fund system-based data transmission method as claimed in any one of claims 1 to 3.
CN202111136189.3A 2021-09-27 2021-09-27 Data transmission method and related equipment based on foundation system Active CN113676290B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111136189.3A CN113676290B (en) 2021-09-27 2021-09-27 Data transmission method and related equipment based on foundation system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111136189.3A CN113676290B (en) 2021-09-27 2021-09-27 Data transmission method and related equipment based on foundation system

Publications (2)

Publication Number Publication Date
CN113676290A CN113676290A (en) 2021-11-19
CN113676290B true CN113676290B (en) 2024-05-03

Family

ID=78550321

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111136189.3A Active CN113676290B (en) 2021-09-27 2021-09-27 Data transmission method and related equipment based on foundation system

Country Status (1)

Country Link
CN (1) CN113676290B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115118385A (en) * 2022-05-25 2022-09-27 阿里巴巴(中国)有限公司 Decoding method and device
CN115102670A (en) * 2022-06-28 2022-09-23 南京源兴智达信息科技有限公司 Data transmission device applied to indoor baseband processing unit of broadband ad hoc network

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101212267A (en) * 2007-12-21 2008-07-02 北京创毅视讯科技有限公司 FTP service data based method, system, and device for broadcast system
CN105930419A (en) * 2016-04-19 2016-09-07 福州大学 RDF data distributed parallel semantic coding method
CN110795757A (en) * 2019-09-25 2020-02-14 杭州译链科技有限公司 Method, device, system and storage medium for personal information disclosure management
CN113407541A (en) * 2021-06-23 2021-09-17 中移(杭州)信息技术有限公司 Data acquisition method, data acquisition equipment, storage medium and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101212267A (en) * 2007-12-21 2008-07-02 北京创毅视讯科技有限公司 FTP service data based method, system, and device for broadcast system
CN105930419A (en) * 2016-04-19 2016-09-07 福州大学 RDF data distributed parallel semantic coding method
CN110795757A (en) * 2019-09-25 2020-02-14 杭州译链科技有限公司 Method, device, system and storage medium for personal information disclosure management
CN113407541A (en) * 2021-06-23 2021-09-17 中移(杭州)信息技术有限公司 Data acquisition method, data acquisition equipment, storage medium and device

Also Published As

Publication number Publication date
CN113676290A (en) 2021-11-19

Similar Documents

Publication Publication Date Title
CN113676290B (en) Data transmission method and related equipment based on foundation system
US20190236708A1 (en) Distribution of market data
US7720313B2 (en) Digitized bank checks validated by digital signatures
WO2005045646A2 (en) Trade engine processing of mass quote messages with market data message format
CN107015948B (en) Log information formatting method and system
CN110392155B (en) Notification message display and processing method, device and equipment
JP2003178222A (en) Data converting method and device between business protocols and its processing program
CN109213758A (en) Data access method, device, equipment and computer readable storage medium
CN111858686B (en) Data display method, device, terminal equipment and storage medium
CN111858658B (en) Data acquisition method, device, equipment and storage medium
CN108205575A (en) Data processing method and device
US8732214B2 (en) Product search
CN113449829A (en) Data transmission method based on optical character recognition technology and related device
CN113191121A (en) Express bill number generation method, device, equipment and storage medium
CN112053058A (en) Index model generation method and device
CN103514670B (en) Tax control inventory Antiforge system and method
CN111143312A (en) Format analysis method, device, equipment and storage medium for power logs
CN112019642B (en) Audio uploading method, device, equipment and storage medium
CN114338850B (en) Message checking method, device, terminal equipment and computer readable storage medium
CN106598983A (en) Information display method and device
CN110443590B (en) Electronic human resource archive management system and management method thereof
CN112418944A (en) Coupon transfer method and device, electronic equipment and storage medium
CN111488269B (en) Index detection method, device and system for data warehouse
CN113807901A (en) Electronic invoice detection method, terminal equipment and storage medium
CN112558958A (en) Template-based push content generation method and device and computer equipment

Legal Events

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