CN114884805B - Data transmission method, device, terminal and storage medium - Google Patents

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

Info

Publication number
CN114884805B
CN114884805B CN202210577766.0A CN202210577766A CN114884805B CN 114884805 B CN114884805 B CN 114884805B CN 202210577766 A CN202210577766 A CN 202210577766A CN 114884805 B CN114884805 B CN 114884805B
Authority
CN
China
Prior art keywords
data
terminal
communication connection
standby terminal
standby
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.)
Active
Application number
CN202210577766.0A
Other languages
Chinese (zh)
Other versions
CN114884805A (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.)
Sdic Vision Intelligent Technology Jiangsu Co ltd
Envision Digital International Pte Ltd
Original Assignee
Sdic Vision Intelligent Technology Jiangsu Co ltd
Envision Digital International Pte 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 Sdic Vision Intelligent Technology Jiangsu Co ltd, Envision Digital International Pte Ltd filed Critical Sdic Vision Intelligent Technology Jiangsu Co ltd
Priority to CN202210577766.0A priority Critical patent/CN114884805B/en
Publication of CN114884805A publication Critical patent/CN114884805A/en
Priority to PCT/SG2023/050362 priority patent/WO2023229531A2/en
Application granted granted Critical
Publication of CN114884805B publication Critical patent/CN114884805B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0668Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/40Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass for recovering from a failure of a protocol instance or entity, e.g. service redundancy protocols, protocol state redundancy or protocol service redirection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/70Services for machine-to-machine communication [M2M] or machine type communication [MTC]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The embodiment of the application discloses a data transmission method, a data transmission device, a terminal and a storage medium, and belongs to the technical field of Internet of things. The method comprises the following steps: acquiring device data of the target internet of things (IoT) device through a first communication connection, and sending the device data to a data center through a second communication connection, wherein the data center is used for performing data processing on the device data; in response to the first communication connection interruption, obtaining device data from a backup terminal through a synchronization channel, the backup terminal for obtaining device data at the target IoT device through a third communication connection; and responding to the interruption of the second communication connection, sending a data sending instruction to the standby terminal through the synchronous channel, wherein the data sending instruction is used for indicating the standby terminal to send equipment data to the data center through the fourth communication connection, and the equipment data is sent to the standby terminal through the synchronous channel by the main terminal. The method provided by the embodiment of the application is beneficial to improving the data transmission efficiency.

Description

