CN112565025A - Data transmission method and device - Google Patents

Data transmission method and device Download PDF

Info

Publication number
CN112565025A
CN112565025A CN202110189109.4A CN202110189109A CN112565025A CN 112565025 A CN112565025 A CN 112565025A CN 202110189109 A CN202110189109 A CN 202110189109A CN 112565025 A CN112565025 A CN 112565025A
Authority
CN
China
Prior art keywords
data
data acquisition
server
acquisition equipment
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110189109.4A
Other languages
Chinese (zh)
Inventor
陈孝良
苏少炜
古擘
常乐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing SoundAI Technology Co Ltd
Original Assignee
Beijing SoundAI Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing SoundAI Technology Co Ltd filed Critical Beijing SoundAI Technology Co Ltd
Priority to CN202110189109.4A priority Critical patent/CN112565025A/en
Publication of CN112565025A publication Critical patent/CN112565025A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the application discloses a data transmission method and a data transmission device, and particularly relates to a server which can determine whether target data needs to be uploaded by data acquisition equipment when receiving heartbeat messages sent by the data acquisition equipment according to a preset heartbeat period. If necessary, when the server replies to the data acquisition equipment based on the heartbeat message, adding indication information in the replied response message, wherein the indication information is used for indicating the data acquisition equipment to upload the target data. And after receiving the response message comprising the indication information, the data acquisition equipment uploads the target data. Namely, the data acquisition equipment is forced to upload data in a heartbeat mechanism mode, so that the server can perform data synchronization operation in time. Meanwhile, the server notifies the data acquisition equipment of uploading data based on a heartbeat mechanism, so that a notification message of uploading data does not need to be additionally sent to the data acquisition equipment, and the interaction pressure between the data acquisition equipment and the server is reduced.

Description

