[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN112637151B - Data message transmission method, terminal device, server and storage medium - Google Patents

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

Info

Publication number
CN112637151B
CN112637151B CN202011453255.5A CN202011453255A CN112637151B CN 112637151 B CN112637151 B CN 112637151B CN 202011453255 A CN202011453255 A CN 202011453255A CN 112637151 B CN112637151 B CN 112637151B
Authority
CN
China
Prior art keywords
data message
identifier
operation information
specific time
application
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011453255.5A
Other languages
Chinese (zh)
Other versions
CN112637151A (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.)
Shenzhen Invt Electric Co Ltd
Original Assignee
Shenzhen Invt Electric 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 Shenzhen Invt Electric Co Ltd filed Critical Shenzhen Invt Electric Co Ltd
Priority to CN202011453255.5A priority Critical patent/CN112637151B/en
Publication of CN112637151A publication Critical patent/CN112637151A/en
Application granted granted Critical
Publication of CN112637151B publication Critical patent/CN112637151B/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
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/03Protocol definition or specification 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/06Notations for structuring of protocol data, e.g. abstract syntax notation one [ASN.1]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/26Special purpose or proprietary protocols or architectures
    • 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/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application is applicable to the field of communication, and provides a data message transmission method, terminal equipment, a server and a storage medium, wherein the transmission method comprises the following steps: when application operation information is acquired, determining a specific time identifier of the application operation information and a device identifier of terminal equipment; generating a data message based on the specific time identification, the device identification, and the application operation information; the specific time identification and the device identification within the data information are used for uniquely identifying the data message; and uploading the data message to a server. Compared with the prior art, the method and the device can use the combination of the specific time identifier and the equipment identifier as the unique identifier of the data message to replace the redundant GUID, ensure that all the data messages received by the server have uniqueness, improve the transmission speed of the data message, reduce the consumption and flow of the data message, and save the storage space of the server for receiving the data message.

Description

Data message transmission method, terminal device, server and storage medium
Technical Field
The present application belongs to the field of communications, and in particular, relates to a data message transmission method, a terminal device, a server, and a storage medium.
Background
With the development of communication technology, higher and higher demands are being placed on the efficiency of communication. In an application scenario in which a terminal device collects application operation information data and transmits the application operation information data to a server, the server needs to ensure the uniqueness of each piece of application operation information data transmitted by the terminal device.
In the prior art, a globally unique identifier (GUID, globally Unique Identifier) is typically added to each frame data message sent by the terminal device to the server, to indicate that the uniqueness of the data message is ensured. However, the GUID length is 36 bits, so that the message is tedious, and when the amount of processing data is large, the transmission speed from the terminal device to the server is slow, the consumption flow is large, and the message occupies a large storage space of the server database.
Disclosure of Invention
The embodiment of the application provides a transmission method of data messages, terminal equipment, a server and a storage medium, which can improve the communication protocol of the terminal equipment and the server, replace GUIDs in each data message of the data interaction of the terminal equipment and the server with a specific timestamp and an equipment identifier of the terminal equipment, and solve the problems that the transmission speed is slow, the consumption flow is large and the storage space is large due to the redundancy of the data messages in the prior art.
In a first aspect, an embodiment of the present application provides a method for transmitting a data message, including: when application operation information is acquired, determining a specific time identifier of the application operation information and a device identifier of terminal equipment; generating a data message based on the specific time identification, the device identification, and the application operation information; the specific time identification and the device identification within the data information are used for uniquely identifying the data message; and uploading the data message to a server.
In a second aspect, an embodiment of the present application provides another method for transmitting a data message, including: receiving data messages uploaded by each terminal device; the data message comprises a specific time identifier and a device identifier; and responding to the query operation, and acquiring a target message corresponding to the query operation according to the specific time identifier corresponding to each data message and the equipment identifier.
In a third aspect, an embodiment of the present application provides a terminal device, including: a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the transmission method of any one of the above first aspects when the computer program is executed.
In a fourth aspect, embodiments of the present application provide a server, including: a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the transmission method of any of the above second aspects when executing the computer program.
In a fifth aspect, embodiments of the present application provide a computer-readable storage medium comprising: the computer readable storage medium stores a computer program which, when executed by a processor, implements the transmission method of any one of the above first or second aspects.
In a sixth aspect, embodiments of the present application provide a computer program product, which, when run on a terminal device, causes the terminal device to perform the transmission method according to any one of the first or second aspects.
It will be appreciated that the advantages of the second to sixth aspects may be found in the relevant description of the first aspect, and are not described here again.
Compared with the prior art, the embodiment of the application has the beneficial effects that: compared with the prior art, the transmission method provided by the application can use the combination of the specific time identifier and the equipment identifier as the unique identifier of the data message to replace the redundant GUID in the prior art, so that the transmission speed of the data message is improved while the uniqueness of all the data messages received by the server is ensured, the consumption and flow of the data message are reduced, and the storage space of the server for receiving the data message is saved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required for the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of an implementation of a transmission method provided in a first embodiment of the present application;
fig. 2 is a flowchart of an implementation of a transmission method provided in a second embodiment of the present application;
fig. 3 is a flowchart of an implementation of a transmission method provided in a third embodiment of the present application;
fig. 4 is a flowchart of an implementation of a transmission method provided in a fourth embodiment of the present application;
fig. 5 is a flowchart of an implementation of a transmission method provided in a fifth embodiment of the present application;
fig. 6 is a flowchart of an implementation of a transmission method provided in a sixth embodiment of the present application;
fig. 7 is a schematic view of an application scenario provided in an embodiment of the present application;
fig. 8 is a schematic structural diagram of a terminal device according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a server according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system configurations, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
As used in this specification and the appended claims, the term "if" may be interpreted as "when..once" or "in response to a determination" or "in response to detection" depending on the context. Similarly, the phrase "if a determination" or "if a [ described condition or event ] is detected" may be interpreted in the context of meaning "upon determination" or "in response to determination" or "upon detection of a [ described condition or event ]" or "in response to detection of a [ described condition or event ]".
In addition, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used merely to distinguish between descriptions and are not to be construed as indicating or implying relative importance.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
In the embodiment of the present application, the execution body of the flow is a terminal device. The terminal device includes, but is not limited to: and a device such as a computer, a smart phone and a tablet computer capable of executing the transmission method provided by the application. Preferably, the terminal device is a computer, and the terminal device can run an application program, acquire application operation information of the running application program, and record system time at a certain moment. Fig. 1 shows a flowchart of an implementation of a transmission method provided in the first embodiment of the present application, which is described in detail below:
in S101, when application operation information is acquired, a specific time identifier of the application operation information and a device identifier of a terminal device are determined.
In this embodiment, when the terminal device runs an application program, the terminal device records the operation content of the application program during the running time, and generates the application operation information based on the operation content, so as to facilitate the subsequent uploading of the application operation information to the server; when the operation content of the application program during this running period is recorded, a specific time identification of the application operation information is also recorded and associated with the application operation information. When the application operation information needs to be uploaded to the server to inform the server of the running condition of the terminal device, namely, in order to respond to a request for uploading the application operation information to the server, the terminal device acquires the application operation information and simultaneously determines a specific time identifier of the application operation information and a device identifier of the terminal device.
In this embodiment, the device identifier of the terminal device may be any device identifier that uniquely identifies the terminal device, for example, a unique number of the terminal device in a device list of the server; preferably, the device identity of the terminal device is a media access control address (Media Access Control Address, MAC address).
In one possible implementation, the specific time identification includes a generation timestamp of the application operation information; the generation time stamp refers to the current system time recorded by the terminal equipment when the application operation information is generated. When the application operation information is obtained, determining the specific time identifier of the application operation information and the device identifier of the terminal device may specifically be: when the application operation information is acquired, determining the generation time stamp of the application operation information and the MAC address of the terminal equipment; the generation timestamp is identified as the particular time identification.
In S102, a data message is generated based on the specific time identification, the device identification, and the application operation information.
In this embodiment, the specific time identification and the device identification within the data message are used to uniquely identify the data message; in particular, the data message corresponds to a unique combination of the specific time identity and the device identity. The data message is used for being sent to the server subsequently so as to inform the server of the operation condition of the terminal equipment.
In one possible implementation manner, the generating a data message based on the specific time identifier, the device identifier and the application operation information may specifically be: the specific time identification, the device identification and the application operation information are encapsulated into the data message.
In S103, the data message is uploaded to a server.
In this embodiment, the data message is uploaded to the server to inform the server of the operation condition of the terminal device. The server stores the data message in a server database so that the server can determine the operation condition of the terminal device by querying the server database for the data message. At this time, the server may monitor the operation condition of each terminal device in communication with the server, so as to count the operation of each application program, or determine the abnormal operation condition of each application program in each terminal device, so as to subsequently process the problem caused by the abnormal operation condition.
It should be understood that the operation condition of the terminal device mentioned in this embodiment refers to the operation content during each operation of each application program in the terminal device.
In one possible implementation manner, the uploading the data message to the server may specifically be: and storing the plurality of data messages into the terminal equipment, and if the terminal equipment stops running all application programs which possibly generate the application operation information, uploading the plurality of data messages stored by the terminal equipment to the server. It should be understood that the execution condition for uploading the plurality of data messages stored in the terminal device to the server together may be other conditions, for example, an upload timestamp corresponding to a preset upload period is reached, that is, the plurality of data messages stored in the terminal device are uploaded to the server together according to the preset upload period. It will be appreciated that after uploading the plurality of data messages stored by the terminal device to the server together, the terminal device may clear the data messages that have been uploaded and also stored.
In another possible implementation manner, the uploading the data message to the server may specifically be: each time a data message is generated, the data message is uploaded to the server and stored.
In this embodiment, the combination of the specific time identifier and the device identifier may be used as the unique identifier of the data message, so as to replace the lengthy GUID in the prior art, so that the transmission speed of the data message is improved while all the data messages received by the server are ensured to have uniqueness, the consumption flow of the data message is reduced, the storage space of the server receiving the data message is saved, and especially when a large number of data messages need to be transmitted, the importance of improving the transmission speed of the data message is more highlighted.
Fig. 2 shows a flowchart of an implementation of the transmission method provided in the second embodiment of the present application. Referring to fig. 2, with respect to the embodiment shown in fig. 1, the method S102 provided in this embodiment includes S1021 to S1023, which are specifically described as follows:
further, the generating a data message based on the specific time identification, the device identification, and the application operation information includes:
in this embodiment, the data message includes a data message header and a data message body.
In S1021, a data message header of the data message is generated based on the specific time identification and the device identification.
In this embodiment, the generating the data message header of the data message according to the specific time identifier and the device identifier may specifically be: the specific time identification and the device identification are encapsulated into the data message header.
In one possible implementation, the data message header is as follows:
generating a timestamp MAC address Message ID Message type Message length
4 bytes 6 bytes 4 bytes 1 byte 4 bytes
The data message header includes, among other things, a generation timestamp, a MAC address, a message identification number (Identity document, ID), a message type, a message length, and some non-mentioned data. It should be understood that when the specific time identifier only includes the generation timestamp and the device identifier is the MAC address, the combination of the specific time identifier and the device identifier is 10 bytes in total, which is far smaller than 36 bytes of the GUID mentioned in the background art, which further illustrates the beneficial effects of the transmission method provided by the present embodiment.
In S1022, a data message body of the data message is generated according to the application operation information.
In this embodiment, the data message body for generating the data message according to the application operation information may specifically be: the application operation information is encapsulated into the data message body.
In one possible implementation, the data message body is as follows:
Figure BDA0002832297690000081
Figure BDA0002832297690000091
wherein the data message body includes a software type, a software version, a language type, a product type, an operating system, and some application operation information not mentioned.
In S1023, the data message header and the data message body are encapsulated, so as to obtain the data message.
In this embodiment, the foregoing encapsulating the data message header and the data message body to obtain the data message may specifically be: and splicing the data message header with the data message body to obtain the data message. In one possible implementation, the data message body is encrypted before the data message header is concatenated with the data message body.
In this embodiment, the data message includes a data message header and a data message body, firstly, the data message header is used as a unique identifier of the data message, and the data message body is used as main content of the data message; secondly, the encryption is convenient, and the data message body is independently encrypted, so that the transmission safety of the data message can be improved, and the main content of the data message is prevented from being revealed.
Fig. 3 shows a flowchart of an implementation of the transmission method provided in the third embodiment of the present application. Referring to fig. 3, with respect to the embodiment described in fig. 1, the transmission method S101 provided in this embodiment includes S301, which is specifically described as follows:
further, the determining the specific time identifier of the application operation information includes:
in S301, a start time stamp of the application program corresponding to the application operation information is obtained, and the specific time identifier is obtained based on the start time stamp.
In this embodiment, the specific time identification includes the start time stamp; the obtaining the start time stamp of the application program corresponding to the application operation information and obtaining the specific time identifier based on the start time stamp may specifically be: acquiring the system time recorded when the application program is started, and identifying the system time as the starting time stamp; the start time stamp is encapsulated into the specific time identifier.
It should be appreciated that, compared to the possible implementation manner described in the first embodiment, the transmission method provided in this embodiment replaces the generation time stamp with the start time stamp. Preferably, the specific time identifier includes only the start time stamp to minimize the occupied bytes of the specific time identifier.
In this embodiment, the terminal device can only start an application program at the same time, so that the application operation information generated after the application program is run can use the device identifier of the terminal device and the start timestamp as unique identifiers to ensure the uniqueness of the data message.
Further, the method S101 provided in this embodiment further includes S302, which is specifically described as follows:
when the application operation information is acquired, determining a specific time identifier and a device identifier of the application operation information, and further including:
in S302, a stop timestamp of the application corresponding to the application operation information is obtained.
In this embodiment, the stop timestamp is used to calculate the running time of the application in combination with the start timestamp.
In a possible implementation manner, the acquiring the stop timestamp of the application program corresponding to the application operation information may specifically be: the system time recorded when the application program stops running is acquired and identified as the stop time stamp.
In another possible implementation manner, the acquiring the stop timestamp of the application program corresponding to the application operation information may specifically be: acquiring a termination time stamp corresponding to the application operation information, and identifying the termination time stamp as the termination time stamp; and updating the termination time stamp according to a preset time interval (for example, 5 seconds), if the application program is detected to stop running, stopping updating the termination time stamp, and taking the termination time stamp as a termination time stamp corresponding to the application operation information.
Further, the method S102 provided in this embodiment further includes S303, which is specifically described as follows:
the generating a data message based on the specific time identification, the device identification, and the application operation information includes:
in S303, the data message is generated according to the specific time identification, the device identification, the stop timestamp and the application operation information.
In this embodiment, the data message in this embodiment includes the stop timestamp compared to the transmission method provided in the first embodiment.
In one possible implementation, the data message includes a data message header and a data message body. The generating the data message according to the specific time identifier, the device identifier, the stop timestamp and the application operation information may specifically be: generating a data message header of the data message according to the start time stamp and the device identifier; generating a data message body of the data message according to the application operation information and the stop time stamp; and packaging the data message header and the data message body to obtain the data message.
In this embodiment, the data message includes the start time stamp and the stop time stamp, so as to determine the running duration of the application program corresponding to the application operation information according to the start time stamp and the stop time stamp.
Fig. 4 shows a flowchart of an implementation of the transmission method provided in the fourth embodiment of the present application. Referring to fig. 4, with respect to the embodiment described in fig. 1, the transmission method S101 provided in this embodiment includes S401 to S402, which are specifically described as follows:
further, the determining the specific time identifier of the application operation information includes:
in S401, a device access timestamp of the operating device corresponding to the application operation information is obtained.
In this embodiment, in order to run an application program corresponding to the application operation information, the terminal device needs to access the operation device, and the system time recorded when the operation device is accessed is the device access timestamp.
In S402, the specific time identification is generated based on the device access timestamp.
In this embodiment, the specific time identifier includes the device access timestamp, but the specific time identifier includes not only the device access timestamp, and if the specific time identifier includes only the device access timestamp, the uniqueness of the data message cannot be guaranteed, so the specific time identifier also includes the generation timestamp described in the first embodiment, or the start timestamp described in the second embodiment.
In this embodiment, the generating the specific time identifier based on the device access timestamp may specifically be: the device access time stamp is encapsulated into the specific time identifier.
In this embodiment, compared to the possible implementation manner mentioned in the first embodiment, the second embodiment, or the third embodiment, the transmission method provided in this embodiment additionally adds the device access timestamp to the specific time identifier, so as to determine the operation device corresponding to the data message based on the device access timestamp, that is, ensure the uniqueness of the operation device corresponding to the data message.
Fig. 5 shows a flowchart of an implementation of the method provided in the fifth embodiment of the present application. Referring to fig. 5, with respect to the embodiment illustrated in fig. 4, the method S401 provided in this embodiment further includes S501 to S502, which are specifically described as follows:
further, before the device access time stamp of the operation device corresponding to the application operation information is obtained, the method further includes:
in S501, if a device access signal fed back by any port is received, the device access timestamp is configured for an operation device accessing the port.
In this embodiment, the device access timestamp is a system time recorded when a device access signal fed back by any port is received. If the device access signal fed back by any port is received, the device access timestamp is configured for the operation device accessing the port, which may specifically be: when receiving a device access signal fed back by any port, recording the current system time, and identifying the device access time stamp of the operating device accessed to the port.
It should be understood that, in this embodiment, the terminal device needs to be externally connected to the operation device during the running of the application program to complete the operation during the running of the application program, so as to generate the application operation information during the running of the application program later.
In S502, operating device information corresponding to the operating device is generated based on the device access timestamp, and the operating device information and the device identifier are sent to the server.
In this embodiment, the terminal device can only respond to the access request of one operation device at a time, so that the combination of the device access timestamp and the device identifier can uniquely identify the operation device. In order to inform the server of the operating device information of the operating device, and to query the operating device information according to the device access time stamp and the device identifier in the following possible, the operating device information and the device identifier need to be sent to the server in advance.
In this embodiment, the generating the operation device information corresponding to the operation device based on the device access timestamp, and sending the operation device information and the device identifier to the server may specifically be: encapsulating the device access timestamp into the operating device information; and the operation equipment information and the equipment identification association package of the terminal equipment are sent to the server.
In one possible implementation, the operating device information is as follows:
Figure BDA0002832297690000131
the operation device information includes a device model number, a configuration table version, a communication type, a module ID, an add device time stamp, and other operation device information not mentioned.
In this embodiment, before the application operation information is acquired, the operation device information and the device identifier are sent to the server, so that the server may query the operation device information according to the device access timestamp and the device identifier, and the operation device information and the device identifier need to be sent to the server in advance.
Fig. 6 shows a flowchart of an implementation of the method provided in the sixth embodiment of the present application, where an execution body of the flow is a server, and the server is capable of receiving and storing data messages uploaded by respective terminal devices; the details are as follows:
in S601, data messages uploaded by the respective terminal devices are received.
In this embodiment, the data message includes a specific time identifier and a device identifier, and the specific description of the specific time identifier and the device identifier may refer to the related description in the first embodiment, which is not repeated herein. The specific implementation of receiving the data message uploaded by each terminal device may refer to the description related to S103, which is not described herein. It should be noted that, the server stores all received data messages in the server database.
It should be understood that each terminal device described in this embodiment may be a terminal device described in any of the foregoing embodiments.
In S602, in response to a query operation, a target message corresponding to the query operation is obtained according to the specific time identifier and the device identifier corresponding to each data message.
In this embodiment, all the data messages received in S601, that is, all the data messages in the server database, use the combination of the specific time identifier and the device identifier of the data message as the unique identifier. In one possible implementation manner, the responding to the query operation obtains the target message corresponding to the query operation according to the specific time identifier and the device identifier corresponding to each data message, which is specifically described as follows:
taking a data message as an example for illustration, responding to a query operation, taking the combination of a specific time identifier corresponding to the data message and a device identifier as a query index, querying a unique data message associated with the combination of the specific time identifier and the device identifier in the server database, and identifying the unique data message as a target message corresponding to the query operation.
In this embodiment, the server queries the unique target message according to the combination of the specific time identifier and the device identifier, so as to ensure that all the data messages received by the server have uniqueness.
Fig. 7 shows an application scenario schematic diagram provided in an embodiment of the present application. Referring to fig. 7, in the application scenario, the server receives data messages uploaded by a plurality of terminal devices (i.e., N terminal devices such as terminal device 1 and terminal device N shown in the drawing), and the terminal device 1 is responsible for monitoring a plurality of operation devices (i.e., N operation devices such as operation device 1 and operation device N shown in the drawing), that is, one server is communicatively connected to the plurality of terminal devices, and one terminal device is connected to the plurality of operation devices.
In the application scenario, for example, the terminal device 1 runs an application program, and the operating content of the application program during this time is that the device running parameter of the operating device 1 is changed, and then the terminal device 1 generates application operation information according to the operating content of the application program during this time, where the application operation information includes a value before the change and a value after the change of the device running parameter. Then, in order to respond to the request for uploading the application operation information to the server, the terminal device 1 generates a data message related to the application operation information based on the transmission method provided in the embodiment of the present application, and uploads the data message to the server. Specifically, the terminal equipment acquires the application operation information, and determines a starting time stamp of the application operation information and an MAC address of the terminal equipment; encapsulating the start time stamp and the MAC address to a data message header of the data message, and encapsulating the application operation information to a data message body of the data message; the data message is uploaded to the server, and the server can respond to a possible data message query operation, wherein the data message query operation can specifically be that a unique data message is queried according to a starting time stamp and a MAC address.
Further, if the server wants to respond to the possible operation of the operating device corresponding to the query data message, that is, determines that the operating device whose operating parameters are modified based on the application operation information in the data message, the following conditions need to be satisfied: recording a device access time stamp of the operation device 1 to the terminal device 1 during the operation of the application program by the terminal device 1; when the start time stamp and the MAC address are encapsulated in the data message header of the data message, the device access time stamp is also encapsulated in the data message header. Then, when the server queries the operation device corresponding to the data message, the unique operation device, that is, the operation device 1, may be determined based on the device access time stamp and the MAC address in the data message.
Fig. 8 shows a schematic structural diagram of a terminal device according to an embodiment of the present application. As shown in fig. 8, the terminal device 8 of this embodiment includes: at least one processor 80 (only one processor is shown in fig. 8), a memory 81 and a computer program 82 stored in the memory 81 and executable on the at least one processor 80, which processor 80, when executing the computer program 82, implements the steps of the first, second, third, fourth and fifth embodiments of the above-described method embodiments.
The terminal device 8 may be a computing device such as a desktop computer, a notebook computer, a palm computer, etc. The terminal device may include, but is not limited to, a processor 80, a memory 81. It will be appreciated by those skilled in the art that fig. 8 is merely an example of the terminal device 8 and is not limiting of the terminal device 8, and may include more or fewer components than shown, or may combine certain components, or different components, such as may also include input-output devices, network access devices, etc.
The processor 80 may be a central processing unit (Central Processing Unit, CPU), the processor 80 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 81 may in some embodiments be an internal storage unit of the terminal device 8, such as a hard disk or a memory of the terminal device 8. The memory 81 may in other embodiments also be an external storage device of the terminal device 8, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the terminal device 8. Further, the memory 81 may also include both an internal storage unit and an external storage device of the terminal device 8. The memory 81 is used for storing an operating system, application programs, boot loader (BootLoader), data, other programs etc., such as program codes of the computer program etc. The memory 81 may also be used to temporarily store data that has been output or is to be output.
Fig. 9 shows a schematic structural diagram of a server according to an embodiment of the present application. As shown in fig. 9, the server 9 of this embodiment includes: at least one processor 90 (only one processor is shown in fig. 9), a memory 91 and a computer program 92 stored in the memory 91 and executable on the at least one processor 90, which processor 90 implements the steps of the sixth embodiment of the method embodiments described above when executing the computer program 92.
The server 9 may be a computing device such as a cloud server. The terminal device may include, but is not limited to, a processor 90, a memory 91. It will be appreciated by those skilled in the art that fig. 9 is merely an example of the server 9, and does not constitute a limitation of the server 9, and may include more or less components than those illustrated, or may combine certain components, or different components, for example, may further include input/output devices, network access devices, etc., and that reference may be made to the above-described related descriptions of the processor 80 and the memory 81 for a specific description of the processor 90 and the memory 91.
Embodiments of the present application also provide a computer readable storage medium storing a computer program, which when executed by a processor, may implement the steps in the above-described method embodiments.
The present embodiments provide a computer program product which, when run on a mobile terminal, causes the mobile terminal to perform the steps of the first, second, third, fourth and fifth embodiments that enable the method embodiments described above.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present application implements all or part of the flow of the method of the above embodiments, and may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, where the computer program, when executed by a processor, may implement the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to a photographing device/terminal apparatus, recording medium, computer Memory, read-Only Memory (ROM), random access Memory (RAM, random Access Memory), electrical carrier signals, telecommunications signals, and software distribution media. Such as a U-disk, removable hard disk, magnetic or optical disk, etc. In some jurisdictions, computer readable media may not be electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other manners. For example, the apparatus/terminal device embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical function division, and there may be additional divisions in actual implementation, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
The above embodiments are only for illustrating the technical solution of the present application, and are not limiting; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.

Claims (6)

1. A method for transmitting a data message, applied to a terminal device, the method comprising:
when application operation information is acquired, determining a specific time identifier of the application operation information and a device identifier of terminal equipment; the terminal equipment can only start one application program at the same time;
generating a data message based on the specific time identification, the device identification, and the application operation information; the specific time identification within the data message and the device identification are used to uniquely identify the data message;
uploading the data message to a server;
the generating a data message based on the specific time identification, the device identification, and the application operation information includes:
encapsulating the specific time identifier, the equipment identifier and the application operation information into a data message;
the determining the specific time identifier of the application operation information comprises the following steps:
acquiring a starting time stamp of an application program corresponding to the application operation information, and acquiring the specific time mark based on the starting time stamp, wherein the starting time stamp is the system time recorded when the application program is started;
when the application operation information is acquired, determining a specific time identifier and a device identifier of the application operation information, and further including:
acquiring a stop time stamp of an application program corresponding to the application operation information; the stop time stamp is used for calculating the running time of the application program in combination with the starting time stamp, and the stop time stamp is the system time recorded when the application program stops running;
the generating a data message based on the specific time identification, the device identification, and the application operation information includes:
and generating the data message according to the specific time identifier, the equipment identifier, the stop time stamp and the application operation information.
2. The transmission method of claim 1, wherein the data message comprises a data message header and a data message body; the generating a data message based on the specific time identification, the device identification, and the application operation information includes:
generating a data message header of the data message according to the specific time identifier and the equipment identifier;
generating a data message body of the data message according to the application operation information;
and packaging the data message header and the data message body to obtain the data message.
3. A method for transmitting a data message, applied to a server, characterized in that the method comprises:
receiving data messages uploaded by each terminal device; the data message comprises a specific time identifier and a device identifier; the terminal equipment can only start one application program at the same time, and is used for acquiring a starting time stamp of the application program corresponding to the application operation information, and acquiring a specific time mark based on the starting time stamp, wherein the starting time stamp is the system time recorded when the application program is started; the terminal equipment is also used for acquiring a stop time stamp of the application program corresponding to the application operation information; the stop time stamp is used for calculating the running time of the application program in combination with the starting time stamp, and the stop time stamp is the system time recorded when the application program stops running; the terminal device is further configured to generate the data message according to the specific time identifier, the device identifier, the stop timestamp, and the application operation information;
responding to a query operation, and acquiring a target message corresponding to the query operation according to the specific time identifier corresponding to each data message and the equipment identifier;
wherein the data message is formed by encapsulating a specific time identifier, a device identifier and application operation information.
4. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 3 when executing the computer program.
5. A server comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the method of any one of claims 1 to 3 when executing the computer program.
6. A computer readable storage medium storing a computer program, characterized in that the computer program, when executed by a processor, implements the method according to any one of claims 1 to 3.
CN202011453255.5A 2020-12-11 2020-12-11 Data message transmission method, terminal device, server and storage medium Active CN112637151B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011453255.5A CN112637151B (en) 2020-12-11 2020-12-11 Data message transmission method, terminal device, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011453255.5A CN112637151B (en) 2020-12-11 2020-12-11 Data message transmission method, terminal device, server and storage medium

Publications (2)

Publication Number Publication Date
CN112637151A CN112637151A (en) 2021-04-09
CN112637151B true CN112637151B (en) 2023-05-05

Family

ID=75309797

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011453255.5A Active CN112637151B (en) 2020-12-11 2020-12-11 Data message transmission method, terminal device, server and storage medium

Country Status (1)

Country Link
CN (1) CN112637151B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114915652B (en) * 2022-03-30 2024-03-15 北京奇艺世纪科技有限公司 Message pushing 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
EP1881402A1 (en) * 2006-07-21 2008-01-23 Nextair Corporation Compression of data transmitted between server and mobile device
CN108287668A (en) * 2018-01-25 2018-07-17 深圳市智物联网络有限公司 Processing method and processing device, computer installation and the readable storage medium storing program for executing of device data
CN108989383A (en) * 2018-05-31 2018-12-11 阿里巴巴集团控股有限公司 Data processing method and client
CN111046393A (en) * 2019-12-14 2020-04-21 深圳市优必选科技股份有限公司 Vulnerability information uploading method and device, terminal equipment and storage medium
CN111327687A (en) * 2020-01-21 2020-06-23 香港乐蜜有限公司 Data transmission method and device, electronic equipment and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112702702A (en) * 2016-07-05 2021-04-23 华为技术有限公司 Method, equipment and system for processing service
CN107580358B (en) * 2017-09-13 2021-02-09 东莞市腾盛软件科技有限公司 Network access method and related product
CN108449256B (en) * 2018-02-10 2021-05-04 深圳壹账通智能科技有限公司 Message pushing processing method and device, computer equipment and storage medium
CN110856126B (en) * 2019-10-24 2021-09-14 深圳市梦网科技发展有限公司 Information reporting and receiving method, terminal equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1881402A1 (en) * 2006-07-21 2008-01-23 Nextair Corporation Compression of data transmitted between server and mobile device
CN108287668A (en) * 2018-01-25 2018-07-17 深圳市智物联网络有限公司 Processing method and processing device, computer installation and the readable storage medium storing program for executing of device data
CN108989383A (en) * 2018-05-31 2018-12-11 阿里巴巴集团控股有限公司 Data processing method and client
CN111046393A (en) * 2019-12-14 2020-04-21 深圳市优必选科技股份有限公司 Vulnerability information uploading method and device, terminal equipment and storage medium
CN111327687A (en) * 2020-01-21 2020-06-23 香港乐蜜有限公司 Data transmission method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN112637151A (en) 2021-04-09

Similar Documents

Publication Publication Date Title
US11122128B2 (en) Method and device for customer resource acquisition, terminal device and storage medium
US8875154B2 (en) Interface specific and parallel IPMI message handling at baseboard management controller
CN110601880A (en) Cloud platform, service processing method, command interface and computer equipment
CN110958161B (en) Block chain link point monitoring method and device and storage medium
CN113746692A (en) Network flow statistical method, electronic equipment and storage medium
WO2020102928A1 (en) Wireless signal transmission method, wireless signal transmission device and terminal device
WO2024221915A1 (en) Field replaceable unit (fru) management method, device, and system
CN112637151B (en) Data message transmission method, terminal device, server and storage medium
CN113486060B (en) Data access processing method and device, storage medium and electronic equipment
CN115914283B (en) Method and device for sending shaft hoof temperature information, terminal equipment and storage medium
CN111459899B (en) Log sharing method and device and terminal equipment
CN109688204B (en) File downloading method, node and terminal based on NDN (named data networking)
CN112800130A (en) Data uplink method, system, device, equipment and storage medium
CN113486025A (en) Data storage method, data query method and device
CN110908886A (en) Data sending method and device, electronic equipment and storage medium
EP3048775B1 (en) Service processing method, related device and system
CN107203559B (en) Method and device for dividing data strips
US11606274B1 (en) Method for operations of virtual machines in monitoring cloud activities, system, and device applying the method
CN116243586B (en) Vehicle time correction method and related equipment
CN114567483B (en) Data transmission method and device and electronic equipment
CN113778939B (en) Marine light chip management method, device and equipment based on substrate management controller
CN117560285B (en) Intelligent control internet of things OTA upgrading method, client and server
CN114629895B (en) File fragment breakpoint continuous transmission method, device, terminal equipment and medium
CN113691614B (en) Information processing method and device
CN117956024A (en) Message pushing method, device, system, server and readable 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