CN112532704A - Data transmission method and device, electronic equipment and storage medium - Google Patents

Data transmission method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112532704A
CN112532704A CN202011312624.9A CN202011312624A CN112532704A CN 112532704 A CN112532704 A CN 112532704A CN 202011312624 A CN202011312624 A CN 202011312624A CN 112532704 A CN112532704 A CN 112532704A
Authority
CN
China
Prior art keywords
task
network
network task
time
equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011312624.9A
Other languages
Chinese (zh)
Other versions
CN112532704B (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.)
BOE Technology Group Co Ltd
Original Assignee
BOE Technology Group 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 BOE Technology Group Co Ltd filed Critical BOE Technology Group Co Ltd
Priority to CN202011312624.9A priority Critical patent/CN112532704B/en
Publication of CN112532704A publication Critical patent/CN112532704A/en
Application granted granted Critical
Publication of CN112532704B publication Critical patent/CN112532704B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/14Session management
    • H04L67/143Termination or inactivation of sessions, e.g. event-controlled end of session
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/143Termination or inactivation of sessions, e.g. event-controlled end of session
    • H04L67/145Termination or inactivation of sessions, e.g. event-controlled end of session avoiding end of session, e.g. keep-alive, heartbeats, resumption message or wake-up for inactive or interrupted session
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/148Migration or transfer of sessions
    • 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 application provides a method, a device, an electronic device and a storage medium for controlling a gateway device, which are applied to the technical field of computers and gateway devices in an internet of things system, and the internet of things system further comprises: the method comprises the following steps: receiving a network task sent by first equipment; storing the network task and generating management information of the network task; receiving a heartbeat message sent by second equipment; and when the heartbeat message is confirmed to be matched with the management information of the network task, the network task is sent to the second equipment. According to the scheme, the storage and management tasks of the network tasks are transferred from the first equipment generating the tasks to the gateway equipment, so that the network tasks of which the management information is matched with the heartbeat messages are issued to the second equipment when the heartbeat messages of the second equipment are received, the influence of bandwidth resources between the first equipment and the gateway equipment on network task query is avoided, and the efficiency of network task query is improved.

Description