Data transmission method and device
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a data transmission method and apparatus.
Background
With the development of internet technology, more and more functions are executed by data acquisition equipment, and accordingly more and more data are acquired. To ensure the security of the data, the data acquisition device generally sends the acquired data to a server for storage. In a conventional data transmission scheme, in order to avoid the occupation of data transmission on resources of a data acquisition device, which may cause the data acquisition device to fail to work normally, a time period with a small load of the data acquisition device is generally selected to upload data to a server. For example, the data acquisition device uploads the data acquired this day to the server at 8 pm.
However, in some application scenarios, a user or a data analysis device needs to obtain required data from a server as soon as possible, however, the server cannot provide the required data due to the lack of uploading time, and thus the user requirements cannot be met.
Disclosure of Invention
In view of this, embodiments of the present application provide a data transmission method and apparatus, so that a data acquisition device can upload data required by a server in time, and ensure synchronization of the data.
In order to solve the above problem, the technical solution provided by the embodiment of the present application is as follows:
in a first aspect of an embodiment of the present application, the method is applied to a server, and the method includes:
the server receives a heartbeat message sent by data acquisition equipment, wherein the heartbeat message is used for indicating the running state of the data acquisition equipment;
the server sends a response message to the data acquisition equipment based on the heartbeat message, wherein the response message comprises indication information, and the indication information is used for indicating the data acquisition equipment to upload target data;
and the server receives the target data sent by the data acquisition equipment.
In a specific embodiment, the target data includes target log data collected by the data collection device and/or application version information corresponding to the data collection device.
In a specific implementation manner, the indication information includes identification information corresponding to the target log data, so as to instruct the data acquisition device to upload the log data corresponding to the identification information.
In a specific implementation manner, before the server sends a response message to the data acquisition device based on the heartbeat message, the method further includes:
the server determines target data acquisition equipment according to the identification information, and the target data acquisition equipment stores the target log data;
the server judges whether the data acquisition equipment is the target data acquisition equipment or not;
and when the data acquisition equipment is the target data acquisition equipment, the server sends the response message to the data acquisition equipment based on the heartbeat message.
In a specific implementation manner, the determining, by the server, the target data collection device according to the identification information includes:
and the server determines the target data acquisition equipment according to the identification information and a stored corresponding relation table, wherein the corresponding relation table comprises the corresponding relation between the identification information and the target data acquisition equipment.
In a specific embodiment, the connection between the server and the data acquisition device is based on the UDP protocol.
In a second aspect of the embodiments of the present application, there is provided a data transmission method, where the method is applied to a data acquisition device, and the method includes:
the method comprises the steps that a data acquisition device sends a heartbeat message to a server, wherein the heartbeat message is used for indicating the running state of the data acquisition device;
the data acquisition equipment receives a response message sent by the server, wherein the response message comprises indication information, and the indication information is used for indicating the data acquisition equipment to upload target data;
and the data acquisition equipment sends the target data to the server.
In a specific embodiment, the target data includes target log data collected by the data collection device and/or application version information corresponding to the data collection device.
In a specific implementation manner, the indicating information includes identification information corresponding to the target log data, and the sending, by the data acquisition device, the target data to the server includes:
and the data acquisition equipment triggers a log data uploading mode based on the indication information, and sends the target log data to the server by using the log data uploading mode.
In a third aspect of embodiments of the present application, there is provided a data transmission apparatus, where the apparatus is applied to a server, and the apparatus includes:
the receiving unit is used for receiving a heartbeat message sent by data acquisition equipment, and the heartbeat message is used for indicating the running state of the data acquisition equipment;
a sending unit, configured to send a response message to the data acquisition device based on the heartbeat message, where the response message includes indication information, and the indication information is used to indicate the data acquisition device to upload target data;
the receiving unit is further configured to receive the target data sent by the data acquisition device.
In a fourth aspect of the embodiments of the present application, there is provided a data transmission device, where the device is applied to a data acquisition device, and the device includes:
the sending unit is used for sending a heartbeat message to a server, and the heartbeat message is used for indicating the running state of the data acquisition equipment;
the receiving unit is used for receiving a response message sent by the server, wherein the response message comprises indication information, and the indication information is used for indicating the data acquisition equipment to upload target data;
the sending unit is further configured to send the target data to the server.
In a fifth aspect of embodiments of the present application, there is provided a computer-readable storage medium having stored therein instructions that, when executed on a device, cause the device to perform the data transmission method of the first aspect or perform the data transmission method of the second aspect.
In a sixth aspect of embodiments of the present application, there is provided a computer program product, which, when run on an apparatus, causes the apparatus to perform the data transmission method of the first aspect, or perform the data transmission method of the second aspect.
Therefore, the embodiment of the application has at least the following beneficial effects:
in the embodiment of the application, when receiving the heartbeat message sent by the data acquisition equipment according to the preset heartbeat cycle, the server can determine whether the data acquisition equipment needs to upload the target data. If the data acquisition equipment needs to be replied by the server based on the heartbeat message, adding indication information in the replied response message, wherein the indication information is used for indicating the data acquisition equipment to upload the target data. After receiving the response message including the indication information, the data acquisition equipment uploads the target data, so that the server can synchronize the data in time. Namely, the data acquisition device is forced to upload data in a heartbeat mechanism mode, so that the server can perform data synchronization operation in time. Meanwhile, the server informs the data acquisition equipment of uploading data based on a heartbeat mechanism, so that a notification message of uploading data does not need to be additionally sent to the data acquisition equipment, the interaction pressure between the data acquisition equipment and the server is reduced, and the working efficiency of the data acquisition equipment and the server is ensured.
Drawings
Fig. 1 is a schematic view of an application scenario provided in an embodiment of the present application;
fig. 2 is a flowchart of a data transmission method according to an embodiment of the present application;
fig. 3 is a structural diagram of a data transmission device according to an embodiment of the present application;
fig. 4 is a structural diagram of another data transmission device according to an embodiment of the present application.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, embodiments accompanying the drawings are described in detail below.
In order to facilitate understanding of the technical solutions of the embodiments of the present application, the following description will first discuss technical terms related to the embodiments of the present application.
The heartbeat mechanism is that the communication device sends a self-defined message to the opposite device at regular time, so that the opposite device can know that the communication device is in the running state, and the communication connection between the two devices is ensured to be effective. Specifically, the client may send a simple and fixed message to the server at regular time to tell the server that it is running. After receiving the message sent by the client, the server replies a fixed message to the client, thereby ensuring the effectiveness of the connection between the client and the server.
The inventor finds that, as the heartbeat interval corresponding to the heartbeat mechanism is relatively short, for example, the heartbeat interval is 5 minutes, when the server monitors that the data acquisition device needs to upload data, the server can add the indication information into the response message when receiving the heartbeat message sent by the data acquisition device, so as to notify the data acquisition device of uploading the required data by using the indication information carried in the response message, thereby enabling the server to obtain the required data in time. Therefore, when the data acquisition equipment sends heartbeat messages to the server according to the preset heartbeat interval, because the heartbeat interval is short, when the server urgently needs to synchronize data, the heartbeat mechanism can be utilized to force the data acquisition equipment to upload the data in time, the data acquisition equipment does not need to wait for uploading the data at a fixed time, and the timeliness of data synchronization of the server is improved.
Referring to the application scenario shown in fig. 1, there may be multiple data capture devices 101, servers 102, and client devices 103. The user may request the server 102 for the required target data through the client device 103, and the server 102 may search the target data from the corresponding database according to the user request, and return the target data to the client device 103 if the target data required by the user exists in the database. If the target data required by the user is not stored in the database, the server 102 needs to notify the data acquisition device 101 to upload the data.
Specifically, the server 102 may determine, according to the identification information corresponding to the target data required by the user, a data acquisition device for acquiring the data, that is, a target data acquisition device. When the server 102 receives a heartbeat message sent by a target data acquisition device, when a response message is replied to the target data acquisition device, indication information is added to the response message. After receiving the response message, the target data acquisition device uploads the target data to the server 102 according to the indication information in the response message, so that the server 102 can update the data in the database in time, and the target data can be provided for the user as soon as possible. The heartbeat intervals corresponding to the data acquisition devices 101 may be the same or different.
The data collection device 101 may be an existing, developing or future developing device capable of collecting data, such as an intelligent Digital terminal (IDA) device. Server 20 may be one example of an existing, developing, or future developed device capable of providing data functionality. The embodiments of the present application are not limited in any way in this respect.
It should be noted that the frame diagram shown in fig. 1 is only one example in which the embodiments of the present application can be implemented, as will be understood by those skilled in the art. The scope of applicability of the embodiments of the present application is not limited in any way by this framework.
In order to facilitate understanding of the technical solutions provided by the embodiments of the present application, the following description will be made with reference to the accompanying drawings.
Referring to fig. 2, which is a flowchart of a data transmission method provided in an embodiment of the present application, as shown in fig. 2, the method is applied to a server, and includes:
s201: and the data acquisition equipment sends a data heartbeat message to the server, wherein the heartbeat message is used for indicating the running state of the data acquisition equipment.
In this embodiment, each data acquisition device may send a heartbeat message to the server according to the respective heartbeat interval, so as to notify that the server is in the running state through the heartbeat message. In practical applications, when there are multiple data acquisition devices, different data acquisition devices may set the same or different heartbeat intervals.
S202: and the server sends a response message to the data acquisition equipment based on the heartbeat message, wherein the response message comprises indication information, and the indication information is used for indicating the data acquisition equipment to upload the target data.
In this embodiment, after receiving the heartbeat message sent by the data acquisition device, the server first determines whether the data acquisition device is required to upload the required data, that is, the target data. And when the target data are determined to be uploaded by the data acquisition equipment, adding indication information into the response message to indicate the data acquisition equipment to upload the target data by using the indication information.
The operation of triggering the server to synchronize data can be that a user reads data from the server through the client device but the data is not stored in the database of the server; or, other data processing devices need to read data from the database of the server for processing, but do not exist in the database of the server, and the like. In this case, the server determines that it needs to perform the data synchronization operation based on the read operation.
The target data may include target log data collected by the data collection device and/or application version information corresponding to the data collection device. Specifically, when a plurality of data acquisition devices exist, the server first acquires identification information corresponding to target log data to be synchronized, and determines the data acquisition device acquiring the target log data, that is, the target data acquisition device, according to the identification information. After receiving the heartbeat messages sent by one or more data acquisition devices, the server judges whether the data acquisition device sending the heartbeat messages is a target data acquisition device, and if so, sends response messages including indication information to the data acquisition device. For example, there are a data acquisition device a, a data acquisition device B, and a data acquisition device C, and the server determines that the data acquisition device storing the target log data corresponding to the identification information is the data acquisition device B, that is, the target data acquisition device is the data acquisition device B. When the server receives the heartbeat message sent by the data acquisition equipment C, the server determines that the data acquisition equipment C is not target data acquisition equipment, and can directly reply a response message which does not include the indication information; when the server receives the heartbeat message sent by the data acquisition equipment B, the server determines that the data acquisition equipment B is the target data acquisition equipment, and then replies a response message including the indication information to the data acquisition equipment B. The server may pre-store a correspondence between the identification information and the device identification of the data acquisition device, so that the server determines the target data acquisition device that can upload the target log data according to the correspondence. In this case, the indication information may include identification information so that the target data collection device can know which data to upload.
Or when detecting that the version of the application program corresponding to the target data acquisition device changes, the server adds indication information in the response message after receiving the heartbeat message sent by the target data acquisition device to indicate the target data acquisition device to send the current latest version information of the application program to the server.
S203: and the data acquisition equipment sends the target data to the server.
In this embodiment, after receiving the response packet, the data acquisition device obtains the indication information by analyzing the response packet, so as to send the target data to the server according to the indication information.
Specifically, after the data acquisition device acquires the identification information in the indication information, the corresponding target log data is searched through the identification information, after the target log data is found, a log data uploading mode can be triggered, and the target log data is uploaded to the server through the log data uploading mode, so that the server can update the database in time. Or after the data acquisition device acquires the indication information, acquiring the version information of the current latest application program, and sending the version information of the current latest application program to the server, so that the server can determine whether the version of the application program of the data acquisition device needs to be updated.
Specifically, the connection between the data acquisition device and the server may be established based on a User Datagram Protocol (UDP), so as to send the target data to the server through the UDP connection.
According to the description, the server forces the data acquisition equipment to upload the target data based on the heartbeat mechanism, the server does not need to additionally send a synchronization request, and the interaction flow between the data acquisition equipment and the server is reduced. Moreover, because the heartbeat interval of the heartbeat mechanism is usually short, when data synchronization is needed, the server instructs the data acquisition equipment to upload target data based on the heartbeat message sent by the data acquisition equipment, so that the data of the server can be synchronized in time, and the data synchronization efficiency is improved.
For the convenience of understanding the embodiments of the present application, the data investigation in the large-scale emergency event is taken as an example, and specifically, the data investigation in the nucleic acid detection is taken as an example. In practical applications, in order to improve the detection efficiency and reduce the use of detection reagents, a plurality of detection samples are usually put into the same detection tube, so as to realize simultaneous detection of the plurality of detection samples. For example, 10 test samples are placed in one test tube. Wherein, every detection sample all corresponds a serial number, and every test tube also corresponds a unique serial number. The data acquisition equipment can acquire the sequence number of each detection sample and the sequence number of each detection test tube, and stores the corresponding relation between the sequence number of each detection sample and the sequence number of each detection test tube. The sequence number of the detection sample is bound with the information of the detected user, that is, the basic information of the detected user, such as the name, sex, age, residence, contact telephone, etc., of the user can be obtained through the sequence number.
Because the number of users who detect every day is more, and data acquisition equipment needs the sequence number of gathering a large amount of detection samples and the sequence number of detecting the test tube, and work load is great, in order to guarantee data acquisition equipment's work efficiency, generally select when idle state, to upload the data of gathering to the server and store and handle. However, when the detection result of a certain detection test tube is positive, the worker needs to find the corresponding sequence number of the detection sample through the sequence number of the detection test tube, and then obtains the information of the detection user, so as to ensure that the worker can contact the detection user in time, and improve the response efficiency.
When a worker calls user information from a server through client equipment, the new data collected by the data collection equipment is not uploaded to the server, so that the user information cannot be obtained in time. Based on this, the server determines the sequence number of the detection test tube through the calling request sent by the terminal device, and searches the device identifier of the corresponding data acquisition device according to the sequence number of the detection test tube. When the data acquisition equipment sends heartbeat messages according to heartbeat intervals, the server determines whether the data acquisition equipment is target data acquisition equipment or not according to the heartbeat messages, if so, when a response message is replied to the data acquisition equipment, indication information is added in the response message so as to indicate the target data acquisition equipment to upload user information corresponding to a detection sample corresponding to a detection test tube to the server. And after receiving the response message, the target data acquisition equipment sends the required user information to the server so that the working personnel can timely call and carry out subsequent work. Namely, the server forces the data acquisition equipment to upload data in time through a heartbeat mechanism, and the server does not need to wait for fixed uploading time, so that the data synchronization efficiency is improved, and the follow-up work is guaranteed.
Based on the above method embodiment, the present application embodiment further provides a data transmission device, which will be described below with reference to the accompanying drawings.
Referring to fig. 3, which is a block diagram of a data transmission device provided in an embodiment of the present application, the device 300 may be applied to a server to implement the functions of the server in the embodiment shown in fig. 2, and the device may include:
a receiving unit 301, configured to receive a heartbeat message sent by a data acquisition device, where the heartbeat message is used to indicate an operating state of the data acquisition device;
a sending unit 302, configured to send a response packet to the data acquisition device based on the heartbeat packet, where the response packet includes indication information, and the indication information is used to indicate the data acquisition device to upload target data;
the receiving unit 301 is further configured to receive the target data sent by the data acquisition device.
In a specific embodiment, the target data includes log data collected by the data collection device and/or application version information corresponding to the data collection device.
In a specific implementation manner, the indication information includes identification information corresponding to the target log data, so as to instruct the data acquisition device to upload the log data corresponding to the identification information.
In a specific embodiment, the apparatus further comprises:
a determining unit, configured to determine, before the sending unit sends the response packet, a target data acquisition device according to identification information, where the target data acquisition device stores the target log data;
the judging unit is used for judging whether the equipment corresponding to the device is the target data acquisition equipment or not;
and the sending unit is used for sending the response message to the data acquisition equipment based on the heartbeat message when the equipment corresponding to the device is target data acquisition equipment.
In a specific implementation manner, the determining unit is specifically configured to determine the target data acquisition device according to the identification information and a stored correspondence table, where the correspondence table includes a correspondence between the identification information and the target data acquisition device.
In a specific embodiment, the connection between the server and the data acquisition device is based on the UDP protocol.
It should be noted that, for specific implementation of each unit in this embodiment, reference may be made to related description about a server in the embodiment shown in fig. 2, and details of this embodiment are not described herein again.
Referring to fig. 4, which is a structural diagram of another data transmission device provided in the embodiment of the present application, the device 400 may be applied to a data acquisition device to implement functions corresponding to the data acquisition device in the embodiment shown in fig. 2, and the device may include:
a sending unit 401, configured to send a heartbeat message to a server, where the heartbeat message is used to indicate an operating state of the data acquisition device;
a receiving unit 402, configured to receive a response message sent by the server, where the response message includes indication information, and the indication information is used to indicate the data acquisition device to upload target data;
a sending unit 401, configured to send the target data to the server.
In a specific embodiment, the target data includes target log data collected by the data collection device and/or application version information corresponding to the data collection device.
In a specific implementation manner, the indication information includes identification information corresponding to the target log data, and the sending unit is specifically configured to trigger a log data uploading mode based on the indication information, and send the target log data to the server by using the log data uploading mode.
It should be noted that specific implementation of each unit in this embodiment may refer to related description of the data acquisition device in the embodiment shown in fig. 2, and this embodiment is not described herein again.
In addition, a computer-readable storage medium is provided, where instructions are stored, and when the instructions are executed on a device, the device is caused to execute the data transmission method.
The embodiment of the application provides a computer program product, and when the computer program product runs on a device, the device is enabled to execute the data transmission method.
According to the description, the server forces the data acquisition equipment to upload the target data based on the heartbeat mechanism, the server does not need to additionally send a synchronization request, and the interaction flow between the data acquisition equipment and the server is reduced. Moreover, because the heartbeat interval of the heartbeat mechanism is usually short, when data needs to be synchronized, the server instructs the data acquisition equipment to upload target data based on the heartbeat message sent by the data acquisition equipment, so that the data of the server can be synchronized in time, and the synchronization updating efficiency is improved.
It should be noted that, in the present specification, the embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. For the system or the device disclosed by the embodiment, the description is simple because the system or the device corresponds to the method disclosed by the embodiment, and the relevant points can be referred to the method part for description.
It should be understood that in the present application, "at least one" means one or more, "a plurality" means two or more. "and/or" for describing an association relationship of associated objects, indicating that there may be three relationships, e.g., "a and/or B" may indicate: only A, only B and both A and B are present, wherein A and B may be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of single item(s) or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", wherein a, b, c may be single or plural.
It is further noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (13)

