CN115348252A - Data transmission method, data transmission system, terminal device, and storage medium - Google Patents

Data transmission method, data transmission system, terminal device, and storage medium Download PDF

Info

Publication number
CN115348252A
CN115348252A CN202210731617.5A CN202210731617A CN115348252A CN 115348252 A CN115348252 A CN 115348252A CN 202210731617 A CN202210731617 A CN 202210731617A CN 115348252 A CN115348252 A CN 115348252A
Authority
CN
China
Prior art keywords
data
retransmission
server
gateway
time
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.)
Pending
Application number
CN202210731617.5A
Other languages
Chinese (zh)
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.)
Zhejiang Dahua Technology Co Ltd
Original Assignee
Zhejiang Dahua 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 Zhejiang Dahua Technology Co Ltd filed Critical Zhejiang Dahua Technology Co Ltd
Priority to CN202210731617.5A priority Critical patent/CN115348252A/en
Publication of CN115348252A publication Critical patent/CN115348252A/en
Pending legal-status Critical Current

Links

Images

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/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/18Automatic repetition systems, e.g. Van Duuren systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application discloses a data transmission method, a data transmission system, a terminal device and a computer storage medium, wherein the data transmission method comprises the following steps: the server receives the data uploaded by the data gateway and records the first time when the data are successfully uploaded; the server detects whether the data gateway is in a normal working state, and if not, the latest first time is set as first retransmission time; the server continuously detects whether the data gateway is in a normal working state, if so, the time for switching the data gateway to the normal working state is set as second retransmission time; the server sends a retransmission instruction to the terminal equipment and/or the data gateway based on the first retransmission time and the second retransmission time; and the terminal equipment and/or the data gateway uploads data based on the retransmission instruction. The data transmission method can provide a feasible data retransmission mode aiming at various abnormal conditions in data transmission, and improves the completeness of data output and the high availability of service.

Description

