[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN113676290A - Data transmission method based on fund system and related equipment - Google Patents

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

Info

Publication number
CN113676290A
CN113676290A CN202111136189.3A CN202111136189A CN113676290A CN 113676290 A CN113676290 A CN 113676290A CN 202111136189 A CN202111136189 A CN 202111136189A CN 113676290 A CN113676290 A CN 113676290A
Authority
CN
China
Prior art keywords
coding
group
file
preset
code
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
Application number
CN202111136189.3A
Other languages
Chinese (zh)
Other versions
CN113676290B (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

Images

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 fund 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 aiming at each preset file format and a 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 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 arranging the target coding sequence according to a preset arrangement rule to obtain a transmission file corresponding to the information file. The invention effectively compresses the size of the transmission file between the fund company end and the fund sales end, and improves the flexibility and the simplicity of transmission.

Description

Data transmission method based on fund system and related equipment
Technical Field
The present invention relates to interactive systems, 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 also circulated in the market. Meanwhile, the reimbursement business of financial products, such as fund reimbursement business, is also developed vigorously. The bridge work between the fund company and the user of the fund brokering company 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 needs to be received and collated. This work was done early by manual billing, but as technology developed, the fund brokerage system became the primary processing system. The service flow inside a general fund affiliation company is complex and needs to process massive data. If the fund-brokering company develops the brokering system by itself, a great deal of manpower and financial resources are required. Therefore, purchasing a third party's fund-brokering system is a major means of fund-brokering companies.
When data is transmitted between fund affiliate companies and fund companies, in order to reduce the weight of data transmission, text in the TXT format is generally used for transmission. The transmitted text is mainly 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 file identification, file version number, file creator, file receiver, date, file number, file name …, file ending identification and the like. In the existing data transmission process, the meaning and data length represented by each row of data are defined, for example, the first row is a file identifier, the length is 8 bytes, and the seventh row to the ninth row do not set a character string of the data length. The file identifier is generally set as "OFDCFIDX", the length is 8 bytes defined, and the file version number is 22, which does not satisfy the predefined 8 bytes, so space or zero is used for padding. Wherein, the "OFDCFEND" is the end of file identifier. The data file is formed by splicing a plurality of data messages, and the data messages comprise file identification, file version number, file creator, file receiver, date, summary table number, file type code, sender, receiver, field number, field name, record number, record and file end identification. In the data file, starting from the first byte and counting 8 bytes backwards, the starting point identifier of the data file is obtained, and the starting point identifier in the data file is the same as the starting point identifier in the index file. And counting eight bytes from the last byte of the data file to the front to obtain the end identifier of the data file, wherein the end identifier in the data file is the same as the end identifier in the index file. For convenient display, three fields of fund codes, unit reddening and reddening time are selected for display description, and the field lengths of the three fields are respectively 6 bytes, 16 bytes and 8 bytes. If the reddening content of a record of a certain data file is as follows: "fund 000120 is reddened 0.45 yuan per share at 1/7/2021, then the data shown by the corresponding three fields is shown as: 000120000000000000004520210701. if the reddening content of a record is as follows: "fund 000223 is reddened 1.50 yuan per share on 1/7/1/2021", then the data shown by the corresponding three fields is shown as: 000223000000000000015020210701. since there are only two records, and the length of the byte corresponding to a record is 16, it is necessary to perform padding with a space or zero. In this embodiment, zero is used for completion.
Therefore, the byte length of the existing scheme is preset and cannot be adjusted, and the insufficient part needs to be completed by zero or a space, so that the whole file is too large and inconvenient to transmit. In addition, during parsing, the length of each byte needs to be recorded to achieve accurate parsing, and if the set byte length changes, the parsing program needs to be rewritten, which causes resource waste.
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 fund-based data transmission scheme.
In order to solve the technical problems, the technical scheme adopted by the invention is as follows:
a data transmission method 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 aiming at 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;
aiming at 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 arranging the target coding sequence according to a preset arrangement rule to obtain a transmission file corresponding to the information file.
The data transmission method based on the fund system is characterized in that 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 encoding mapping table, a data encoding group corresponding to the file format in the first encoding group includes:
determining a first coding group corresponding to the index file as an index file coding group according to the index file format; and the number of the first and second groups,
and determining a first coding group corresponding to the data file as a data file coding group according to the data file format.
The fund system-based data transmission method is characterized in that the step of integrating each code group set according to a preset integration rule to obtain a target code sequence corresponding to the code group set comprises the following steps:
for each code group set, sequencing a second code group in the code group set according to a preset sequencing rule to obtain a first code sequence;
and 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 fund system-based data transmission method, wherein the delimiters comprise intra-group delimiters and inter-group delimiters.
The fund system-based data transmission method is characterized in that the step of separating the second code group in the first code sequence according to a preset separator to obtain a target code sequence corresponding to the first code sequence comprises the following steps:
for each first coding sequence, carrying out separator modification on 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 interclass separator to the tail end of the second coding sequence to obtain a target coding sequence corresponding to the second coding sequence.
The fund system-based data transmission method is characterized in that the step of separating the second code group in the first code sequence according to a preset separator to obtain a target code sequence corresponding to the first code sequence comprises the following steps:
aiming at each first coding sequence, carrying out separation treatment on a second coding group in the first coding sequence according to a preset intra-group separator 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 a check bit corresponding to the second coding sequence;
generating a check code group corresponding to the second coding sequence according to the check mark corresponding to the check rule and the check bit;
adding the check code group to the second coding sequence to obtain a third coding sequence;
and adding a preset interclass 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 a preset check rule to obtain the check bits corresponding to the second coding sequence comprises:
encrypting the second coding sequence according to a preset check protocol to obtain an encrypted sequence;
and extracting the check bits in the encrypted sequence according to a preset extraction rule.
A data transmission device based on a fund system specifically comprises:
the device comprises an acquisition module, a transmission module and a transmission module, wherein the acquisition module is used for acquiring an information file to be transmitted, and the information file comprises a plurality of field data;
the first coding group module is used for 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;
the second coding group module is used for determining a data coding group corresponding to the file format in the first coding group aiming at 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 each coding set according to a preset integration rule to obtain a target coding sequence corresponding to the coding set;
and the arrangement module is used for arranging the target coding sequence 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, the one or more programs being executable by one or more processors to implement the steps in the fund system-based data transfer method as in any one of the preceding claims.
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 transfer method as recited in any one of the preceding claims.
Has the advantages that: after the information file is obtained, the field data is mapped into the coding identification and the coding value with smaller data quantity according to the preset coding mapping table, and the first coding 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 files. And then, the second coding groups are classified and integrated to obtain a plurality of coding sequences, and finally, the coding sequences are arranged 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 size, and on the other hand, the easier reading of files is achieved through the form of grouping arrangement. And the existence of the coding mapping table also improves the complexity and diversity of the information which can be transmitted and the flexibility of the transmitted information.
Drawings
FIG. 1 is a diagram illustrating an index file definition and an example of an index file in the prior art.
FIG. 2 is a diagram illustrating an example of a data file definition and an index file in the prior art.
FIG. 3 is a flow chart of a fund system-based data transmission method provided by the present invention
Fig. 4 is a schematic diagram of a coding mapping table in the data transmission method based on the fund system according to the present invention.
Fig. 5 is a schematic diagram of a data file in the data transmission method based on the fund system provided by the present invention.
Fig. 6 is a transmission file when transmission is performed 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 in the present invention.
Detailed Description
The invention provides a data transmission method based on a fund system and related equipment, and in order to make the purpose, technical scheme and effect of the invention clearer and clearer, the invention is further described in detail below by referring to the attached drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. 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. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
It will be understood by those skilled in the art that, unless otherwise defined, 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. 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 explained by the description of the embodiments with reference to the drawings.
As shown in fig. 3, the present embodiment provides a data transmission method based on a fund system, and the data transmission method based on the fund system includes the following steps:
s10, obtaining an information file to be transmitted, wherein the information file comprises a plurality of field data.
Specifically, the fund company end generates various information files required to be transmitted to the fund brokering end in the interaction process with the fund brokering end and the operation process of the fund company end. Taking the common dividend as an example, every other settlement period, the fund company end needs to send the dividend result corresponding to each fund purchased by each user in the settlement period to the fund brokerage end. Also for example, when a user plans to stop purchasing a fund, the fund company needs to transmit the user's revenue during that period to the fund-brokering company. The present embodiment refers to information file containing information transmitted from the fund company side to the fund brokerage side.
The information file is provided with specific operation information, time and other information, and the content of each information is represented by field data.
And S20, determining the coding identifier and the 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 "file type" is identified as "1"; the code corresponding to the file version number is marked as 2; the code corresponding to the 'file creator' is marked as '3'; the code corresponding to the 'file receiver' is marked as '4'; the code corresponding to the "date" is marked as "5"; the code identifier corresponding to the summary table number is 6; the code identifier corresponding to the file type code is 7; the code corresponding to the "sender" is identified as "8"; the code corresponding to "receiver" is labeled "9"; the code corresponding to the "number of fields" is identified as "10"; the code corresponding to the "fund code (FundCode)" is identified as "11"; the coding mark corresponding to the unit reddish (DividendPerUnit) is 12; the code corresponding to the "reddening time (divdenstdate)" is marked as "13"; the code corresponding to the record number is marked as 14, namely the number of the information specifically related to the bonus in the bonus file; the code corresponding to "extension field 1" is identified as "500"; the code corresponding to "extension field 2" is identified as "501"; the code identifier corresponding to the check protocol is 998; the code corresponding to the "check bit" is identified as "999".
For example, the field type of a certain field of data is date, the specific field content is 03-2020, the corresponding code identifier of that piece of data is 5, and the 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 fund sales terminal) which is in contact with the fund company, the code identifier corresponding to the file receiver is 4, the code value corresponding to the fund sales terminal a is 1, and the code value corresponding to the file receiving terminal in the information file which needs to be sent to the fund sales terminal a is 1.
Therefore, after the field data in the information file is 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 the first coding groups corresponding to all the field data are determined, a plurality of first coding groups can be obtained.
In the embodiment in this market, the first encoding group corresponding to each field data includes an encoding identifier and an encoding value corresponding to the field data, and the encoding identifier and the encoding value may be formed by combining characters such as arabic numerals and letters. In order to distinguish the code identifiers and the code groups in the first code group, in one implementation, the code identifiers may be numbers, and the code values may be letters, that is, the format of the code identifiers and the code values may be different. In another implementation, the coded identifier and the coded value are connected by a pointer, which is a connection symbol with a pointing property, such as a colon, an arrow, a dash, an equal sign, and the like.
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 file transmitted from the fund company side to the fund brokerage side generally consists of two files, one is an index file and the other is a data file. The index file is smaller than the data file, so that the fund sales end can conveniently read and retrieve, and the data file is larger and has detailed information. The index file and the data file are both obtained based on the original information file, but the contents of the index file and the data file are 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 first coding arrays corresponding to different ones.
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 set includes an index file data set and a data file encoding set. 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 a 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 fund company end and the fund brokerage end, the other files may also be used as another file, so as to generate the corresponding data code set.
In order to reduce the volume of the file, this embodiment sets, in advance, coding identifiers and coding values corresponding to different file formats in a coding mapping table, for example, a coding identifier corresponding to a file format is 1, a coding value corresponding to a file format of an index file is 01, and a coding value corresponding to a file format of a data file is 02. And after the file format is determined, determining the corresponding coding identification and coding value, and generating a format coding group by adopting a mode of generating a first coding group. And then the data coding group and the format coding group are used together as an index file or a second coding group corresponding to the data file.
And 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 encoding groups, and the classification is mainly to combine the second encoding groups with different importance degrees and different types, so that the subsequent fund affiliation end can be conveniently processed.
In the first mode of this embodiment, all the second code groups are directly used as a class, and a code group set is obtained.
In another embodiment, the number of code group sets and which are defined as a code group set by the requirements 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", and "recording number" is used as a code group set.
And S50, integrating each coding group set according to a preset integration rule to obtain a target coding sequence corresponding to the coding group set.
Specifically, the second encoding group in the encoding group set is split in units of the encoding group set. An integration rule is preset, and then each second code group in the code group set is processed through the integration rule. The second code groups in the code group set are scattered, so that the second code groups need to be integrated together in a mode to obtain the target code sequence.
In a first implementation manner of this embodiment, for each of the code group sets, a second code group in the code group set is sorted according to a preset sorting rule to obtain a first code sequence. As shown, for the first encoding group set, the preset ordering order is: "file type", "file version number", "file creator", "file receiver", "number of fields", "number of records"; for the second encoding group set, the predetermined ordering order is: "Fundcode", "DividentPerUnit", "DividentDate", "time to redden", "Fundcode", "DividentDate", "KindCode", "DividentTate", "KindTokyo (KindCode)".
And then, 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. A plurality of separators are preset, 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, indicating a null character. The second code group in the first code sequence is separated by using a separator, and the separator is added before or after the second code group.
In another implementation, to increase the ease of subsequent integration of the target coding sequence, the separators include intra-group separators and inter-group separators in this embodiment. As the name implies, the intra-group delimiter is used to separate the first encoding group within one encoding group set, and the inter-group delimiter is used to separate between encoding group sets.
Firstly, carrying out separator modification on a second code group in the file code sequence according to a preset group separator on each first code sequence obtained after sequencing to obtain a second code sequence corresponding to the first code sequence. In fig. 5, a box is used to represent a null character, and the intra-group separator used is a null character.
And then adding a preset interclass separator to the tail end of the second coding sequence to obtain a target coding sequence corresponding to the second coding sequence. Therefore, subsequently, after the fund sales end obtains the transmission file and analyzes the transmission file to the target coding sequence, the data can be accurately split according to the interclass separators without reading one by one and analyzing the data independently.
Further, in order to facilitate the fund affiliate company to conveniently and quickly locate the coding group sequences that are encoded differently, the component separator employed in the present embodiment is a branch character.
The existing scheme lacks a verification mechanism for data transmitted by a fund company terminal, and in order to improve the authenticity of the data and reduce the risk of errors, the verification mechanism is added in another process of generating a target coding sequence.
Firstly, aiming at each first coding sequence, according to a preset intra-group separator, a second coding group in the first coding sequence is separated to obtain a second coding sequence corresponding to the first coding sequence. The manner of adding the element separators can be referred to above, and is not described herein again.
And then calculating the second coding sequence according to a preset check rule to obtain a check bit corresponding to the second coding sequence. And presetting a check rule, wherein the check rule is used for encrypting the second coding sequence to obtain a check bit. A common verification rule is to directly set a verification protocol, where the verification protocol is implemented by using an encryption algorithm, such as md5 algorithm and SHA1 algorithm, and the second coding sequence is used as data to be encrypted, and the data is encrypted and calculated by using the verification protocol to obtain a verification bit corresponding to the verification protocol. But the encryption sequence obtained by the general check 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 the characters with specific positions and specific lengths in the encrypted sequence as check bits according to an extraction rule. In fig. 5, the adopted check algorithm is md5, the extraction rule is to extract the first four bits, so that the first four bits correspond to the first second encoding sequence, and the encrypted sequence obtained after encryption is "3446630 d0fe7c0c0dfd925fc47f7d0a 4" and the corresponding check bit is 3446.
And adding a check identifier in the coding mapping table in advance to obtain a check bit, and generating a check coding group corresponding to the second coding sequence according to the check identifier corresponding to the check rule and the check bit. The check mark includes 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, including a check mark code group composed of the check mark and a check value thereof, and a check value code group composed of the check bit mark and the check bit, wherein the generated check mark code group and the check value code group may be generated in the manner of generating the first code group as described above, and are not described herein again.
And then adding the check code group to the second coding sequence to obtain a third coding sequence. The check code group may be located at the beginning, end, or other position of the second code sequence, but is not limited thereto, and fig. 5 illustrates that it is added to the end of the second code sequence. It is noted that since the check code group is also a code group, the second code group at the end of the second code sequence should be added with an intra-group 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 code sequence, i.e., at the time of adding the intra-group delimiter, the intra-group delimiter is set at the end of each second code group. In addition, when the check mark coding group and the check bit coding group are added to the second coding sequence, an intra-group separator can be added between the two groups for separation.
And finally, adding a preset interclass 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 separators, different coding group sets are divided, a plurality of target coding group sequences can be read at the subsequent fund sales end at the same time, and the reading speed is improved.
And S60, arranging the target coding sequence according to a preset arrangement rule to obtain a transmission file corresponding to the information file.
Specifically, an arrangement rule is preset, each code group set obtains a target code sequence, the 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, the transmission file corresponding to the information file obtained at the beginning is obtained.
And finally, the transmission file can be transmitted to the fund sales terminal based on the communication connection between the fund company terminal and the fund sales terminal.
And after the fund sales terminal obtains the transmission file, aiming at the transmission file of each file format and each target coding sequence in the transmission file, extracting a second coding group in the target coding sequence according to the position of a check coding group appointed with the fund company terminal in advance. And then, encrypting the second coding group by adopting a check protocol which is the same as that of the fund company end to obtain a corresponding verification value. And finally, comparing the verification value with the check bits in the check coding 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 that of the fund company end, and the required information file is obtained.
By comparing fig. 5 with fig. 6, the transmission file obtained by the scheme is significantly smaller, simpler, more flexible and safer.
As shown in fig. 7, based on the aforementioned data transmission method based on the fund system, the present embodiment provides a data transmission apparatus 100 based on the fund system, wherein the data transmission apparatus 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;
a first coding group module 120, configured to determine, according to a preset coding mapping table, a coding identifier and a coding value corresponding to each field data, so as to obtain a plurality of first coding groups;
a second encoding group module 130, configured to determine, for each preset file format and the encoding mapping table, a data encoding group corresponding to the file format in the first encoding group, and use the data encoding group and the format encoding group corresponding to the file format as a second encoding group corresponding to the file format;
a classification module 140, configured to classify the second coding group according to a preset classification rule to obtain a plurality of coding group sets;
an integration module 150, configured to, for each code group set, perform 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;
and the arranging module 160 is configured to arrange 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, 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 second encoding group module 130 is specifically configured to:
determining a first coding group corresponding to the index file as an index file coding group according to the index file format; and the number of the first and second groups,
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 comprises:
the sorting unit is used for sorting the second coding group in the coding group set according to a preset sorting rule aiming at each coding group set to obtain a first coding sequence;
and the separating 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 delimiters include intra-group delimiters and inter-group delimiters.
Wherein the separation unit is operable to:
for each first coding sequence, carrying out separator modification on 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 interclass 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 is further operable to:
the separator subunit is used for separating a second coding group in each first coding sequence according to a preset intra-group separator 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 a check bit corresponding to the second coding sequence;
the generating subunit is used for generating a check code group corresponding to the second coding sequence according to the check identifier corresponding to the check rule and the check bit;
the first adding subunit is used for adding the check code 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 check protocol to obtain an encrypted sequence;
and extracting the check bits in the encrypted sequence according to a preset extraction rule.
Based on the above data transmission method based on the fund system, the present invention further provides a terminal device, as shown in fig. 8, which includes at least one processor (processor) 20; a display screen 21; and a memory (memory)22, and may further include a communication Interface (Communications Interface)23 and a bus 24. The processor 20, the display 21, the memory 22 and the communication interface 23 can communicate with each other through the 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 call logical commands in the memory 22 to perform the methods in the above embodiments.
In addition, the logic commands in the memory 22 can be implemented in the form of software functional units and stored in a computer readable storage medium when sold or used as a stand-alone product.
The memory 22, which is 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 executes functional applications and data processing by executing software programs, commands or modules stored in the memory 22, i.e. implements the method in the above-described embodiments.
The memory 22 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal device, and the like. Further, the memory 22 may include a high speed random access memory and may also include a non-volatile memory. For example, a variety of media that can store program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk, may also be used as the transient computer readable storage medium.
In addition, the specific processes loaded and executed by the computer readable storage medium and the plurality of command processors in the terminal device are described in detail in the method, and are not stated herein.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A data transmission method 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 aiming at 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;
aiming at 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 arranging the target coding sequence according to a preset arrangement rule to obtain a transmission file corresponding to the information file.
2. The fund system-based data transmission method according to claim 1, wherein the transmission file comprises an index file and a data file, and the file formats comprise 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 encoding mapping table, a data encoding group corresponding to the file format in the first encoding group includes:
determining a first coding group corresponding to the index file as an index file coding group according to the index file format; and the number of the first and second groups,
and determining a first coding group corresponding to the data file as a data file coding group according to the data file format.
3. The fund system-based data transmission method according to any one of claims 1 to 2, wherein the integrating each code group set according to a preset integration rule to obtain a target code sequence corresponding to the code group set comprises:
for each code group set, sequencing a second code group in the code group set according to a preset sequencing rule to obtain a first code sequence;
and 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.
4. A fund system based data transfer method according to claim 3, wherein the delimiters comprise intra-group delimiters and inter-group delimiters.
5. The fund system-based data transmission method according to claim 4, wherein the separating the second code group in the first code sequence according to a preset separator to obtain the target code sequence corresponding to the first code sequence comprises:
for each first coding sequence, carrying out separator modification on 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 interclass separator to the tail end of the second coding sequence to obtain a target coding sequence corresponding to the second coding sequence.
6. The fund system-based data transmission method according to claim 4, wherein the separating the second code group in the first code sequence according to a preset separator to obtain the target code sequence corresponding to the first code sequence comprises:
aiming at each first coding sequence, carrying out separation treatment on a second coding group in the first coding sequence according to a preset intra-group separator 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 a check bit corresponding to the second coding sequence;
generating a check code group corresponding to the second coding sequence according to the check mark corresponding to the check rule and the check bit;
adding the check code group to the second coding sequence to obtain a third coding sequence;
and adding a preset interclass separator to the tail end of the third coding sequence to obtain a target coding sequence corresponding to the second coding sequence.
7. The fund system-based data transmission method according to claim 6, wherein the calculating the second code sequence according to a preset check rule to obtain the check bits corresponding to the second code sequence comprises:
encrypting the second coding sequence according to a preset check protocol to obtain an encrypted sequence;
and extracting the check bits in the encrypted sequence according to a preset extraction rule.
8. A data transmission device based on a fund system, comprising:
the device comprises an acquisition module, a transmission module and a transmission module, wherein the acquisition module is used for acquiring an information file to be transmitted, and the information file comprises a plurality of field data;
the first coding group module is used for 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;
the second coding group module is used for determining a data coding group corresponding to the file format in the first coding group aiming at 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 each coding set according to a preset integration rule to obtain a target coding sequence corresponding to the coding set;
and the arrangement module is used for arranging the target coding sequence according to a preset arrangement rule to obtain a transmission file corresponding to the information file.
9. A computer readable storage medium storing one or more programs, the one or more programs being executable by one or more processors to perform the steps of the fund system-based data transfer method according to any one of claims 1 to 7.
10. 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 transfer method according to any one of claims 1 to 7.
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 true CN113676290A (en) 2021-11-19
CN113676290B 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)

