CN109743209A - Method for transmitting information and device - Google Patents

Method for transmitting information and device Download PDF

Info

Publication number
CN109743209A
CN109743209A CN201910053974.9A CN201910053974A CN109743209A CN 109743209 A CN109743209 A CN 109743209A CN 201910053974 A CN201910053974 A CN 201910053974A CN 109743209 A CN109743209 A CN 109743209A
Authority
CN
China
Prior art keywords
data
transmitted
transmission
target
upload
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
CN201910053974.9A
Other languages
Chinese (zh)
Other versions
CN109743209B (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 Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201910053974.9A priority Critical patent/CN109743209B/en
Publication of CN109743209A publication Critical patent/CN109743209A/en
Application granted granted Critical
Publication of CN109743209B publication Critical patent/CN109743209B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

Embodiment of the disclosure discloses method for transmitting information and device.One specific embodiment of this method includes: to upload the data to be transmitted of acquisition, and the transmission state of log recording data to be transmitted is transmitted by data in response to monitoring that network transmission is normal;In response to monitoring HP M, the target data to be transmitted of unfinished upload is cached to designated position, obtains data to be transmitted sequence, the target data to be transmitted in above-mentioned data to be transmitted sequence is ranked up according to the sequencing of acquisition time;In response to monitoring that network transmission restores normal, from above-mentioned data to be transmitted sequence read target data to be transmitted, and log is transmitted according to above-mentioned data and uploads target data to be transmitted.This embodiment improves the completeness and efficiencies of data transmission.

Description

Method for transmitting information and device
Technical field
Embodiment of the disclosure is related to field of computer technology, and in particular to method for transmitting information and device.
Background technique
With the development of science and technology, many equipment and control terminal, which can divide, is in different geographical spaces, so that staff Remotely equipment can be controlled.For the working condition of monitoring device, equipment can be by network by work state information It is sent to long-range control terminal, so that control terminal obtains the working condition of equipment in time, is conducive to staff to equipment Effectively control.
Summary of the invention
Embodiment of the disclosure proposes method for transmitting information and device.
In a first aspect, embodiment of the disclosure provides a kind of method for transmitting information, this method comprises: in response to It monitors that network transmission is normal, uploads the data to be transmitted of acquisition, and transmit the biography of log recording data to be transmitted by data Defeated state;In response to monitoring HP M, the target data to be transmitted of unfinished upload is cached to designated position, is obtained To data to be transmitted sequence, target data to be transmitted in above-mentioned data to be transmitted sequence according to acquisition time sequencing into Row sequence;In response to monitoring that network transmission restores normal, from above-mentioned data to be transmitted sequence read target data to be transmitted, and Log, which is transmitted, according to above-mentioned data uploads target data to be transmitted.
In some embodiments, above by the transmission state of data transmission log recording data to be transmitted, comprising: will be to The title of transmission data is recorded in above-mentioned data transmission log, when data to be transmitted is completed to upload, is transmitted in above-mentioned data That corresponding data to be transmitted is added in log is transmitted mark, and otherwise, addition correspondence is to be passed in the transmission log of above-mentioned data The transmission of transmission of data does not complete mark.
In some embodiments, above by the transmission state of data transmission log recording data to be transmitted, comprising: response Not completing the corresponding data to be transmitted of mark to upload unfinished number in above-mentioned transmission is more than that setting uploads frequency threshold value, detection Whether network transmission is normal, when network transmission is normal, continues to upload the data to be transmitted, otherwise, which is set It is set to initial target data to be transmitted.
In some embodiments, above-mentioned to transmit log according to above-mentioned data and upload target data to be transmitted, comprising: from above-mentioned Data transmit the target designation that inquiry transmission in log does not complete the corresponding final goal data to be transmitted of mark;According to above-mentioned mesh Entitling claims the sequencing information that above-mentioned final goal data to be transmitted is determined from above-mentioned data to be transmitted sequence, is believed according to above-mentioned sequence Breath uploads the final goal data to be transmitted in above-mentioned data to be transmitted sequence.
In some embodiments, the above-mentioned final goal uploaded according to above-mentioned sequencing information in above-mentioned data to be transmitted sequence Data to be transmitted, comprising: above-mentioned according to the final goal data to be transmitted uploaded in above-mentioned data to be transmitted sequence that imposes a condition Setting condition includes at least one of the following: network bandwidth, setting time, data volume.
Second aspect, embodiment of the disclosure provide a kind of device for being used for transmission information, which includes: transmission shape State recording unit is configured to upload the data to be transmitted of acquisition, and pass by data in response to monitoring that network transmission is normal The transmission state of defeated log recording data to be transmitted;Data to be transmitted sequence generating unit, in response to monitoring network transmission event Barrier, is configured to cache the target data to be transmitted of unfinished upload to designated position, obtains data to be transmitted sequence, above-mentioned Target data to be transmitted in data to be transmitted sequence is ranked up according to the sequencing of acquisition time;Target data to be transmitted Uploading unit is configured to wait for from above-mentioned data to be transmitted sequence read target in response to monitoring that network transmission restores normal Data are transmitted, and transmits log according to above-mentioned data and uploads target data to be transmitted.
In some embodiments, above-mentioned transmission state recording unit include: transmission state record subelement, be configured to by The title of data to be transmitted is recorded in above-mentioned data transmission log, when data to be transmitted is completed to upload, is passed in above-mentioned data That corresponding data to be transmitted is added in defeated log is transmitted mark, otherwise, in the transmission log of above-mentioned data addition correspond to The transmission for transmitting data does not complete mark.
In some embodiments, above-mentioned transmission state recording unit includes: initial target data to be transmitted setting subelement, Not completing the corresponding data to be transmitted of mark to upload unfinished number in response to above-mentioned transmission is more than that setting uploads frequency threshold value, It whether normal is configured to detect network transmission, when network transmission is normal, continues to upload the data to be transmitted, otherwise, by this Data to be transmitted is set as initial target data to be transmitted.
In some embodiments, above-mentioned target data to be transmitted uploading unit includes: target designation inquiry subelement, is matched It is set to the target designation that the inquiry transmission from the transmission log of above-mentioned data does not complete the corresponding final goal data to be transmitted of mark; Final goal data to be transmitted uploads subelement, is configured to be determined according to above-mentioned target designation from above-mentioned data to be transmitted sequence The sequencing information of above-mentioned final goal data to be transmitted uploads in above-mentioned data to be transmitted sequence most according to above-mentioned sequencing information Whole target data to be transmitted.
In some embodiments, it includes: final goal number to be transmitted that above-mentioned final goal data to be transmitted, which uploads subelement, According to uploading module, it is configured to according to the final goal data to be transmitted uploaded in above-mentioned data to be transmitted sequence that imposes a condition, Above-mentioned setting condition includes at least one of the following: network bandwidth, setting time, data volume.
The third aspect, embodiment of the disclosure provide a kind of electronic equipment, comprising: one or more processors;Storage Device is stored thereon with one or more programs, when said one or multiple programs are executed by said one or multiple processors, So that said one or multiple processors execute the method for transmitting information of above-mentioned first aspect.
Fourth aspect, embodiment of the disclosure provide a kind of computer-readable medium, are stored thereon with computer program, It is characterized in that, the program realizes the method for transmitting information of above-mentioned first aspect when being executed by processor.
The method for transmitting information and device that embodiment of the disclosure provides, transmit log recording by data first The transmission state of data to be transmitted;Then when monitoring HP M, by the target data to be transmitted of unfinished upload Caching obtains data to be transmitted sequence to designated position;Finally monitor that network transmission restores normal, from data to be transmitted sequence Target data to be transmitted is read, and transmits log according to data and uploads target data to be transmitted.The technical program can be in network Data to be transmitted is saved in the case where transmission fault, and after network transmission recovery, is uploaded target data to be transmitted, improved number According to the completeness and efficiency of transmission.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the disclosure is other Feature, objects and advantages will become more apparent upon:
Fig. 1 is that one embodiment of the disclosure can be applied to exemplary system architecture figure therein;
Fig. 2 is the flow chart according to one embodiment of the method for transmitting information of the disclosure;
Fig. 3 is the schematic diagram according to an application scenarios of the method for transmitting information of the disclosure;
Fig. 4 is the flow chart according to another embodiment of the method for transmitting information of the disclosure;
Fig. 5 is the structural schematic diagram according to one embodiment of the device for being used for transmission information of the disclosure;
Fig. 6 is adapted for the electronic devices structure schematic diagram for realizing embodiment of the disclosure.
Specific embodiment
The disclosure 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 related invention, rather than the restriction to the invention.It also should be noted that in order to Convenient for description, part relevant to related invention is illustrated only in attached drawing.
It should be noted that in the absence of conflict, the feature in embodiment and embodiment in the disclosure can phase Mutually combination.The disclosure is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Fig. 1 show can using embodiment of the disclosure method for transmitting information or be used for transmission the dress of information The exemplary system architecture 100 set.
As shown in Figure 1, system architecture 100 may include edge calculations equipment 101,102,103, network 104 and cloud 105.Network 104 between edge calculations equipment 101,102,103 and cloud 105 to provide the medium of communication link.Network 104 may include various connection types, such as wired, wireless communication link or fiber optic cables etc..
Edge calculations refer in the side close to object or data source header, using network, calculating, storage, application core ability The open platform being integrated provides most proximal end service nearby.Its application program is initiated in edge side, generates faster network service Response, meet industry real time business, using intelligence, security and privacy in terms of primary demand.Edge calculations equipment (equipment for disposing edge calculations, also referred to as Broker) has the cloud computing function of part, therefore is capable of providing and cloud Calculate same or similar data processing service.
Edge calculations equipment 101,102,103 is interacted by network 104 with cloud 105, to receive or send message etc..Side Edge, which calculates, can be equipped with various data handling utilities in equipment 101,102,103, such as Image Acquisition application, image analysis are answered With, temperature analysis application, psychrometrc analysis application, soil analysis application, unmanned aerial vehicle (UAV) control application, unmanned vehicle control application etc..Side Edge calculate equipment 101,102,103 can be to provide various data processing services, such as receive local information transmitting terminal (such as Can be various sensors) data to be transmitted sent, and data to be transmitted is sent to the server in cloud 105.Server It can receive data to be transmitted, and data to be transmitted be sent to cloud 105 to according to network transmission state.
Edge calculations equipment 101,102,103 can be hardware, be also possible to software.When edge calculations equipment 101,102, 103 be hardware when, can be with display screen and support data transmit various electronic equipments, including but not limited to plate electricity Brain, pocket computer on knee and desktop computer etc..When edge calculations equipment 101,102,103 is software, Ke Yian In above-mentioned cited electronic equipment.Multiple softwares or software module may be implemented into (such as providing distribution in it Service), single software or software module also may be implemented into, be not specifically limited herein.
Cloud 105 can be to provide the network of cloud computing.Cloud 105 can pass through network 104 and edge calculations equipment 101,102,103 data interaction is carried out.Such as data are carried out to the data to be transmitted that edge calculations equipment 101,102,103 is sent The server of processing.
It should be noted that method for transmitting information provided by embodiment of the disclosure is generally set by edge calculations Standby 101,102,103 execute, and correspondingly, the device for being used for transmission information is generally positioned at edge calculations equipment 101,102,103 In.
It should be noted that cloud 105 can be hardware, it is also possible to software.When cloud 105 is hardware, Ke Yishi The distributed server cluster of ready-made multiple server compositions, also may be implemented into individual server.When cloud 105 is software When, multiple softwares or software module (such as providing Distributed Services) may be implemented into, single software also may be implemented into Or software module, it is not specifically limited herein.
It should be understood that the edge calculations equipment, network and the number in cloud in Fig. 1 are only schematical.According to realization It needs, can have any number of edge calculations equipment, network and cloud.
With continued reference to Fig. 2, the process of one embodiment of the method for transmitting information according to the disclosure is shown 200.The method for transmitting information the following steps are included:
Step 201, in response to monitoring that network transmission is normal, the data to be transmitted of acquisition is uploaded, and transmit by data The transmission state of log recording data to be transmitted.
In the present embodiment, executing subject (such as the edge calculations equipment shown in FIG. 1 of method for transmitting information 101, wired connection mode can 102,103) be passed through or radio connection obtains data to be transmitted.Wherein, number to be transmitted The operation data generated in the process of running according to can be equipment.In general, the runing time of equipment is longer, operation data is larger. The data volume for the data to be transmitted that executing subject obtains is also larger.
It should be pointed out that above-mentioned radio connection can include but is not limited to 3G/4G connection, WiFi connection, bluetooth Connection, WiMAX connection, Zigbee connection, UWB (ultra wideband) connection and other currently known or exploitations in the future Radio connection.
In the prior art, a large amount of operation data can be generated when equipment is run, operation data can be used for running equipment The analysis of process.Equipment needs for operation data to be uploaded to long-range control terminal, so that control terminal analyzes operation data Processing.In practice, many factors can interfere network transmission.The limited storage space of equipment, operation data are not having When uploading to control terminal, in fact it could happen that memory space saturation, the case where causing operation data to be dropped so that control terminal without Method gets complete operation data.
In order to which data to be transmitted is uploaded to cloud 105, the executing subject of the present embodiment needs to monitor network transmission shape State.When network transmission is normal, executing subject can upload the data to be transmitted of acquisition.In order to guarantee the integrality of data, hold Row main body can transmit the transmission state of log recording data to be transmitted by data.
In some optional implementations of the present embodiment, above by data transmission log recording data to be transmitted Transmission state may include: that the title of data to be transmitted is recorded in above-mentioned data transmission log, when data to be transmitted is completed When upload, that corresponding data to be transmitted is added in the transmission log of above-mentioned data is transmitted mark, otherwise, passes in above-mentioned data The transmission that corresponding data to be transmitted is added in defeated log does not complete mark.It is transmitted mark and transmission does not complete mark and can lead to The various ways such as letter, number, text, symbol, icon are crossed to be indicated.
In some optional implementations of the present embodiment, above by data transmission log recording data to be transmitted Transmission state may include: not complete the unfinished number of the corresponding data to be transmitted upload of mark in response to above-mentioned transmission to surpass It crosses setting and uploads frequency threshold value, whether detection network transmission is normal, when network transmission is normal, continues to upload the number to be transmitted According to;Otherwise, initial target data to be transmitted is set by the data to be transmitted.
In practice, some data to be transmitted can disposably be completed to upload, and some data to be transmitted then need repeatedly It can complete to upload.When it is more than that setting uploads frequency threshold value that data to be transmitted, which uploads unfinished number, executing subject needs to examine Whether normal survey current network transmission.When network transmission is normal, illustrate that uploading unfinished is asking for data to be transmitted itself Topic, executing subject can continue to upload the data to be transmitted;It is since network transmission is different when executing subject discovery uploads unfinished Chang Shi, executing subject can set the data to be transmitted to initial target data to be transmitted.That is, initial target data to be transmitted The data that cannot be uploaded to be abnormal due to network transmission.
Step 202, in response to monitoring HP M, the target data to be transmitted of unfinished upload is cached to finger Positioning is set, and data to be transmitted sequence is obtained.
In order to guarantee upload data to be transmitted integrality, when network transmission fault, executing subject can will not complete on The target data to be transmitted of biography is cached to designated position (executing subject is locally stored or other external storage equipment).Execute master Body can be ranked up target data to be transmitted according to time when receiving target data to be transmitted, obtain data to be transmitted Sequence.That is, the target data to be transmitted in above-mentioned data to be transmitted sequence can be arranged according to the sequencing of acquisition time Sequence.Network, which is likely to occur, is transmitted several times failure, and corresponding data to be transmitted sequence can preserve multiple due to network transmission event The target data to be transmitted for hindering and being formed.
Step 203, to be passed from above-mentioned data to be transmitted sequence read target in response to monitoring that network transmission restores normal Transmission of data, and transmit log according to above-mentioned data and upload target data to be transmitted.
When executing subject monitors that network transmission restores normal, in order to guarantee the integrality of data transmission, executing subject It can be from data to be transmitted sequence read target data to be transmitted.Later, executing subject can transmit log according to data and upload Target data to be transmitted.To improve the completeness and efficiency of data transmission.
With continued reference to the signal that Fig. 3, Fig. 3 are according to the application scenarios of the method for transmitting information of the present embodiment Figure.In the application scenarios of Fig. 3, edge calculations equipment 103 uploads the number to be transmitted of acquisition when monitoring that network transmission is normal According to, and pass through the transmission state of data transmission log recording data to be transmitted;Edge calculations equipment 103 is monitoring network transmission When failure, the target data to be transmitted of unfinished upload is cached to designated position, data to be transmitted sequence is obtained;Edge calculations Equipment 103 is when monitoring that network transmission restores normal, from above-mentioned data to be transmitted sequence read target data to be transmitted, and root Target data to be transmitted is uploaded according to the transmission log of above-mentioned data.
The method provided by the above embodiment of the disclosure transmits the transmission of log recording data to be transmitted by data first State;Then when monitoring HP M, the target data to be transmitted of unfinished upload is cached to designated position, is obtained To data to be transmitted sequence;Finally monitor that network transmission restores normal, from data to be transmitted sequence read target number to be transmitted According to, and transmit log according to data and upload target data to be transmitted.The technical program can be in the case where HP M Save data to be transmitted, and network transmission recovery after, upload target data to be transmitted, improve data transmission integrality and Validity.
With further reference to Fig. 4, it illustrates the processes 400 of another embodiment of method for transmitting information.The use In the process 400 of the method for transmission information, comprising the following steps:
Step 401, in response to monitoring that network transmission is normal, the data to be transmitted of acquisition is uploaded, and transmit by data The transmission state of log recording data to be transmitted.
The content of step 401 and the content of step 201 are identical, no longer repeat one by one herein.
Step 402, in response to monitoring HP M, the target data to be transmitted of unfinished upload is cached to finger Positioning is set, and data to be transmitted sequence is obtained.
The content of step 402 and the content of step 202 are identical, no longer repeat one by one herein.
Step 403, to be passed from above-mentioned data to be transmitted sequence read target in response to monitoring that network transmission restores normal Transmission of data, and transmit log according to above-mentioned data and upload target data to be transmitted.
It is above-mentioned to be passed according to above-mentioned data transmission log upload target in some optional implementations of the present embodiment Transmission of data may comprise steps of:
The first step, inquiry transmission does not complete the corresponding final goal data to be transmitted of mark from the transmission log of above-mentioned data Target designation.
Which data to be transmitted data transmission log recording completes upload, which target data to be transmitted do not complete It uploads.Seen from the above description, data to be transmitted sequence can preserve multiple targets formed due to HP M Data to be transmitted.It is to be transmitted that executing subject can inquire final goal according to the unfinished mark of transmission in data transmission log The target designation of data.That is, final goal data to be transmitted is that the target that needs upload when this network recovery is normal is to be transmitted Data.
Second step determines above-mentioned final goal data to be transmitted from above-mentioned data to be transmitted sequence according to above-mentioned target designation Sequencing information, the final goal data to be transmitted in above-mentioned data to be transmitted sequence is uploaded according to above-mentioned sequencing information.
After the target designation that final goal data to be transmitted has been determined, executing subject can be according to target designation to be transmitted Data sequence determines the sequencing information of final goal data to be transmitted.Then, executing subject is to be passed according to sequencing information upload Final goal data to be transmitted in transmission of data sequence.
It is above-mentioned that above-mentioned number to be transmitted is uploaded according to above-mentioned sequencing information in some optional implementations of the present embodiment It may include: to be uploaded in above-mentioned data to be transmitted sequence according to imposing a condition according to the final goal data to be transmitted in sequence Final goal data to be transmitted.
In order to effectively transmit final goal data to be transmitted, executing subject can be waited for according to the upload final goal that imposes a condition Transmit data.Wherein, above-mentioned setting condition may include at least one of following: network bandwidth, setting time, data volume.
With further reference to Fig. 5, as the realization to method shown in above-mentioned each figure, present disclose provides one kind to be used for transmission letter One embodiment of the device of breath, the Installation practice is corresponding with embodiment of the method shown in Fig. 2, which can specifically answer For in various electronic equipments.
As shown in figure 5, the device 500 for being used for transmission information of the present embodiment may include: transmission state recording unit 501, data to be transmitted sequence generating unit 502 and target data to be transmitted uploading unit 503.Wherein, transmission state record Member 501, in response to monitoring that network transmission is normal, is configured to upload the data to be transmitted of acquisition, and transmit day by data The transmission state of will record data to be transmitted;Data to be transmitted sequence generating unit 502, in response to monitoring network transmission event Barrier, is configured to cache the target data to be transmitted of unfinished upload to designated position, obtains data to be transmitted sequence, above-mentioned Target data to be transmitted in data to be transmitted sequence is ranked up according to the sequencing of acquisition time;Target data to be transmitted Uploading unit 503 is configured in response to monitoring that network transmission restores normal from above-mentioned data to be transmitted sequence read target Data to be transmitted, and transmit log according to above-mentioned data and upload target data to be transmitted.
In some optional implementations of the present embodiment, above-mentioned transmission state recording unit 501 may include: transmission State recording subelement (not shown) is configured to for the title of data to be transmitted being recorded in above-mentioned data transmission log In, when data to be transmitted is completed to upload, that corresponding data to be transmitted is added in the transmission log of above-mentioned data is transmitted mark Know, otherwise, the transmission that corresponding data to be transmitted is added in the transmission log of above-mentioned data does not complete mark.
In some optional implementations of the present embodiment, above-mentioned transmission state recording unit 501 may include: initial Subelement (not shown) is arranged in target data to be transmitted, does not complete the corresponding data to be transmitted of mark in response to above-mentioned transmission Uploading unfinished number is more than that setting uploads frequency threshold value, and whether be configured to detect network transmission normal, works as network transmission When normal, continue to upload the data to be transmitted, otherwise, sets initial target data to be transmitted for the data to be transmitted.
In some optional implementations of the present embodiment, above-mentioned target data to be transmitted uploading unit 503 be can wrap Include: target designation inquires subelement (not shown) and final goal data to be transmitted uploads subelement (not shown). Wherein, it is corresponding most to be configured to transmit the unfinished mark of inquiry transmission in log from above-mentioned data for target designation inquiry subelement The target designation of whole target data to be transmitted;Final goal data to be transmitted uploads subelement and is configured to according to above-mentioned destination name Claim the sequencing information that above-mentioned final goal data to be transmitted is determined from above-mentioned data to be transmitted sequence, according on above-mentioned sequencing information Catch the final goal data to be transmitted stated in data to be transmitted sequence.
In some optional implementations of the present embodiment, above-mentioned final goal data to be transmitted uploads subelement can be with Include: final goal data to be transmitted uploading module (not shown), is configured to above-mentioned to be passed according to the upload that imposes a condition Final goal data to be transmitted in transmission of data sequence, when above-mentioned setting condition includes at least one of the following: network bandwidth, setting Between, data volume.
The present embodiment additionally provides a kind of electronic equipment, comprising: one or more processors;Memory is stored thereon with One or more programs, when said one or multiple programs are executed by said one or multiple processors, so that said one Or multiple processors execute above-mentioned method for transmitting information.
The present embodiment additionally provides a kind of computer-readable medium, is stored thereon with computer program, and the program is processed Device realizes above-mentioned method for transmitting information when executing.
Below with reference to Fig. 6, it illustrates the electronic equipments for being suitable for being used to realize embodiment of the disclosure (for example, in Fig. 1 Edge calculations equipment 101,102,103) structural schematic diagram of computer system 600.Electronic equipment shown in Fig. 6 is only one A example, should not function to embodiment of the disclosure and use scope bring any restrictions.
As shown in fig. 6, electronic equipment 600 may include processing unit (such as central processing unit, graphics processor etc.) 601, random access can be loaded into according to the program being stored in read-only memory (ROM) 602 or from storage device 608 Program in memory (RAM) 603 and execute various movements appropriate and processing.In RAM 603, it is also stored with electronic equipment Various programs and data needed for 600 operations.Processing unit 601, ROM 602 and RAM603 are connected with each other by bus 604. Input/output (I/O) interface 605 is also connected to bus 604.
In general, following device can connect to I/O interface 605: including such as touch screen, touch tablet, keyboard, mouse, taking the photograph As the input unit 606 of head, microphone, accelerometer, gyroscope etc.;Including such as liquid crystal display (LCD), loudspeaker, vibration The output device 607 of dynamic device etc.;Storage device 608 including such as tape, hard disk etc.;And communication device 609.Communication device 609, which can permit electronic equipment 600, is wirelessly or non-wirelessly communicated with other equipment to exchange data.Although Fig. 6 shows tool There is the electronic equipment 600 of various devices, it should be understood that being not required for implementing or having all devices shown.It can be with Alternatively implement or have more or fewer devices.Each box shown in Fig. 6 can represent a device, can also root According to needing to represent multiple devices.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium On computer program, which includes the program code for method shown in execution flow chart.In such reality It applies in example, which can be downloaded and installed from network by communication device 609, or from storage device 608 It is mounted, or is mounted from ROM 602.When the computer program is executed by processing unit 601, the implementation of the disclosure is executed The above-mentioned function of being limited in the method for example.
It is situated between it should be noted that the above-mentioned computer-readable medium of embodiment of the disclosure can be computer-readable signal Matter or computer readable storage medium either the two any combination.Computer readable storage medium for example can be with System, device or the device of --- but being not limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, or it is any more than Combination.The more specific example of computer readable storage medium can include but is not limited to: have one or more conducting wires Electrical connection, portable computer diskette, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type are programmable Read-only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic are deposited Memory device or above-mentioned any appropriate combination.In embodiment of the disclosure, computer readable storage medium, which can be, appoints What include or the tangible medium of storage program that the program can be commanded execution system, device or device use or and its It is used in combination.And in embodiment of the disclosure, computer-readable signal media may include in a base band or as carrier wave The data-signal that a part is propagated, wherein carrying computer-readable program code.The data-signal of this propagation can be adopted With diversified forms, including but not limited to electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal is situated between Matter can also be any computer-readable medium other than computer readable storage medium, which can be with It sends, propagate or transmits for by the use of instruction execution system, device or device or program in connection.Meter The program code for including on calculation machine readable medium can transmit with any suitable medium, including but not limited to: electric wire, optical cable, RF (radio frequency) etc. or above-mentioned any appropriate combination.
Above-mentioned computer-readable medium can be included in above-mentioned electronic equipment;It is also possible to individualism, and not It is fitted into the electronic equipment.Above-mentioned computer-readable medium carries one or more program, when said one or more When a program is executed by the electronic equipment, so that the electronic equipment: in response to monitoring that network transmission is normal, upload acquisition to Data are transmitted, and transmit the transmission state of log recording data to be transmitted by data;In response to monitoring HP M, The target data to be transmitted of unfinished upload is cached to designated position, data to be transmitted sequence, above-mentioned data to be transmitted are obtained Target data to be transmitted in sequence is ranked up according to the sequencing of acquisition time;In response to monitoring that network transmission is restored Normally, from above-mentioned data to be transmitted sequence read target data to be transmitted, and log upload target is transmitted according to above-mentioned data and is waited for Transmit data.
The behaviour for executing embodiment of the disclosure can be write with one or more programming languages or combinations thereof The computer program code of work, above procedure design language include object oriented program language-such as Java, Smalltalk, C++ further include conventional procedural programming language-such as " C " language or similar program design language Speech.Program code can be executed fully on the user computer, partly be executed on the user computer, as an independence Software package execute, part on the user computer part execute on the remote computer or completely in remote computer or It is executed on server.In situations involving remote computers, remote computer can pass through the network of any kind --- packet It includes local area network (LAN) or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as benefit It is connected with ISP by internet).
Flow chart and block diagram in attached drawing illustrate system, method and the computer of the various embodiments according to the disclosure The architecture, function and operation in the cards of program product.In this regard, each box in flowchart or block diagram can be with A part of a module, program segment or code is represented, a part of the module, program segment or code includes one or more Executable instruction for implementing the specified logical function.It should also be noted that in some implementations as replacements, institute in box The function of mark can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are practical On can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it wants It is noted that the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart, Ke Yiyong The dedicated hardware based system of defined functions or operations is executed to realize, or can be referred to specialized hardware and computer The combination of order is realized.
Being described in unit involved in embodiment of the disclosure can be realized by way of software, can also be passed through The mode of hardware is realized.Described unit also can be set in the processor, for example, can be described as: a kind of processor Including transmission state recording unit, data to be transmitted sequence generating unit and target data to be transmitted uploading unit.Wherein, these The title of unit does not constitute the restriction to the unit itself under certain conditions, for example, target data to be transmitted uploading unit It is also described as " for uploading the unit of target data to be transmitted ".
Above description is only the preferred embodiment of the disclosure and the explanation to institute's application technology principle.Those skilled in the art Member is it should be appreciated that invention scope involved in the disclosure, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic Scheme, while should also cover in the case where not departing from foregoing invention design, it is carried out by above-mentioned technical characteristic or its equivalent feature Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed in the disclosure Can technical characteristic replaced mutually and the technical solution that is formed.

