CN101018106A - A method for transferring securely a large number of data between the maintenance terminal and background device - Google Patents

A method for transferring securely a large number of data between the maintenance terminal and background device Download PDF

Info

Publication number
CN101018106A
CN101018106A CN 200610144224 CN200610144224A CN101018106A CN 101018106 A CN101018106 A CN 101018106A CN 200610144224 CN200610144224 CN 200610144224 CN 200610144224 A CN200610144224 A CN 200610144224A CN 101018106 A CN101018106 A CN 101018106A
Authority
CN
China
Prior art keywords
message
data
maintenance terminal
background devices
transmission
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
CN 200610144224
Other languages
Chinese (zh)
Other versions
CN100576787C (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 Jiaxun Feihong Electrical Co Ltd
Original Assignee
Beijing Jiaxun Feihong Electrical 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 Jiaxun Feihong Electrical Co Ltd filed Critical Beijing Jiaxun Feihong Electrical Co Ltd
Priority to CN200610144224A priority Critical patent/CN100576787C/en
Publication of CN101018106A publication Critical patent/CN101018106A/en
Application granted granted Critical
Publication of CN100576787C publication Critical patent/CN100576787C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)
  • Computer And Data Communications (AREA)

Abstract

The related massive data safe transmission method between a maintenance terminal and background device comprises: segmenting the objective data, adding ACK message, and ensuring all information transmission success; if there is failure, using the terminal to know the failure, and selecting re-transmission or temporarily stopping. This invention improves data transmission security and reliability.

Description