Data transmission method, data transmission system, terminal device, and storage medium
Technical Field
The present application relates to the field of data transmission technologies, and in particular, to a data transmission method, a data transmission system, a terminal device, and a computer storage medium.
Background
With the progress of society, the functions of the data terminals are more and more powerful, so that more and more data are uploaded by the data terminals, and therefore, the requirement of users on the integrity of the data uploaded by the data terminals is higher and higher, and the integrity of the data is an extremely important index for measuring a high-availability platform. Many abnormal scenes cause certain loss of data integrity. Common abnormal scenes such as network abnormality, software failure, server power failure and server downtime can cause data loss of part of data terminals, and cause poor customer experience.
Disclosure of Invention
The application provides a data transmission method, a data transmission system, a terminal device and a computer storage medium.
One technical solution adopted in the present application is to provide a data transmission method, where the data transmission method is applied to a data transmission system, where the data transmission system includes a terminal device, a data gateway, and a server, and the data gateway is in communication connection with the terminal device and the server, respectively; the data transmission method comprises the following steps:
the server receives the data uploaded by the data gateway and records the first time when the data are successfully uploaded;
the server detects whether the data gateway is in a normal working state, and if not, the latest first time is set as first retransmission time;
after the first retransmission time is set, the server continuously detects whether the data gateway is in a normal working state, if so, the time for switching the data gateway to the normal working state is set as second retransmission time;
the server sends a retransmission instruction to the terminal equipment and/or the data gateway based on the first retransmission time and the second retransmission time;
and the terminal equipment and/or the data gateway uploads data based on the retransmission instruction.
Wherein, the server sends a retransmission instruction to the terminal device and/or the data gateway based on the first retransmission time and the second retransmission time, and the retransmission instruction includes:
the server determines a data retransmission time period based on the first retransmission time and the second retransmission time;
and the server sends a retransmission instruction containing the data retransmission time period to the terminal equipment and/or the data gateway.
Wherein, the terminal device and/or the data gateway uploads data based on the retransmission instruction, including:
the data gateway detects whether data corresponding to the data retransmission time period exist in a local database of the data gateway or not based on the retransmission instruction;
and if so, the data gateway uploads the data corresponding to the data retransmission time period to the server according to the retransmission instruction.
Wherein, the terminal device and/or the data gateway uploads data based on the retransmission instruction, including:
when the local database of the data gateway does not have the data corresponding to the data retransmission time period, the data gateway sends the retransmission instruction to the terminal equipment;
and the terminal equipment uploads the data corresponding to the data retransmission time period to the data gateway based on the retransmission instruction, and the data gateway uploads the data to the server.
Wherein, the data transmission method further comprises:
the data gateway detects whether a data link between the data gateway and the server is abnormal or not through a keep-alive message technology, and under the condition that the data link is abnormal, data uploaded by the terminal device are stored to a local database of the data gateway.
Wherein, the terminal device and/or the data gateway uploads data based on the retransmission instruction, including:
the server sends the retransmission instruction to the terminal equipment;
and the terminal equipment uploads the data corresponding to the data retransmission time period to the data gateway based on the retransmission instruction, and the data gateway uploads the data to the server.
Wherein, the terminal device and/or the data gateway uploads data based on the retransmission instruction, including:
the server responds to a configuration instruction of a user and generates the retransmission instruction according to the configuration time in the configuration instruction;
and the terminal equipment and/or the data gateway specified by the configuration instruction uploads data based on the retransmission instruction.
Wherein the generating the retransmission instruction according to the configuration time in the configuration instruction includes:
the server acquires the configuration time, the first retransmission time and the second retransmission time in the configuration instruction;
the server determines a maximum time period as a data retransmission time period based on the configuration time, the second retransmission time and the second retransmission time;
the server generates the retransmission instruction based on the data retransmission time period.
After the terminal device and/or the data gateway uploads the data based on the retransmission instruction, the data transmission method further includes:
the server acquires retransmission data uploaded by the terminal equipment and/or the data gateway based on the retransmission instruction;
the server checks the retransmitted data and the received data for duplication, and deletes the data which is duplicated with the received data in the retransmitted data;
and the server stores the deleted retransmission data to a local database of the server.
Another technical solution adopted by the present application is to provide a data transmission system, where the data transmission system includes a terminal device, a data gateway, and a server, and the data gateway is in communication connection with the terminal device and the server, respectively; wherein, the first and the second end of the pipe are connected with each other,
the server is used for receiving the data uploaded by the data gateway and recording the first time when the data are successfully uploaded;
the server is used for detecting whether the data gateway is in a normal working state or not, and if not, setting the latest first time as a first retransmission time;
after the first retransmission time is set, the server is used for continuously detecting whether the data gateway is in a normal working state, and if so, the time for switching the data gateway to the normal working state is set as a second retransmission time;
the server is used for sending a retransmission instruction to the terminal equipment and/or the data gateway based on the first retransmission time and the second retransmission time;
and the terminal equipment and/or the data gateway are used for uploading data based on the retransmission instruction.
Another technical solution adopted by the present application is to provide a terminal device, where the terminal device includes a memory and a processor coupled to the memory;
wherein the memory is used for storing program data and the processor is used for executing the program data to realize the data transmission method.
Another technical solution adopted by the present application is to provide a computer storage medium, where the computer storage medium is used to store program data, and the program data is used to implement the data transmission method as described above when being executed by a computer.
The beneficial effect of this application is: the server receives the data uploaded by the data gateway and records the first time when the data are successfully uploaded; the server detects whether the data gateway is in a normal working state, and if not, the latest first time is set as first retransmission time; the server continuously detects whether the data gateway is in a normal working state, if so, the time for switching the data gateway to the normal working state is set as second retransmission time; the server sends a retransmission instruction to the terminal equipment and/or the data gateway based on the first retransmission time and the second retransmission time; and the terminal equipment and/or the data gateway uploads data based on the retransmission instruction. The data transmission method can provide a feasible data retransmission mode aiming at various abnormal conditions in data transmission, and improves the completeness of data output and the high availability of service.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the description below are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a schematic flowchart of an embodiment of a data transmission method provided in the present application;
fig. 2 is a schematic flow chart of an automatic supplementary transmission of the data transmission method provided in the present application;
fig. 3 is a schematic flowchart of another embodiment of a data transmission method provided in the present application;
fig. 4 is a schematic flow chart of a manual supplementary transmission of the data transmission method provided in the present application;
FIG. 5 is a schematic diagram of an embodiment of a data transmission system provided in the present application;
fig. 6 is a schematic structural diagram of an embodiment of a terminal device provided in the present application;
FIG. 7 is a schematic structural diagram of an embodiment of a computer storage medium provided in the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
In order to solve the problems of data loss caused by terminal equipment offline, gateway equipment offline and gateway equipment crash, the application aims to solve the problem of data loss caused by various abnormal scenes in the background of short-time data storage of a data terminal, temporary data storage of a data gateway and permanent data storage of a server by an automatic supplementary transmission method and a manual supplementary transmission method so as to improve the high availability and the data integrity of a platform.
Specifically, referring to fig. 1 and fig. 2, fig. 1 is a schematic flowchart of an embodiment of a data transmission method provided in the present application, and fig. 2 is a schematic flowchart of an automatic supplementary transmission of the data transmission method provided in the present application. The data transmission method is applied to a data transmission system, the data transmission system comprises terminal equipment, a data gateway and a server, the data gateway is in communication connection with the terminal equipment and the server respectively, and the data gateway can transmit data uploaded by the terminal equipment to the server for storage. In the data transmission system of the embodiment of the application, the terminal device can store the short-time data, the data gateway can store the temporary data, and the server can store the permanent data.
As shown in fig. 1, the data transmission method according to the embodiment of the present application may specifically include the following steps:
step S11: and the server receives the data uploaded by the data gateway and records the first time when the data are successfully uploaded.
In the embodiment of the application, the terminal device continuously uploads the data to the data gateway, and the data gateway uploads the data to the server. When the server successfully receives the data uploaded by the data gateway, the server records the first time when the data gateway successfully uploads the data.
It should be noted that, in the data transmission system according to the embodiment of the present application, a plurality of data gateways and a plurality of terminal devices may be included; the communication connection relationship between the terminal device and the data gateway may be one-to-one or many-to-one, which is not limited herein.
For the same data gateway, the server may record a plurality of first times of the data gateway, or may record only the latest first time of the data gateway, that is, when the latest first time is recorded, the previous first time is covered, so as to continuously update the latest time of successfully uploading data of the data gateway.
Step S12: and the server detects whether the data gateway is in a normal working state, and if not, sets the latest first time as first retransmission time.
In the embodiment of the application, in the data transmission process, the server detects whether the data gateway is in a normal working state or not through a keep-alive message technology, namely whether data can be normally transmitted or not. Specifically, heartbeat detection can be established between the server and the data gateway, the server continuously sends heartbeat information to the data gateway, and when response information returned by the data gateway based on the heartbeat information is not acquired within a preset time, the server side can determine that the data gateway is not in a normal working state, and an offline condition or a breakdown condition and the like may occur.
When the server detects that the data gateway is in a normal working state, the server can continuously receive data from the data gateway; when the server detects that the data gateway is not in a normal working state, the server acquires the latest first time recorded by the data gateway and sets the latest first time as the first retransmission time of the data gateway.
Step S13: after the first retransmission time is set, the server continues to detect whether the data gateway is in a normal working state, and if so, the time for switching the data gateway to the normal working state is set as second retransmission time.
In the embodiment of the application, after the data gateway is determined to be switched from the normal working state to the abnormal working state and the first retransmission time is set, the server continues to detect whether the data gateway is offline and then is on-line again by using the keep-alive message, that is, the data gateway is switched from the abnormal working state to the normal working state. When the server detects that the data gateway is on-line again, and the server of the data gateway is confirmed to be restarted successfully through the registration information of the data gateway, the server can continue to perform data transmission, the time for switching the data gateway to the normal working state is set as the second retransmission time of the data gateway, and the step S14 can be entered.
Step S14: and the server sends a retransmission instruction to the terminal equipment and/or the data gateway based on the first retransmission time and the second retransmission time.
In the embodiment of the application, the server generates the retransmission instruction based on the first retransmission time and the second retransmission time. Specifically, the retransmission instruction specifies a time period during which the data gateway cannot upload data to the server due to an abnormal condition, and the time period is determined by the first retransmission time and the second retransmission time recorded by the server. The terminal device and/or the data gateway can upload the data again from the respective local database according to the time period specified by the retransmission instruction.
In the embodiment of the application, the data which needs to be uploaded again by the data gateway or the terminal device is specified by the first retransmission time and the second retransmission time recorded by the server, so that the efficiency of uploading the data can be effectively improved, and the transmission of repeated data is reduced on the premise of ensuring the integrity of the data.
Step S15: and the terminal equipment and/or the data gateway uploads the data based on the retransmission instruction.
In the embodiment of the present application, as shown in fig. 2, there are two ways of data retransmission, one is to directly retransmit data by a data gateway, and the other is to retransmit data to the data gateway by a terminal device, so that the data gateway retransmits the data.
Firstly, a method for directly retransmitting data by a data gateway is introduced:
the data gateway can also detect whether the data link between the data gateway and the server is abnormal through the protection message, and when the data link is abnormal, the data gateway can temporarily store data uploaded by the terminal equipment to a local database, so that the function of storing temporary data by the data gateway is realized.
Based on the function that the data gateway can store temporary data, the server sends a retransmission instruction to the data gateway, and the data gateway performs the task of data retransmission.
Specifically, the data gateway detects whether the relevant data is stored in the local database based on the time period specified by the retransmission instruction. If the data specified by the retransmission instruction is stored in the local database, the data gateway uploads the data specified by the retransmission instruction to the server again; if the data specified by the retransmission instruction is not stored in the local database, the data gateway may issue the retransmission instruction to the terminal device, and the terminal device retransmits the data specified by the retransmission instruction.
Further, if a part of data specified by the retransmission instruction is stored in the local database of the data gateway, the data gateway may directly upload the part of data to the server again, generate a new retransmission instruction based on the remaining data specified by the retransmission instruction, and upload, by the terminal device, the part of data not stored in the local database of the data gateway according to the new retransmission instruction. In addition, if the local database of the data gateway stores part of the data specified by the retransmission instruction, the data gateway may also directly issue the retransmission instruction to the terminal device, and the terminal device retransmits all the data specified by the retransmission instruction.
Next, the manner in which the terminal device retransmits data to the data gateway and then the data gateway retransmits the data is described:
the server directly issues the retransmission instruction to the terminal equipment, or issues the retransmission instruction to the data gateway, and the retransmission instruction is forwarded to the terminal equipment by the data gateway. And after receiving the retransmission instruction, the terminal equipment searches the data specified by the retransmission instruction in the local database and uploads the data to the server again through the data gateway.
In the embodiment of the application, a server receives data uploaded by a data gateway and records first time when the data is successfully uploaded; the server detects whether the data gateway is in a normal working state, and if not, the latest first time is set as first retransmission time; the server continuously detects whether the data gateway is in a normal working state, if so, the time for switching the data gateway to the normal working state is set as second retransmission time; the server sends a retransmission instruction to the terminal equipment and/or the data gateway based on the first retransmission time and the second retransmission time; and the terminal equipment and/or the data gateway uploads data based on the retransmission instruction. The data transmission method can provide a feasible data retransmission mode aiming at various abnormal conditions in data transmission, and improves the completeness of data output and the high availability of service.
Referring to fig. 3 and fig. 4, fig. 3 is a schematic flowchart of another embodiment of the data transmission method provided by the present application, and fig. 4 is a schematic flowchart of a manual supplementary transmission of the data transmission method provided by the present application.
As shown in fig. 4, the difference between the automatic retransmission function and the manual retransmission function of the data transmission method provided in the embodiment of the present application mainly lies in: in the automatic transmission supplementing function, when the data gateway uploads again and the service is restarted successfully, the server automatically generates and issues a retransmission instruction; in the manual retransmission function, the user can manually trigger the retransmission instruction according to the will of the user, and the time period specified by the retransmission instruction can also be freely configured according to the will of the user. Please refer to the specific steps of the data transmission method shown in fig. 3:
step S21: and the server responds to the configuration instruction of the user and generates a retransmission instruction according to the configuration time in the configuration instruction.
In the embodiment of the application, a user can select a terminal device and/or a data gateway for re-uploading data and a retransmission time period in a server configuration page, trigger a data retransmission function, and generate a retransmission instruction according to a configuration result of the user.
Specifically, the time period specified by the retransmission instruction can be freely configured by the user, and in order to improve the efficiency of retransmission, the data retransmission time period can also be determined by referring to the time configured by the user and the retransmission time recorded by the server. For example, the server records three points in time, including: configuration time of a user, first retransmission time and second retransmission time. In a case that the three time points do not coincide with each other, at least six time periods may be generated, and for this, in order to ensure integrity of the data, the server may adopt a time period with the longest time among the at least six time periods as a data retransmission time period.
In other embodiments, other time periods of the at least six time periods may also be adopted, which is not described herein again.
Step S22: and the terminal equipment and/or the data gateway specified by the configuration instruction uploads data based on the retransmission instruction.
In the embodiment of the application, the terminal device and/or the data gateway specified by the user in the server configuration page re-uploads the data corresponding to the time period based on the data retransmission time period specified by the retransmission instruction.
Because the configuration of the transmission mode of manual supplementary transmission is flexible, the server can also perform deduplication processing on retransmitted data, thereby ensuring complete and efficient data storage. Therefore, please continue to refer to the following steps:
step S23: and the server acquires retransmission data uploaded by the terminal equipment and/or the data gateway based on the retransmission instruction.
Step S24: and the server checks the retransmitted data and the received data for duplication and deletes the data which is duplicated with the received data in the retransmitted data.
In the embodiment of the present application, the data duplication checking manner may be a comparison of the data itself, or a comparison of timestamps corresponding to the data. In this regard, the embodiment of the present application does not limit the manner of data duplicate checking.
Step S25: and the server stores the deleted retransmission data to a local database of the server.
In the embodiment of the application, the data transmission system combines the storage characteristics of the terminal device and the data gateway, and provides two methods of automatic supplementary transmission and manual supplementary transmission to solve various abnormal conditions in data transmission, so that the behavior of discarding data under the traditional conditions such as network abnormality, software failure, server power failure, server downtime and the like is changed, and the completeness of data and the high availability of service are improved.
The above embodiments are only one of the common cases of the present application and do not limit the technical scope of the present application, so that any minor modifications, equivalent changes or modifications made to the above contents according to the essence of the present application still fall within the technical scope of the present application.
With continuing reference to fig. 5, fig. 5 is a schematic structural diagram of an embodiment of a data transmission system provided in the present application. The data transmission system 300 of the embodiment of the present application includes a terminal device 31, a data gateway 32, and a server 33.
The server 33 is configured to receive the data uploaded by the data gateway 32, and record a first time when the data is successfully uploaded.
The server 33 is configured to detect whether the data gateway 32 is in a normal operating state, and if not, set the latest first time as the first retransmission time.
After the first retransmission time is set, the server 33 is configured to continue to detect whether the data gateway 32 is in a normal operating state, and if so, set the time for switching the data gateway 32 to the normal operating state as a second retransmission time.
The server 33 is configured to send a retransmission instruction to the terminal device 31 and/or the data gateway 32 based on the first retransmission time and the second retransmission time.
The terminal device 31 and/or the data gateway 32 are configured to upload data based on the retransmission instruction.
Continuing to refer to fig. 6, fig. 6 is a schematic structural diagram of an embodiment of a terminal device provided in the present application. The terminal device 500 of the embodiment of the present application includes a processor 51, a memory 52, an input-output device 53, and a bus 54.
The processor 51, the memory 52, and the input/output device 53 are respectively connected to the bus 54, the memory 52 stores program data, and the processor 51 is configured to execute the program data to implement the data transmission method according to the above-mentioned embodiment.
In the embodiment of the present application, the processor 51 may also be referred to as a CPU (Central Processing Unit). The processor 51 may be an integrated circuit chip having signal processing capabilities. The processor 51 may also be a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components. A general purpose processor may be a microprocessor or the processor 51 may be any conventional processor or the like.
Please refer to fig. 7, fig. 7 is a schematic structural diagram of an embodiment of a computer storage medium provided in the present application, the computer storage medium 600 stores program data 61, and the program data 61 is used to implement the data transmission method of the above embodiment when being executed by a processor.
Embodiments of the present application may be implemented in software functional units and may be stored in a computer readable storage medium when sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk, and various media capable of storing program codes.
The above description is only for the purpose of illustrating embodiments of the present application and is not intended to limit the scope of the present application, which is defined by the claims and the accompanying drawings, and the equivalents and equivalent structures and equivalent processes used in the present application and the accompanying drawings are also directly or indirectly applicable to other related technical fields and are all included in the scope of the present application.