Data transmission method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a data transmission method and apparatus, an electronic device, and a storage medium.
Background
The gateway device, which is an intermediate device for providing network data forwarding between electronic devices, is an indispensable intermediate device in a network system.
Generally, in the process of network transmission, a network task is stored in an opposite terminal device initiating the network task, the opposite terminal device is connected with a gateway device of a local terminal device to realize the transmission of the network task, and after the gateway device receives a heartbeat message sent by the local terminal device or reaches a specific time point, the network device requests the opposite terminal device to query whether the local terminal device stores the network task in the opposite terminal device, so that the network task can be obtained from the opposite terminal device and issued to the local terminal device.
Although the management pressure of the network device can be effectively reduced by the method, the data transmission between the gateway device and the opposite terminal device is limited by the network bandwidth, so that the network task cannot be timely issued to the local terminal device when the network bandwidth resource is insufficient, and the query efficiency of the network task is low.
Disclosure of Invention
In view of this, embodiments of the present application provide a data transmission method, an apparatus, an electronic device, and a storage medium, which are used to solve the problem in the prior art that, because data transmission between a gateway device and an opposite device is limited by a network bandwidth, a network task may not be issued to a local device in time when network bandwidth resources are insufficient, and query efficiency of the network task is low.
A first aspect of the present application provides a data transmission method, which is applied to a gateway device in an internet of things system, where the internet of things system further includes: the method comprises the following steps:
receiving a network task sent by first equipment;
storing the network task and generating management information of the network task;
receiving a heartbeat message sent by second equipment;
and when the heartbeat message is confirmed to be matched with the management information of the network task, the network task is sent to the second equipment.
Optionally, the management information of the network task at least includes: appointing equipment identification, task starting time and task ending time, wherein the heartbeat message at least comprises: a target device identification; the step of confirming that the heartbeat message is matched with the management information of the network task comprises the following steps:
and when the target equipment identification is the same as the specified equipment identification, the current time is later than the task starting time, and the current time is earlier than the task ending time, confirming that the heartbeat message is matched with the management information of the network task.
Optionally, the management information of the network task further includes: a task state, after the storing the network task and generating management information of the network task, the method further includes:
and deleting the network task and the management information when the current time is later than the task ending time, or the time difference between the current time and the latest heartbeat message receiving time is greater than a time threshold value, or the task state is an ending state, wherein the latest heartbeat message receiving time is the receiving time of the last heartbeat message of the second equipment.
Optionally, after the sending the network task to the second device, the method further includes:
when the sending record corresponding to the network task does not exist, generating the sending record of the current sending task corresponding to the network task;
and when the sending record corresponding to the network task exists, updating the sending record according to the current sending task corresponding to the network task.
Optionally, the method further comprises:
and sending the sending record to the first equipment so that the first equipment stores the sending record.
According to a second aspect of the present application, there is provided a data transmission device applied to a gateway device in an internet of things system, where the internet of things system further includes: the device comprises a first device and a second device, and comprises:
the first receiving module is configured to receive the network task sent by the first device;
the storage module is configured to store the network task and generate management information of the network task;
the second receiving module is configured to receive the heartbeat message sent by the second device;
and the sending module is configured to send the network task to the second device when the heartbeat message is confirmed to be matched with the management information of the network task.
Optionally, the management information of the network task at least includes: appointing equipment identification, task starting time and task ending time, wherein the heartbeat message at least comprises: a target device identification; the sending module further configured to:
and when the target equipment identification is the same as the specified equipment identification, the current time is later than the task starting time, and the current time is earlier than the task ending time, confirming that the heartbeat message is matched with the management information of the network task.
Optionally, the management information of the network task further includes: a task state; the storage module further configured to:
and deleting the network task and the management information when the current time is later than the task ending time, or the time difference between the current time and the latest heartbeat message receiving time is greater than a time threshold value, or the task state is an ending state, wherein the latest heartbeat message receiving time is the receiving time of the last heartbeat message of the second equipment.
Optionally, the sending module is further configured to:
when the sending record corresponding to the network task does not exist, generating the sending record of the current sending task corresponding to the network task;
and when the sending record corresponding to the network task exists, updating the sending record according to the current sending task corresponding to the network task.
Optionally, the sending module is further configured to:
and sending the sending record to the first equipment so that the first equipment stores the sending record.
According to a third aspect of the present application, there is provided a gateway device, comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, wherein the program or instructions, when executed by the processor, implement the data transmission method according to the first aspect.
According to a fourth aspect of the present application, there is provided a computer-readable storage medium on which a computer program is stored, the computer program, when executed by a processor, implementing the data transmission method of the first aspect described above.
To prior art, this application possesses following advantage:
according to the data transmission method, the data transmission device, the electronic equipment and the storage medium, the storage and management tasks of the network tasks are transferred from the first equipment generating the tasks to the gateway equipment, so that the network tasks of which the management information is matched with the heartbeat messages are issued to the second equipment when the heartbeat messages of the second equipment are received, the influence of bandwidth resources between the first equipment and the gateway equipment on network task query is avoided, and the efficiency of network task query is improved.
The foregoing description is only an overview of the technical solutions of the present application, and the present application can be implemented according to the content of the description in order to make the technical means of the present application more clearly understood, and the following detailed description of the present application is given in order to make the above and other objects, features, and advantages of the present application more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the application. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a flowchart illustrating steps of a data transmission method according to an embodiment of the present application;
fig. 2 is a system diagram of a data transmission method according to an embodiment of the present application;
fig. 3 is a flowchart illustrating steps of another data transmission method according to an embodiment of the present application;
fig. 4 is a block diagram of a data transmission apparatus according to an embodiment of the present application.
Detailed Description
Exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present application are shown in the drawings, it should be understood that the present application may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Example one
Fig. 1 is a flowchart of steps of a data transmission method provided in an embodiment of the present application, which is applied to a gateway device in an internet of things system, where the internet of things system further includes: the method comprises the following steps:
step 101, receiving a network task sent by a first device.
In the embodiment of the application, the internet of things system is an equipment interaction system established based on the internet of things, and the internet of things is an information carrier based on the internet, a traditional telecommunication network and the like, so that all common physical objects capable of being independently addressed form an interconnected network. The gateway device may be a gateway based on wireless or limited communication technology, and is configured to relay data uploaded and transmitted by each device. The first device is an electronic device for generating and issuing tasks, can be a server or a computer, and the second device is an electronic device for receiving and executing network tasks. A network task refers to a task that a first device uses to instruct a second device to perform a particular operation.
The gateway device in the embodiment of the application can realize the steps of the data transmission method provided by the application by internally setting a functional module which can transmit data through HTTP or other data transmission protocols, and certainly, for a relatively large Internet of things system, a cloud server or a server with a certain storage space can be used for operating the functional module. Usually, after generating a network task, a first device sends the network task to a gateway device, and then the gateway device issues the network task to a second device specified by the network task, so that the gateway device can receive the network task sent by the first device.
And 102, storing the network task and generating management information of the network task.
In this embodiment of the application, the management information is related parameters for managing the issuing and storing of the network task, for example, an effective time period, a source address, a destination address, and the like of the network task, and may be specifically determined according to actual requirements, which is not limited herein.
When receiving a network task sent by the first device, the gateway device may store the task data in the transcoding network task as a binary file, and generate and store management information of the network task in a folder for storing the binary file. By adopting the mode, the gateway equipment is connected with a plurality of second equipment, and network tasks sent by different second equipment can be distinguished, stored and managed.
And 103, receiving the heartbeat message sent by the second equipment.
In the embodiment of the present application, the heartbeat message is used to monitor the operating status of the machine network storage. Typically, the second device will send a heartbeat message to the gateway device at a particular time period to inform the gateway device that the second device is operating.
And 104, when the heartbeat message is matched with the management information of the network task, sending the network task to the second equipment.
In this embodiment of the present application, after receiving a heartbeat message sent by a second device, a gateway device queries in management information of a stored network task, matches the gateway task corresponding to the heartbeat message, that is, queries a network task sent by a first device to the second device, and if the network task is currently valid, the gateway device will automatically issue the network task to the second device, and does not need to send a request to the first device by the gateway device to query a network task that needs to be issued to the second device.
For example, referring to fig. 2, the embodiment of the present application is applicable to an application scenario in which a wireless terminal device is connected to a server through a gateway device, where the gateway device 3 sends a generated network task to the gateway device 2 for storage, and the gateway device 2 issues the network task to a corresponding wireless terminal device 1 when receiving a heartbeat message sent by the wireless terminal device 1.
According to the data transmission method provided by the embodiment of the application, the storage and management tasks of the network tasks are transferred from the first device for generating the tasks to the gateway device, so that the network tasks of which the management information is matched with the heartbeat messages are issued to the second device when the heartbeat messages of the second device are received, the influence of bandwidth resources between the first device and the gateway device on network task query is avoided, and the efficiency of network task query is improved.
Example two
Fig. 3 is a flowchart of steps of another data transmission method provided in an embodiment of the present application, where the method is applied to a gateway device in an internet of things system, and the internet of things system further includes: the method comprises the following steps:
step 201, receiving a network task sent by a first device.
This step can refer to the detailed description of step 101, which is not repeated herein.
Step 202, storing the network task and generating management information of the network task.
This step can refer to the detailed description of step 102, which is not repeated here.
Optionally, the management information of the network task further includes: and (4) task state.
Step 203, when the current time is later than the task ending time, or the time difference between the current time and the latest heartbeat message receiving time is greater than a time threshold, or the task state is an ending state, deleting the network task and the management information, wherein the latest heartbeat message receiving time is the receiving time of the last heartbeat message of the second device.
In the embodiment of the application, the current time is a time point when the heartbeat message is received, the task ending time is the latest effective time of the network task, and the task starting time is the earliest effective time of the network task. The task state is state information reflecting the execution phase of the network task, such as: set up, prepare, execute, end, suspend, etc. The duration threshold is the longest receiving interval between two heartbeat messages in the process of allowing the second device to be normally connected with the gateway device, and if the duration threshold is exceeded, the second device can be regarded as having disconnected the network connection with the gateway device.
In the process of storing the network task, the gateway device can inquire the management information of the stored network task at regular time, can inquire whether the current time is compared with the task ending time of the network task at first, if the current time exceeds the task ending time, the network task can be determined to be invalid, and the network task and the management information are deleted; if the current time does not exceed the task ending time, the task state of the network task can be further inquired; if the task state is the ending state, the network task can be determined to be invalid, and the network task and the management information are deleted; if the task state is not the end state, the time difference between the latest heartbeat message receiving time of the network task and the current time can be further inquired; if the time difference is greater than the time length threshold, determining that the second device has disconnected the network connection with the gateway device, and deleting the network task and the management information; if the time difference is less than or equal to the time length threshold, the network task is determined to be effective, and the network task and the management information are continuously reserved.
The above determination logic is only an exemplary illustration, and the determination sequence of the task ending time, the task state and the latest heartbeat packet receiving time may be arbitrarily replaced, as long as whether the network task is valid or not can be determined according to the task ending time, the task state and the latest heartbeat packet receiving time, which is not limited herein.
Step 204, receiving the heartbeat message sent by the second device.
This step can refer to the detailed description of step 103, which is not repeated herein.
Optionally, the management information of the network task at least includes: appointing equipment identification, task starting time and task ending time, wherein the heartbeat message at least comprises: and identifying the target equipment.
Step 205, when the target device identifier is the same as the specified device identifier, the current time is later than the task start time, and the current time is earlier than the task end time, determining that the heartbeat packet matches with the management information of the network task, and sending the network task to the second device.
In this embodiment of the application, the specified device identifier is a unique identifier for indicating the second device, and may be a terminal number, a device number, a network label, or the like, which may be specifically determined according to actual requirements, and is not limited herein. The target device identifier is similar to the specified device identifier, except that the target device identifier is carried in the heartbeat message sent by the second device. Therefore, according to the present embodiment, the data packet of the network task may be configured as the following table 1:
lead code Data object ID Data Source ID Data of Check bit
Nbyte Abyte Abyte Nbyte 2byte
The preamble is a delimiter used for marking the end of timing information, the data target ID is a specified device identifier, the data source ID is a device identifier of the first device, the data is task data, and the check bit is a code used for verifying whether a data packet of the network task is legal or not.
Of course, the above-mentioned data packet of the network task is an exemplary description, as long as the field in the data packet can identify the identity of the second device.
After receiving the heartbeat message sent by the second device, the gateway device may extract the target device identifier of the second device from the heartbeat message, and may determine whether there is a network task to be issued to the second device through the following logic:
comparing the current time with the task ending time; if the current time exceeds the task ending time, confirming that the network task does not exist; if the current time does not exceed the task ending time, comparing the target equipment identification with the specified equipment identification; if the target equipment identification is different from the specified equipment identification, confirming that the network task does not exist; if the target equipment identification is the same as the designated equipment identification, comparing the current time with the task starting time; if the current time does not exceed the task starting time, confirming that the network task does not exist; and if the current time exceeds the task starting time, confirming that the network task exists, and issuing the network task to the second equipment.
The above judgment logic is only an exemplary illustration, and the judgment sequence of the task ending time, the task starting time, and the designated device identifier may be replaced arbitrarily, as long as it can judge whether the network task needs to be issued to the second device according to the task ending time, the task starting time, and the designated device identifier, and the judgment is not limited herein.
Of course, the management information may also include a task sequence number, a data sequence number, and the like, which may be determined according to actual requirements, and is not limited herein.
And step 206, when the sending record corresponding to the network task does not exist, generating the sending record of the current sending task corresponding to the network task.
In this embodiment of the present application, after the network task is sent to the second device each time, a corresponding sending record may be generated for the second device.
And step 207, updating the sending record according to the current sending task corresponding to the network task when the sending record corresponding to the network task exists.
In the embodiment of the present application, if there is a sending record of a network task being sent to the second device or a sending record of a network task last sent to the second device, there may already be a sending record running valve cover to update the sending record.
Step 208, sending the sending record to the first device, so that the first device stores the sending record.
In the embodiment of the application, the sending record can also be sent to the first device at regular time, so that the first device can record the issuing condition of the network task, and the sending mode of the network task is improved according to the sending record.
According to the other data transmission method provided by the embodiment of the application, the storage and management tasks of the network tasks are transferred from the first device generating the tasks to the gateway device, so that the network tasks of which the management information is matched with the heartbeat messages are issued to the second device when the heartbeat messages of the second device are received, the influence of bandwidth resources between the first device and the gateway device on network task query is avoided, and the efficiency of network task query is improved.
EXAMPLE III
Fig. 4 is a block diagram of a data transmission apparatus 30 according to an embodiment of the present application, which is applied to a gateway device in an internet of things system, where the internet of things system further includes: the device comprises a first device and a second device, and comprises:
a first receiving module 301 configured to receive a network task sent by a first device;
a storage module 302 configured to store the network task and generate management information of the network task;
a second receiving module 303, configured to receive a heartbeat message sent by a second device;
a sending module 304, configured to send the network task to the second device when it is determined that the heartbeat packet matches the management information of the network task.
Optionally, the management information of the network task at least includes: appointing equipment identification, task starting time and task ending time, wherein the heartbeat message at least comprises: a target device identification; the sending module 304, further configured to:
and when the target equipment identification is the same as the specified equipment identification, the current time is later than the task starting time, and the current time is earlier than the task ending time, confirming that the heartbeat message is matched with the management information of the network task.
Optionally, the management information of the network task further includes: a task state; the storage module 302, further configured to:
and deleting the network task and the management information when the current time is later than the task ending time, or the time difference between the current time and the latest heartbeat message receiving time is greater than a time threshold value, or the task state is an ending state, wherein the latest heartbeat message receiving time is the receiving time of the last heartbeat message of the second equipment.
Optionally, the sending module 304 is further configured to:
when the sending record corresponding to the network task does not exist, generating the sending record of the current sending task corresponding to the network task;
and when the sending record corresponding to the network task exists, updating the sending record according to the current sending task corresponding to the network task.
Optionally, the sending module 304 is further configured to:
and sending the sending record to the first equipment so that the first equipment stores the sending record.
According to the data transmission device provided by the embodiment of the application, the storage and management tasks of the network tasks are transferred from the first device for generating the tasks to the gateway device, so that the network tasks of which the management information is matched with the heartbeat messages are issued to the second device when the heartbeat messages of the second device are received, the influence of bandwidth resources between the first device and the gateway device on network task query is avoided, and the efficiency of network task query is improved.
Example four
The embodiment of the application provides a gateway device, a memory and a program or an instruction stored on the memory and capable of running on the processor, wherein the program or the instruction realizes any one of the data transmission methods when being executed by the processor.
According to the gateway device provided by the embodiment of the application, the storage and management tasks of the network tasks are transferred from the first device generating the tasks to the gateway device, so that the network tasks of which the management information is matched with the heartbeat messages are issued to the second device when the heartbeat messages of the second device are received, the influence of bandwidth resources between the first device and the gateway device on network task query is avoided, and the network task query efficiency is improved.
EXAMPLE five
The embodiment of the application provides a computer storage medium, on which a computer program is stored, and the computer program can realize the data transmission method when being executed by a processor.
Embodiments of the present application provide a computer storage medium, where a storage and management task of a network task is transferred from a first device that generates a task to a gateway device, so that when a heartbeat packet of a second device is received, the network task whose management information matches the heartbeat packet is issued to the second device, thereby avoiding an influence of bandwidth resources between the first device and the gateway device on network task query, and improving efficiency of network task query.
Those skilled in the art will appreciate that the present application includes apparatus directed to performing one or more of the operations described in the present application. These devices may be specially designed and manufactured for the required purposes, or they may comprise known devices in general-purpose computers. These devices have stored therein computer programs that are selectively activated or reconfigured. Such a computer program may be stored in a storage medium of a device (e.g., a computer) including, but not limited to, any type of disk including floppy disks, hard disks, optical disks, CD-ROMs, and magneto-optical disks, ROMs (Read-Only memories), RAMs (Random Access memories), EPROMs (Erasable Programmable Read-Only memories), EEPROMs (Electrically Erasable Programmable Read-Only memories), flash memories, magnetic cards, or optical cards, or in any type of media suitable for storing electronic instructions, and each coupled to a bus. That is, a storage medium includes any medium that stores or transmits information in a form readable by a device (e.g., a computer).
It will be understood by those within the art that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by computer program instructions. Those skilled in the art will appreciate that the computer program instructions may be implemented by a processor of a general purpose computer, special purpose computer, or other programmable data transmission methodology, such that the instructions, which execute via the processor of the computer or other programmable data transmission methodology, create means for implementing the functions specified in the block or blocks of the block diagrams and/or flowchart illustrations disclosed herein.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A data transmission method is applied to gateway equipment in an Internet of things system, and the Internet of things system further comprises the following steps: the method comprises the following steps:
receiving a network task sent by first equipment;
storing the network task and generating management information of the network task;
receiving a heartbeat message sent by second equipment;
and when the heartbeat message is confirmed to be matched with the management information of the network task, the network task is sent to the second equipment.
2. The method according to claim 1, characterized in that the management information of the network task comprises at least: appointing equipment identification, task starting time and task ending time, wherein the heartbeat message at least comprises: a target device identification; the step of confirming that the heartbeat message is matched with the management information of the network task comprises the following steps:
and when the target equipment identification is the same as the specified equipment identification, the current time is later than the task starting time, and the current time is earlier than the task ending time, confirming that the heartbeat message is matched with the management information of the network task.
3. The method of claim 2, wherein the management information of the network task further comprises: a task state, after the storing the network task and generating management information of the network task, the method further includes:
and deleting the network task and the management information when the current time is later than the task ending time, or the time difference between the current time and the latest heartbeat message receiving time is greater than a time threshold value, or the task state is an ending state, wherein the latest heartbeat message receiving time is the receiving time of the last heartbeat message of the second equipment.
4. The method of claim 1, wherein after the sending the network task to the second device, the method further comprises:
when the sending record corresponding to the network task does not exist, generating the sending record of the current sending task corresponding to the network task;
and when the sending record corresponding to the network task exists, updating the sending record according to the current sending task corresponding to the network task.
5. The method of claim 4, further comprising:
and sending the sending record to the first equipment so that the first equipment stores the sending record.
6. A data transmission device is applied to gateway equipment in an Internet of things system, and the Internet of things system further comprises: the device comprises a first device and a second device, and comprises:
the first receiving module is configured to receive the network task sent by the first device;
the storage module is configured to store the network task and generate management information of the network task;
the second receiving module is configured to receive the heartbeat message sent by the second device;
and the sending module is configured to send the network task to the second device when the heartbeat message is confirmed to be matched with the management information of the network task.
7. The apparatus according to claim 6, wherein the management information of the network task at least comprises: appointing equipment identification, task starting time and task ending time, wherein the heartbeat message at least comprises: a target device identification; the sending module further configured to:
and when the target equipment identification is the same as the specified equipment identification, the current time is later than the task starting time, and the current time is earlier than the task ending time, confirming that the heartbeat message is matched with the management information of the network task.
8. The apparatus of claim 7, wherein the management information of the network task further comprises: a task state; the storage module further configured to:
and deleting the network task and the management information when the current time is later than the task ending time, or the time difference between the current time and the latest heartbeat message receiving time is greater than a time threshold value, or the task state is an ending state, wherein the latest heartbeat message receiving time is the receiving time of the last heartbeat message of the second equipment.
9. A gateway device, comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions, when executed by the processor, implementing a control method of a gateway device according to any one of claims 1 to 5.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the data transmission method of any one of claims 1 to 5.
CN202011312624.9A 2020-11-20 2020-11-20 Data transmission method, device, electronic equipment and storage medium Active CN112532704B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011312624.9A CN112532704B (en) 2020-11-20 2020-11-20 Data transmission method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011312624.9A CN112532704B (en) 2020-11-20 2020-11-20 Data transmission method, device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112532704A true CN112532704A (en) 2021-03-19
CN112532704B CN112532704B (en) 2023-07-28