1. A data transmission method is applied to a server, and the method comprises the following steps:
the server receives a heartbeat message sent by data acquisition equipment, wherein the heartbeat message is used for indicating the running state of the data acquisition equipment;
the server sends a response message to the data acquisition equipment based on the heartbeat message, wherein the response message comprises indication information, and the indication information is used for indicating the data acquisition equipment to upload target data;
and the server receives the target data sent by the data acquisition equipment.
2. The method of claim 1, wherein the target data comprises target log data collected by the data collection device and/or application version information corresponding to the data collection device.
3. The method of claim 2, wherein the indication information includes identification information corresponding to the target log data, so as to instruct the data acquisition device to upload the log data corresponding to the identification information.
4. The method of claim 3, wherein before the server sends a response message to the data collection device based on the heartbeat message, the method further comprises:
the server determines target data acquisition equipment according to the identification information, and the target data acquisition equipment stores the target log data;
and when the data acquisition equipment is the target data acquisition equipment, the server sends the response message to the data acquisition equipment based on the heartbeat message.
5. The method of claim 4, wherein the server determines the target data collection device based on the identification information, comprising:
and the server determines the target data acquisition equipment according to the identification information and a stored corresponding relation table, wherein the corresponding relation table comprises the corresponding relation between the identification information and the target data acquisition equipment.
6. Method according to any of claims 1-5, wherein the connection between the server and the data acquisition device is based on the UDP protocol.
7. A data transmission method, wherein the method is applied to a data acquisition device, and the method comprises:
the method comprises the steps that a data acquisition device sends a heartbeat message to a server, wherein the heartbeat message is used for indicating the running state of the data acquisition device;
the data acquisition equipment receives a response message sent by the server, wherein the response message comprises indication information, and the indication information is used for indicating the data acquisition equipment to upload target data;
and the data acquisition equipment sends the target data to the server.
8. The method of claim 7, wherein the target data comprises target log data collected by the data collection device and/or application version information corresponding to the data collection device.
9. The method of claim 8, wherein the indication information includes identification information corresponding to the target log data, and wherein sending, by the data collection device, the target data to the server includes:
and the data acquisition equipment triggers a log data uploading mode based on the indication information, and sends the target log data to the server by using the log data uploading mode.
10. A data transmission apparatus, wherein the apparatus is applied to a server, the apparatus comprising:
the receiving unit is used for receiving a heartbeat message sent by data acquisition equipment, and the heartbeat message is used for indicating the running state of the data acquisition equipment;
a sending unit, configured to send a response message to the data acquisition device based on the heartbeat message, where the response message includes indication information, and the indication information is used to indicate the data acquisition device to upload target data;
the receiving unit is further configured to receive the target data sent by the data acquisition device.
11. A data transmission apparatus, wherein the apparatus is applied to a data acquisition device, the apparatus comprising:
the sending unit is used for sending a heartbeat message to a server, and the heartbeat message is used for indicating the running state of the data acquisition equipment;
the receiving unit is used for receiving a response message sent by the server, wherein the response message comprises indication information, and the indication information is used for indicating the data acquisition equipment to upload target data;
the sending unit is further configured to send the target data to the server.
12. A computer-readable storage medium having stored therein instructions which, when run on a device, cause the device to perform the data transmission method of any one of claims 1-6, or perform the data transmission method of any one of claims 7-9.
13. A computer program product, characterized in that it, when run on an apparatus, causes the apparatus to perform the data transmission method of any one of claims 1-6, or to perform the data transmission method of any one of claims 7-9.
CN202110189109.4A 2021-02-19 2021-02-19 Data transmission method and device Pending CN112565025A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110189109.4A CN112565025A (en) 2021-02-19 2021-02-19 Data transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110189109.4A CN112565025A (en) 2021-02-19 2021-02-19 Data transmission method and device