Cited By (2)

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

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

Cited By (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

Also Published As

Publication number Publication date
CN113676290B (en) 2024-05-03

Similar Documents

Publication Publication Date Title
CN113239106B (en) Excel file export method and device, electronic equipment and storage medium
CN107704479B (en) File generation method and device
CN110287247B (en) Data storage method, device, equipment and storage medium based on Unionpay system
CN110445860B (en) Message sending method, device, terminal equipment and storage medium
CN112149390A (en) Report generation method, system, computer device and computer-readable storage medium
CN113676290A (en) Data transmission method based on fund system and related equipment
CN109510686B (en) Universal binary stream data conversion processing method
CN110263316A (en) A kind of document handling method, device and computer equipment
CN112306977A (en) Asynchronous processing based file signature method and device and computer equipment
CN103428184A (en) Method and system for converting communication messages
US20080313291A1 (en) Method and apparatus for encoding data
CN111324645B (en) Block chain data processing method and device
CN111932413A (en) Case element extraction method, case element extraction device, case element extraction equipment and case element extraction medium
CN114338850A (en) Message checking method and device, terminal equipment and computer readable storage medium
CN108881124B (en) Method, system, storage medium and device for realizing high-performance communication between modules
CN115276889A (en) Decoding processing method, decoding processing device, computer equipment and storage medium
CN109214488B (en) A method and system for information transmission based on graphic coded data
CN117251869A (en) Data encryption method and device, nonvolatile storage medium and electronic equipment
CN111241096A (en) Text extraction method, system, terminal and storage medium for EXCEL document
CN113672483B (en) Device log storage method and device, electronic device and medium
CN115294586A (en) Invoice identification method and device, storage medium and electronic equipment
CN112558958A (en) Template-based push content generation method and device and computer equipment
CN116707714B (en) Payment information transmission method, device, computer equipment and storage medium
CN111813474A (en) Multi-language display method and device and electronic equipment
CN115002100B (en) File transmission method and device, electronic equipment and storage medium

Legal Events

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