Data transmission method, device, terminal and storage medium
Technical Field
The embodiment of the application relates to the technical field of the internet of things, in particular to a data transmission method, a data transmission device, a terminal and a storage medium.
Background
In the internet of things system, a terminal acquires data acquired by internet of things (Internet of Things, ioT) equipment, reports the acquired data to a data center, and the data center processes the equipment data of the IoT equipment.
When the terminal fails or the communication channel fails, data cannot be acquired or reported, so that data is lost, and the service is affected. In the related art, two terminals are usually deployed, which are main and standby machines, and when one of the terminals fails, the other terminal can be switched to continue to collect and report data.
Then, when switching to the standby terminal, the standby terminal needs to reestablish connection with the equipment and the data center, and in the process, the terminal cannot collect and report data, so that the problem of data loss exists, and the service is affected.
Disclosure of Invention
The embodiment of the application provides a data transmission method, a data transmission device, a terminal and a storage medium. The technical scheme is as follows:
in one aspect, an embodiment of the present application provides a data transmission method, where the method is used for a master terminal, and the method includes:
acquiring device data of a target internet of things (IoT) device through a first communication connection, and sending the device data to a data center through a second communication connection, wherein the data center is used for performing data processing on the device data;
In response to the first communication connection interruption, obtaining the device data from a backup terminal through a synchronization channel, the synchronization channel being a communication channel between the primary terminal and the backup terminal, the backup terminal for obtaining the device data at the target IoT device through a third communication connection;
and responding to the interruption of the second communication connection, sending a data sending instruction to the standby terminal through the synchronous channel, wherein the data sending instruction is used for indicating the standby terminal to send the equipment data to the data center through a fourth communication connection, and the equipment data is sent to the standby terminal through the synchronous channel by the main terminal.
In another aspect, an embodiment of the present application provides a data transmission apparatus, including:
the system comprises a transmission module, a data center and a control module, wherein the transmission module is used for acquiring equipment data of target internet of things (IoT) equipment through a first communication connection and sending the equipment data to the data center through a second communication connection, and the data center is used for carrying out data processing on the equipment data;
an acquisition module for acquiring the device data from a backup terminal through a synchronization channel in response to the first communication connection interruption, the synchronization channel being a communication channel between the primary terminal and the backup terminal, the backup terminal for acquiring the device data at the target IoT device through a third communication connection;
And the sending module is used for responding to the interruption of the second communication connection and sending a data sending instruction to the standby terminal through the synchronous channel, wherein the data sending instruction is used for indicating the standby terminal to send the equipment data to the data center through a fourth communication connection, and the equipment data is sent to the standby terminal through the synchronous channel by the main terminal.
In another aspect, an embodiment of the present application provides a terminal, where the terminal includes a processor and a memory; the memory stores at least one instruction, at least one program, a set of codes, or a set of instructions, which are loaded and executed by the processor to implement the data transmission method as described in the above aspect.
In another aspect, embodiments of the present application provide a computer readable storage medium having at least one computer program stored therein, the computer program being loaded and executed by a processor to implement a data transmission method as described in the above aspects.
According to one aspect of the present application, there is provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions to cause the computer device to implement the data transmission methods provided in the various alternative implementations of the above aspects.
The beneficial effects that technical scheme that this application embodiment provided include at least:
in the embodiment of the application, when the main terminal obtains the device data of the target IoT device through the first communication connection and sends the device data to the data center through the second communication connection, if the first communication connection is interrupted, the device data can be obtained at the standby terminal, and then the device data is continuously sent to the data center; when the second communication connection is interrupted, the standby terminal can continue to send the equipment data to the data center through the fourth communication connection, so that normal transmission of the data is ensured; compared with the switching of the main machine and the standby machine in the related art, when the first communication connection or the second communication connection is interrupted, the communication connection with the target internet traffic (IoT) equipment and the data center is not required to be established again through the standby terminal, so that the data transmission efficiency is improved.
Drawings
In order to more clearly describe the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments of the present application will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person of ordinary skill in the art.
FIG. 1 is a schematic illustration of an implementation environment provided by an exemplary embodiment of the present application;
FIG. 2 is a flow chart of a data transmission method provided in an exemplary embodiment of the present application;
fig. 3 is a flowchart of a data transmission method according to another exemplary embodiment of the present application;
FIG. 4 is a schematic diagram of a data transmission process according to an exemplary embodiment of the present application;
fig. 5 is a flowchart of a data transmission method according to another exemplary embodiment of the present application;
fig. 6 is a block diagram showing a structure of a data transmission apparatus according to an exemplary embodiment of the present application;
fig. 7 is a block diagram of a terminal according to an exemplary embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
References herein to "a plurality" means two or more. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship.
In the related art, in the process that the terminal reports the data collected by the IoT device to the data center, the terminal needs to establish communication connection with the IoT device and the data center respectively. When any communication channel between the terminal and the IoT device or the data center fails, or the terminal itself fails, the standby terminal is switched to acquire the device data of the IoT device and report the device data to the data center, that is, the standby terminal needs to establish communication connection with the IoT device and the data center again. In the process of reestablishing connection of the standby terminal, data cannot be reported, and data transmission efficiency is affected.
And when only one of the first communication channel between the terminal and the standby terminal and the IoT device or the second communication channel between the terminal and the data center fails, the data transmission cannot be recovered through the master-slave switching. For example, a first communication channel between terminal a and IoT device is normal, while a second communication channel between terminal a and the data center is faulty; if the second communication channel between the terminal B and the IoT device fails and the second communication channel between the terminal B and the data center is normal, if the terminal a is switched to the terminal B, the terminal B cannot establish communication connection with the IoT device, and cannot normally transmit device data.
Therefore, in the embodiment of the present application, a data transmission method is provided, by means of synchronization of device data, when connection between a terminal and an IoT device or a data center is interrupted, a single-side connection can be established through a standby terminal, so that device data can be obtained or device data can be sent, and data transmission efficiency is improved.
Referring to fig. 1, a schematic diagram of an implementation environment provided in one embodiment of the present application is shown. The implementation environment may include: ioT device 110, first terminal 120, second terminal 130, and server 140.
IoT devices 110 are data acquisition enabled devices that are typically provided with sensors, such as temperature sensors, pressure sensors, acceleration sensors, etc., that can regularly convert information acquired by the devices into electrical signals or other desired forms of information output. It is often applied in industry, electric wire netting, intelligent house, intelligent transportation etc..
The first terminal 120 and the second terminal 130 are electronic devices with a data transmission function, which may be electronic devices such as a mobile phone, a desktop computer, a tablet computer, a wearable device, a laptop portable computer, etc., and the first terminal 120 and the second terminal 130 may be the same type of electronic device or different types of electronic devices, and the specific types of the first terminal and the second terminal are not limited in this embodiment. In this embodiment, the first terminal 120 or the second terminal 130 is configured to acquire device data of an IoT device, report the device data to the server 140, and establish a synchronization channel between the first terminal 120 and the second terminal 130 to perform synchronization of the device data.
The server 140 has a data processing function, and is configured to perform data processing on data reported by the first terminal 120 or the second terminal 130. The server 140 may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), basic cloud computing services such as big data and artificial intelligence platforms, and the like.
Optionally, the IoT device 110 and the first terminal 120, the second terminal 130 may communicate with each other through a network, and the first terminal 120, the second terminal 130, and the server 140 may also communicate with each other through a network. And the first terminal 120 and the second terminal 130 may also communicate with each other through a network. The network may be a wired network or a wireless network.
In one possible implementation, the first terminal 120 may obtain the device data of the IoT device 110 and transmit the device data to the server 140, so that the server 140 performs data processing on the device data, and in this process, if the first terminal 120 cannot communicate with the IoT device 110 or the server 140, the second terminal 130 may be used for data transmission in a switching manner. Accordingly, when the second terminal 130 cannot communicate with the IoT device 110 or the server 140, the first terminal 120 may be switched to use for data transmission. The method provided in the embodiment of the present application may be applied to the first terminal 120 or the second terminal 130, and for convenience of description, the following description will be given by taking the terminal implementation as an example.
Referring to fig. 2, a flowchart of a data transmission method according to an exemplary embodiment of the present application is shown. The method comprises the following steps:
step 201, obtaining device data of a target internet of things IoT device through a first communication connection, and sending the device data to a data center through a second communication connection, where the data center is configured to perform data processing on the device data.
When device data of a target IoT device is acquired through a first communication connection and sent to a data center through a second communication connection, the first communication connection and the second communication connection are first established. When a communication connection is established, the communication connection needs to be established based on a communication channel. Thus, in one possible implementation, a first communication channel between the primary terminal and the target IoT device needs to be established first, and a second communication channel between the primary terminal and the data center needs to be established. After the channel is established, when the first communication connection is established, the main terminal may send a connection establishment request to the target IoT device through the first communication channel, and after the target IoT device receives the connection establishment request, the main terminal establishes the first communication connection with the main terminal. Correspondingly, when the second communication connection is established, the main terminal can send a connection establishment request to the data center through the second communication channel, and the data center establishes the second communication connection with the main terminal after receiving the connection establishment request.
When the first communication connection is established successfully, the device data of the target IoT device may be obtained through the first communication connection, and when the second communication connection is established successfully, the device data may be sent to the data center through the second communication connection.
The device data refers to data collected by a target IoT device, the target IoT device is any one of a plurality of IoT devices connected to a main terminal, and the data center is used for performing data processing on the device data. It should be noted that, the connection between the main terminal and the multiple IoT devices is independent, that is, when the communication connection between the main terminal and one of the IoT devices is interrupted, the communication state between the main terminal and the other IoT devices is not affected.
In response to the first communication connection interruption, device data is acquired from the backup terminal over a synchronization channel, the synchronization channel being a communication channel between the primary terminal and the backup terminal, the backup terminal for acquiring the device data at the target IoT device over a third communication connection, step 202.
In data transmission, the communication connection may be interrupted due to a communication channel failure or other environmental interference reasons. In the embodiment of the application, a synchronization channel is established between the main terminal and the standby terminal. In one possible implementation, when the first communication connection is interrupted, a third communication connection may be established by the standby terminal with the target IoT device, after the connection is established successfully, the standby terminal may obtain device data from the target IoT device, and the main terminal may obtain device data from the standby terminal through the synchronization channel, and further continue to send the device data to the data center through the second communication connection, without having to make the standby terminal establish a communication connection with the data center again.
Optionally, in order to avoid a synchronization channel failure between the main terminal and the standby terminal, and unable to normally acquire device data, in this embodiment of the present application, multiple synchronization channels may be established between the main terminal and the standby terminal for standby. When any one of the synchronous channels fails, another synchronous channel can be switched to acquire the device data.
In step 203, in response to the interruption of the second communication connection, a data transmission instruction is sent to the standby terminal through the synchronization channel, where the data transmission instruction is used to instruct the standby terminal to send device data to the data center through the fourth communication connection, and the device data is sent to the standby terminal through the synchronization channel by the main terminal.
When the second communication connection is interrupted, the main terminal can send a data sending instruction to the standby interrupt through the synchronous channel. After the standby interrupt receives the data sending instruction, a fourth communication connection is established with the data center, and the equipment data is continuously sent. Since the primary terminal sends the device data to the backup terminal, the backup terminal need only establish a communication connection with the data center, and not with the target IoT device.
Compared with the scheme in the related art, when the first communication connection between the main terminal and the target IoT device is interrupted or the second communication connection between the main terminal and the data center is interrupted, the standby terminal is required to establish communication connection with the target IoT device and the data center respectively.
In summary, in the embodiment of the present application, when the main terminal obtains the device data of the target IoT device through the first communication connection and sends the device data to the data center through the second communication connection, if the first communication connection is interrupted, the device data may be obtained at the standby terminal, and then the device data is continuously sent to the data center; when the second communication connection is interrupted, the standby terminal can continue to send the equipment data to the data center through the fourth communication connection, so that normal transmission of the data is ensured; compared with the switching of the main machine and the standby machine in the related art, when the first communication connection or the second communication connection is interrupted, the communication connection with the target internet traffic (IoT) equipment and the data center is not required to be established again through the standby terminal, so that the data transmission efficiency is improved.
In one possible embodiment, when the device data is acquired at the standby terminal, the standby terminal is first informed of the establishment of a communication connection with the IoT device, and the device data is acquired at the standby terminal if the connection establishment is successful, and correspondingly, when the device data is transmitted to the data center through the standby terminal, the standby terminal can transmit the device data to the data center if the communication connection establishment between the standby terminal and the data center is successful. The following will describe exemplary embodiments.
Step 301, obtaining device data of a target IoT device over a first communication connection and sending the device data to a data center over a second communication connection.
The embodiment of this step may refer to step 201, and this embodiment is not described herein.
In step 302, in response to the first communication connection interruption, a first connection establishment instruction is sent to the standby terminal, and the first communication connection with the target IoT device is stopped, where the first connection establishment instruction is used to instruct the standby terminal to establish a third communication connection with the target IoT device.
Optionally, when the first communication connection between the terminal and the IoT device is interrupted, a first connection establishment instruction is first sent to the standby terminal, so that the standby terminal establishes a third communication connection with the IoT device. The backup terminal may obtain device data at the IoT device only if the third communication connection establishment is successful, such that the primary terminal obtains device data at the backup terminal via the synchronization channel.
And the standby terminal establishes a third communication channel between the standby terminal and the IoT device when establishing the third communication connection with the IoT device, wherein the third communication channel is a pre-established channel.
It should be noted that, when the primary terminal sends the first connection establishment instruction to the standby terminal to instruct the standby terminal to establish the third communication connection with the target IoT device, the primary terminal stops attempting to reestablish the first communication connection with the target IoT device.
Step 303, in response to the first connection success notification sent by the standby terminal, acquiring the device data at the standby terminal through the synchronization channel, where the first connection success notification is used to indicate that the third communication connection is established successfully.
After the primary terminal sends the connection establishment instruction to the standby terminal, the standby terminal establishes a third communication connection with the target IoT device, and the standby terminal and the target IoT device may have a successful or failed establishment.
In one possible implementation, after sending the connection establishment instruction to the standby terminal, the standby terminal synchronizes the connection state in real time through the synchronization channel, and the terminal may determine whether the standby terminal successfully establishes the third communication connection according to the connection state between the standby terminal and the target IoT device, and if the connection is successful, acquire the device data at the standby terminal.
Optionally, in response to receiving a connection success notification sent by the standby terminal within the first time length threshold, device data is acquired at the standby terminal through the synchronization channel.
In the process of establishing the third communication connection between the standby terminal and the target IoT device, a certain time may be required to establish the third communication connection successfully, and if the connection establishment time is too long, the connection is indicated to be difficult, unstable and easy to affect the acquisition of the device data, so in a possible implementation manner, the terminal may preset a first time threshold, if the first connection success notification sent by the standby terminal is received in the first time threshold, it is determined that the standby terminal has successfully established the third communication connection, and therefore, the main terminal may acquire the device data at the standby terminal through the synchronization channel.
In step 304, in response to not receiving the first connection success notification sent by the standby terminal within the first time length threshold, sending a first connection stop instruction to the standby terminal, and reestablishing the first communication connection with the IoT device, where the first connection stop instruction is used for the standby terminal to stop establishing the third communication connection.
And if the first connection success notification sent by the standby terminal is not received within the first time length threshold, determining that the first communication connection establishment fails. Optionally, when the first connection success notification sent by the standby terminal is not received within the first time length threshold, the main terminal will restart to attempt to establish the first communication connection with the target IoT device, and at the same time, the main terminal may send a first connection stopping instruction to the standby terminal through the synchronization channel, where the standby terminal stops attempting to establish the third communication connection with the target IoT device, so as to avoid that the standby terminal and the main terminal attempt to establish the third communication connection with the target IoT device at the same time.
Similarly, if the primary terminal establishes the first communication connection within the first time threshold, the primary terminal continues to acquire the device data and sends the device data to the data center, and if the primary terminal fails to establish the first communication connection within the first time threshold, the primary terminal stops attempting to establish the first communication connection with the target IoT device and resends the first connection establishment instruction to the standby terminal, thereby instructing the standby terminal to establish the third communication connection, and the process is cycled until the primary terminal establishes the first communication connection or the standby terminal establishes the third communication connection successfully.
In step 305, in response to the second communication connection interruption, a second connection establishment instruction is sent to the standby terminal, and the second communication connection with the data center is stopped, where the second connection establishment instruction is used to instruct the standby terminal to establish a fourth communication connection with the data center.
Optionally, the standby terminal will attempt to establish a fourth communication connection with the data center after receiving the data transmission instruction. When the standby terminal establishes fourth communication connection, the standby terminal establishes a fourth communication channel between the standby terminal and the data center, wherein the fourth communication channel is a pre-established communication channel.
And stopping attempting to reestablish the second communication connection with the data center when the main terminal indicates the standby terminal to establish the fourth communication connection with the data center.
And step 306, responding to a second connection success notice sent by the standby terminal, and sending a data sending instruction to the standby terminal through the synchronous channel, wherein the second connection success notice is used for indicating that the fourth communication connection is established successfully.
Accordingly, in the process of establishing the fourth communication connection by the standby terminal, there may be a case that the establishment is successful or the establishment is failed.
In one possible implementation manner, the main terminal may preset a second duration threshold, if the second connection success notification sent by the standby terminal is received within the second duration threshold, it is determined that the standby terminal has successfully established the fourth communication connection, and a data sending instruction may be sent to the standby terminal, so as to instruct the standby terminal to send device data to the data center.
Optionally, the duration of the second duration threshold may be the same as or different from the duration of the first duration threshold, which is not limited in this embodiment.
Optionally, during the data transmission process, the standby terminal may also perform data transmission according to the equipment data acquisition sequence, and when the second communication connection between the main terminal and the data center is disconnected, the standby terminal continues to perform data transmission according to the equipment data acquisition sequence through the fourth communication connection.
Step 307, in response to not receiving the second connection success notification sent by the standby terminal within the second duration threshold, sending a second connection stopping instruction to the standby terminal, and reestablishing the second communication connection with the data center, where the second connection stopping instruction is used for stopping the standby terminal from establishing the fourth communication connection.
And when the standby terminal does not establish the fourth communication connection successfully within the second duration threshold, that is, the main terminal does not receive the second connection success notification sent by the standby terminal, a second connection stopping instruction is sent to the standby terminal, so that the standby terminal stops establishing the fourth communication connection, and the main terminal establishes the second communication connection with the data center again.
Correspondingly, if the second communication connection is established successfully within the second duration threshold, the main terminal continuously reports the equipment data and transmits the equipment data to the data center, and if the second communication connection is established successfully within the second duration threshold, the attempt to establish the second communication connection with the data center is stopped, and a data transmission instruction is sent again to the standby terminal to instruct the standby terminal to establish the fourth communication connection, and the process is circulated until the main terminal successfully establishes the second communication connection or the standby terminal successfully establishes the fourth communication connection.
Illustratively, as shown in fig. 4, first, a first terminal 402 establishes a first communication connection with an IoT device 401 via a first channel 406 and a second communication connection with a data center 404 via a second channel 408, thereby performing data transmission. After the first terminal 402 obtains the device data, the device data is stored in the local shared memory, and is synchronized to the second terminal 403 through the synchronization channel 405, and the second terminal 403 stores the data in the local shared memory. When the first communication connection between the first terminal 402 and the IoT device 401 is disconnected, a notification may be sent to the second terminal 403 through the synchronization channel 405, causing the second terminal 403 to establish a third communication connection with the IoT device 401 through the third channel 407, acquiring device data and synchronizing the data.
When the second communication connection between the first terminal 402 and the data center 404 is disconnected, a notification may be sent to the second terminal 403 through the synchronization channel 405, so that the second terminal 403 and the data center 404 establish a fourth communication connection through the fourth channel 409, and the device data is continuously reported to the data center 404.
After receiving the device data, the data center 404 will send a receipt acknowledgement indication, so that the first terminal 402 and the second terminal 403 delete the device data that has been successfully transmitted according to the data identifier, thereby reducing the occupation of the storage space.
In the embodiment of the application, the main terminal and the standby terminal both store the device data, and if the device data is continuously stored, a larger storage space is occupied, so that the waste of storage resources is caused. Thus, in one possible implementation, after the data is transmitted to the data center, the reported data is deleted, thereby reducing the occupation of storage space. The following will be described in an exemplary implementation.
Referring to fig. 5, a flowchart of a data transmission method according to an exemplary embodiment of the present application is shown.
Step 501, obtaining device data of a target IoT device over a first communication connection and sending the device data to a data center over a second communication connection.
For the implementation of step 501, reference may be made to step 201 above, and this embodiment will not be repeated.
In step 502, in response to the first communication connection interruption, device data carrying a data identifier is acquired at the standby terminal through the synchronization channel, the data identifier being set by the standby terminal when the device data is acquired.
After the first communication connection between the primary terminal and the target IoT device is interrupted, a third communication connection is established between the backup terminal and the target IoT device, thereby obtaining device data. After the standby terminal acquires the device data, the device data is stored in a local shared memory, wherein the shared memory refers to a memory which can be accessed by each client in the terminal, and because the acquired device data and the transmitting device data may not be the same client, the acquired device data needs to be stored in the shared memory. And simultaneously, transmitting the equipment data to the main terminal through a synchronous channel, so that the main terminal can transmit the equipment data to the data center based on the equipment data acquired at the standby terminal.
The main terminal acquires the device data from the standby terminal, then the device data is stored in the local shared memory, and when the device data is sent to the data center, the device data is acquired in the local shared memory and is sent.
And because the device data are stored in both terminals, if the device data are continuously stored, the data storage occupies a larger storage space along with the increase of the device data, so that the transmitted device data need to be deleted after the device data are transmitted. In order to facilitate distinguishing between transmitted device data and non-transmitted device data, a data identifier is set for each device data after the device data is acquired by the standby terminal.
Alternatively, the data identifier may be in the form of a digital number, a text, a symbol, or the like, which is not limited in this embodiment. It should be noted that, the data identifiers corresponding to different device data are different, that is, the device data and the device data identifier are in a one-to-one correspondence.
In one possible implementation, since the standby terminal may receive device data from different IoT devices, the same type of data identification may be set for device data from the same device in order to facilitate distinguishing between device data from different devices. For example, a data identifier of a numeric number type is set for data from device one, a data identifier of a text type is set for data from device two, and a data identifier of a symbol type is set in comparison with data from device three.
And when the data identifier is set, the data acquisition sequence can be set based on the data, even if the data identifier can identify the acquisition sequence of the data in addition to the identification data, so that the master terminal and the standby terminal can send each device data based on the acquisition sequence of the data.
Illustratively, taking the numerical numbering as an example, when at 8:00 sets a data identifier of "1" when receiving a first piece of device data from a first device; when at 8:01 when receiving second piece of equipment data from equipment one, setting a data identification '2'; when at 8:02 receiving a third piece of device data from device one, setting a data flag "3".
In one possible embodiment, the confirmation of whether the device data has been successfully transmitted is determined from a confirmation of the data center. Therefore, when the main terminal acquires the device data at the standby terminal, the device data carrying the data identifier will be acquired.
Step 503, sending device data carrying the data identifier to the data center through the second communication connection.
After acquiring the device data carrying the data identifier, the main terminal sends the device data to the data center through the second communication connection with the data center. In the process, the data identifier corresponding to the synchronous transmitting equipment data enables the data center to confirm the received equipment data, so that the equipment data is deleted according to the confirmation instruction of the data center.
Alternatively, when the device data is sent to the data center, the device data may be sent according to the acquisition order of the device data, that is, the device data acquired first is sent to the data center first.
In step 504, in response to the first receipt acknowledgement indication sent by the data center, deleting the first target data in the device data and sending the first receipt acknowledgement indication to the standby terminal, where the data identifier of the first target data is the same as the data identifier in the first receipt acknowledgement indication, and the standby terminal is configured to delete the first target data according to the first receipt acknowledgement indication.
Optionally, the first reception acknowledgement indication is a reception acknowledgement indication sent by the data center to the master terminal.
In one possible implementation manner, after the data center receives the device data carrying the data identifier sent by the main terminal, a first receiving confirmation indication may be sent to the main terminal, where the first receiving confirmation indication includes the data identifier of the received device data.
And after the main terminal receives the first receiving confirmation instruction, determining first target data corresponding to the data identification in the receiving confirmation instruction, so as to delete the first target data in the shared memory. And because the standby terminal also stores the equipment data, the main terminal synchronizes the first receiving confirmation instruction to the standby terminal through the synchronization channel, and the standby terminal also deletes the first target data in the stored equipment data, so that the waste of storage resources is avoided.
Step 505, setting a data identifier for the device data, and sending the device data carrying the data identifier to the standby terminal through the synchronous channel.
In the above embodiment, the description is made of the process of acquiring the device data by the standby terminal, setting the data identifier in the process of transmitting the device data by the main terminal, and deleting the transmitted device data according to the data identifier.
In yet another possible scenario, the device data is acquired by the primary terminal and the standby terminal sends the device data. In this process, the primary terminal sets the data identifier and synchronizes the data identifier to the standby terminal, where the manner of setting the data identifier by the primary terminal may refer to the manner of the data identifier of the standby terminal device, which is not described herein again.
And step 506, responding to the interruption of the second communication connection, and sending a data sending instruction to the standby terminal through the synchronous channel.
And after the second communication connection terminal is connected, the main terminal sends a data sending instruction to the standby terminal to instruct the standby terminal to send equipment data to the data center. When the standby terminal sends the equipment data, the standby terminal sends the equipment data carrying the data identifier to the data center.
In step 507, in response to the second receipt acknowledgement indication sent by the standby terminal, deleting the second target data in the device data, where the second receipt acknowledgement indication is sent by the data center to the standby terminal, and the data identifier of the second target data is the same as the data identifier in the second receipt acknowledgement indication.
Optionally, the second receipt acknowledgement indication is a receipt acknowledgement indication sent by the data center to the standby terminal. After the standby terminal sends the equipment data carrying the data identifier to the data center, the data center sends a second receiving confirmation instruction to the standby terminal according to the received equipment data, wherein the second receiving confirmation instruction comprises the data identifier of the successfully sent equipment data.
After receiving the second receiving confirmation instruction of the data center, the standby terminal deletes the second target data according to the data identifier in the second receiving confirmation instruction, and synchronizes the second receiving confirmation instruction to the main terminal, so that both terminals delete the sent device data.
In this embodiment, in the case that the data center receives the device data, a receiving acknowledgement indication is sent to the terminal that sent the device data, the terminal is instructed to delete the device data that has been successfully reported, and correspondingly, the terminal synchronizes the receiving acknowledgement indication to another terminal, so that the other terminal also deletes the device data that has been successfully reported, and waste of storage resources is avoided.
In one possible scenario, there may be a case where a synchronization channel between the primary terminal and the standby terminal fails, in which case the primary terminal cannot normally communicate with the standby terminal. However, only when the terminal and the standby terminal are in normal communication, namely in the primary-standby mode, the first communication connection is interrupted, the primary terminal can acquire the device data at the standby terminal; or when the second communication connection is interrupted, sending a data sending instruction to the standby terminal. Therefore, it is first determined whether or not to be in the active-standby mode before acquiring device data at the standby terminal or transmitting a data transmission instruction to the standby terminal.
In one possible implementation, the primary and secondary modes are determined to be in response to receiving heartbeat data for the secondary terminal at intervals of a target time. The main terminal and the standby terminal can mutually send heartbeat data through a synchronous channel, before the main terminal, the IoT device and the data center establish communication connection, whether the heartbeat data of the standby terminal are received within a preset time period is firstly determined, if the heartbeat data of the standby terminal are received, the main and standby modes are activated, and after the heartbeat data are activated, if the heartbeat data sent by the standby terminal can be received by the terminal every other target period, the standby terminal is determined to be continuously in the main and standby modes.
Optionally, the stand-alone mode is determined in response to not receiving heartbeat data of the standby terminal within the target time interval. When the synchronization channel fails, the main terminal may not continuously receive the heartbeat data, and therefore, when the heartbeat data cannot be received within a fixed time interval, the stand-alone mode is activated, and subsequently, if the heartbeat data of the standby terminal is received, the main standby mode is activated, and if the heartbeat data is not received within a target time interval after the main standby mode is activated, the stand-alone mode is switched again. Namely, after receiving the primary heartbeat data, when the target time interval is reached, the standby terminal does not receive the heartbeat data, and the main standby mode is switched to the stand-alone mode.
Optionally, in the stand-alone mode, the primary terminal and the standby terminal are both connected to the target IoT device and the data center. When the data center receives two connection establishment requests sent by different terminals, one terminal is selected to establish the second communication connection, and a connection stopping instruction is sent to the other terminal to instruct the other terminal to stop attempting to establish the connection with the data center.
Optionally, in response to receiving a communication-stopping instruction from the data center, stopping establishing the second communication connection with the data center, and interrupting the first communication connection, the communication-stopping instruction is sent by the data center in the stand-alone mode.
Optionally, when in the stand-alone mode, both terminals establish communication connection with the IoT device to obtain device data, and when the master terminal receives a communication stopping instruction sent by the data center, the master terminal stops establishing the second communication connection with the data center, so as to avoid repeated connection. In this case, it is indicated that the data center and the standby terminal establish the second communication connection, and the standby terminal reports the device data, so that the main terminal can stop acquiring the device data, and the occupation of the storage space is reduced.
Correspondingly, when the standby terminal receives the communication stopping instruction, the fourth communication connection with the data center is also stopped, and the acquisition of the device data of the IoT device is stopped.
Fig. 6 is a block diagram of a data transmission apparatus according to an exemplary embodiment of the present application, the apparatus including:
a transmission module 601, configured to obtain device data of a target internet of things IoT device through a first communication connection, and send the device data to a data center through a second communication connection, where the data center is configured to perform data processing on the device data;
an obtaining module 602, configured to obtain, in response to the first communication connection interruption, the device data from a standby terminal through a synchronization channel, the synchronization channel being a communication channel between the primary terminal and the standby terminal, the standby terminal being configured to obtain the device data at the target IoT device through a third communication connection;
and the sending module 603 is configured to send, in response to the interruption of the second communication connection, a data sending instruction to the standby terminal through the synchronization channel, where the data sending instruction is used to instruct the standby terminal to send the device data to the data center through a fourth communication connection, and the device data is sent by the main terminal to the standby terminal through the synchronization channel.
Optionally, the acquiring module 602 includes:
a first sending unit, configured to send a first connection establishment instruction to the standby terminal and stop establishing the first communication connection with the target IoT device in response to the first communication connection interruption, where the first connection establishment instruction is configured to instruct the standby terminal to establish the third communication connection with the target IoT device;
and the acquisition unit is used for responding to a first connection success notification sent by the standby terminal, acquiring the equipment data from the standby terminal through the synchronous channel, wherein the first connection success notification is used for indicating that the third communication connection is established successfully.
Optionally, the acquiring unit is further configured to:
in response to receiving the first connection success notification sent by the standby terminal within a first time length threshold, acquiring the equipment data from the standby terminal through the synchronous channel;
the apparatus further comprises:
a first establishing module, configured to send a first connection stopping instruction to the standby terminal and reestablish the first communication connection with the target IoT device in response to not receiving the first connection success notification sent by the standby terminal within the first time length threshold, where the first connection stopping instruction is configured to instruct the standby terminal to stop establishing the third communication connection.
Optionally, the sending module includes:
a second sending unit, configured to send a second connection establishment instruction to the standby terminal in response to the second communication connection interruption, and stop establishing the second communication connection with the data center, where the second connection establishment instruction is used to instruct the standby terminal to establish the fourth communication connection with the data center;
and the third sending unit is used for responding to a second connection success notification sent by the standby terminal, sending the data sending instruction to the standby terminal through the synchronous channel, and the second connection success notification is used for indicating that the fourth communication connection is established successfully.
Optionally, the second sending unit is further configured to:
responding to the received second connection success notice sent by the standby terminal in a second duration threshold, and sending the data sending instruction to the standby terminal through the synchronous channel;
the apparatus further comprises:
and the second establishing module is used for responding to the condition that the second connection success notice sent by the standby terminal is not received within the second duration threshold, sending a second connection stopping instruction to the standby terminal and reestablishing the second communication connection with the data center, wherein the second connection stopping instruction is used for indicating the standby terminal to stop establishing the fourth communication connection.
Optionally, the acquiring unit is further configured to:
acquiring the equipment data carrying a data identifier from the standby terminal through the synchronous channel, wherein the data identifier is set by the standby terminal when acquiring the equipment data;
the transmission module 601 is further configured to:
and sending the equipment data carrying the data identifier to the data center through the second communication connection.
Optionally, the apparatus further includes:
the first deleting module is used for responding to a first receiving confirmation instruction sent by the data center, deleting first target data in the equipment data and sending the first receiving confirmation instruction to the standby terminal, wherein the data identification of the target data is the same as the data identification in the first receiving confirmation instruction, and the standby terminal is used for deleting the first target data according to the first receiving confirmation instruction.
Optionally, the apparatus further includes:
and the setting module is used for setting a data identifier for the equipment data and sending the equipment data carrying the data identifier to the standby terminal through the synchronous channel.
And the second deleting module is used for responding to a second receiving confirmation instruction sent by the standby terminal and deleting second target data in the equipment data, the second receiving confirmation instruction is sent to the standby terminal by the data center, and the data identification of the second target data is the same as the data identification in the second receiving confirmation instruction.
Optionally, the obtaining module 602 is further configured to:
responding to the situation that the primary terminal and the standby terminal are in a primary-standby mode and the first communication connection is interrupted, acquiring the equipment data from the standby terminal through the synchronous channel, wherein the primary terminal and the standby terminal normally communicate in the primary-standby mode;
the sending module 603 is further configured to:
and responding to the condition that the master and slave modes are in the master and slave mode and the second communication connection is interrupted, and sending a data sending instruction to the slave terminal through the synchronous channel.
Optionally, the apparatus further includes:
the first determining module is used for determining to be in the master-slave mode in response to the fact that heartbeat data of the standby terminal are received at intervals of a target time;
and a second determining module, configured to determine, in a stand-alone mode in which the main terminal and the standby terminal both establish a connection with the target IoT device and the data center, in response to not receiving heartbeat data of the standby terminal within the target time interval.
Optionally, the apparatus further includes:
and the stopping connection module is used for stopping establishing the second communication connection with the data center and interrupting the first communication connection in response to receiving a stopping communication instruction of the data center, wherein the stopping communication instruction is sent by the data center in the single machine mode.
In the embodiment of the application, when the main terminal obtains the device data of the target IoT device through the first communication connection and sends the device data to the data center through the second communication connection, if the first communication connection is interrupted, the device data can be obtained at the standby terminal, and then the device data is continuously sent to the data center; when the second communication connection is interrupted, the standby terminal can continue to send the equipment data to the data center through the fourth communication connection, so that normal transmission of the data is ensured; compared with the switching of the main machine and the standby machine in the related art, when the first communication connection or the second communication connection is interrupted, the communication connection with the target internet traffic (IoT) equipment and the data center is not required to be established again through the standby terminal, so that the data transmission efficiency is improved.
It should be noted that: the apparatus provided in the above embodiment is only exemplified by the division of the above functional modules, and in practical application, the above functional allocation may be performed by different functional modules according to needs, that is, the internal structure of the apparatus is divided into different functional modules, so as to perform all or part of the functions described above. In addition, the apparatus and the method embodiments provided in the foregoing embodiments belong to the same concept, and detailed implementation processes of the method embodiments are described in the method embodiments, which are not repeated herein.
Referring to fig. 7, a block diagram of a terminal according to an exemplary embodiment of the present application is shown. The terminal 700 may be a smart phone, tablet, wearable device, etc. The terminal 700 in the present application may include one or more of the following components: a processor 701 and a memory 702.
Processor 701 may include one or more processing cores. The processor 701 connects various parts within the overall terminal 700 using various interfaces and lines, performs various functions of the terminal 700 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 702, and invoking data stored in the memory 702. Alternatively, the processor 701 may be implemented in hardware in at least one of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable Logic Array, PLA). The processor 701 may integrate one or a combination of several of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), a Neural network processor (Neural-network Processing Unit, NPU), a modem, etc. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is responsible for bluetooth data transceiving and bluetooth related work required to be performed by the bluetooth chip 730; the NPU is used to implement artificial intelligence (Artificial Intelligence, AI) functionality; the modem is used to handle wireless communications. It will be appreciated that the modem may not be integrated into the processor 701 and may be implemented by a single chip.
The Memory 702 may include a random access Memory (Random Access Memory, RAM) or a Read-Only Memory (ROM). Optionally, the memory 702 includes a non-transitory computer readable medium (non-transitory computer-readable storage medium). Memory 702 may be used to store instructions, programs, code, sets of codes, or instruction sets. The memory 702 may include a stored program area and a stored data area, where the stored program area may store instructions for implementing an operating system, which may be an Android (Android) system (including a system developed based on the Android system), an IOS system developed by apple corporation (including a system developed based on the IOS system), or other systems, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described above, and so forth. The storage data area may also store data created by the terminal in use (such as phonebook, audio-video data, chat-record data), etc.
In addition, those skilled in the art will appreciate that the structure of the terminal 700 illustrated in the above-described figures is not limiting as to computer devices, which may include more or fewer components than illustrated, or may combine certain components, or a different arrangement of components. For example, the terminal 700 further includes a display screen, a sensor, an audio circuit, a power supply, etc., which are not described herein.
Embodiments of the present application also provide a computer readable storage medium storing at least one instruction that is loaded and executed by a processor to implement the data transmission method described in the above embodiments.
According to one aspect of the present application, there is provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to perform the data transmission method provided in the various alternative implementations of the above aspects.
Those skilled in the art will appreciate that in one or more of the examples described above, the functions described in the embodiments of the present application may be implemented in hardware, software, firmware, or any combination thereof. When implemented in software, these functions may be stored on or transmitted over as one or more instructions or code on a computer-readable storage medium. Computer-readable storage media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
The foregoing description of the preferred embodiments is merely exemplary in nature and is in no way intended to limit the invention, since it is intended that all modifications, equivalents, improvements, etc. that fall within the spirit and scope of the invention.