A kind of method of between maintenance terminal and background devices, carrying out the transmission of big data quantity safety
Technical field
The present invention relates to communication technical field, relate in particular to a kind of big data quantity safety transfer method technical field of between maintenance terminal and background devices, carrying out.
Background technology
Using serial ports to carry out message transmits owing to it is simple to operate, be not subjected to the influence of the network equipment, transmit data and advantages such as message packet loss phenomenon can not occur, be particularly suitable for dispatching patchers such as railway, army to the data safe requirement, though this kind message transfer method has obtained in the communications industry field in modern times using widely, it still exists following shortcoming:
1, owing to the reason of serial ports tranmission techniques self, length to data and message has certain restriction, like this, when occurring once transmitting the message of big data quantity, for fear of obstruction to other message, serial ports can limit this message and transmit, and therefore, the transmission of big data quantity requires all can be restricted and to restrict.
2, the message sink situation is just to judge after all message all are sent completely, and like this, when carrying out the big data quantity transmission, the user is waited for just find later the Data Receiving failure for a long time, thereby can waste a lot of times.
Summary of the invention
The object of the present invention is to provide a kind of method that guarantees that big data quantity safety transmits, thereby finish effective transmission and operation in the transport process control of maintenance terminal back-end data message.
Technical scheme of the present invention is as follows: a kind of method of carrying out the transmission of big data quantity safety between maintenance terminal and background devices, comprise: user 1, maintenance terminal 2, background devices 3, database 101, wherein maintenance terminal 2 is a computer, background devices 3 is all equipment of supporting to realize by serial communication communication function, and the step of carrying out the big data quantity safety transfer method between maintenance terminal 2 and background devices 3 is as follows:
1. preparation process, the preparation that begins to transmit big data quantity message, comprise from database 101 read setting section length N, will send the location parameter s2 that successful positions parameter s 1 and needs send and all be made as 0, prepare to carry out next step;
2. reading of data step, N bar data before the location parameter s2 that maintenance terminal 2 sends from needs reads backward, the actual data number that reads is n, carries out next step;
3. determining step 1, is 0 if the actual data that read are counted n, represents then that all data have transmitted to finish, and then video data transmits to finish and skip to and carries out end step 12, otherwise, carry out next step;
4. forwarding step, maintenance terminal 2 sends the message of n bar data-message and query messages transmission situation to background devices 3, the message format of query messages reception condition is: type of message, the message count that has sent, the message count that has sent is n, to need the value of the location parameter s2 that sends to be offset n backward simultaneously, carry out next step;
5. waiting step after data-message and query messages are sent completely, start timer M and waits for the message that receives background devices 3, prepares to carry out next step;
6. determining step, if before timer M is overtime, receive the message that background devices 3 is replied, M is not overtime for the expression timer, and maintenance terminal 2 is normal to background devices 3 transmission n bar data-messages and query messages transmission situation, then message is given simulation return phase 8 and handles; Otherwise expression is then carried out next step because communication port or other reasons do not receive the answer message of background devices 3;
7. simulation return phase, maintenance terminal 2 simulations generate a piece of news, message format is identical with the answer of background devices 3 with type of message, form is: type of message, reception data result, the message count of transmission, the message count that receives, when being the message assignment, will receiving data result and be made as failure, the message count of transmission and receive message count and all be made as 0, with expression is that message sink is overtime, carries out next step;
8. determining step, 2 pairs of message that receive of maintenance terminal are handled, and this message comprises that background devices 3 is actual that reply local because the message of overtime simulation, timeing closing device M simultaneously with maintenance terminal 2.If receiving data result is successfully, then carry out next step, show and waiting step 10 otherwise carry out;
9. circulation step will send the value that successful positions parameter s 1 is set to s2, and reading of data step 2 is carried out in circulation then;
10. demonstration and waiting step, demonstration receive data result for failing and failure cause, comprise: a kind of during the wrong or message count that sends of the data of receive time-out, transmission and the message count that receives are not inconsistent, point out user 1 to carry out the selection of " retransferring " and " cancellation " simultaneously, wait for that then user 1 selects, if user 1 selects " retransferring ", then carry out circulation step 11, if select " cancellation ", then video data transmits failure, carries out end step 12;
11. the value of the location parameter s2 that circulation step, needs send need to be set to the value of the location parameter s1 that sends, reading of data step 2 is carried out in circulation then;
12. end step, video data transmits the result, finishes.
The described span that has sent successful positions parameter s 1 is 0-S, wherein S is the maximum of storing the field of expression location parameter in the table that sends data in the database, this value will provide in the embodiment of back and specify, needing the span of the location parameter s2 of transmission is 0-S, wherein S is the maximum of storing the field of expression location parameter in the table that sends data in the database, in the step 7 in order to simulate message, can generate the message content that an array representation receives, then with related news field difference assignment in the array.
Owing to adopted above technical scheme, the present invention has following distinguishing feature:
1, transmits by data-message is carried out segmentation according to the length that is provided with, can reduce a large amount of message of serial communication equipment are impacted, can effectively improve the success rate that message transmits;
2, by the selection after the message transmission failure, can continue to transmit according to the position of failure, realization guarantees that to the control that message transmits situation the safety of all message transmits.
If 3 have message to transmit failure scenarios, can in time feed back to the user, reduce the time of operation awaits, improve transmission efficiency.
Description of drawings
Fig. 1 is the topological structure figure that basic maintenance terminal 2 uses serial ports to communicate by letter with background devices 3;
Fig. 2 is the process chart that the concrete enforcement of the present invention provides.
Wherein, 1-user, 2-maintenance terminal, 3-background devices.
Embodiment
The invention provides a kind of the solution and transmit the continuous transmission method that interrupts easily in the big data quantity message process and cause the data transmission to be failed, the section length that this method is provided with according to system, the message gradation that needs are transmitted transmits, after the message of every transmission certain-length, send the message of an inquiry transmission situation to background devices, receive successfully if illustrate in the message that background devices is replied, then acquiescence proceeds to transmit down one piece of data, if background devices is replied failure or is not received the message of background devices, then carry out the prompting of failure information, and can be selected by the user is " retransferring " or " cancellation ", select " retransferring " then to resend the data of failure last time, select " cancellation ", then end this transmission.
Below in conjunction with description of drawings implementation process of the present invention.
For the convenience of following steps explanation, as follows in this definition relevant information:
(1.N=100 the section length N of setting);
2.tablename: the title of data table memory in the database;
3.sno: the field of expression location parameter among the table tablename.
4.S: the maximum of the data field sno that table is stored among the tablename, if the maximum of the data field sno that shows to store among the tablename this moment is 1000, S=1000 then.
5.s1: sent the successful positions parameter, span is 0-S.
6.s2: need the location parameter of transmission, span is 0-S.
Step 1, the preparation that begins to transmit big data quantity message, comprise that the section length N that reads setting is (as being 100,100 data of promptly each transmission), will send successful positions parameter s 1 and need the location parameter s2 that sends all to be made as 0, execution in step 2;
N=100 bar data before the location parameter s2 that step 2, maintenance terminal 2 send from needs reads according to the sno clooating sequence backward, the concrete query sentence of database that uses is " select top 100*fromtablename where sno>s2 order by sno ", and (value of n has three kinds of situations: 1, n=0 (expression transmits and finishes) for actual data number that reads such as n=100; 2, n=100 (data that expression needs to transmit are more than or equal to 100); 3, the value of n is certain number (data that expression needs to transmit are less than 100) between the 0-100), execution in step 3;
If step 3 n is 0, represent then that all data have transmitted to finish that then video data transmits and finishes and execution in step 12, otherwise, execution in step 4;
Step 4, maintenance terminal 2 send the message that n bar data-messages and query messages transmit situation to background devices 3, and the message format that query messages transmits situation is: 0x10 (type of message), n (message count that has sent).To need the value of the location parameter s2 that sends to be offset n backward simultaneously and (s2 will be made as in the n bar data that read the value of field sno in the last item data, as having read n=100 bar data, the value of the sno of the last item data is 120 in these 100 data, then s2=120), execution in step 5;
Step 5, be sent completely the back and start timer M, wait for receiving background devices 3 message, execution in step 6;
If step 6 is received the message that background devices 3 is replied before timer M is overtime, then message is given step 8 and handle; Otherwise expression is not because communication port or other reasons receive the message of background devices 3, and then execution in step 7;
Step 7, in the timeout treatment of timer M, maintenance terminal 2 simulations generate a piece of news, message format is identical with background devices 3 answer message with type of message, and form is: 0x10 (type of message), 0 (receive data result and be failure), 0 (message count of transmission), 0 (message count that receives).Execution in step 8;
Step 8,2 pairs of message that receive of maintenance terminal are handled (this message comprises that background devices 3 is actual that reply local because the message of overtime simulation with maintenance terminal 2), are successfully if receive data result, and then execution in step 9, otherwise execution in step 10;
Step 9, will send the value that successful positions parameter s 1 is set to s2, as s2=120, s1=120 then, execution in step 2 then circulates;
Step 10, show to receive data result and be failure and failure cause (wrong or message count that sends of the data of receive time-out, transmission and the message count that receives are not inconsistent etc.), the selection of pointing out the user to carry out " retransferring " and " cancellation " simultaneously waits for that then the user selects.If the user selects " retransferring ", then execution in step 11, if select " cancellation ", then video data transmits failure, execution in step 12;
Step 11, the location parameter s2 that needs to send are set to the value of s1, if this moment s1=0, s2=0 then is even s2 gets back to the position before sending.Execution in step 2 then circulates;
Step 12, video data transmit the result, finish.
In sum, the present invention passes through message fragment is transmitted and the failure back continues biography, increases the message authentication means at the breakpoint place, has realized that the message safety of big data quantity transmits, and has improved accuracy, stability and fail safe that message transmits; Receive data conditions by timely demonstration backstage, thereby provide message to transmit the selection that failure back user can retransfer, make the simple to operate of user and improved the friendly that the user uses, have good prospects for application.
The above; only for the preferable embodiment of the present invention, but protection scope of the present invention is not limited thereto, and anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claims.