Family

ID=74982030

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011312624.9A Active CN112532704B (en) 2020-11-20 2020-11-20 Data transmission method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112532704B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113852474A (en) * 2021-09-23 2021-12-28 京东方科技集团股份有限公司 Task processing method, gateway, computer readable storage medium and electronic device
CN114666401A (en) * 2022-04-08 2022-06-24 深圳市欧瑞博科技股份有限公司 Equipment information processing method and device, computer equipment and storage medium
CN115134380A (en) * 2021-03-24 2022-09-30 京东方科技集团股份有限公司 Data transmission method and device, electronic equipment and storage medium
CN115514793A (en) * 2022-11-23 2022-12-23 北京时代凌宇信息技术有限公司 Internet of things data aggregation sharing method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170257226A1 (en) * 2016-03-04 2017-09-07 Wireless Input Technology, Inc. Method for Detecting the Status of a Home Automation Device
CN107483601A (en) * 2017-08-28 2017-12-15 郑州云海信息技术有限公司 A kind of implementation method and execution system of distributed timing task
CN111130901A (en) * 2019-12-30 2020-05-08 京信通信系统(中国)有限公司 Device management method, device, communication device and storage medium
CN111427706A (en) * 2020-03-20 2020-07-17 中国联合网络通信集团有限公司 Data processing method, multi-server system, database, electronic device, and storage medium
CN111885103A (en) * 2020-06-12 2020-11-03 视联动力信息技术股份有限公司 Resource processing method, server, electronic device, and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170257226A1 (en) * 2016-03-04 2017-09-07 Wireless Input Technology, Inc. Method for Detecting the Status of a Home Automation Device
CN107483601A (en) * 2017-08-28 2017-12-15 郑州云海信息技术有限公司 A kind of implementation method and execution system of distributed timing task
CN111130901A (en) * 2019-12-30 2020-05-08 京信通信系统(中国)有限公司 Device management method, device, communication device and storage medium
CN111427706A (en) * 2020-03-20 2020-07-17 中国联合网络通信集团有限公司 Data processing method, multi-server system, database, electronic device, and storage medium
CN111885103A (en) * 2020-06-12 2020-11-03 视联动力信息技术股份有限公司 Resource processing method, server, electronic device, and storage medium

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115134380A (en) * 2021-03-24 2022-09-30 京东方科技集团股份有限公司 Data transmission method and device, electronic equipment and storage medium
CN113852474A (en) * 2021-09-23 2021-12-28 京东方科技集团股份有限公司 Task processing method, gateway, computer readable storage medium and electronic device
CN113852474B (en) * 2021-09-23 2024-04-05 京东方科技集团股份有限公司 Task processing method, gateway, computer readable storage medium and electronic device
CN114666401A (en) * 2022-04-08 2022-06-24 深圳市欧瑞博科技股份有限公司 Equipment information processing method and device, computer equipment and storage medium
CN114666401B (en) * 2022-04-08 2023-11-24 深圳市欧瑞博科技股份有限公司 Device information processing method, device, computer device and storage medium
CN115514793A (en) * 2022-11-23 2022-12-23 北京时代凌宇信息技术有限公司 Internet of things data aggregation sharing method and device, electronic equipment and storage medium
CN115514793B (en) * 2022-11-23 2023-03-28 北京时代凌宇信息技术有限公司 Internet of things data aggregation sharing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN112532704B (en) 2023-07-28