Claims (14)

1. A data transmission method, wherein the method is used for a master terminal, and the method comprises:
acquiring device data of a target internet of things (IoT) device through a first communication connection, and sending the device data to a data center through a second communication connection, wherein the data center is used for performing data processing on the device data;
in response to the first communication connection interruption, obtaining the device data from a backup terminal through a synchronization channel, the synchronization channel being a communication channel between the primary terminal and the backup terminal, the backup terminal for obtaining the device data at a target IoT device through a third communication connection;
and responding to the interruption of the second communication connection, sending a data sending instruction to the standby terminal through the synchronous channel, wherein the data sending instruction is used for indicating the standby terminal to send the equipment data to the data center through a fourth communication connection, and the equipment data is sent to the standby terminal through the synchronous channel by the main terminal.
2. The method of claim 1, wherein the obtaining the device data from the standby terminal over the synchronization channel in response to the first communication connection interruption comprises:
in response to the first communication connection interruption, sending a first connection establishment instruction to the standby terminal and stopping establishment of the first communication connection with the target IoT device, the first connection establishment instruction being used for instructing the standby terminal to establish the third communication connection with the target IoT device;
and responding to a first connection success notification sent by the standby terminal, acquiring the equipment data from the standby terminal through the synchronous channel, wherein the first connection success notification is used for indicating that the third communication connection is established successfully.
3. The method of claim 2, wherein the obtaining the device data from the standby terminal through the synchronization channel in response to the first connection success notification sent by the standby terminal comprises:
in response to receiving the first connection success notification sent by the standby terminal within a first time length threshold, acquiring the equipment data from the standby terminal through the synchronous channel;
The method further comprises the steps of:
and in response to not receiving the first connection success notification sent by the standby terminal within the first time length threshold, sending a first connection stopping instruction to the standby terminal and reestablishing the first communication connection with the target IoT device, wherein the first connection stopping instruction is used for indicating the standby terminal to stop establishing the third communication connection.
4. The method of claim 1, wherein the sending, in response to the second communication connection interruption, a data transmission instruction to the standby terminal through the synchronization channel comprises:
responding to the second communication connection interruption, sending a second connection establishment instruction to the standby terminal and stopping establishing the second communication connection with the data center, wherein the second connection establishment instruction is used for indicating the standby terminal to establish the fourth communication connection with the data center;
and responding to a second connection success notification sent by the standby terminal, sending the data sending instruction to the standby terminal through the synchronous channel, wherein the second connection success notification is used for indicating that the fourth communication connection is established successfully.
5. The method of claim 4, wherein the sending the data transmission instruction to the standby terminal through the synchronization channel in response to the second connection success notification sent by the standby terminal comprises:
responding to the received second connection success notice sent by the standby terminal in a second duration threshold, and sending the data sending instruction to the standby terminal through the synchronous channel;
the method further comprises the steps of:
and in response to the fact that the second connection success notification sent by the standby terminal is not received within the second duration threshold, sending a second connection stopping instruction to the standby terminal and reestablishing the second communication connection with the data center, wherein the second connection stopping instruction is used for indicating the standby terminal to stop establishing the fourth communication connection.
6. The method of claim 2, wherein the obtaining the device data from the standby terminal through the synchronization channel comprises:
acquiring the equipment data carrying a data identifier from the standby terminal through the synchronous channel, wherein the data identifier is set by the standby terminal when acquiring the equipment data;
The sending the device data to a data center via a second communication connection includes:
and sending the equipment data carrying the data identifier to the data center through the second communication connection.
7. The method of claim 6, wherein after the transmitting the device data carrying the data identification to the data center over the second communication connection, the method further comprises:
and deleting the first target data in the equipment data and sending the first receipt confirmation indication to the standby terminal in response to the first receipt confirmation indication sent by the data center, wherein the data identification of the first target data is the same as the data identification in the first receipt confirmation indication, and the standby terminal is used for deleting the first target data according to the first receipt confirmation indication.
8. The method of claim 1, wherein after the obtaining device data for the target internet of things IoT device via the first communication connection, the method further comprises:
setting a data identifier for the equipment data, and sending the equipment data carrying the data identifier to the standby terminal through the synchronous channel;
After the data sending instruction is sent to the standby terminal through the synchronous channel in response to the second communication connection interruption, the method further comprises:
and deleting second target data in the equipment data in response to a second receiving confirmation instruction sent by the standby terminal, wherein the second receiving confirmation instruction is sent to the standby terminal by the data center, and the data identification of the second target data is the same as the data identification in the second receiving confirmation instruction.
9. The method according to any one of claims 1 to 8, wherein said obtaining said device data from a standby terminal over a synchronization channel in response to said first communication connection interruption comprises:
responding to the situation that the primary terminal and the standby terminal are in a primary-standby mode and the first communication connection is interrupted, acquiring the equipment data from the standby terminal through the synchronous channel, wherein the primary terminal and the standby terminal normally communicate in the primary-standby mode;
the responding to the second communication connection interruption, sending a data sending instruction to the standby terminal through the synchronous channel, comprising:
and responding to the condition that the master and slave modes are in the master and slave mode and the second communication connection is interrupted, and sending a data sending instruction to the slave terminal through the synchronous channel.
10. The method according to claim 9, wherein the method further comprises:
determining to be in the primary-standby mode in response to receiving heartbeat data of the standby terminal at intervals of a target time;
and in response to not receiving the heartbeat data of the standby terminal within the target time interval, determining to be in a stand-alone mode in which the main terminal and the standby terminal both establish a connection with the target IoT device and the data center.
11. The method according to claim 10, wherein the method further comprises:
and stopping establishing the second communication connection with the data center and interrupting the first communication connection in response to receiving a communication stopping instruction of the data center, wherein the communication stopping instruction is sent by the data center in the stand-alone mode.
12. A data transmission apparatus for a master terminal, the apparatus comprising:
the system comprises a transmission module, a data center and a control module, wherein the transmission module is used for acquiring equipment data of target internet of things (IoT) equipment through a first communication connection and sending the equipment data to the data center through a second communication connection, and the data center is used for carrying out data processing on the equipment data;
An acquisition module for acquiring the device data from a backup terminal through a synchronization channel in response to the first communication connection interruption, the synchronization channel being a communication channel between the primary terminal and the backup terminal, the backup terminal for acquiring the device data at a target IoT device through a third communication connection;
and the sending module is used for responding to the interruption of the second communication connection and sending a data sending instruction to the standby terminal through the synchronous channel, wherein the data sending instruction is used for indicating the standby terminal to send the equipment data to the data center through a fourth communication connection, and the equipment data is sent to the standby terminal through the synchronous channel by the main terminal.
13. A terminal, the terminal comprising a processor and a memory; the memory stores at least one instruction, at least one program, a set of codes, or a set of instructions, the at least one instruction, the at least one program, the set of codes, or the set of instructions being loaded and executed by the processor to implement the data transmission method of any one of claims 1 to 11.
14. A computer readable storage medium, characterized in that at least one computer program is stored in the computer readable storage medium, which computer program is loaded and executed by a processor for realizing the data transmission method according to any one of claims 1 to 11.
CN202210577766.0A 2022-05-25 2022-05-25 Data transmission method, device, terminal and storage medium Active CN114884805B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202210577766.0A CN114884805B (en) 2022-05-25 2022-05-25 Data transmission method, device, terminal and storage medium
PCT/SG2023/050362 WO2023229531A2 (en) 2022-05-25 2023-05-24 Data transmission method and apparatus, terminal, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210577766.0A CN114884805B (en) 2022-05-25 2022-05-25 Data transmission method, device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN114884805A CN114884805A (en) 2022-08-09
CN114884805B true CN114884805B (en) 2023-07-21