Publications (1)

Publication Number Publication Date
CN112565025A true CN112565025A (en) 2021-03-26

Family

ID=75035990

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110189109.4A Pending CN112565025A (en) 2021-02-19 2021-02-19 Data transmission method and device

Country Status (1)

Country Link
CN (1) CN112565025A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116755464A (en) * 2023-05-17 2023-09-15 贵州师范学院 Mobile robot control method based on Internet of things

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130230044A1 (en) * 2012-03-02 2013-09-05 Pfu Limited Information processing system, information processing device, management terminal device, and computer readable medium
CN108011929A (en) * 2017-11-14 2018-05-08 平安科技(深圳)有限公司 Data request processing method, apparatus, computer equipment and storage medium
CN111708557A (en) * 2020-05-26 2020-09-25 北京金山云网络技术有限公司 Method, device and storage medium for updating configuration file

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130230044A1 (en) * 2012-03-02 2013-09-05 Pfu Limited Information processing system, information processing device, management terminal device, and computer readable medium
CN108011929A (en) * 2017-11-14 2018-05-08 平安科技(深圳)有限公司 Data request processing method, apparatus, computer equipment and storage medium
CN111708557A (en) * 2020-05-26 2020-09-25 北京金山云网络技术有限公司 Method, device and storage medium for updating configuration file

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116755464A (en) * 2023-05-17 2023-09-15 贵州师范学院 Mobile robot control method based on Internet of things
CN116755464B (en) * 2023-05-17 2024-04-16 贵州师范学院 Mobile robot control method based on Internet of things

