CN109451006A - A kind of data transmission method, device, server and computer storage medium - Google Patents

A kind of data transmission method, device, server and computer storage medium Download PDF

Info

Publication number
CN109451006A
CN109451006A CN201811280649.8A CN201811280649A CN109451006A CN 109451006 A CN109451006 A CN 109451006A CN 201811280649 A CN201811280649 A CN 201811280649A CN 109451006 A CN109451006 A CN 109451006A
Authority
CN
China
Prior art keywords
data
information
text
image
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
CN201811280649.8A
Other languages
Chinese (zh)
Other versions
CN109451006B (en
Inventor
万月亮
施宏伟
张志远
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Ruian Technology Co Ltd
Original Assignee
Beijing Ruian 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 Beijing Ruian Technology Co Ltd filed Critical Beijing Ruian Technology Co Ltd
Priority to CN201811280649.8A priority Critical patent/CN109451006B/en
Publication of CN109451006A publication Critical patent/CN109451006A/en
Application granted granted Critical
Publication of CN109451006B publication Critical patent/CN109451006B/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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses a kind of data transmission method, device, server and computer storage mediums, this method comprises: the data sent to the interior network termination, which carry out fragment, obtains at least one data fragmentation, the fragment image in 2 D code of the data fragmentation is generated, the data are text data or TCP data;The fragment image in 2 D code is sequentially displayed on the serial ports display screen.Through the above technical solutions, realize data carries out one-way transmission in a manner of image in 2 D code, information leakage is avoided, it is simple and convenient, and ensure that the consistency and real-time of information.

Description

A kind of data transmission method, device, server and computer storage medium
Technical field
The present embodiments relate to technical field of data transmission more particularly to a kind of data transmission method, device, servers And computer storage medium.
Background technique
With the development of technology, it is very general to obtain required information or resource that information exchange is carried out between each system Time, and for government or the enterprise especially paid attention to information security, it often requires that Intranet system and outer net isolation of system, only allows A small amount of information is transferred to outer net system, and traditional data transmission utilizes USB flash disk or disposable writable disc mostly, cannot be real-time Data are obtained, and there is also some potential safety problemss for transmission process, are inconvenient.
Summary of the invention
The present invention provides a kind of data transmission method, device, server and computer storage medium, to realize a small amount of information Outer net system is transferred to by Intranet system, while guaranteeing the consistency and real-time of information.
In a first aspect, being applied to intranet server, the Intranet the embodiment of the invention provides a kind of data transmission method Server is connect with interior network termination and serial ports display screen respectively, comprising:
Fragment is carried out to the data that the interior network termination is sent and obtains at least one data fragmentation, generates the data fragmentation Fragment image in 2 D code, the data be text data or TCP data;
The fragment image in 2 D code is sequentially displayed on the serial ports display screen.
Second aspect, the embodiment of the invention also provides a kind of data transmission methods, are applied to external network server, described outer Network server is connect with outer network termination and image collecting device respectively, comprising:
With the image in 2 D code that setting time interval acquiring described image acquisition device captures, the image in 2 D code is shown On the serial ports display screen being connected with intranet server;
The data in the image in 2 D code are identified and stored, the data are text data or TCP data;
When stored data fit sends condition, the stored data are sent to the outer network termination.
The third aspect, the embodiment of the invention also provides a kind of data transmission devices, are configured at intranet server, described interior Network server is connect with interior network termination and serial ports display screen respectively, comprising:
Generation module, the data for sending to the interior network termination carry out fragment and obtain at least one data fragmentation, raw At the fragment image in 2 D code of the data fragmentation, the data are text data or TCP data;
Display module, for the fragment image in 2 D code to be sequentially displayed in the serial ports display screen.
Fourth aspect, the embodiment of the invention also provides a kind of data transmission devices, are configured at external network server, described outer Network server is connect with outer network termination and image collecting device respectively, comprising:
Module is obtained, the image in 2 D code for capturing with setting time interval acquiring described image acquisition device is described Image in 2 D code is shown on the serial ports display screen being connected with intranet server;
Memory module for identification and stores the data in the image in 2 D code, and the data are text data or TCP Data;
Sending module, for when stored data fit sends condition, the stored data to be sent to institute State outer network termination.
5th aspect, the embodiment of the invention also provides a kind of intranet servers, comprising:
One or more processors;
Memory, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processing Device realizes data transmission method as described in relation to the first aspect.
6th aspect, the embodiment of the invention also provides a kind of external network servers, comprising:
One or more processors;
Memory, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processing Device realizes the data transmission method as described in second aspect.
7th aspect, the embodiment of the invention also provides a kind of computer storage mediums, are stored thereon with computer program, Data transmission method as described in relation to the first aspect is realized when the program is executed by processor.
Eighth aspect, the embodiment of the invention also provides a kind of computer storage mediums, are stored thereon with computer program, The data transmission method as described in second aspect is realized when the program is executed by processor.
The embodiment of the invention provides a kind of data transmission method, device, server and storage mediums, by described interior The data that network termination is sent carry out fragment and obtain at least one data fragmentation, generate the fragment two dimensional code figure of the data fragmentation Picture, the data are text data or TCP data;The fragment image in 2 D code is sequentially displayed in the serial ports display screen On, the transmission of data is carried out by way of image in 2 D code, it is simple and convenient, and ensure that information consistency and in real time Property.
Detailed description of the invention
Fig. 1 is a kind of flow chart for data transmission method that the embodiment of the present invention one provides;
Fig. 2 is the system architecture schematic diagram that data transmit foundation;
Fig. 3 is a kind of flow chart of data transmission method provided by Embodiment 2 of the present invention;
Fig. 4 is the schematic diagram for the fragment image in 2 D code that the data fragmentation of serial number 92 generates;
Fig. 5 is a kind of flow chart for data transmission method that the embodiment of the present invention three provides;
Fig. 6 is a kind of structure chart for data transmission device that the embodiment of the present invention four provides;
Fig. 7 is a kind of structure chart for data transmission device that the embodiment of the present invention five provides;
Fig. 8 is a kind of structure chart for intranet server that the embodiment of the present invention six provides;
Fig. 9 is a kind of structure chart for external network server that the embodiment of the present invention seven provides.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to just Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
Embodiment one
Fig. 1 is a kind of flow chart for data transmission method that the embodiment of the present invention one provides.The present embodiment can be applied to interior Network server, this method can be executed by data transmission device.Specifically, with reference to Fig. 2, Fig. 2 is for what data transmitted foundation System configuration diagram, intranet server 220 is connect with interior network termination 210 and serial ports display screen 230 respectively, when interior network termination 210 When data are uploaded to intranet server 220, the type of the data based on the received of intranet server 220 is respectively processed, and Treated data by Serial Port Line or USB line are transferred to serial ports display screen 230, are shown by serial ports display screen 230, this When image collecting device 240 acquire the image on serial ports display screen 230, and by the image transmitting of acquisition to external network server 250, It is identified by external network server 250, and is ultimately sent to outer network termination 260.
As shown in Figure 1, the present embodiment one provide be applied to intranet server on data transmission method specifically include as Lower step:
S110, at least one data fragmentation is obtained to the data progress fragment that the interior network termination is sent, generates the number According to the fragment image in 2 D code of fragment.
Specifically, the data are text data or TCP data, wherein text data can be the text-types number such as TXT According to TCP data can be the data flow for supporting Transmission Control Protocol.Interior network termination can be the intelligence such as mobile phone, laptop or PAD Terminal can be uploaded to intranet server by FTP or SMB mode, in order to guarantee when data to be uploaded are text data The integrality of data and processing convenient for intranet server to data, can establish specific mesh in intranet server in advance Record, text data can be directly uploaded in specific catalogue by network termination interior in this way, simple and convenient;When data to be uploaded are When TCP data, intranet server can establish connection by TCP agent port and interior network termination, complete the reception of TCP data, Wherein, TCP agent port is the port of intranet server creation, can guarantee the TCP number of a small amount of low speed by TCP agent port According to real-time transmission.
Data need to consider the information carrying capabilities of transmission device when transmitting, when data transmission capacity is greater than transmission device When information carrying capabilities, data portion loss will lead to, transmission is imperfect, therefore, the information carrying capabilities based on transmission device, Fragment can be carried out to data, to guarantee the integrality of data.Data fragmentation can be random fragment, be also possible to according to certain Size carry out fragment, for example, the information carrying capabilities of transmission device are 200 bytes, size of data is 875 bytes, then can be with Split data into 5 fragments, 200 byte of the first fragment, 200 byte of the second fragment, 200 byte of third fragment, the 4th fragment 200 Byte, 75 byte of the 5th fragment.The present embodiment is after data carry out fragment, using currently a popular coding mode two dimensional code logarithm It is encoded according to fragment, generates fragment image in 2 D code, it should be noted that the information that two dimensional code carries is limited, that is, is had There are certain information carrying capabilities, the effective information that intranet server can transmit received data according to two dimensional code carries Capacity carries out fragment.
S120, the fragment image in 2 D code is sequentially displayed on the serial ports display screen.
Specifically, serial ports display screen can be liquid crystal display, the two-dimentional image of fragment can be received in real time.Intranet clothes Pass through Serial Port Line after business device generation fragment image in 2 D code or USB line is shown on serial ports display screen, for image collecting device Acquire image, it should be pointed out that the transmission of image in 2 D code is that in real time, i.e., intranet server generates fragment image in 2 D code And completing the transmission of fragment image in 2 D code is a real-time process, to guarantee the timely of data transmission.
The embodiment of the invention provides a kind of data transmission methods, are divided by the data sent to the interior network termination Piece obtains at least one data fragmentation, generates the fragment image in 2 D code of the data fragmentation;By the fragment image in 2 D code It is sequentially displayed on the serial ports display screen, the transmission of data, simple and convenient, Er Qiebao is carried out by way of image in 2 D code The consistency and real-time of information are demonstrate,proved.
Embodiment two
Fig. 3 is a kind of flow chart of data transmission method provided by Embodiment 2 of the present invention, on the basis of above-described embodiment On embodied, when the data be text data when, which specifically comprises the following steps:
The data that network termination is sent in S210, reception.
S220, information image in 2 D code is generated according to the attribute information of the data, and by the information image in 2 D code It is shown on the serial ports display screen.
Wherein, the attribute information includes: text path, size text, text read-write properties, text access time and text This modification time.Information image in 2 D code can be understood as the image in 2 D code comprising text data attribute information.Specifically, Text path is for identifying the currently stored path of content of text, to search corresponding content of text according to text path.Root According to the quantity for the available text data fragment of information carrying capabilities that size text and two dimensional code transmit.Text read-write properties It can be read-only, hiding or achieve, such as when text read-write properties are read-only, show that content of text can only be read, and it is right Cannot its modify.Text access time and text modification time can search in order to user according to the time of access or modification Required text.In actual transmissions, information image in 2 D code can be shown at set time intervals on serial ports display screen, with Just image collector is equipped with the sufficient time to acquire image, and specific time interval can be set according to actual needs, such as It can be set as 100 milliseconds.
Specifically, when intranet server receives text data, this article notebook data is scanned, reads content of text to interior It deposits, and recording text path, size text, text read-write properties, text access time and text modification time, then according to text The attribute information of notebook data generates information image in 2 D code, and is shown on serial ports display screen by Serial Port Line or USB line, In, the size of the receivable text data of intranet server can specifically be set according to actual needs, for example, it can be set to Intranet Server can receive 100K text data below, to realize the transmission of low volume data.
Attribute information more than one based on data is believed in order to further illustrate how to be generated according to the attribute information of data Image in 2 D code is ceased, the present embodiment is embodied as S220:
Select the text path and the size text as the first attribute information, it is the text read-write properties, described Text access time and the text modification time are as the second attribute information;
The first data format based on setting forms the first format data of first attribute information;
The second data format based on setting forms the second format data of second attribute information;
Two-dimensional encoded rule based on setting generates the corresponding first information image in 2 D code of first format data And the corresponding second information image in 2 D code of second format data;
In first format data and the second format data respectively include: action type information and label information.
Specifically, the first data format can be preset data format, with facilitate to the attribute informations of data into Row unified management, such as the first data format can be set to serial number+check code+action type information+size text+label letter This format of breath+text path (contain filename), wherein the introducing of serial number on the one hand can be in order to which intranet server be by information two Dimension code image is continuously sent to serial ports display screen according to serial number, on the other hand when external network server is obtained by image collecting device Win the confidence breath image in 2 D code when, can whether continuously whether complete with the received data of determination according to serial number.Check code for pair Data, which complete verification, can carry corresponding check code, when external network server receives data, according to reception when data are sent Data recalculate check code, and the check code carried with data is compared, to examine received data whether correct, In, check code is calculated according to action type, size text, label information and text path, calculating process and existing The method for having IP header check code in technology is similar, and details are not described herein again.Label information is calculated according to text path MD5 (Message Digest Algorithm, Message Digest 5) value, MD5 value can be used for the verifying of data consistency, when When the MD5 value of two kinds of data is consistent, shows that two kinds of data belong to same type, that is, can be stored in the same area.Action type letter The concrete type for indicating data is ceased, such as when action type information is 1, indicates that current data is the first formatting number According to when action type information is 2, expression current data is the second format data.Second data format can be set to sequence Number+check code+action type information+label information+text read-write properties+text access time+text access time.Two dimension is compiled Code rule is a kind of coding mode based on two dimensional code, generates the corresponding first information two of the first format data based on the rule Tie up code image and the corresponding second information image in 2 D code of the second format data.
Illustratively, the form for the first format data that the first data format based on setting is formed can be 90, CK: 001a, OP:1FZ:28158FPMD5:f852a581e229230a806360a3cbad8258FP:che n/install.log, In, 90 be serial number, and CK is check code mark, is indicated with 16 system numbers, and OP is action type message identification, and action type is believed herein Breath is that 1, FZ is size text mark, and size text is 28158 bytes herein, and FPMD5 is label information, and FP is text path mark Know.The form for the second format data that the second data format based on setting is formed can be 91, CK:e5dd, OP: 2FPMD5:f852a581e229230a806360a3cbad8258MD:33188AT:153786 2861MT:1537862861, In, MD indicates text read-write properties mark, and AT indicates text access time mark, and MT indicates text modification time identifier, herein Action type information is 2, serial number 91.It is understood that intranet server is according to serial number 90,91 during actual transmissions Sequence be sent on serial ports display screen.
S230, the information carrying capabilities based on two dimensional code transmission, determine the fragment size of the data.
The information capacity that two dimensional code can carry is the foundation of data fragmentation, it is to be understood that two dimensional code can carry Information word joint number be limited, when be more than its information word joint number that can be carried the upper limit when, will lead to data portion lose and It is imperfect, such as the information word joint number that two dimensional code maximum can carry is 200, then based on the value to data fragmentation, what is obtained is every The byte number of piece of data is less than the integrality for guaranteeing data equal to 200.
S240, fragment is carried out to the data according to the fragment size, forms at least one data fragmentation.
S250, the encryption rule based on setting encrypt each data fragmentation, obtain corresponding fragment encrypted characters string.
Data encryption is the safety in order to guarantee data transmission, avoids information leakage, wherein encryption rule can basis Actual needs selection, such as can choose BASE64 encryption rule and each data fragmentation is encrypted, select this encryption rule Benefit then is: no matter initial data is 16 binary datas or ASSIC code, is all after selecting the encryption of BASE64 encryption rule ASSIC code character string is conducive to subsequent two dimensional code and parses to obtain ASSIC code character string, naturally it is also possible to which selection is other to be added Close rule, such as rsa encryption rule or DES (DataEncryption Standard, data encryption standards) encryption rule.
S260, the third data format based on setting, form the third format data of the fragment encrypted characters string.
Third data format is set a kind of format when carrying out fragment based on data content, specifically can be serial number+ Check code+action type information+text offset+label information+fragment encrypted characters string, wherein introduce text offset be in order to Discovery in time is in the transmission process of some text data, because of the incomplete situation of text caused by certain loss of data.It is exemplary , the form of the third format data based on the third data format formation set is 92, CK:3674, OP:0FO: 0FPMD5:f852a581e229230a806360a3cbad8258DT:SW5zdGFsbGluZyBsaWJnY2MtNC40Lj… MTZqLTEuZWw2Lm5vYXI=, wherein FO indicates text departure indications, and text offset herein is 0, one data of every transmission Fragment, text offset increase the size of corresponding data fragmentation, and DT indicates fragment encrypted characters string mark, and action type is believed herein Breath is 0, and action type information is that 0 expression third format data is content of text.
S270, the two-dimensional encoded rule based on setting generate the corresponding first fragment two dimension of the third format data Code image.
Specifically, fragment image in 2 D code is encoded to data fragmentation, the data carried are content of text.It is based on The two-dimensional encoded rule of setting generates the corresponding first fragment image in 2 D code of third format data and information image in 2 D code The process of generation is similar, and details are not described herein again.By taking the data fragmentation of serial number 92 as an example, generated based on two-dimensional encoded rule the One fragment image in 2 D code can refer to Fig. 4, and Fig. 4 is the signal for the fragment image in 2 D code that the data fragmentation of serial number 92 generates Figure.
S280, the fragment image in 2 D code is sequentially displayed on the serial ports display screen.
A kind of data transmission method provided by Embodiment 2 of the present invention, is embodied on the basis of the above embodiments, Data format according to setting carries out fragment to the attribute information of data and data respectively, obtains information image in 2 D code and the One fragment image in 2 D code, and sequentially shown on serial ports display screen according to serial number, the convenient of data transmission is improved, is avoided The loss of data.
On the basis of the above embodiments, it is TCP data that the data sent when interior network termination, which are further described, in the present embodiment When, the realization process of data transmission method, specifically, the present embodiment will be whole to the Intranet when the data are TCP data The data that end is sent carry out fragment and obtain at least one data fragmentation, and the fragment image in 2 D code for generating the data fragmentation is specific It turns to:
Based on the information carrying capabilities of two dimensional code transmission, the fragment size of the data is determined;
Fragment is carried out to the data according to the fragment size, forms at least one data fragmentation;
Encryption rule based on setting encrypts each data fragmentation, obtains corresponding fragment encrypted characters string;
The 4th data format based on setting forms the 4th format data of the fragment encrypted characters string;
Two-dimensional encoded rule based on setting generates the corresponding second fragment two dimensional code figure of the 4th format data Picture;
In 4th format data respectively include: respective fragment encrypted characters string, action type information, TCP generation Manage port information, Intranet IP address of terminal information and Intranet terminal prot information.
Wherein, the information carrying capabilities based on two dimensional code transmission, determine the fragment size of the data and according to described Fragment size carries out fragment to the data, and the process for forming at least one data fragmentation is similar with the process of text data, this Place repeats no more.For the ease of the processing to TCP data, the preferred BASE64 encryption rule of encryption rule herein is divided with obtaining Piece encrypted characters string.
TCP agent port be intranet server creation for connect Intranet terminal prot with realize TCP data transmit Port, when Intranet terminal prot establishes connection with the TCP agent port, intranet server creates session structure volume data with reality When receive TCP data, while saving Intranet IP address of terminal information and Intranet terminal prot information, be arranged in network termination and TCP The session data offset of proxy port is 0, wherein introduces session data offset, transmits also for timely discovery in TCP data In the process, the case where certain loss of data cause TCP data to lack.
4th data format is a kind of format set when carrying out fragment based on TCP data, specifically can be serial number+school Test code+action type information+Intranet IP address of terminal information+Intranet terminal prot information+TCP agent port information+session number According to offset+data length+flow data classification+this mode of fragment encrypted characters string, wherein data length indicates data fragmentation Size, action type information herein are 3, and expression is TCP data.Check code is whole according to Intranet IP address of terminal, Intranet End port, TCP agent port, session data offset, data length, flow data classification and fragment encrypted characters string are calculated, Detailed process is similar with the method that IP header check code in the prior art calculates, and details are not described herein again.Flow data classification is used for table The transmission for whether carrying out TCP data shown, when flow data is classified as 2, session data is expressed as, carries out TCP data transmission, work as stream It when data classification is 3, indicates to disconnect, be transmitted without TCP data, it should be noted that when flow data is classified as 3, Data length is 0 at this time.
Embodiment three
Fig. 5 is a kind of flow chart for data transmission method that the embodiment of the present invention three provides, and is applied to external network server, outside Network server is connect with outer network termination and image collecting device respectively, the two dimensional code on image acquisition device serial ports display screen Image, and the image in 2 D code of acquisition is transferred to external network server, external network server solves the image in 2 D code of acquisition Analysis obtains initial data, is sent to outer network termination.Specifically, this method comprises:
S310, the image in 2 D code captured with setting time interval acquiring described image acquisition device.
Wherein, the image in 2 D code is shown on the serial ports display screen being connected with intranet server.Specifically, image is adopted Acquisition means can be the equipment that camera etc. can acquire image, in order to avoid the loss of data, image acquisition device figure The frequency of picture is greater than the frequency of serial ports display screen two-dimensional code display image, such as the frequency of serial ports display screen two-dimensional code display image Rate is 10 frames/s, and the frequency of image acquisition device image is greater than 10 frames/s at this time, such as can be 60 frames/s, is simultaneously The image in 2 D code is identified convenient for external network server, improves the discrimination of image, the camera of image collecting device can be adopted Use high-definition camera.Time interval is adopted with specific reference to the frequency and image collecting device of serial ports display screen two-dimensional code display image The frequency for collecting image determines.
Further, in practical application, due to the frequency and image collector of serial ports display screen two-dimensional code display image The frequency for setting acquisition image is all higher, shakes if there is a side because of unstable in image acquisition process, can all influence The quality of Image Acquisition, therefore serial ports display screen can be fixed with image collecting device, for example, can by serial ports display screen with Image collecting device is encapsulated in two dimensional code transmitting device, to fix the position of serial ports display screen and image collecting device, is improved The quality of Image Acquisition, and then improve the accuracy of data identification.It should be noted that image collecting device is aobvious in acquisition serial ports It is first initialized before image in 2 D code in display screen.
S320, data in the image in 2 D code are identified and stored.
Wherein, the data are text data or TCP data.Specifically, after external network server receives image in 2 D code, by Identification module is identified to extract format data, when data are text data, extracts the first format data, the respectively Two format datas and third format data extract the 4th format data, and will extract when data are TCP data Format data storage to specified region.Identification module in embodiment compares consumption cpu resource, to mainboard and CPU Can be more demanding, to guarantee that the recognition speed of two dimensional code is higher than the speed of image acquisition device image in 2 D code, such as can To select open source module quirc as identification module.Further, serial ports shows that the image in 2 D code of screen display is usually coloured silk Chromatic graph picture, therefore need that colored image in 2 D code is first converted into artwork master before identifying image in 2 D code, specifically Conversion method can refer to the prior art, details are not described herein again.
In actual transmissions, it is possible that channeling bit between the frame and frame of image in 2 D code, cause it is possible that channeling bit, figure The top half of a frame and the lower half portion of another frame are captured in moment as acquisition device, causes the format data obtained wrong Accidentally, in order to obtain accurate data, external network server is after extracting corresponding format data, according to format data meter It calculates corresponding check code and is compared with the check code that it is carried, to separate the format data to make mistake, obtained correct Format data.Further, two are shown since the frequency of image acquisition device image in 2 D code is greater than serial ports display screen The frequency of code image is tieed up, therefore has the case where serial number repeats in received format data, can be carried out at this time according to serial number Deduplication processing.
S330, when stored data fit sends condition, it is whole that the stored data are sent to the outer net End.
Specifically, the condition of transmission can be set according to actual needs, such as it can be and obtain whole numbers in external network server According to rear instant transmission, can also can also be sent according to the demand of outer network termination with sending at regular intervals.For example, working as When data are text data, external network server successively obtain the text path of text data, size text, text read-write properties, At this time local file is written in content of text by text access time, text modification time and content of text, and is arranged corresponding It text read-write properties, text access time and text modification time, can be complete according to specific transmission condition after being fully completed At transmission.
Specifically, intranet server can add corresponding serial number in each data fragmentation, for example, above-described embodiment 90, 91 and 92 etc., show that data are sent completely when whole serial numbers are sent according to the ascending progress of serial number when transmission. A kind of data transmission method that the embodiment of the present invention three provides is applied to external network server, by with setting time interval acquiring The image in 2 D code of described image acquisition device capture, identifys and stores the data in the image in 2 D code, when stored When data fit sends condition, the stored data are sent to the outer network termination, realize data by Intranet service The transmission of device external network server completes one-way data transfer, and by way of two dimensional code, provides one for the acquisition of image Kind convenience.
On the basis of the above embodiments, identifying and storing the data in the image in 2 D code can be embodied as:
Parsing obtains the format data of the image in 2 D code;
According to the action type information in the format data, the format data is stored.
Specifically, format data can be the first format data, the second format data, third format data or 4th format data, includes action type information in every kind of format data, and different action type information is corresponding different Format data, the relationship between action type information and format data can be embodied as:
The action type information is 1, identifies the first format data of corresponding text data;
The action type information is 2, identifies the second format data of corresponding text data;
The action type information is 0, identifies the third format data of corresponding text data;
The action type information is 3, identifies the 4th format data of corresponding TCP data.
According to action type information, storage formatting data can make the data obtained have more methodization, it is easier to obtain Initial data.
On the basis of the above embodiments, when action type information is 1, according to the operation class in the format data Type information, storage formatting data can be embodied as:
According to the label information creation text index table and storage region in the first format data, and first is formatted The first attribute information in data is stored in text index table.
Specifically, text index table is according to the label information creation in the first format data for storing the first lattice The table of formula data, after external network server receives total data and completes transmission, corresponding text index table can be deleted.Tool Body, when determining current format data is the first format data, size text, text path and label information are extracted, According to this label information, that is, MD5 value, text index table is created, size text and text path are stored in concordance list, and is created Big storage region as size text is built, for storing the content of text data, wherein the specific type of text index table It can select according to actual needs, such as can choose Hash table.
On the basis of the above embodiments, when action type information is 2, believed according to the action type in format data Breath, storage formatting data can be embodied as:
Associated first object text index table is searched according to the label information in the second format data, by the second format The second attribute information for changing data is stored in first object text index table.
It is understood that either the first format data, the second format data or third format data, Practical is all data text data, i.e. text path is identical, and MD5 value is calculated according to text path, therefore the first lattice Formula data, the second format data and third format data MD5 value having the same.First found according to MD5 value Target text concordance list is to be according to the text index table of the first format data creation, extracts the second format data at this time Text read-write properties, text access time and text modification time, and be stored in text index table.
On the basis of the above embodiments, when action type information is 0, according to the operation class in the format data Type information, storage formatting data can be embodied as:
Fragment encrypted characters string in third format data is decrypted, the initial data of fragment is obtained;
Associated second target text concordance list is searched according to the label information of third format data, and by the original of fragment Beginning data are stored in the storage region of the second target text concordance list direction.
Specifically, showing that current format data is third format data, at this time when action type information is 0 Label information, text offset information and the fragment encrypted characters string of third format data are extracted, and according to fragment encrypted characters The encryption rule of string is decrypted, and obtains the length of the initial data of fragment and the initial data of fragment, the i.e. text of fragment Content.Associated second target text concordance list, that is, text is searched according to the label information in third format data, that is, MD5 value Concordance list, and the initial data of fragment is stored in the storage region of text index table direction, the at this time file in storage region The length that offset increases the initial data of fragment shows text when document misregistration reaches the size text being recorded in concordance list The notebook data end of transmission, for example, size text is 800 bytes, the length of the initial data of fragment is 200 bytes, storage region In one fragment of every deposit, then text offset increase by 200, when text offset reach 800 when, show to be transmitted.It is tied in transmission File is integrally written according to text relative path in the storage region of storage content of text by Shu Hou, and with being recorded in text index Text read-write properties, text access time and text modification time in table, setting text read-write properties, text access time and The text modification time finally deletes text concordance list.
On the basis of the above embodiments, when action type information is 3, according to the operation class in the format data Type information, storage formatting data can be embodied as:
According to Intranet IP address of terminal information, Intranet terminal prot information and the TCP agent end in the 4th format data The mouth associated stream index table of information searching;
When determining there are when associated target data stream concordance list, by Intranet IP address of terminal information, Intranet terminal prot Information and TCP agent port information are stored in target data stream concordance list;
When associated target data stream concordance list is not present in determination, according to Intranet IP address of terminal information, interior network termination Port information and TCP agent port information create target data stream concordance list, and by Intranet IP address of terminal information, interior network termination Port information and TCP agent port information are stored in target data stream concordance list.
Specifically, stream index table is according to the Intranet IP address of terminal information in the 4th formula data, interior network termination Port information and TCP agent port information creation, for storing intranet IP address of terminal information, Intranet terminal prot information and The table of TCP agent port information can be Hash table, be not construed as limiting in embodiment to the concrete form of stream index table.Root Associated stream index table is searched according to Intranet IP address of terminal information, Intranet terminal prot information and TCP agent port information Process with according to label information search the process of first object text index table it is similar, details are not described herein again.In practical application, It, only need to be by corresponding Intranet IP address of terminal information, Intranet terminal prot information and TCP if target data stream concordance list exists Proxy port information deposit target data stream concordance list need to be created first if target data stream concordance list is not present, specific to create Process embodiments are not construed as limiting.
Further, in the 4th format data further include: flow data classification and session data offset, when flow data point When class is 2, expression current format data are session data, that is, it is whole to need for original TCP data to be sent to specified outer net End indicates no longer to carry out TCP data transmission when flow data is classified as 3.
Specifically, when flow data is classified as 2, if the Intranet IP address of terminal recorded in target data stream concordance list at this time Information, Intranet terminal prot information and TCP agent port information and the connection of external network server and outer net terminal prot have been deposited Fragment original contents are then being directly transmitted to specified outer net terminal prot, and update the session in target data stream concordance list Data-bias, if connection is not present, reference table 1, table 1 is port mapping table, and external network server searches end according to TCP agent port Mouth mapping table, obtains outer net IP address of terminal and port, and establish connection, wherein port mapping table includes that the connection of port is closed The information such as system and the corresponding IP address in port, are pre-stored in external network server.When flow data is classified as 3, according to mesh The link information recorded in mark stream index table disconnects signal to the miniport service transmission of specified outer network termination, and deletes Except the target data stream concordance list.
1 port mapping table of table
Serial number TCP agent port Outer net IP address of terminal Outer net terminal prot
1 9099 10.10.0.100 9999
Example IV
Fig. 6 is a kind of structure chart for data transmission device that the embodiment of the present invention four provides, and is configured at intranet server, institute It states intranet server to connect with interior network termination and serial ports display screen respectively, which can execute above-described embodiment Data transmission method applied to intranet server.Specifically, the data transmission device includes:
Generation module 410, the data for sending to the interior network termination carry out fragment and obtain at least one data fragmentation, The fragment image in 2 D code of the data fragmentation is generated, the data are text data or TCP data;
Display module 420, for the fragment image in 2 D code to be sequentially displayed in the serial ports display screen.
A kind of data transmission device that the embodiment of the present invention four provides is carried out by the data sent to the interior network termination Fragment obtains at least one data fragmentation, generates the fragment image in 2 D code of the data fragmentation;By the fragment two dimensional code figure Picture is sequentially displayed on the serial ports display screen, and the transmission of data is carried out by way of image in 2 D code, simple and convenient, and It ensure that the consistency and real-time of information.
On the basis of the above embodiments, when the data are text data, the data transmission device further include:
Information image in 2 D code generation module, for generating information image in 2 D code according to the attribute information of the data, And show the information image in 2 D code on the serial ports display screen, the attribute information includes: that text path, text are big Small, text read-write properties, text access time and text modification time.
On the basis of the above embodiments, the information image in 2 D code generation module includes:
Selecting unit, for selecting the text path and the size text as the first attribute information, the text Read-write properties, the text access time and the text modification time are as the second attribute information;
First format data forms unit, for the first data format based on setting, forms the first attribute letter First format data of breath;
Second format data forms unit, for the second data format based on setting, forms the second attribute letter Second format data of breath;
Generation unit generates first format data corresponding first for the two-dimensional encoded rule based on setting Information image in 2 D code and the corresponding second information image in 2 D code of second format data;
In first format data and the second format data respectively include: action type information and label information.
On the basis of the above embodiments, when the data are text data, generation module 410 includes:
First determination unit, the information carrying capabilities for being transmitted based on two dimensional code determine the fragment size of the data;
First forms unit, for carrying out fragment to the data according to the fragment size, forms at least one data Fragment;
First encryption unit encrypts each data fragmentation for the encryption rule based on setting, obtains corresponding fragment Encrypted characters string;
It is corresponding to generate the third format data for the two-dimensional encoded rule based on setting for first generation unit First fragment image in 2 D code;
In the third format data respectively include: respective fragment encrypted characters string, action type information and label Information.
On the basis of the above embodiments, when the data are TCP data, generation module 410 includes:
Second determination unit, the information carrying capabilities for being transmitted based on two dimensional code determine the fragment size of the data;
Second forms unit, for carrying out fragment to the data according to the fragment size, forms at least one data Fragment;
Second encryption unit encrypts each data fragmentation for the encryption rule based on setting, obtains corresponding fragment Encrypted characters string;
Second generation unit forms the 4th of the fragment encrypted characters string for the 4th data format based on setting Format data;
In 4th format data respectively include: respective fragment encrypted characters string, action type information, TCP generation Manage port information, Intranet IP address of terminal information and Intranet terminal prot information.
What the executable the above embodiment of the present invention of the data transmission device that the embodiment of the present invention four provides provided is applied to interior The data transmission method of network server has the corresponding functional module of execution method and beneficial effect.
Embodiment five
Fig. 7 is a kind of structure chart for data transmission device that the embodiment of the present invention five provides, and is configured at external network server, institute It states external network server to connect with outer network termination and image collecting device respectively, which can execute above-described embodiment The data transmission method applied to external network server.Specifically, the data transmission device includes:
Obtain module 510, the image in 2 D code for capturing with setting time interval acquiring described image acquisition device, institute Image in 2 D code is stated to be shown on the serial ports display screen being connected with intranet server;
Memory module 520 for identification and stores the data in the image in 2 D code, the data be text data or TCP data;
Sending module 530, for when stored data fit sends condition, the stored data to be sent to The outer network termination.
A kind of data transmission device that the embodiment of the present invention five provides is applied to external network server, by with setting time The image in 2 D code of interval acquiring described image acquisition device capture, identifys and stores the data in the image in 2 D code, when When stored data fit sends condition, the stored data are sent to the outer network termination, realize data by The transmission of intranet server external network server completes one-way data transfer, and by way of two dimensional code, is the acquisition of image Provide a kind of convenience.
On the basis of the above embodiments, memory module 520 includes:
Resolution unit, for parsing the format data for obtaining the image in 2 D code;
Storage unit, for storing the format data according to the action type information in the format data.
On the basis of the above embodiments,
The action type information is 1, identifies the first format data of corresponding text data;
The action type information is 2, identifies the second format data of corresponding text data;
The action type information is 0, identifies the third format data of corresponding text data;
The action type information is 3, identifies the 4th format data of corresponding TCP data.
On the basis of the above embodiments, when the action type information is 1, storage unit includes:
Subelement is created, for creating text index table and storage according to the label information in first format data Region, and the first attribute information in first format data is stored in the text index table.
On the basis of the above embodiments, when the action type information is 2, storage unit includes:
First searches subelement, for searching associated first mesh according to the label information in second format data Text index table is marked, the second attribute information of second format data is stored in the first object text index table.
On the basis of the above embodiments, when the action type information is 0, storage unit includes:
Subelement is decrypted, for the fragment encrypted characters string in the third format data to be decrypted, obtains and divides The initial data of piece;
Second searches subelement, for searching associated second target according to the label information of the third format data Text index table, and the initial data of the fragment is stored in the storage region that the second target text concordance list is directed toward.
On the basis of the above embodiments, when the action type information is 3, storage unit includes:
Third searches subelement, for according to Intranet IP address of terminal information, the Intranet in the 4th format data Terminal prot information and TCP agent port information search associated stream index table;
Storing sub-units, for when determining there are when associated target data stream concordance list, by the interior network termination IP Location information, the Intranet terminal prot information and the TCP agent port information are stored in the target data stream concordance list;
Subelement is created, is used for when associated target data stream concordance list is not present in determination, according to the interior network termination IP address information, the Intranet terminal prot information and the TCP agent port information create target data stream concordance list, and will The Intranet IP address of terminal information, the Intranet terminal prot information and the TCP agent port information are stored in the mesh Mark stream index table.
The application that the above embodiment of the present invention provides can be performed in a kind of data transmission device that the embodiment of the present invention five provides In the data transmission method of external network server, have the corresponding functional module of execution method and beneficial effect.
Embodiment six
Fig. 8 is a kind of structure chart for intranet server that the embodiment of the present invention six provides.With reference to Fig. 8, the intranet server It include: processor 610, memory 620, input unit 630 and output device 640, wherein the quantity of processor 610 can be one A or multiple, Fig. 8 is by taking a processor 610 as an example.Processor 610, memory 620, input unit 630 and output device 640 It can be connected by bus or other modes, in Fig. 8 for being connected by bus.
Memory 620 is used as a kind of computer readable storage medium, can be used for storing software program, journey can be performed in computer Sequence and module, such as the corresponding program instruction/module of data transmission method in the embodiment of the present invention.Processor 610 passes through operation Software program, instruction and module stored in memory, thereby executing the various function application and data processing of terminal, Realize the above-mentioned data transmission method applied to intranet server.
Memory 620 mainly includes storing program area and storage data area, wherein storing program area can store operation system Application program needed for system, at least one function;Storage data area, which can be stored, uses created data etc. according to terminal.This Outside, memory 620 may include high-speed random access memory, can also include nonvolatile memory, for example, at least one Disk memory, flush memory device or other non-volatile solid state memory parts.In some instances, memory 620 can be into one Step includes the memory remotely located relative to processor, these remote memories can pass through network connection to terminal.It is above-mentioned The example of network includes but is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Input unit 630 can be used for receiving the number or character information of input, and generate and user setting and function Control related key signals input.Output device 640 may include that display screen etc. shows the audios such as equipment, loudspeaker and buzzer Equipment.
The computer equipment and the number provided by the above embodiment applied to intranet server that the embodiment of the present invention six provides Belong to same inventive concept according to transmission method, the technical detail of detailed description not can be found in above-described embodiment in the present embodiment, And the present embodiment has the identical beneficial effect of data transmission method for executing and being applied to intranet server.
Embodiment seven
Fig. 9 is a kind of structure chart for external network server that the embodiment of the present invention seven provides.With reference to Fig. 9, the computer equipment It include: processor 710, memory 720, input unit 730 and output device 740, wherein the quantity of processor 710 can be one A or multiple, Fig. 9 is by taking a processor 710 as an example.Processor 710, memory 720, input unit 730 and output device 740 It can be connected by bus or other modes, in Fig. 9 for being connected by bus.
Memory 720 is used as a kind of computer readable storage medium, can be used for storing software program, journey can be performed in computer Sequence and module, such as the corresponding program instruction/module of data transmission method in the embodiment of the present invention.Processor 710 passes through operation Software program, instruction and module stored in memory, thereby executing the various function application and data processing of terminal, Realize the above-mentioned data transmission method applied to external network server.
Memory 720 mainly includes storing program area and storage data area, wherein storing program area can store operation system Application program needed for system, at least one function;Storage data area, which can be stored, uses created data etc. according to terminal.This Outside, memory 720 may include high-speed random access memory, can also include nonvolatile memory, for example, at least one Disk memory, flush memory device or other non-volatile solid state memory parts.In some instances, memory 720 can be into one Step includes the memory remotely located relative to processor, these remote memories can pass through network connection to terminal.It is above-mentioned The example of network includes but is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Input unit 730 can be used for receiving the number or character information of input, and generate and user setting and function Control related key signals input.Output device 740 may include that display screen etc. shows the audios such as equipment, loudspeaker and buzzer Equipment.
The external network server and the number provided by the above embodiment applied to external network server that the embodiment of the present invention seven provides Belong to same inventive concept according to transmission method, the technical detail of detailed description not can be found in above-described embodiment in the present embodiment, And the present embodiment has the identical beneficial effect of data transmission method for executing and being applied to external network server.
Embodiment eight
The embodiment of the present invention eight also provides a kind of computer storage medium, is stored thereon with computer program, the program quilt Realize that the above embodiment of the present invention such as is applied to intranet server data transmission method when processor executes.
Certainly, a kind of storage medium comprising computer executable instructions, computer provided by the embodiment of the present invention The data transmission method applied to intranet server that executable instruction is not limited to the described above operates, and the present invention can also be performed Applied to the relevant operation in the data transmission method of intranet server provided by above-described embodiment, and has corresponding function And beneficial effect.
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the present invention It can be realized by software and required common hardware, naturally it is also possible to which by hardware realization, but in many cases, the former is more Good embodiment.Based on this understanding, technical solution of the present invention substantially in other words contributes to the prior art Part can be embodied in the form of software products, which can store in computer readable storage medium In, floppy disk, read-only memory (Read-Only Memory, ROM), random access memory (Random such as computer Access Memory, RAM), flash memory (FLASH), hard disk or CD etc., including some instructions are with so that a computer is set Standby (can be robot, personal computer, server or the network equipment etc.) executes answers described in the above embodiment of the present invention Data transmission method for intranet server.
Embodiment nine
The embodiment of the present invention nine also provides a kind of computer storage medium, is stored thereon with computer program, the program quilt Realize that the above embodiment of the present invention such as is applied to external network server data transmission method when processor executes.
Certainly, a kind of storage medium comprising computer executable instructions, computer provided by the embodiment of the present invention The data transmission method applied to external network server that executable instruction is not limited to the described above operates, and the present invention can also be performed Applied to the relevant operation in the data transmission method of external network server provided by above-described embodiment, and has corresponding function And beneficial effect.
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the present invention It can be realized by software and required common hardware, naturally it is also possible to which by hardware realization, but in many cases, the former is more Good embodiment.Based on this understanding, technical solution of the present invention substantially in other words contributes to the prior art Part can be embodied in the form of software products, which can store in computer readable storage medium In, floppy disk, read-only memory (Read-Only Memory, ROM), random access memory (Random such as computer Access Memory, RAM), flash memory (FLASH), hard disk or CD etc., including some instructions are with so that a computer is set Standby (can be robot, personal computer, server or the network equipment etc.) executes answers described in the above embodiment of the present invention Data transmission method for external network server.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.

Claims (18)

1. a kind of data transmission method, is applied to intranet server, the intranet server is aobvious with interior network termination and serial ports respectively Display screen connection characterized by comprising
Fragment is carried out to the data that the interior network termination is sent and obtains at least one data fragmentation, generates point of the data fragmentation Piece image in 2 D code, the data are text data or TCP data;
The fragment image in 2 D code is sequentially displayed on the serial ports display screen.
2. data transmission method according to claim 1, which is characterized in that when the data are text data, also wrap It includes:
Information image in 2 D code is generated according to the attribute information of the data, and the information image in 2 D code is shown described On serial ports display screen, the attribute information includes: text path, size text, text read-write properties, text access time and text This modification time.
3. data transmission method according to claim 2, which is characterized in that described raw according to the attribute information of the data At information image in 2 D code, comprising:
Select the text path and the size text as the first attribute information, the text read-write properties, the text Access time and the text modification time are as the second attribute information;
The first data format based on setting forms the first format data of first attribute information;
The second data format based on setting forms the second format data of second attribute information;
Two-dimensional encoded rule based on setting, generate the corresponding first information image in 2 D code of first format data and The corresponding second information image in 2 D code of second format data;
In first format data and the second format data respectively include: action type information and label information.
4. data transmission method according to claim 1, which is characterized in that described when the data are text data Fragment is carried out to the data and obtains at least one data fragmentation, generates the fragment image in 2 D code of the data fragmentation, comprising:
Based on the information carrying capabilities of two dimensional code transmission, the fragment size of the data is determined;
Fragment is carried out to the data according to the fragment size, forms at least one data fragmentation;
Encryption rule based on setting encrypts each data fragmentation, obtains corresponding fragment encrypted characters string;
Third data format based on setting forms the third format data of the fragment encrypted characters string;
Two-dimensional encoded rule based on setting generates the corresponding first fragment image in 2 D code of the third format data;
In the third format data respectively include: respective fragment encrypted characters string, action type information and label information.
5. data transmission method according to claim 1, which is characterized in that described right when the data are TCP data The data carry out fragment and obtain at least one data fragmentation, generate the fragment image in 2 D code of the data fragmentation, comprising:
Based on the information carrying capabilities of two dimensional code transmission, the fragment size of the data is determined;
Fragment is carried out to the data according to the fragment size, forms at least one data fragmentation;
Encryption rule based on setting encrypts each data fragmentation, obtains corresponding fragment encrypted characters string;
The 4th data format based on setting forms the 4th format data of the fragment encrypted characters string;
Two-dimensional encoded rule based on setting generates the corresponding second fragment image in 2 D code of the 4th format data;
In 4th format data respectively include: respective fragment encrypted characters string, action type information, TCP agent end Message breath, Intranet IP address of terminal information and Intranet terminal prot information.
6. a kind of data transmission method, is applied to external network server, the external network server is adopted with outer network termination and image respectively Acquisition means connection characterized by comprising
With setting time interval acquiring described image acquisition device capture image in 2 D code, the image in 2 D code be shown in On the connected serial ports display screen of intranet server;
The data in the image in 2 D code are identified and stored, the data are text data or TCP data;
When stored data fit sends condition, the stored data are sent to the outer network termination.
7. data transmission method according to claim 6, which is characterized in that described to identify and store the image in 2 D code In data, comprising:
Parsing obtains the format data of the image in 2 D code;
According to the action type information in the format data, the format data is stored.
8. data transmission method according to claim 7, which is characterized in that
The action type information is 1, identifies the first format data of corresponding text data;
The action type information is 2, identifies the second format data of corresponding text data;
The action type information is 0, identifies the third format data of corresponding text data;
The action type information is 3, identifies the 4th format data of corresponding TCP data.
9. data transmission method according to claim 8, which is characterized in that described when the action type information is 1 According to the action type information in the format data, the format data is stored, comprising:
According to the label information creation text index table and storage region in first format data, and by first lattice The first attribute information in formula data is stored in the text index table.
10. data transmission method according to claim 8, which is characterized in that when the action type information is 2, institute It states according to the action type information in the format data, stores the format data, comprising:
Associated first object text index table is searched according to the label information in second format data, by described second Second attribute information of format data is stored in the first object text index table.
11. data transmission method according to claim 8, which is characterized in that when the action type information is 0, institute It states according to the action type information in the format data, stores the format data, comprising:
Fragment encrypted characters string in the third format data is decrypted, the initial data of fragment is obtained;
Associated second target text concordance list is searched according to the label information of the third format data, and by the fragment Initial data be stored in the storage region that the second target text concordance list is directed toward.
12. data transmission method according to claim 8, which is characterized in that when the action type information is 3, institute It states according to the action type information in the format data, stores the format data, comprising:
According to Intranet IP address of terminal information, Intranet terminal prot information and the TCP agent end in the 4th format data The mouth associated stream index table of information searching;
When determining there are when associated target data stream concordance list, by the Intranet IP address of terminal information, the interior network termination Port information and the TCP agent port information are stored in the target data stream concordance list;
When associated target data stream concordance list is not present in determination, according to the Intranet IP address of terminal information, the Intranet Terminal prot information and the TCP agent port information create target data stream concordance list, and by the Intranet IP address of terminal Information, the Intranet terminal prot information and the TCP agent port information are stored in the target data stream concordance list.
13. a kind of data transmission device, is configured at intranet server, the intranet server is aobvious with interior network termination and serial ports respectively Display screen connection characterized by comprising
Generation module, the data for sending to the interior network termination carry out fragment and obtain at least one data fragmentation, generate institute The fragment image in 2 D code of data fragmentation is stated, the data are text data or TCP data;
Display module, for the fragment image in 2 D code to be sequentially displayed in the serial ports display screen.
14. a kind of data transmission device, is configured at external network server, the external network server is adopted with outer network termination and image respectively Acquisition means connection characterized by comprising
Obtain module, the image in 2 D code for capturing with setting time interval acquiring described image acquisition device, the two dimension Code image is shown on the serial ports display screen being connected with intranet server;
Memory module for identification and stores the data in the image in 2 D code, and the data are text data or TCP number According to;
Sending module, for the stored data being sent to described outer when stored data fit sends condition Network termination.
15. a kind of intranet server characterized by comprising
One or more processors;
Memory, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processors are real Now such as data transmission method as claimed in any one of claims 1 to 5.
16. a kind of external network server characterized by comprising
One or more processors;
Memory, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processors are real The now data transmission method as described in any in claim 6-12.
17. a kind of computer storage medium, is stored thereon with computer program, which is characterized in that the program is executed by processor Shi Shixian data transmission method for example as claimed in any one of claims 1 to 5.
18. a kind of computer storage medium, is stored thereon with computer program, which is characterized in that the program is executed by processor Data transmission method of the Shi Shixian as described in any in claim 6-12.
CN201811280649.8A 2018-10-30 2018-10-30 Data transmission method, device, server and computer storage medium Active CN109451006B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811280649.8A CN109451006B (en) 2018-10-30 2018-10-30 Data transmission method, device, server and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811280649.8A CN109451006B (en) 2018-10-30 2018-10-30 Data transmission method, device, server and computer storage medium

Publications (2)

Publication Number Publication Date
CN109451006A true CN109451006A (en) 2019-03-08
CN109451006B CN109451006B (en) 2021-07-09

Family

ID=65549143

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811280649.8A Active CN109451006B (en) 2018-10-30 2018-10-30 Data transmission method, device, server and computer storage medium

Country Status (1)

Country Link
CN (1) CN109451006B (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109934039A (en) * 2019-03-19 2019-06-25 杨俊佳 Opposite scanning means, the means of communication and computer readable storage medium
CN111049823A (en) * 2019-12-10 2020-04-21 浩云科技股份有限公司 Physical isolation transmission equipment and method based on two-dimension code
CN111177763A (en) * 2020-01-03 2020-05-19 玉溪市电子政务内网信息技术中心 Two-dimensional code electronic encryption and decryption management system and method for file multiple encryption
CN111240893A (en) * 2019-12-26 2020-06-05 曙光信息产业(北京)有限公司 Backup and recovery management method and system based on data stream fragmentation technology
CN112580062A (en) * 2019-09-27 2021-03-30 厦门网宿有限公司 Data consistency checking method and data uploading and downloading device
CN113342845A (en) * 2021-06-23 2021-09-03 乐刷科技有限公司 Data synchronization method, computer device and readable storage medium
CN113557529A (en) * 2019-03-12 2021-10-26 微软技术许可有限责任公司 Hybrid two-dimensional bar code reader
CN113557530A (en) * 2019-03-12 2021-10-26 微软技术许可有限责任公司 Hybrid two-dimensional barcode and hybrid two-dimensional barcode generator
CN113673651A (en) * 2021-09-23 2021-11-19 上海凌瓴信息科技有限公司 Structured product information management system and method based on two-dimensional code technology
CN113890754A (en) * 2021-09-26 2022-01-04 中国联合网络通信集团有限公司 Data transmission method, terminal, system and readable storage medium
CN114039969A (en) * 2021-11-05 2022-02-11 光大科技有限公司 Data transmission method and device
WO2022048422A1 (en) * 2020-09-02 2022-03-10 北京锐安科技有限公司 Data processing method and apparatus, device, and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103268461A (en) * 2013-04-25 2013-08-28 浙江成功软件开发有限公司 Intranet-extranet physical isolation data exchange method based on QR (quick response) code
CN105847290A (en) * 2016-05-17 2016-08-10 江苏飞搏软件股份有限公司 Data transmission method and data transmission system for physical isolation network
CN103259781B (en) * 2013-04-07 2016-12-28 内蒙古华腾科技股份有限公司 Data transmission system based on image recognition
CN106973064A (en) * 2017-04-28 2017-07-21 南京佳普科技有限公司 A kind of inside and outside network physical isolated data transmitting device
CN107517142A (en) * 2017-10-10 2017-12-26 朱汉源 A kind of system and method that remote maintenance is realized by Quick Response Code

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103259781B (en) * 2013-04-07 2016-12-28 内蒙古华腾科技股份有限公司 Data transmission system based on image recognition
CN103268461A (en) * 2013-04-25 2013-08-28 浙江成功软件开发有限公司 Intranet-extranet physical isolation data exchange method based on QR (quick response) code
CN105847290A (en) * 2016-05-17 2016-08-10 江苏飞搏软件股份有限公司 Data transmission method and data transmission system for physical isolation network
CN106973064A (en) * 2017-04-28 2017-07-21 南京佳普科技有限公司 A kind of inside and outside network physical isolated data transmitting device
CN107517142A (en) * 2017-10-10 2017-12-26 朱汉源 A kind of system and method that remote maintenance is realized by Quick Response Code

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113557529A (en) * 2019-03-12 2021-10-26 微软技术许可有限责任公司 Hybrid two-dimensional bar code reader
CN113557530B (en) * 2019-03-12 2024-05-31 微软技术许可有限责任公司 Hybrid two-dimensional bar code and hybrid two-dimensional bar code generator
CN113557529B (en) * 2019-03-12 2024-05-24 微软技术许可有限责任公司 Mixed two-dimensional bar code reader
CN113557530A (en) * 2019-03-12 2021-10-26 微软技术许可有限责任公司 Hybrid two-dimensional barcode and hybrid two-dimensional barcode generator
CN109934039A (en) * 2019-03-19 2019-06-25 杨俊佳 Opposite scanning means, the means of communication and computer readable storage medium
CN112580062A (en) * 2019-09-27 2021-03-30 厦门网宿有限公司 Data consistency checking method and data uploading and downloading device
CN111049823B (en) * 2019-12-10 2022-08-30 浩云科技股份有限公司 Physical isolation transmission equipment and method based on two-dimension code
CN111049823A (en) * 2019-12-10 2020-04-21 浩云科技股份有限公司 Physical isolation transmission equipment and method based on two-dimension code
CN111240893A (en) * 2019-12-26 2020-06-05 曙光信息产业(北京)有限公司 Backup and recovery management method and system based on data stream fragmentation technology
CN111240893B (en) * 2019-12-26 2023-07-18 曙光信息产业(北京)有限公司 Backup and restore management method and system based on data stream slicing technology
CN111177763A (en) * 2020-01-03 2020-05-19 玉溪市电子政务内网信息技术中心 Two-dimensional code electronic encryption and decryption management system and method for file multiple encryption
WO2022048422A1 (en) * 2020-09-02 2022-03-10 北京锐安科技有限公司 Data processing method and apparatus, device, and storage medium
CN113342845A (en) * 2021-06-23 2021-09-03 乐刷科技有限公司 Data synchronization method, computer device and readable storage medium
CN113342845B (en) * 2021-06-23 2024-02-20 乐刷科技有限公司 Data synchronization method, computer device and readable storage medium
CN113673651A (en) * 2021-09-23 2021-11-19 上海凌瓴信息科技有限公司 Structured product information management system and method based on two-dimensional code technology
CN113890754A (en) * 2021-09-26 2022-01-04 中国联合网络通信集团有限公司 Data transmission method, terminal, system and readable storage medium
CN114039969A (en) * 2021-11-05 2022-02-11 光大科技有限公司 Data transmission method and device

Also Published As

Publication number Publication date
CN109451006B (en) 2021-07-09

Similar Documents

Publication Publication Date Title
CN109451006A (en) A kind of data transmission method, device, server and computer storage medium
US9455892B2 (en) Data loss monitoring of partial data streams
CN104680077B (en) Method for encrypting picture, method for viewing picture, system and terminal
CN108133008A (en) The processing method of business datum, device, equipment and storage medium in database
WO2016124074A1 (en) Information processing method, client, server and computer storage medium
WO2020199603A1 (en) Server vulnerability detection method and apparatus, device, and storage medium
CN112559463B (en) Compressed file processing method and device
CN109510738B (en) Communication link test method and device
CN109495492A (en) Communication system for intelligent water utilities industry
CN104038654B (en) Relay, client terminal device and method
WO2024061005A1 (en) Read processing method and apparatus for audio and video buffer
CN107888989A (en) A kind of interactive system and method live based on internet
CN111552626A (en) Method and system for testing developed system using real transaction data
CN108696713A (en) Safety detecting method, device and the test equipment of code stream
WO2023045365A1 (en) Video quality evaluation method and apparatus, electronic device, and storage medium
CN112019642A (en) Audio uploading method, device, equipment and storage medium
CN101267337A (en) Network management system and method of managing the same
CN110149358A (en) Data transmission method, system and device
CN112711768B (en) Core data trajectory portrait generation method and system based on artificial intelligence
CN116915767B (en) Document transmission method and device
CN204392305U (en) A kind of DTU data service system based on GPRS communication
CN117478685B (en) Group control device identification method, device, equipment and readable storage medium
CN114897112B (en) Diagnostic data transmission method based on two-dimension code, computer equipment and storage medium
CN116910330B (en) Financial archive management method, system, electronic equipment and storage medium
CN115600847B (en) Electronic cigarette after-sale inspection system

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