Claims (2)

1, a kind of method of between maintenance terminal and background devices, carrying out the transmission of big data quantity safety, comprise: user (1), maintenance terminal (2), background devices (3), database (101), wherein maintenance terminal (2) is a computer, background devices (3) is all equipment of supporting to realize by serial communication communication function, and it is characterized in that: the step of carrying out the big data quantity safety transfer method between maintenance terminal (2) and background devices (3) is as follows:
1) preparation process, the preparation that begins to transmit big data quantity message, comprise from database (101) read setting section length N, will send the location parameter s2 that successful positions parameter s 1 and needs send and all be made as 0, prepare to carry out next step;
2) reading of data step, N bar data before the location parameter s2 that maintenance terminal (2) sends from needs reads backward, the actual data number that reads is n, carries out next step;
3) determining step 1, is 0 if the actual data that read are counted n, represents then that all data have transmitted to finish, and then video data transmits to finish and skip to and carries out end step 12, otherwise, carry out next step;
4) forwarding step, maintenance terminal (2) sends the message of n bar data-message and query messages transmission situation to background devices (3), the message format that query messages transmits situation is: type of message, the message count that has sent, the message count that has sent is n, to need the value of the location parameter s2 that sends to be offset n backward simultaneously, carry out next step;
5) waiting step after data-message and query messages are sent completely, start timer M and waits for the message that receives background devices (3), prepares to carry out next step;
6) determining step, if receive the message that background devices (3) is replied before timer M is overtime, M is not overtime for the expression timer, and maintenance terminal (2) is to background devices (3), it is normal to send n bar data-message and query messages transmission situation, then message is given simulation return phase 8 and handles; Otherwise expression is then carried out next step because communication port or other reasons do not receive the answer message of background devices (3);
7) simulation return phase, maintenance terminal (2) simulation generates a piece of news, message format is identical with the answer of background devices (3) with type of message, form is: type of message, reception data result, the message count of transmission, the message count that receives, when being the message assignment, will receiving data result and be made as failure, the message count of transmission and receive message count and all be made as 0, with expression is that message sink is overtime, carries out next step;
8) determining step, maintenance terminal (2) is handled the message that receives, and this message comprises background devices (3) actual that reply and the local message owing to overtime simulation of maintenance terminal (2), timeing closing device M simultaneously.If receiving data result is successfully, then carry out next step, show and waiting step 10 otherwise carry out;
9) circulation step will send the value that successful positions parameter s 1 is set to the location parameter s2 of needs transmission, and reading of data step 2 is carried out in circulation then;
10) demonstration and waiting step, show that receiving data result is failure and failure cause, comprise: a kind of during the wrong or message count that sends of the data of receive time-out, transmission and the message count that receives are not inconsistent, the selection of pointing out user (1) to carry out " retransferring " and " cancellation " simultaneously waits for that then user (1) selects, if user (1) selects " retransferring ", then carry out circulation step 11, if select " cancellation ", then video data transmits failure, carries out end step 12;
11) value of the location parameter s2 that circulation step, needs send need to be set to the value of the location parameter s1 that sends, and reading of data step 2 is carried out in circulation then;
12) end step, video data transmits the result, finishes.
2, a kind of method that big data quantity safety transmits of between maintenance terminal and background devices, carrying out as claimed in claim 1, it is characterized in that: the described span that has sent successful positions parameter s 1 is 0-S, wherein, S is the maximum of storing the field of expression location parameter in the table that sends data in the database, needing the span of the location parameter s2 of transmission is 0-S, wherein S is the maximum of storing the field of expression location parameter in the table that sends data in the database, in the step 7 in order to simulate message, can generate the message content that an array representation receives, then with related news field difference assignment in the array.
CN200610144224A 2006-11-30 2006-11-30 A kind of method of between maintenance terminal and background devices, carrying out the transmission of big data quantity safety Expired - Fee Related CN100576787C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200610144224A CN100576787C (en) 2006-11-30 2006-11-30 A kind of method of between maintenance terminal and background devices, carrying out the transmission of big data quantity safety

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200610144224A CN100576787C (en) 2006-11-30 2006-11-30 A kind of method of between maintenance terminal and background devices, carrying out the transmission of big data quantity safety