Claims (12)

1. a kind of method for transmitting information, comprising:
In response to monitoring that network transmission is normal, the data to be transmitted of acquisition is uploaded, and to be passed by data transmission log recording The transmission state of transmission of data;
In response to monitoring HP M, the target data to be transmitted of unfinished upload is cached to designated position, is obtained Data to be transmitted sequence, the target data to be transmitted in the data to be transmitted sequence are carried out according to the sequencing of acquisition time Sequence;
In response to monitoring that network transmission restores normal, from the data to be transmitted sequence read target data to be transmitted, and root Target data to be transmitted is uploaded according to data transmission log.
2. according to the method described in claim 1, wherein, the transmission shape that log recording data to be transmitted is transmitted by data State, comprising:
The title of data to be transmitted is recorded in the data transmission log, when data to be transmitted is completed to upload, described That corresponding data to be transmitted is added in data transmission log is transmitted mark, otherwise, adds in data transmission log The transmission of corresponding data to be transmitted does not complete mark.
3. according to the method described in claim 2, wherein, the transmission shape that log recording data to be transmitted is transmitted by data State, comprising:
Not completing the corresponding data to be transmitted of mark to upload unfinished number in response to the transmission is more than that setting uploads number Threshold value, whether detection network transmission is normal, when network transmission is normal, continues to upload the data to be transmitted, otherwise, this is to be passed Transmission of data is set as initial target data to be transmitted.
It is described to transmit log according to the data and upload target number to be transmitted 4. according to the method described in claim 3, wherein According to, comprising:
Inquiry transmission does not complete the target designation of the corresponding final goal data to be transmitted of mark from data transmission log;
The sequencing information of the final goal data to be transmitted is determined from the data to be transmitted sequence according to the target designation, The final goal data to be transmitted in the data to be transmitted sequence is uploaded according to the sequencing information.
5. described to upload the data to be transmitted sequence according to the sequencing information according to the method described in claim 4, wherein In final goal data to be transmitted, comprising:
According to the final goal data to be transmitted uploaded in the data to be transmitted sequence that imposes a condition, the setting condition includes At least one of below: network bandwidth, setting time, data volume.
6. a kind of device for being used for transmission information, comprising:
Transmission state recording unit is configured to upload the data to be transmitted of acquisition in response to monitoring that network transmission is normal, and The transmission state of log recording data to be transmitted is transmitted by data;
Data to be transmitted sequence generating unit is configured in response to monitoring HP M by the mesh of unfinished upload Mark data to be transmitted is cached to designated position, obtains data to be transmitted sequence, the target in the data to be transmitted sequence is to be passed Transmission of data is ranked up according to the sequencing of acquisition time;
Target data to be transmitted uploading unit is configured in response to monitoring that network transmission restores normal from described to be transmitted Data sequence reads target data to be transmitted, and transmits log according to the data and upload target data to be transmitted.
7. device according to claim 6, wherein the transmission state recording unit includes:
Transmission state records subelement, is configured to for the title of data to be transmitted being recorded in the data transmission log, when When data to be transmitted is completed to upload, the mark that is transmitted of corresponding data to be transmitted is added in data transmission log, it is no Then, the transmission for corresponding data to be transmitted being added in data transmission log does not complete mark.
8. device according to claim 7, wherein the transmission state recording unit includes:
Subelement is arranged in initial target data to be transmitted, does not complete the corresponding data to be transmitted of mark in response to the transmission and uploads Unfinished number is more than that setting uploads frequency threshold value, and whether normal, when network transmission is normal if being configured to detect network transmission When, continue to upload the data to be transmitted, otherwise, sets initial target data to be transmitted for the data to be transmitted.
9. device according to claim 8, wherein the target data to be transmitted uploading unit includes:
Target designation inquires subelement, and it is corresponding most to be configured to transmit the unfinished mark of inquiry transmission in log from the data The target designation of whole target data to be transmitted;
Final goal data to be transmitted uploads subelement, is configured to according to the target designation from the data to be transmitted sequence The sequencing information for determining the final goal data to be transmitted uploads in the data to be transmitted sequence according to the sequencing information Final goal data to be transmitted.
10. device according to claim 9, wherein the final goal data to be transmitted uploads subelement and includes:
Final goal data to be transmitted uploading module is configured to upload in the data to be transmitted sequence according to imposing a condition Final goal data to be transmitted, the setting condition include at least one of the following: network bandwidth, setting time, data volume.
11. a kind of electronic equipment, comprising:
One or more processors;
Memory is stored thereon with 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 Perform claim requires any method in 1 to 5.
12. a kind of computer-readable medium, is stored thereon with computer program, which is characterized in that the program is executed by processor Method of the Shi Shixian as described in any in claim 1 to 5.
CN201910053974.9A 2019-01-21 2019-01-21 Method and device for transmitting information Active CN109743209B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910053974.9A CN109743209B (en) 2019-01-21 2019-01-21 Method and device for transmitting information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910053974.9A CN109743209B (en) 2019-01-21 2019-01-21 Method and device for transmitting information