Claims (12)

1. A data transmission method is characterized in that the data transmission method is applied to a data transmission system, wherein the data transmission system comprises a terminal device, a data gateway and a server, and the data gateway is respectively in communication connection with the terminal device and the server; the data transmission method comprises the following steps:
the server receives the data uploaded by the data gateway and records the first time when the data are successfully uploaded;
the server detects whether the data gateway is in a normal working state, and if not, the latest first time is set as first retransmission time;
after the first retransmission time is set, the server continuously detects whether the data gateway is in a normal working state, if so, the time for switching the data gateway to the normal working state is set as a second retransmission time;
the server sends a retransmission instruction to the terminal equipment and/or the data gateway based on the first retransmission time and the second retransmission time;
and the terminal equipment and/or the data gateway uploads data based on the retransmission instruction.
2. The data transmission method of claim 1,
the server sends a retransmission instruction to the terminal device and/or the data gateway based on the first retransmission time and the second retransmission time, and the retransmission instruction comprises:
the server determines a data retransmission time period based on the first retransmission time and the second retransmission time;
and the server sends a retransmission instruction containing the data retransmission time period to the terminal equipment and/or the data gateway.
3. The data transmission method according to claim 2,
the terminal device and/or the data gateway uploads data based on the retransmission instruction, and the method comprises the following steps:
the data gateway detects whether data corresponding to the data retransmission time period exist in a local database of the data gateway or not based on the retransmission instruction;
and if so, the data gateway uploads the data corresponding to the data retransmission time period to the server according to the retransmission instruction.
4. The data transmission method according to claim 3,
the terminal device and/or the data gateway uploads data based on the retransmission instruction, and the method comprises the following steps:
when the local database of the data gateway does not have the data corresponding to the data retransmission time period, the data gateway issues the retransmission instruction to the terminal equipment;
and the terminal equipment uploads the data corresponding to the data retransmission time period to the data gateway based on the retransmission instruction, and the data gateway uploads the data to the server.
5. The data transmission method of claim 3,
the data transmission method further comprises:
the data gateway detects whether a data link between the data gateway and the server is abnormal through a keep-alive message technology, and under the condition that the data link is abnormal, data uploaded by the terminal device are stored to a local database of the data gateway.
6. The data transmission method according to claim 2,
the terminal device and/or the data gateway uploads data based on the retransmission instruction, and the method comprises the following steps:
the server sends the retransmission instruction to the terminal equipment;
and the terminal equipment uploads the data corresponding to the data retransmission time period to the data gateway based on the retransmission instruction, and the data gateway uploads the data to the server.
7. The data transmission method of claim 1,
the terminal device and/or the data gateway uploads data based on the retransmission instruction, and the method comprises the following steps:
the server responds to a configuration instruction of a user and generates the retransmission instruction according to configuration time in the configuration instruction;
and the terminal equipment and/or the data gateway specified by the configuration instruction uploads data based on the retransmission instruction.
8. The data transmission method according to claim 7,
the generating the retransmission instruction according to the configuration time in the configuration instruction includes:
the server acquires the configuration time, the first retransmission time and the second retransmission time in the configuration instruction;
the server determines a maximum time period based on the configuration time, the second retransmission time and the second retransmission time as a data retransmission time period;
the server generates the retransmission instruction based on the data retransmission time period.
9. The data transmission method of claim 8,
after the terminal device and/or the data gateway uploads the data based on the retransmission instruction, the data transmission method further includes:
the server acquires retransmission data uploaded by the terminal equipment and/or the data gateway based on the retransmission instruction;
the server checks the retransmitted data and the received data for duplication, and deletes the data which is duplicated with the received data in the retransmitted data;
and the server stores the deleted retransmission data to a local database of the server.
10. A data transmission system is characterized by comprising terminal equipment, a data gateway and a server, wherein the data gateway is in communication connection with the terminal equipment and the server respectively; wherein, the first and the second end of the pipe are connected with each other,
the server is used for receiving the data uploaded by the data gateway and recording the first time when the data are successfully uploaded;
the server is used for detecting whether the data gateway is in a normal working state or not, and if not, setting the latest first time as first retransmission time;
after the first retransmission time is set, the server is used for continuously detecting whether the data gateway is in a normal working state, and if so, the time for switching the data gateway to the normal working state is set as second retransmission time;
the server is used for sending a retransmission instruction to the terminal equipment and/or the data gateway based on the first retransmission time and the second retransmission time;
and the terminal equipment and/or the data gateway are used for uploading data based on the retransmission instruction.
11. A terminal device, comprising a memory and a processor coupled to the memory;
wherein the memory is for storing program data and the processor is for executing the program data to implement the data transmission method of any one of claims 1 to 9.
12. A computer storage medium for storing program data which, when executed by a computer, is adapted to implement a data transmission method according to any one of claims 1 to 9.
CN202210731617.5A 2022-06-23 2022-06-23 Data transmission method, data transmission system, terminal device, and storage medium Pending CN115348252A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210731617.5A CN115348252A (en) 2022-06-23 2022-06-23 Data transmission method, data transmission system, terminal device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210731617.5A CN115348252A (en) 2022-06-23 2022-06-23 Data transmission method, data transmission system, terminal device, and storage medium