Family

ID=82678086

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210577766.0A Active CN114884805B (en) 2022-05-25 2022-05-25 Data transmission method, device, terminal and storage medium

Country Status (2)

Country Link
CN (1) CN114884805B (en)
WO (1) WO2023229531A2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115541991A (en) * 2022-09-23 2022-12-30 江苏盛德电子仪表有限公司 Internet of things intelligent electric energy meter with temperature measurement function

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107466079A (en) * 2017-08-17 2017-12-12 深圳市盛路物联通讯技术有限公司 Automatic relay switching method and device
CN107547264A (en) * 2017-07-28 2018-01-05 深圳市盛路物联通讯技术有限公司 A kind of data back up method and device based on Internet of Things
CN107809782A (en) * 2017-09-08 2018-03-16 深圳市盛路物联通讯技术有限公司 Internet of things data transmission method and storage medium
CN110995513A (en) * 2019-12-27 2020-04-10 远景智能国际私人投资有限公司 Data sending and receiving method in Internet of things system, Internet of things equipment and platform
US10944638B1 (en) * 2019-09-26 2021-03-09 Vmware, Inc. Internet of things device discovery and configuration
CN112685236A (en) * 2020-12-31 2021-04-20 科华恒盛股份有限公司 Dual-computer mutual backup method and system of data management system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9451507B2 (en) * 2011-12-13 2016-09-20 Vonage America Inc. Systems and methods for handoff of a mobile telephone call in a VOIP environment
EP3864892A2 (en) * 2018-10-09 2021-08-18 Telefonaktiebolaget Lm Ericsson (Publ) Inter-rat (radio access technology) re-establishment enhancements in multi-rat dual connectivity (mr-dc)
WO2021194404A1 (en) * 2020-03-24 2021-09-30 Telefonaktiebolaget Lm Ericsson (Publ) Handling of split radio bearers during mcg/scg failure recovery
US20210117515A1 (en) * 2020-07-07 2021-04-22 Katalin Klara Bartfai-Walcott Software defined silicon guardianship

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107547264A (en) * 2017-07-28 2018-01-05 深圳市盛路物联通讯技术有限公司 A kind of data back up method and device based on Internet of Things
CN107466079A (en) * 2017-08-17 2017-12-12 深圳市盛路物联通讯技术有限公司 Automatic relay switching method and device
CN107809782A (en) * 2017-09-08 2018-03-16 深圳市盛路物联通讯技术有限公司 Internet of things data transmission method and storage medium
US10944638B1 (en) * 2019-09-26 2021-03-09 Vmware, Inc. Internet of things device discovery and configuration
CN110995513A (en) * 2019-12-27 2020-04-10 远景智能国际私人投资有限公司 Data sending and receiving method in Internet of things system, Internet of things equipment and platform
CN112685236A (en) * 2020-12-31 2021-04-20 科华恒盛股份有限公司 Dual-computer mutual backup method and system of data management system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于物联网综合接入网关设计与实现;杨昌兆;《中国优秀硕士学位论文全文数据库》;全文 *