Publications (2)

Publication Number Publication Date
CN101018106A true CN101018106A (en) 2007-08-15
CN100576787C CN100576787C (en) 2009-12-30

Family

ID=38726884

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200610144224A Expired - Fee Related CN100576787C (en) 2006-11-30 2006-11-30 A kind of method of between maintenance terminal and background devices, carrying out the transmission of big data quantity safety

Country Status (1)

Country Link
CN (1) CN100576787C (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101159960B (en) * 2007-10-16 2010-06-02 北京佳讯飞鸿电气股份有限公司 Method of implementing data acquisition and comparison of scheduling system
CN102226915A (en) * 2011-05-27 2011-10-26 同济大学 Deep foundation pit engineering dynamic risk information management system
CN109392196A (en) * 2018-10-25 2019-02-26 郑桂云 Big data analysis method and system based on mobile terminal
CN109526025A (en) * 2018-10-25 2019-03-26 郑桂云 Efficiently big data processing analysis method and system based on mobile subscriber station
CN110896343A (en) * 2018-09-13 2020-03-20 林东权 Big data analysis method and system based on mobile client with improved success rate

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101159960B (en) * 2007-10-16 2010-06-02 北京佳讯飞鸿电气股份有限公司 Method of implementing data acquisition and comparison of scheduling system
CN102226915A (en) * 2011-05-27 2011-10-26 同济大学 Deep foundation pit engineering dynamic risk information management system
CN110896343A (en) * 2018-09-13 2020-03-20 林东权 Big data analysis method and system based on mobile client with improved success rate
CN110896343B (en) * 2018-09-13 2022-05-06 长沙盛林电子科技有限公司 Big data analysis method and system based on mobile client with improved success rate
CN109392196A (en) * 2018-10-25 2019-02-26 郑桂云 Big data analysis method and system based on mobile terminal
CN109526025A (en) * 2018-10-25 2019-03-26 郑桂云 Efficiently big data processing analysis method and system based on mobile subscriber station
CN109392196B (en) * 2018-10-25 2021-05-11 北京立达智胜科技有限公司 Big data analysis method and system based on mobile terminal
CN109526025B (en) * 2018-10-25 2021-12-03 深圳市科联智通科技有限公司 Efficient big data processing and analyzing method and system based on mobile subscriber station

Also Published As

Publication number Publication date
CN100576787C (en) 2009-12-30

Similar Documents

Publication Publication Date Title
CN100385846C (en) System and method for prioritization of retransmission of protocol data units to assist radio-link-control retransmission
CN101223759B (en) Transmission device and information communication method
CN101621368B (en) Method, device and system for retransmitting data packet
CN101047484B (en) Transmission layer retransmission method and system
CN101572597A (en) Operation method for synchronous mixed automatic repeat request of wireless communication system
CN101682488A (en) Method and arrangement for retransmission using harq
CN101136828A (en) RS485 based multi-host machine wired serial communication method
CN1463401A (en) File distribution system, file distribution server unit, and reception client unit
CN100576787C (en) A kind of method of between maintenance terminal and background devices, carrying out the transmission of big data quantity safety
CN101507318B (en) Radio communication device and method used in mobile communication system
CN110661840A (en) Management delegation of transmission and acknowledgement of frames
CN101662798B (en) Method for wireless sensor network to invite retransmission with low power consumption and device thereof
CN104980257A (en) Internet of things communication method and device
CN101572661B (en) Methods, device and system for caching data based on time division duplex mode
CN103716141A (en) Signal transmission method and apparatus for user equipment in mobile communication system
CN101601219A (en) The method and apparatus that is used for improved re-transmission
CN102804664A (en) Communication system, communication device, communication method, and program
CN100405783C (en) Ethernet group broadcasting method
CN102238493B (en) Machine-to-machine (M2M)-platform-based message sequential transmission and receiving method and device
CN105634894B (en) A kind of enhanced CAN bus data re-transmitting method and device
CN101742451A (en) Method, system and device for transmitting charging information
CN101217346A (en) An AM mode state feedback method and system
CN104506642A (en) Client message efficient transceiving and processing method and system
CN103582013B (en) The downlink transmission method of PDCP data
CN101192896A (en) Error indicative processing method, transmission device, receiving device and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20091230

Termination date: 20151130

EXPY Termination of patent right or utility model