Publications (1)

Publication Number Publication Date
CN115348252A true CN115348252A (en) 2022-11-15

Family

ID=83948450

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210731617.5A Pending CN115348252A (en) 2022-06-23 2022-06-23 Data transmission method, data transmission system, terminal device, and storage medium

Country Status (1)

Country Link
CN (1) CN115348252A (en)

Similar Documents

Publication Publication Date Title
EP0464014A2 (en) Communications systems using a fault tolerant protocol
CN105095022A (en) Data backup method and device
EP2356753A1 (en) Link data transmission method, node and system
EP2597818A1 (en) Cluster management system and method
JP3537015B2 (en) Packet communication method
CN113986501A (en) Real-time database API (application program interface) uninterrupted calling method, system, storage medium and server
CN107979640B (en) Data transmission method and device
CN110912985B (en) Network link scheduling method and related equipment
US11886305B2 (en) Method and apparatus for expanding cloud volume, and device and readable medium
CN115348252A (en) Data transmission method, data transmission system, terminal device, and storage medium
CN110351122B (en) Disaster recovery method, device, system and electronic equipment
WO2020094063A1 (en) Data storage method and device, storage medium and electronic device
US5343480A (en) System for detecting loss of message
KR100205953B1 (en) Charging data transmitter and method for processing integrative charge in full-electronic exchange
CN112187408B (en) Data processing method, system, device, storage medium and processor
JPH1188464A (en) Data transfer device and data transfer method
CN101610477A (en) The treatment system of multimedia messaging service, MMS and method
WO2018121353A1 (en) Method of testing data channel, test server, and test system
CN110099001A (en) The machinery of consultation of two-way converting parameters of detection time, device and electronic equipment
US20110222533A1 (en) Switch apparatus
WO2023125903A1 (en) Channel resource adjustment method and apparatus, and communication device
CN114257630B (en) Classroom real-time interaction method, system, terminal equipment and readable storage medium
WO2023273100A1 (en) Port state adjustment method and apparatus, and computer-readable storage medium
JP5176973B2 (en) Communication system, communication method, and communication program
CN115484004A (en) Error report retry method, device, electronic equipment and storage medium

Legal Events

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