Also Published As

Publication number Publication date
CN114884805A (en) 2022-08-09
WO2023229531A3 (en) 2023-12-28
WO2023229531A2 (en) 2023-11-30

Similar Documents

Publication Publication Date Title
CN107295080B (en) Data storage method applied to distributed server cluster and server
CN109792287B (en) Method and device for transmitting response message
EP3229420A1 (en) Method for establishing persistent connection between multiple smart devices and server, and smart device
CN104184756A (en) Data synchronization method, device and system
WO2021237433A1 (en) Message pushing method and apparatus, and electronic device and computer-readable medium
CN109040295B (en) Method and device for determining abnormal disconnection, terminal and storage medium
US11889255B2 (en) Communication method between earphones and charging box, charging box, earphones and readable storage medium
CN102882704A (en) Link protection method and apparatus in soft restart upgrade process of ISSU (in-service software upgrade)
US20190132763A1 (en) Method and device for transmitting data
CN114884805B (en) Data transmission method, device, terminal and storage medium
CN111541762B (en) Data processing method, management server, device and storage medium
CN109788251B (en) Video processing method, device and storage medium
CN108667640B (en) Communication method and device, and network access system
CN105580424A (en) Method and apparatus for accessing base station by terminal
CN107612719B (en) Data backup method and device for Internet of things access point
CN113992740B (en) Middleware based on autonomous control and data transmission method
US20230126682A1 (en) Fault tolerance method and apparatus of network device system, computer device, and storage medium
CN107872479B (en) Cloud management platform and controller integration method and system and related modules
CN106304241B (en) Data transmission method, repeater and gateway
CN112995095B (en) Data processing method, device and computer readable storage medium
CN110572440B (en) Method and device for data transmission, household appliance and storage medium
CN116466613A (en) Execution method of control instruction, controlled equipment, station server and execution device
CN110119111B (en) Communication method and device, storage medium, and electronic device
CN114697339A (en) Load balancing method and device under centralized architecture
CN110650259B (en) Call request response method, device, server, terminal and storage medium

Legal Events

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