Similar Documents

Publication Publication Date Title
CN112532704B (en) Data transmission method, device, electronic equipment and storage medium
CN110995513B (en) Data sending and receiving method in Internet of things system, internet of things equipment and platform
CN104954468A (en) Resource allocation method and resource allocation device
CN113778463B (en) Business service deployment method and device
CN110222116B (en) Control method and device for transaction data storage and storage medium
CN102664950B (en) Data communication method between welding power sources and computers
CN103780679A (en) Long time delay remote invocation method based on HTTP protocol
CN109361525B (en) Method, device, control terminal and medium for restarting distributed deployment of multiple services
CN112584350B (en) Method, device and equipment for processing information and readable storage medium
CN104811473A (en) Virtual nonvolatile storage medium establishing method and system and management system
CN106464745A (en) Dns server, client and data synchronization method
CN111159233B (en) Distributed caching method, system, computer equipment and storage medium
CN105812413B (en) Communication method and device
CN108133026B (en) Multi-data processing method, system and storage medium
KR20120095431A (en) Expediting the distribution of data files between a server and a set of clients
CN110855627B (en) Application deployment method, device, equipment and medium
CN110495157B (en) Communication system for serial communication between communication devices
CN115065694B (en) Cloud storage data transfer uploading system, method, equipment and medium
CN105281944B (en) Method for setting network protocol address and service management system
CN105912477B (en) A kind of method, apparatus and system that catalogue is read
US20120209996A1 (en) Communication system, communication device, communication control method and non-transitory computer readable medium
CN112187902A (en) DNS proxy method, device, storage medium and terminal equipment under IPv6 tunnel mode
CN110611602A (en) Two-layer point-to-point channel state monitoring method and system
CN109981459B (en) Information sending method, client and computer readable storage medium
CN114666401B (en) Device information processing method, device, computer device 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