Similar Documents

Publication Publication Date Title
CN107181675B (en) Service calling method and device
CN111414416B (en) Data processing method, device, equipment and storage medium
CN108156006B (en) Buried point data reporting method and device and electronic equipment
CN111046011A (en) Log collection method, system, node, electronic device and readable storage medium
CN112130996A (en) Data monitoring control system, method and device, electronic equipment and storage medium
CN108111346B (en) Method and device for determining frequent item set in alarm correlation analysis and storage medium
CN109559121B (en) Transaction path call exception analysis method, device, equipment and readable storage medium
CN112565025A (en) Data transmission method and device
CN106648722B (en) Method and device for processing Flume receiving terminal data based on big data
CN111884843A (en) Message processing method and device, electronic equipment and storage medium
CN111177722A (en) Webshell file detection method and device, server and storage medium
CN111930542A (en) Data acquisition method and device, electronic equipment and computer readable storage medium
CN110011845B (en) Log collection method and system
CN110119334B (en) Page script monitoring method and device
CN107566216B (en) Monitoring method, device and service system
CN111726417B (en) Delay control method, device, server and storage medium
CN113256240B (en) Message processing method and device and server
CN114116388A (en) Applet data acquisition method, device and equipment and readable storage medium
CN113014456A (en) Monitoring data transmission system, method, device, equipment and storage medium
CN114338794A (en) Service message pushing method and device, electronic equipment and storage medium
CN113778831A (en) Data application performance analysis method, device, equipment and medium
CN110968561B (en) Log storage method and distributed system
CN112860567A (en) Buried point identification method and device, computer equipment and storage medium
JP6787845B2 (en) Suspected location estimation device and suspected location estimation method
CN113114612B (en) Determination method and device for distributed system call chain

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210326