Publications (2)

Publication Number Publication Date
CN109743209A true CN109743209A (en) 2019-05-10
CN109743209B CN109743209B (en) 2022-07-15

Family

ID=66365460

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910053974.9A Active CN109743209B (en) 2019-01-21 2019-01-21 Method and device for transmitting information

Country Status (1)

Country Link
CN (1) CN109743209B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110535965A (en) * 2019-09-03 2019-12-03 北京元安物联技术有限公司 A kind of data processing method and device, storage medium
CN112311842A (en) * 2020-03-09 2021-02-02 北京沃东天骏信息技术有限公司 Method and device for information interaction
CN114205348A (en) * 2021-12-21 2022-03-18 安徽蓝盾光电子股份有限公司 System and method for file breakpoint continuous transmission
CN114697267A (en) * 2022-03-06 2022-07-01 道莅智远科技(青岛)有限公司 Industrial control PLC real-time data communication interruption continuous transmission optimization algorithm
CN114726486A (en) * 2022-04-22 2022-07-08 上海电气风电集团股份有限公司 Data transmission method, tool, electronic device and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106453567A (en) * 2016-10-18 2017-02-22 合肥浮点信息科技有限公司 Anti-interruption storage processing system in communication network
CN106790445A (en) * 2016-12-02 2017-05-31 乐视控股(北京)有限公司 Data transmission method, device and electronic equipment based on Samba agreements
CN107809337A (en) * 2017-11-17 2018-03-16 深圳泉眼体育运营管理有限公司 A kind of daily record method for uploading and device
CN109245953A (en) * 2018-11-22 2019-01-18 新华三技术有限公司 A kind of network collocating method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106453567A (en) * 2016-10-18 2017-02-22 合肥浮点信息科技有限公司 Anti-interruption storage processing system in communication network
CN106790445A (en) * 2016-12-02 2017-05-31 乐视控股(北京)有限公司 Data transmission method, device and electronic equipment based on Samba agreements
CN107809337A (en) * 2017-11-17 2018-03-16 深圳泉眼体育运营管理有限公司 A kind of daily record method for uploading and device
CN109245953A (en) * 2018-11-22 2019-01-18 新华三技术有限公司 A kind of network collocating method and device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110535965A (en) * 2019-09-03 2019-12-03 北京元安物联技术有限公司 A kind of data processing method and device, storage medium
CN112311842A (en) * 2020-03-09 2021-02-02 北京沃东天骏信息技术有限公司 Method and device for information interaction
CN114205348A (en) * 2021-12-21 2022-03-18 安徽蓝盾光电子股份有限公司 System and method for file breakpoint continuous transmission
CN114697267A (en) * 2022-03-06 2022-07-01 道莅智远科技(青岛)有限公司 Industrial control PLC real-time data communication interruption continuous transmission optimization algorithm
CN114697267B (en) * 2022-03-06 2024-02-02 道莅智远科技(青岛)有限公司 Intermittent transmission optimization method in industrial control PLC real-time data communication
CN114726486A (en) * 2022-04-22 2022-07-08 上海电气风电集团股份有限公司 Data transmission method, tool, electronic device and computer readable storage medium

Also Published As

Publication number Publication date
CN109743209B (en) 2022-07-15

Similar Documents

Publication Publication Date Title
CN109743209A (en) Method for transmitting information and device
JP7263542B2 (en) Vehicle/infrastructure cooperation device and method, electronic device and computer program
CN109561171A (en) The configuration method and device of virtual private cloud service
CN109145023A (en) Method and apparatus for handling data
CN108494860A (en) WEB accesses system, WEB access methods and device for client
CN104038528A (en) Relay apparatus, system, and method
CN109818910A (en) A kind of data transmission method, device and medium
CN110413457A (en) The disaster recovery method and device of cloud service
CN108847952A (en) The processing method of request link context, apparatus and system
CN109787829A (en) For generating the method and device of information
CN109408481A (en) Update method, device, electronic equipment and the readable medium of log collection rule
JP2022077015A (en) Computer-implemented method, computer program and computer system (internet-of-things device orchestration)
CN116700250A (en) Path planning method, computing device, apparatus, device and medium
CN109819026A (en) Method for transmitting information and device
CN111278085B (en) Method and device for acquiring target network
JP2021170319A (en) Method and device for acquiring information
CN109698774A (en) Method and device for monitoring device working condition
CN110430139A (en) A kind of acquisition methods and device of decentralization network node location information
CN109783409A (en) Method and apparatus for handling data
CN109766392A (en) Data processing method and device
CN109271224A (en) Method and apparatus for determining position
CN111327472A (en) Method and device for acquiring target network
CN112543228A (en) Data transmission method and device, electronic equipment and computer readable medium
CN108092858B (en) For switching the method and device of agent node
CN112311842A (en) Method and device for information interaction

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